fulcrum-core
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -62,5 +62,7 @@ 'use strict'; | ||
ChildElements.prototype.elementsOfType = function elementsOfType(type) { | ||
var recurseRepeatables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
var result = []; | ||
for (var _iterator2 = this.allElements, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { | ||
for (var _iterator2 = this.flattenElements(recurseRepeatables), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { | ||
var _ref2; | ||
@@ -87,3 +89,11 @@ | ||
ChildElements.prototype.flattenElements = function flattenElements() { | ||
var recurseRepeatables = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
return this._flattenElements(this.elements, recurseRepeatables); | ||
}; | ||
ChildElements.prototype._flattenElements = function _flattenElements(elements) { | ||
var recurseRepeatables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
var flat = []; | ||
@@ -107,5 +117,11 @@ | ||
if (element.elements) { | ||
flat = flat.concat(this._flattenElements(element.elements)); | ||
var recurse = true; | ||
if (!recurseRepeatables && element.isRepeatableElement) { | ||
recurse = false; | ||
} | ||
if (recurse && element.elements) { | ||
flat = flat.concat(this._flattenElements(element.elements, recurseRepeatables)); | ||
} | ||
} | ||
@@ -112,0 +128,0 @@ |
@@ -35,3 +35,3 @@ 'use strict'; | ||
_this._choiceFilter = null; | ||
_this._classificationFilter = null; | ||
@@ -64,3 +64,3 @@ _this._overrideClassificationItems = null; | ||
this._choiceFilter = null; | ||
this._classificationFilter = null; | ||
this._overrideClassificationItems = null; | ||
@@ -75,8 +75,8 @@ }; | ||
}, { | ||
key: 'choiceFilter', | ||
key: 'classificationFilter', | ||
get: function get() { | ||
return this._choiceFilter; | ||
return this._classificationFilter; | ||
}, | ||
set: function set(choiceFilter) { | ||
this._choiceFilter = choiceFilter; | ||
set: function set(classificationFilter) { | ||
this._classificationFilter = classificationFilter; | ||
} | ||
@@ -118,3 +118,3 @@ }, { | ||
return Object.assign(Object.getOwnPropertyDescriptor(_element2.default.prototype, 'overrideValues').get.call(this), { | ||
choiceFilter: this._choiceFilter, | ||
classificationFilter: this._classificationFilter, | ||
overrideClassificationItems: this._overrideClassificationItems | ||
@@ -121,0 +121,0 @@ }); |
@@ -55,2 +55,3 @@ 'use strict'; | ||
this._assignmentEnabled = attributes.assignment_enabled != null ? !!attributes.assignment_enabled : true; | ||
this._autoAssign = attributes.auto_assign != null ? !!attributes.auto_assign : false; | ||
@@ -133,2 +134,3 @@ if (attributes.title_field_keys || attributes.record_title_key) { | ||
json.assignment_enabled = this.isAssignmentEnabled; | ||
json.auto_assign = this.isAutoAssign; | ||
json.projects_enabled = this.isProjectEnabled; | ||
@@ -200,2 +202,7 @@ json.geometry_required = this.isGeometryRequired; | ||
}, { | ||
key: 'isAutoAssign', | ||
get: function get() { | ||
return this._autoAssign; | ||
} | ||
}, { | ||
key: 'isGeometryEnabled', | ||
@@ -202,0 +209,0 @@ get: function get() { |
@@ -77,7 +77,6 @@ "use strict"; | ||
TrackPlayer.prototype.findPreviousTrackPoint = function findPreviousTrackPoint(time) { | ||
var _findPreviousTrackPoi = this.findPreviousTrackPointIndexes(time); | ||
var _findPreviousTrackPoi = this.findPreviousTrackPointIndexes(time), | ||
segmentIndex = _findPreviousTrackPoi[0], | ||
pointIndex = _findPreviousTrackPoi[1]; | ||
var segmentIndex = _findPreviousTrackPoi[0]; | ||
var pointIndex = _findPreviousTrackPoi[1]; | ||
return this.track.segments[segmentIndex].points[pointIndex]; | ||
@@ -87,8 +86,6 @@ }; | ||
TrackPlayer.prototype.findNextTrackPoint = function findNextTrackPoint(time) { | ||
var _findPreviousTrackPoi2 = this.findPreviousTrackPointIndexes(time); | ||
var _findPreviousTrackPoi2 = this.findPreviousTrackPointIndexes(time), | ||
segmentIndex = _findPreviousTrackPoi2[0], | ||
pointIndex = _findPreviousTrackPoi2[1]; | ||
var segmentIndex = _findPreviousTrackPoi2[0]; | ||
var pointIndex = _findPreviousTrackPoi2[1]; | ||
if (pointIndex + 1 < this.track.segments[segmentIndex].points.length) { | ||
@@ -95,0 +92,0 @@ return this.track.segments[segmentIndex].points[pointIndex + 1]; |
@@ -82,3 +82,3 @@ 'use strict'; | ||
json.created_by_id = this._createdByID || null; | ||
json.created_by = this._createdBy || null; | ||
json.created_by = this._createdByName || null; | ||
json.updated_by_id = this._updatedByID || null; | ||
@@ -138,5 +138,5 @@ json.updated_by = this._updatedBy || null; | ||
this._createdByID = attributes.created_by_id || null; | ||
this._createdBy = attributes.created_by || null; | ||
this._createdByName = attributes.created_by || null; | ||
this._updatedByID = attributes.updated_by_id || null; | ||
this._updatedBy = attributes.updated_by || null; | ||
this._updatedByName = attributes.updated_by || null; | ||
@@ -370,5 +370,5 @@ this._horizontalAccuracy = attributes.horizontal_accuracy || null; | ||
}, { | ||
key: 'createdBy', | ||
key: 'createdByName', | ||
get: function get() { | ||
return this._createdBy; | ||
return this._createdByName; | ||
} | ||
@@ -381,2 +381,7 @@ }, { | ||
}, { | ||
key: 'updatedByName', | ||
get: function get() { | ||
return this._updatedByName; | ||
} | ||
}, { | ||
key: 'isGeometryEnabled', | ||
@@ -383,0 +388,0 @@ get: function get() { |
@@ -47,8 +47,6 @@ 'use strict'; | ||
var _timeString$split = timeString.split(':'); | ||
var _timeString$split = timeString.split(':'), | ||
hours = _timeString$split[0], | ||
minutes = _timeString$split[1]; | ||
var hours = _timeString$split[0]; | ||
var minutes = _timeString$split[1]; | ||
if (hours == null || minutes == null) { | ||
@@ -76,3 +74,3 @@ return null; | ||
DateUtils.formatTimeSeconds = function formatTimeSeconds(seconds) { | ||
var milliseconds = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; | ||
var milliseconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | ||
@@ -146,4 +144,4 @@ var ss = +seconds % 60; | ||
var hourPart = parts[0]; | ||
var minutePart = parts[1]; | ||
var hourPart = parts[0], | ||
minutePart = parts[1]; | ||
@@ -188,5 +186,5 @@ | ||
var yearPart = parts[0]; | ||
var monthPart = parts[1]; | ||
var dayPart = parts[2]; | ||
var yearPart = parts[0], | ||
monthPart = parts[1], | ||
dayPart = parts[2]; | ||
@@ -193,0 +191,0 @@ |
@@ -46,3 +46,3 @@ 'use strict'; | ||
NumberUtils.localizedStringFromMachineString = function localizedStringFromMachineString(machineString) { | ||
var allowDecimals = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; | ||
var allowDecimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
@@ -49,0 +49,0 @@ if (allowDecimals && NumberUtils.localeDecimalFormatter) { |
@@ -37,5 +37,17 @@ 'use strict'; | ||
// TODO(zhm) implement | ||
// throw new Error('Not implemented'); | ||
AddressValue.prototype.format = function format(_ref) { | ||
var _ref$part = _ref.part, | ||
part = _ref$part === undefined ? null : _ref$part; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part) { | ||
return this.address.toJSON()[part]; | ||
} | ||
return this.searchableValue; | ||
}; | ||
AddressValue.prototype.toJSON = function toJSON() { | ||
@@ -97,14 +109,14 @@ if (this.isEmpty) { | ||
for (var _iterator = Object.keys(address), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { | ||
var _ref; | ||
var _ref2; | ||
if (_isArray) { | ||
if (_i >= _iterator.length) break; | ||
_ref = _iterator[_i++]; | ||
_ref2 = _iterator[_i++]; | ||
} else { | ||
_i = _iterator.next(); | ||
if (_i.done) break; | ||
_ref = _i.value; | ||
_ref2 = _i.value; | ||
} | ||
var key = _ref; | ||
var key = _ref2; | ||
@@ -122,2 +134,4 @@ value['f' + this.element.key + '_' + key] = address[key]; | ||
return null; | ||
// TODO(zhm) implement | ||
// throw new Error('Not implemented'); | ||
} | ||
@@ -124,0 +138,0 @@ }]); |
@@ -37,2 +37,22 @@ 'use strict'; | ||
CalculatedValue.prototype.format = function format() { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
var display = this.element.display; | ||
// - for currency or number display, return the numeric value | ||
// - for date calculations return the date | ||
// - for text (and anything else) just return the string value | ||
if (display.isCurrency || display.isNumber) { | ||
return _numberUtils2.default.parseDouble(this.textValue); | ||
} else if (display.isDate) { | ||
return new Date(this.textValue + ' 00:00:00Z'); | ||
} | ||
return this.textValue; | ||
}; | ||
_createClass(CalculatedValue, [{ | ||
@@ -39,0 +59,0 @@ key: 'displayValue', |
@@ -89,2 +89,13 @@ 'use strict'; | ||
ChoiceValue.prototype.format = function format(_ref3) { | ||
var _ref3$useDisplayValue = _ref3.useDisplayValue, | ||
useDisplayValue = _ref3$useDisplayValue === undefined ? false : _ref3$useDisplayValue; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.labelStrings.sort() : this.valueStrings.sort(); | ||
}; | ||
ChoiceValue.prototype.toJSON = function toJSON() { | ||
@@ -99,14 +110,14 @@ if (this.isEmpty) { | ||
for (var _iterator3 = this._choiceValues, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { | ||
var _ref3; | ||
var _ref4; | ||
if (_isArray3) { | ||
if (_i3 >= _iterator3.length) break; | ||
_ref3 = _iterator3[_i3++]; | ||
_ref4 = _iterator3[_i3++]; | ||
} else { | ||
_i3 = _iterator3.next(); | ||
if (_i3.done) break; | ||
_ref3 = _i3.value; | ||
_ref4 = _i3.value; | ||
} | ||
var rawValue = _ref3; | ||
var rawValue = _ref4; | ||
@@ -117,14 +128,14 @@ choiceValues.push(rawValue); | ||
for (var _iterator4 = this._otherValues, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { | ||
var _ref4; | ||
var _ref5; | ||
if (_isArray4) { | ||
if (_i4 >= _iterator4.length) break; | ||
_ref4 = _iterator4[_i4++]; | ||
_ref5 = _iterator4[_i4++]; | ||
} else { | ||
_i4 = _iterator4.next(); | ||
if (_i4.done) break; | ||
_ref4 = _i4.value; | ||
_ref5 = _i4.value; | ||
} | ||
var otherValue = _ref4; | ||
var otherValue = _ref5; | ||
@@ -177,3 +188,3 @@ otherValues.push(otherValue); | ||
}, { | ||
key: 'displayValue', | ||
key: 'labelStrings', | ||
get: function get() { | ||
@@ -183,14 +194,14 @@ var labels = []; | ||
for (var _iterator5 = this._choiceValues, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { | ||
var _ref5; | ||
var _ref6; | ||
if (_isArray5) { | ||
if (_i5 >= _iterator5.length) break; | ||
_ref5 = _iterator5[_i5++]; | ||
_ref6 = _iterator5[_i5++]; | ||
} else { | ||
_i5 = _iterator5.next(); | ||
if (_i5.done) break; | ||
_ref5 = _i5.value; | ||
_ref6 = _i5.value; | ||
} | ||
var rawValue = _ref5; | ||
var rawValue = _ref6; | ||
@@ -207,14 +218,14 @@ var choice = this.element.choiceByValue(rawValue); | ||
for (var _iterator6 = this._otherValues, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { | ||
var _ref6; | ||
var _ref7; | ||
if (_isArray6) { | ||
if (_i6 >= _iterator6.length) break; | ||
_ref6 = _iterator6[_i6++]; | ||
_ref7 = _iterator6[_i6++]; | ||
} else { | ||
_i6 = _iterator6.next(); | ||
if (_i6.done) break; | ||
_ref6 = _i6.value; | ||
_ref7 = _i6.value; | ||
} | ||
var otherValue = _ref6; | ||
var otherValue = _ref7; | ||
@@ -224,6 +235,6 @@ labels.push(otherValue); | ||
return labels.join(ChoiceDisplaySeparator); | ||
return labels; | ||
} | ||
}, { | ||
key: 'searchableValue', | ||
key: 'valueStrings', | ||
get: function get() { | ||
@@ -233,41 +244,31 @@ var values = []; | ||
for (var _iterator7 = this._choiceValues, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { | ||
var _ref7; | ||
var _ref8; | ||
if (_isArray7) { | ||
if (_i7 >= _iterator7.length) break; | ||
_ref7 = _iterator7[_i7++]; | ||
_ref8 = _iterator7[_i7++]; | ||
} else { | ||
_i7 = _iterator7.next(); | ||
if (_i7.done) break; | ||
_ref7 = _i7.value; | ||
_ref8 = _i7.value; | ||
} | ||
var rawValue = _ref7; | ||
var rawValue = _ref8; | ||
var choice = this.element.choiceByValue(rawValue); | ||
if (choice != null) { | ||
values.push(choice.label); | ||
if (choice.label !== choice.value) { | ||
values.push(choice.value); | ||
} | ||
} else { | ||
values.push(rawValue); | ||
} | ||
values.push(rawValue); | ||
} | ||
for (var _iterator8 = this._otherValues, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) { | ||
var _ref8; | ||
var _ref9; | ||
if (_isArray8) { | ||
if (_i8 >= _iterator8.length) break; | ||
_ref8 = _iterator8[_i8++]; | ||
_ref9 = _iterator8[_i8++]; | ||
} else { | ||
_i8 = _iterator8.next(); | ||
if (_i8.done) break; | ||
_ref8 = _i8.value; | ||
_ref9 = _i8.value; | ||
} | ||
var otherValue = _ref8; | ||
var otherValue = _ref9; | ||
@@ -277,48 +278,70 @@ values.push(otherValue); | ||
return values.join(ChoiceSearchSeparator); | ||
return values; | ||
} | ||
}, { | ||
key: 'length', | ||
key: 'displayValue', | ||
get: function get() { | ||
return this._choiceValues.length + this._otherValues.length; | ||
return this.labelStrings.join(ChoiceDisplaySeparator); | ||
} | ||
}, { | ||
key: 'columnValue', | ||
key: 'searchableValue', | ||
get: function get() { | ||
var allValues = []; | ||
var values = []; | ||
for (var _iterator9 = this._choiceValues, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) { | ||
var _ref9; | ||
var _ref10; | ||
if (_isArray9) { | ||
if (_i9 >= _iterator9.length) break; | ||
_ref9 = _iterator9[_i9++]; | ||
_ref10 = _iterator9[_i9++]; | ||
} else { | ||
_i9 = _iterator9.next(); | ||
if (_i9.done) break; | ||
_ref9 = _i9.value; | ||
_ref10 = _i9.value; | ||
} | ||
var rawValue = _ref9; | ||
var rawValue = _ref10; | ||
allValues.push(rawValue); | ||
var choice = this.element.choiceByValue(rawValue); | ||
if (choice != null) { | ||
values.push(choice.label); | ||
if (choice.label !== choice.value) { | ||
values.push(choice.value); | ||
} | ||
} else { | ||
values.push(rawValue); | ||
} | ||
} | ||
for (var _iterator10 = this._otherValues, _isArray10 = Array.isArray(_iterator10), _i10 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) { | ||
var _ref10; | ||
var _ref11; | ||
if (_isArray10) { | ||
if (_i10 >= _iterator10.length) break; | ||
_ref10 = _iterator10[_i10++]; | ||
_ref11 = _iterator10[_i10++]; | ||
} else { | ||
_i10 = _iterator10.next(); | ||
if (_i10.done) break; | ||
_ref10 = _i10.value; | ||
_ref11 = _i10.value; | ||
} | ||
var otherValue = _ref10; | ||
var otherValue = _ref11; | ||
allValues.push(otherValue); | ||
values.push(otherValue); | ||
} | ||
return values.join(ChoiceSearchSeparator); | ||
} | ||
}, { | ||
key: 'length', | ||
get: function get() { | ||
return this._choiceValues.length + this._otherValues.length; | ||
} | ||
}, { | ||
key: 'columnValue', | ||
get: function get() { | ||
var allValues = this.valueStrings.sort(); | ||
if (allValues.length === 0) { | ||
@@ -325,0 +348,0 @@ return null; |
@@ -140,2 +140,13 @@ 'use strict'; | ||
ClassificationValue.prototype.format = function format(_ref4) { | ||
var _ref4$useDisplayValue = _ref4.useDisplayValue, | ||
useDisplayValue = _ref4$useDisplayValue === undefined ? false : _ref4$useDisplayValue; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.labelStrings : this.valueStrings; | ||
}; | ||
ClassificationValue.prototype.toJSON = function toJSON() { | ||
@@ -191,5 +202,5 @@ if (this.isEmpty) { | ||
}, { | ||
key: 'displayValue', | ||
key: 'labelStrings', | ||
get: function get() { | ||
var values = []; | ||
var labels = []; | ||
@@ -200,17 +211,17 @@ var classification = this.selectedClassification; | ||
for (var _iterator4 = classification.exploded, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { | ||
var _ref4; | ||
var _ref5; | ||
if (_isArray4) { | ||
if (_i4 >= _iterator4.length) break; | ||
_ref4 = _iterator4[_i4++]; | ||
_ref5 = _iterator4[_i4++]; | ||
} else { | ||
_i4 = _iterator4.next(); | ||
if (_i4.done) break; | ||
_ref4 = _i4.value; | ||
_ref5 = _i4.value; | ||
} | ||
var item = _ref4; | ||
var item = _ref5; | ||
if (item.label) { | ||
values.push(item.label); | ||
labels.push(item.label); | ||
} | ||
@@ -221,8 +232,54 @@ } | ||
if (this.hasOtherValue) { | ||
values.push(this.otherValue); | ||
labels.push(this.otherValue); | ||
} | ||
return values.join(DisplaySeparator); | ||
return labels; | ||
} | ||
}, { | ||
key: 'valueStrings', | ||
get: function get() { | ||
var values = []; | ||
for (var _iterator5 = this._choiceValues, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { | ||
var _ref6; | ||
if (_isArray5) { | ||
if (_i5 >= _iterator5.length) break; | ||
_ref6 = _iterator5[_i5++]; | ||
} else { | ||
_i5 = _iterator5.next(); | ||
if (_i5.done) break; | ||
_ref6 = _i5.value; | ||
} | ||
var value = _ref6; | ||
values.push(value); | ||
} | ||
for (var _iterator6 = this._otherValues, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { | ||
var _ref7; | ||
if (_isArray6) { | ||
if (_i6 >= _iterator6.length) break; | ||
_ref7 = _iterator6[_i6++]; | ||
} else { | ||
_i6 = _iterator6.next(); | ||
if (_i6.done) break; | ||
_ref7 = _i6.value; | ||
} | ||
var _value = _ref7; | ||
values.push(_value); | ||
} | ||
return values; | ||
} | ||
}, { | ||
key: 'displayValue', | ||
get: function get() { | ||
return this.labelStrings.join(DisplaySeparator); | ||
} | ||
}, { | ||
key: 'searchableValue', | ||
@@ -235,15 +292,15 @@ get: function get() { | ||
if (classification) { | ||
for (var _iterator5 = classification.exploded, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { | ||
var _ref5; | ||
for (var _iterator7 = classification.exploded, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { | ||
var _ref8; | ||
if (_isArray5) { | ||
if (_i5 >= _iterator5.length) break; | ||
_ref5 = _iterator5[_i5++]; | ||
if (_isArray7) { | ||
if (_i7 >= _iterator7.length) break; | ||
_ref8 = _iterator7[_i7++]; | ||
} else { | ||
_i5 = _iterator5.next(); | ||
if (_i5.done) break; | ||
_ref5 = _i5.value; | ||
_i7 = _iterator7.next(); | ||
if (_i7.done) break; | ||
_ref8 = _i7.value; | ||
} | ||
var item = _ref5; | ||
var item = _ref8; | ||
@@ -274,38 +331,4 @@ if (item.label) { | ||
get: function get() { | ||
var allValues = []; | ||
var allValues = this.valueStrings; | ||
for (var _iterator6 = this._choiceValues, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { | ||
var _ref6; | ||
if (_isArray6) { | ||
if (_i6 >= _iterator6.length) break; | ||
_ref6 = _iterator6[_i6++]; | ||
} else { | ||
_i6 = _iterator6.next(); | ||
if (_i6.done) break; | ||
_ref6 = _i6.value; | ||
} | ||
var value = _ref6; | ||
allValues.push(value); | ||
} | ||
for (var _iterator7 = this._otherValues, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { | ||
var _ref7; | ||
if (_isArray7) { | ||
if (_i7 >= _iterator7.length) break; | ||
_ref7 = _iterator7[_i7++]; | ||
} else { | ||
_i7 = _iterator7.next(); | ||
if (_i7.done) break; | ||
_ref7 = _i7.value; | ||
} | ||
var _value = _ref7; | ||
allValues.push(_value); | ||
} | ||
if (allValues.length === 0) { | ||
@@ -355,28 +378,28 @@ return null; | ||
for (var _iterator8 = this._choiceValues, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) { | ||
var _ref8; | ||
var _ref9; | ||
if (_isArray8) { | ||
if (_i8 >= _iterator8.length) break; | ||
_ref8 = _iterator8[_i8++]; | ||
_ref9 = _iterator8[_i8++]; | ||
} else { | ||
_i8 = _iterator8.next(); | ||
if (_i8.done) break; | ||
_ref8 = _i8.value; | ||
_ref9 = _i8.value; | ||
} | ||
var classificationValue = _ref8; | ||
var classificationValue = _ref9; | ||
for (var _iterator9 = currentClassifications, _isArray9 = Array.isArray(_iterator9), _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) { | ||
var _ref9; | ||
var _ref10; | ||
if (_isArray9) { | ||
if (_i9 >= _iterator9.length) break; | ||
_ref9 = _iterator9[_i9++]; | ||
_ref10 = _iterator9[_i9++]; | ||
} else { | ||
_i9 = _iterator9.next(); | ||
if (_i9.done) break; | ||
_ref9 = _i9.value; | ||
_ref10 = _i9.value; | ||
} | ||
var classification = _ref9; | ||
var classification = _ref10; | ||
@@ -383,0 +406,0 @@ if (classification.value === classificationValue) { |
@@ -68,2 +68,9 @@ 'use strict'; | ||
DateValue.prototype.format = function format(_ref) { | ||
var _ref$useDisplayValue = _ref.useDisplayValue, | ||
useDisplayValue = _ref$useDisplayValue === undefined ? false : _ref$useDisplayValue; | ||
return this.columnValue; | ||
}; | ||
_createClass(DateValue, [{ | ||
@@ -70,0 +77,0 @@ key: 'displayValue', |
@@ -27,2 +27,6 @@ 'use strict'; | ||
FormValue.prototype.format = function format(options) { | ||
notImplemented(); | ||
}; | ||
FormValue.prototype.toJSON = function toJSON() { | ||
@@ -29,0 +33,0 @@ notImplemented(); |
@@ -64,2 +64,24 @@ 'use strict'; | ||
MediaValue.prototype.format = function format(_ref2) { | ||
var _ref2$part = _ref2.part, | ||
part = _ref2$part === undefined ? null : _ref2$part, | ||
formatURL = _ref2.formatURL; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'captions') { | ||
return this.items.map(function (item) { | ||
return item.caption; | ||
}); | ||
} else if (part === 'urls') { | ||
return this.items.map(formatURL); | ||
} | ||
return this.items.map(function (item) { | ||
return item.mediaID; | ||
}); | ||
}; | ||
MediaValue.prototype.toJSON = function toJSON() { | ||
@@ -73,14 +95,14 @@ if (this.isEmpty) { | ||
for (var _iterator2 = this._items, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { | ||
var _ref2; | ||
var _ref3; | ||
if (_isArray2) { | ||
if (_i2 >= _iterator2.length) break; | ||
_ref2 = _iterator2[_i2++]; | ||
_ref3 = _iterator2[_i2++]; | ||
} else { | ||
_i2 = _iterator2.next(); | ||
if (_i2.done) break; | ||
_ref2 = _i2.value; | ||
_ref3 = _i2.value; | ||
} | ||
var item = _ref2; | ||
var item = _ref3; | ||
@@ -156,14 +178,14 @@ items.push(item.toJSON()); | ||
for (var _iterator3 = this._items, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { | ||
var _ref3; | ||
var _ref4; | ||
if (_isArray3) { | ||
if (_i3 >= _iterator3.length) break; | ||
_ref3 = _iterator3[_i3++]; | ||
_ref4 = _iterator3[_i3++]; | ||
} else { | ||
_i3 = _iterator3.next(); | ||
if (_i3.done) break; | ||
_ref3 = _i3.value; | ||
_ref4 = _i3.value; | ||
} | ||
var item = _ref3; | ||
var item = _ref4; | ||
@@ -193,14 +215,14 @@ if (_textUtils2.default.isPresent(item.caption)) { | ||
for (var _iterator4 = this._items, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { | ||
var _ref4; | ||
var _ref5; | ||
if (_isArray4) { | ||
if (_i4 >= _iterator4.length) break; | ||
_ref4 = _iterator4[_i4++]; | ||
_ref5 = _iterator4[_i4++]; | ||
} else { | ||
_i4 = _iterator4.next(); | ||
if (_i4.done) break; | ||
_ref4 = _i4.value; | ||
_ref5 = _i4.value; | ||
} | ||
var item = _ref4; | ||
var item = _ref5; | ||
@@ -224,14 +246,14 @@ ids.push(item.mediaID); | ||
for (var _iterator5 = this._items, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { | ||
var _ref5; | ||
var _ref6; | ||
if (_isArray5) { | ||
if (_i5 >= _iterator5.length) break; | ||
_ref5 = _iterator5[_i5++]; | ||
_ref6 = _iterator5[_i5++]; | ||
} else { | ||
_i5 = _iterator5.next(); | ||
if (_i5.done) break; | ||
_ref5 = _i5.value; | ||
_ref6 = _i5.value; | ||
} | ||
var item = _ref5; | ||
var item = _ref6; | ||
@@ -247,14 +269,14 @@ items.push(new _multipleValueItem2.default(this.element, item.mediaID)); | ||
for (var _iterator6 = this._items, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { | ||
var _ref6; | ||
var _ref7; | ||
if (_isArray6) { | ||
if (_i6 >= _iterator6.length) break; | ||
_ref6 = _iterator6[_i6++]; | ||
_ref7 = _iterator6[_i6++]; | ||
} else { | ||
_i6 = _iterator6.next(); | ||
if (_i6.done) break; | ||
_ref6 = _i6.value; | ||
_ref7 = _i6.value; | ||
} | ||
var item = _ref6; | ||
var item = _ref7; | ||
@@ -261,0 +283,0 @@ if (_textUtils2.default.isPresent(item.caption)) { |
@@ -64,2 +64,21 @@ 'use strict'; | ||
RecordLinkValue.prototype.format = function format(_ref2) { | ||
var _ref2$part = _ref2.part, | ||
part = _ref2$part === undefined ? null : _ref2$part; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'title') { | ||
return this.items.map(function (item) { | ||
return item.displayValue; | ||
}); | ||
} | ||
return this.items.map(function (item) { | ||
return item.id; | ||
}); | ||
}; | ||
RecordLinkValue.prototype.toJSON = function toJSON() { | ||
@@ -69,14 +88,14 @@ var items = []; | ||
for (var _iterator2 = this._items, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { | ||
var _ref2; | ||
var _ref3; | ||
if (_isArray2) { | ||
if (_i2 >= _iterator2.length) break; | ||
_ref2 = _iterator2[_i2++]; | ||
_ref3 = _iterator2[_i2++]; | ||
} else { | ||
_i2 = _iterator2.next(); | ||
if (_i2.done) break; | ||
_ref2 = _i2.value; | ||
_ref3 = _i2.value; | ||
} | ||
var item = _ref2; | ||
var item = _ref3; | ||
@@ -189,14 +208,14 @@ items.push(item.toJSON()); | ||
for (var _iterator3 = this._items, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { | ||
var _ref3; | ||
var _ref4; | ||
if (_isArray3) { | ||
if (_i3 >= _iterator3.length) break; | ||
_ref3 = _iterator3[_i3++]; | ||
_ref4 = _iterator3[_i3++]; | ||
} else { | ||
_i3 = _iterator3.next(); | ||
if (_i3.done) break; | ||
_ref3 = _i3.value; | ||
_ref4 = _i3.value; | ||
} | ||
var item = _ref3; | ||
var item = _ref4; | ||
@@ -214,14 +233,14 @@ ids.push(item.id); | ||
for (var _iterator4 = this._items, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { | ||
var _ref4; | ||
var _ref5; | ||
if (_isArray4) { | ||
if (_i4 >= _iterator4.length) break; | ||
_ref4 = _iterator4[_i4++]; | ||
_ref5 = _iterator4[_i4++]; | ||
} else { | ||
_i4 = _iterator4.next(); | ||
if (_i4.done) break; | ||
_ref4 = _i4.value; | ||
_ref5 = _i4.value; | ||
} | ||
var item = _ref4; | ||
var item = _ref5; | ||
@@ -228,0 +247,0 @@ ids.push(new _multipleValueItem2.default(this.element, item.id)); |
@@ -66,2 +66,10 @@ 'use strict'; | ||
RepeatableValue.prototype.format = function format(options) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return this.displayValue; | ||
}; | ||
RepeatableValue.prototype.toJSON = function toJSON() { | ||
@@ -68,0 +76,0 @@ if (this.isEmpty) { |
@@ -45,2 +45,17 @@ 'use strict'; | ||
SignatureValue.prototype.format = function format(_ref) { | ||
var _ref$part = _ref.part, | ||
part = _ref$part === undefined ? null : _ref$part; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'timestamp') { | ||
return this.timestamp; | ||
} | ||
return this.id; | ||
}; | ||
SignatureValue.prototype.toJSON = function toJSON() { | ||
@@ -47,0 +62,0 @@ if (this.isEmpty) { |
@@ -34,2 +34,17 @@ 'use strict'; | ||
TextValue.prototype.format = function format(_ref) { | ||
var _ref$useDisplayValue = _ref.useDisplayValue, | ||
useDisplayValue = _ref$useDisplayValue === undefined ? false : _ref$useDisplayValue; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (this.element.isNumeric && this.textValue != null) { | ||
return this.numericValue; | ||
} | ||
return this.displayValue; | ||
}; | ||
_createClass(TextValue, [{ | ||
@@ -36,0 +51,0 @@ key: 'columnValue', |
@@ -41,2 +41,13 @@ 'use strict'; | ||
TextualValue.prototype.format = function format(_ref) { | ||
var _ref$useDisplayValue = _ref.useDisplayValue, | ||
useDisplayValue = _ref$useDisplayValue === undefined ? false : _ref$useDisplayValue; | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.displayValue : this.textValue; | ||
}; | ||
TextualValue.prototype.toJSON = function toJSON() { | ||
@@ -43,0 +54,0 @@ if (this.isEmpty) { |
{ | ||
"name": "fulcrum-core", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Fulcrum Core", | ||
@@ -28,30 +28,30 @@ "homepage": "http://github.com/fulcrumapp/fulcrum-core", | ||
"devDependencies": { | ||
"babel-cli": "^6.7.7", | ||
"babel-core": "^6.7.7", | ||
"babel-eslint": "^6.0.4", | ||
"babel-plugin-transform-proto-to-assign": "^6.6.5", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.21.0", | ||
"babel-eslint": "^7.1.1", | ||
"babel-plugin-transform-proto-to-assign": "^6.9.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-preset-es2015-loose": "^8.0.0", | ||
"babel-preset-es2015-node5": "^1.2.0", | ||
"babel-preset-stage-1": "^6.5.0", | ||
"babel-preset-stage-1": "^6.16.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.9.0", | ||
"eslint-config-fulcrum": "^1.0.0", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-react": "^5.0.1", | ||
"mocha": "^2.4.5", | ||
"npm-check-updates": "^2.6.3", | ||
"should": "^8.3.1", | ||
"source-map-support": "^0.4.0" | ||
"eslint": "^3.12.2", | ||
"eslint-config-fulcrum": "^1.4.2", | ||
"eslint-plugin-babel": "^4.0.0", | ||
"eslint-plugin-react": "^6.8.0", | ||
"mocha": "^3.2.0", | ||
"npm-check-updates": "^2.8.9", | ||
"should": "^11.1.2", | ||
"source-map-support": "^0.4.7" | ||
}, | ||
"dependencies": { | ||
"async": "^2.0.0-rc.3", | ||
"async": "^2.1.4", | ||
"lodash.compact": "^3.0.1", | ||
"lodash.includes": "^4.1.3", | ||
"lodash.padstart": "^4.5.0", | ||
"lodash.startswith": "^4.1.0", | ||
"lodash.trim": "^4.4.0", | ||
"lodash.includes": "^4.3.0", | ||
"lodash.padstart": "^4.6.1", | ||
"lodash.startswith": "^4.2.1", | ||
"lodash.trim": "^4.5.1", | ||
"mixmatch": "0.0.2", | ||
"relative-date": "^1.1.3", | ||
"uuid": "^2.0.2" | ||
"uuid": "^3.0.1" | ||
}, | ||
@@ -58,0 +58,0 @@ "keywords": [ |
@@ -47,6 +47,6 @@ import Mixin from 'mixmatch'; | ||
elementsOfType(type) { | ||
elementsOfType(type, recurseRepeatables = true) { | ||
const result = []; | ||
for (const element of this.allElements) { | ||
for (const element of this.flattenElements(recurseRepeatables)) { | ||
if (element.type === type) { | ||
@@ -60,3 +60,7 @@ result.push(element); | ||
_flattenElements(elements) { | ||
flattenElements(recurseRepeatables = true) { | ||
return this._flattenElements(this.elements, recurseRepeatables); | ||
} | ||
_flattenElements(elements, recurseRepeatables = true) { | ||
let flat = []; | ||
@@ -67,5 +71,11 @@ | ||
if (element.elements) { | ||
flat = flat.concat(this._flattenElements(element.elements)); | ||
let recurse = true; | ||
if (!recurseRepeatables && element.isRepeatableElement) { | ||
recurse = false; | ||
} | ||
if (recurse && element.elements) { | ||
flat = flat.concat(this._flattenElements(element.elements, recurseRepeatables)); | ||
} | ||
} | ||
@@ -72,0 +82,0 @@ |
@@ -10,3 +10,3 @@ import Element from './element'; | ||
this._choiceFilter = null; | ||
this._classificationFilter = null; | ||
@@ -37,8 +37,8 @@ this._overrideClassificationItems = null; | ||
get choiceFilter() { | ||
return this._choiceFilter; | ||
get classificationFilter() { | ||
return this._classificationFilter; | ||
} | ||
set choiceFilter(choiceFilter) { | ||
this._choiceFilter = choiceFilter; | ||
set classificationFilter(classificationFilter) { | ||
this._classificationFilter = classificationFilter; | ||
} | ||
@@ -65,3 +65,3 @@ | ||
return Object.assign(Object.getOwnPropertyDescriptor(Element.prototype, 'overrideValues').get.call(this), { | ||
choiceFilter: this._choiceFilter, | ||
classificationFilter: this._classificationFilter, | ||
overrideClassificationItems: this._overrideClassificationItems | ||
@@ -74,3 +74,3 @@ }); | ||
this._choiceFilter = null; | ||
this._classificationFilter = null; | ||
this._overrideClassificationItems = null; | ||
@@ -77,0 +77,0 @@ } |
@@ -29,2 +29,3 @@ import ChildElements from './elements/child-elements'; | ||
this._assignmentEnabled = attributes.assignment_enabled != null ? !!attributes.assignment_enabled : true; | ||
this._autoAssign = attributes.auto_assign != null ? !!attributes.auto_assign : false; | ||
@@ -110,2 +111,6 @@ if (attributes.title_field_keys || attributes.record_title_key) { | ||
get isAutoAssign() { | ||
return this._autoAssign; | ||
} | ||
toJSON() { | ||
@@ -120,2 +125,3 @@ const json = {}; | ||
json.assignment_enabled = this.isAssignmentEnabled; | ||
json.auto_assign = this.isAutoAssign; | ||
json.projects_enabled = this.isProjectEnabled; | ||
@@ -122,0 +128,0 @@ json.geometry_required = this.isGeometryRequired; |
@@ -91,4 +91,4 @@ import Feature from './feature'; | ||
get createdBy() { | ||
return this._createdBy; | ||
get createdByName() { | ||
return this._createdByName; | ||
} | ||
@@ -100,2 +100,6 @@ | ||
get updatedByName() { | ||
return this._updatedByName; | ||
} | ||
loadChangeset(dataSource, callback) { | ||
@@ -124,3 +128,3 @@ return loadObject(this, dataSource, 'changeset', 'getChangeset', callback); | ||
json.created_by_id = this._createdByID || null; | ||
json.created_by = this._createdBy || null; | ||
json.created_by = this._createdByName || null; | ||
json.updated_by_id = this._updatedByID || null; | ||
@@ -180,5 +184,5 @@ json.updated_by = this._updatedBy || null; | ||
this._createdByID = attributes.created_by_id || null; | ||
this._createdBy = attributes.created_by || null; | ||
this._createdByName = attributes.created_by || null; | ||
this._updatedByID = attributes.updated_by_id || null; | ||
this._updatedBy = attributes.updated_by || null; | ||
this._updatedByName = attributes.updated_by || null; | ||
@@ -185,0 +189,0 @@ this._horizontalAccuracy = attributes.horizontal_accuracy || null; |
@@ -47,2 +47,14 @@ import FormValue from './form-value'; | ||
format({part = null}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part) { | ||
return this.address.toJSON()[part]; | ||
} | ||
return this.searchableValue; | ||
} | ||
toJSON() { | ||
@@ -49,0 +61,0 @@ if (this.isEmpty) { |
@@ -11,2 +11,22 @@ import TextualValue from './textual-value'; | ||
format() { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
const display = this.element.display; | ||
// - for currency or number display, return the numeric value | ||
// - for date calculations return the date | ||
// - for text (and anything else) just return the string value | ||
if (display.isCurrency || display.isNumber) { | ||
return NumberUtils.parseDouble(this.textValue); | ||
} else if (display.isDate) { | ||
return new Date(`${this.textValue} 00:00:00Z`); | ||
} | ||
return this.textValue; | ||
} | ||
get displayValue() { | ||
@@ -13,0 +33,0 @@ if (this.hasError) { |
@@ -44,3 +44,11 @@ import FormValue from './form-value'; | ||
get displayValue() { | ||
format({useDisplayValue = false}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.labelStrings.sort() : this.valueStrings.sort(); | ||
} | ||
get labelStrings() { | ||
const labels = []; | ||
@@ -62,5 +70,23 @@ | ||
return labels.join(ChoiceDisplaySeparator); | ||
return labels; | ||
} | ||
get valueStrings() { | ||
const values = []; | ||
for (const rawValue of this._choiceValues) { | ||
values.push(rawValue); | ||
} | ||
for (const otherValue of this._otherValues) { | ||
values.push(otherValue); | ||
} | ||
return values; | ||
} | ||
get displayValue() { | ||
return this.labelStrings.join(ChoiceDisplaySeparator); | ||
} | ||
get searchableValue() { | ||
@@ -117,12 +143,4 @@ const values = []; | ||
get columnValue() { | ||
const allValues = []; | ||
const allValues = this.valueStrings.sort(); | ||
for (const rawValue of this._choiceValues) { | ||
allValues.push(rawValue); | ||
} | ||
for (const otherValue of this._otherValues) { | ||
allValues.push(otherValue); | ||
} | ||
if (allValues.length === 0) { | ||
@@ -129,0 +147,0 @@ return null; |
@@ -83,4 +83,4 @@ import FormValue from './form-value'; | ||
get displayValue() { | ||
const values = []; | ||
get labelStrings() { | ||
const labels = []; | ||
@@ -92,3 +92,3 @@ const classification = this.selectedClassification; | ||
if (item.label) { | ||
values.push(item.label); | ||
labels.push(item.label); | ||
} | ||
@@ -99,8 +99,26 @@ } | ||
if (this.hasOtherValue) { | ||
values.push(this.otherValue); | ||
labels.push(this.otherValue); | ||
} | ||
return values.join(DisplaySeparator); | ||
return labels; | ||
} | ||
get valueStrings() { | ||
const values = []; | ||
for (const value of this._choiceValues) { | ||
values.push(value); | ||
} | ||
for (const value of this._otherValues) { | ||
values.push(value); | ||
} | ||
return values; | ||
} | ||
get displayValue() { | ||
return this.labelStrings.join(DisplaySeparator); | ||
} | ||
get searchableValue() { | ||
@@ -130,2 +148,10 @@ const values = []; | ||
format({useDisplayValue = false}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.labelStrings : this.valueStrings; | ||
} | ||
get length() { | ||
@@ -150,12 +176,4 @@ return this._choiceValues.length + this._otherValues.length; | ||
get columnValue() { | ||
const allValues = []; | ||
const allValues = this.valueStrings; | ||
for (const value of this._choiceValues) { | ||
allValues.push(value); | ||
} | ||
for (const value of this._otherValues) { | ||
allValues.push(value); | ||
} | ||
if (allValues.length === 0) { | ||
@@ -162,0 +180,0 @@ return null; |
@@ -66,2 +66,6 @@ import TextualValue from './textual-value'; | ||
format({useDisplayValue = false}) { | ||
return this.columnValue; | ||
} | ||
get columnValue() { | ||
@@ -68,0 +72,0 @@ if (this.isEmpty) { |
@@ -45,2 +45,6 @@ import FormValueFactory from './form-value-factory'; | ||
format(options) { | ||
notImplemented(); | ||
} | ||
toJSON() { | ||
@@ -47,0 +51,0 @@ notImplemented(); |
@@ -43,2 +43,16 @@ import FormValue from './form-value'; | ||
format({part = null, formatURL}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'captions') { | ||
return this.items.map(item => item.caption); | ||
} else if (part === 'urls') { | ||
return this.items.map(formatURL); | ||
} | ||
return this.items.map(item => item.mediaID); | ||
} | ||
get columnValue() { | ||
@@ -45,0 +59,0 @@ if (this.isEmpty) { |
@@ -43,2 +43,14 @@ import FormValue from './form-value'; | ||
format({part = null}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'title') { | ||
return this.items.map(item => item.displayValue); | ||
} | ||
return this.items.map(item => item.id); | ||
} | ||
toJSON() { | ||
@@ -45,0 +57,0 @@ const items = []; |
@@ -51,2 +51,10 @@ import FormValue from './form-value'; | ||
format(options) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return this.displayValue; | ||
} | ||
get length() { | ||
@@ -53,0 +61,0 @@ return this._items.length; |
@@ -51,2 +51,14 @@ import FormValue from './form-value'; | ||
format({part = null}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (part === 'timestamp') { | ||
return this.timestamp; | ||
} | ||
return this.id; | ||
} | ||
get length() { | ||
@@ -53,0 +65,0 @@ return this.isEmpty ? 0 : 1; |
@@ -21,2 +21,14 @@ import TextualValue from './textual-value'; | ||
} | ||
format({useDisplayValue = false}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
if (this.element.isNumeric && this.textValue != null) { | ||
return this.numericValue; | ||
} | ||
return this.displayValue; | ||
} | ||
} |
@@ -12,2 +12,10 @@ import FormValue from './form-value'; | ||
format({useDisplayValue = false}) { | ||
if (this.isEmpty) { | ||
return null; | ||
} | ||
return useDisplayValue ? this.displayValue : this.textValue; | ||
} | ||
get isEmpty() { | ||
@@ -14,0 +22,0 @@ return this.textValue == null || this.textValue.length === 0; |
@@ -64,3 +64,3 @@ import setup from '../helper'; | ||
// back to unfiltered | ||
field.classificationFilter = null; | ||
field.resetOverrides(); | ||
field.classificationItems[0].value.should.eql('Unknown'); | ||
@@ -67,0 +67,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
{"form":{"name":"Test Form (fulcrum-core)","description":null,"projects_enabled":false,"assignment_enabled":false,"bounding_box":[27.7695993399641,-82.6439975202084,27.7695993399641,-82.6439975202084],"record_title_key":"ae75","title_field_keys":["ae75","a861","cfe6"],"status_field":{"type":"StatusField","label":"Record Status","key":"@status","data_name":"status","default_value":"complete","enabled":true,"read_only":false,"hidden":false,"description":"","choices":[{"label":"Complete","value":"complete","color":"#87D30F"},{"label":"Pending","value":"pending","color":"#FFD300"},{"label":"Failed","value":"failed","color":"#CB0D0C"}],"required":false,"disabled":false,"default_previous_value":false},"auto_assign":false,"hidden_on_dashboard":false,"record_count":1,"geometry_types":["Point"],"geometry_required":false,"script":null,"id":"18300cfb-20e3-4e8b-9aef-878636b09ac4","created_at":"2015-12-03T01:36:21Z","updated_at":"2015-12-04T00:16:01Z","image":null,"image_thumbnail":null,"image_small":null,"image_large":null,"elements":[{"type":"TextField","key":"ae75","label":"Name","description":"Enter your name","required":true,"disabled":false,"hidden":false,"data_name":"name","default_value":"no name","visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":"[a-zA-Z0-9]+","pattern_description":"Alphanumeric Only","min_length":1,"max_length":30,"default_previous_value":false},{"type":"TextField","key":"a861","label":"Integer Number","description":null,"required":true,"disabled":false,"hidden":false,"data_name":"integer_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":true,"format":"integer","min":null,"max":null,"min_length":null,"max_length":null,"default_previous_value":false},{"type":"TextField","key":"cfe6","label":"Decimal Number","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"decimal_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":true,"format":"decimal","min":null,"max":null,"min_length":null,"max_length":null,"default_previous_value":false},{"type":"YesNoField","key":"3a9c","label":"Yes/No","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"yesno","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"positive":{"label":"Yes","value":"yes"},"negative":{"label":"No","value":"no"},"neutral":{"label":"N/A","value":"n/a"},"neutral_enabled":false,"default_previous_value":false},{"type":"YesNoField","key":"01ed","label":"Yes/No/NA","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"yesnona","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"positive":{"label":"Yes","value":"yes"},"negative":{"label":"No","value":"no"},"neutral":{"label":"N/A","value":"n/a"},"neutral_enabled":false,"default_previous_value":false},{"type":"ChoiceField","key":"31e8","label":"Single Choice","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"single_choice","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"multiple":false,"allow_other":false,"choice_list_id":"032804cc-496a-4c77-b102-ec0b237cbd10","default_previous_value":false},{"type":"ChoiceField","key":"f464","label":"Multiple Choice","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"multiple_choice","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"multiple":true,"allow_other":true,"choice_list_id":"e7cba93d-fcea-4c52-a9e1-b75f19908f25","min_length":null,"max_length":null,"default_previous_value":false},{"type":"ClassificationField","key":"4412","label":"OS","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"os","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"allow_other":true,"classification_set_id":"b2b43507-a734-4d29-a141-22f60c36af71","default_previous_value":false},{"type":"PhotoField","key":"e840","label":"Photos","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"photos","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"min_length":null,"max_length":null},{"type":"VideoField","key":"38b1","label":"Videos","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"videos","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"track_enabled":true,"audio_enabled":true,"min_length":null,"max_length":null},{"type":"AudioField","key":"8530","label":"Audio","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"audio","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"track_enabled":false,"min_length":null,"max_length":null},{"type":"BarcodeField","key":"849a","label":"Barcode","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"barcode","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"DateTimeField","key":"8fd4","label":"Date","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"date","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"TimeField","key":"dfd5","label":"Time","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"time","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"Section","key":"13db","label":"More Info Inline","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"more_info_inline","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"display":"inline","elements":[{"type":"TextField","key":"7b1f","label":"Sub Name Inline","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"sub_name_inline","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}]},{"type":"Section","key":"e457","label":"More Info Drilldown","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"more_info_drilldown","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"display":"drilldown","elements":[{"type":"TextField","key":"b410","label":"Sub Name Drilldown","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"sub_name_drilldown","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}]},{"type":"Repeatable","key":"cff5","label":"Rooms","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"rooms","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"elements":[{"type":"TextField","key":"bc81","label":"Room Number","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"room_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}],"title_field_key":null,"title_field_keys":["bc81"],"geometry_types":["Point"],"geometry_required":false,"min_length":null,"max_length":null},{"type":"AddressField","key":"fe3c","label":"Address","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"address","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"auto_populate":true,"default_previous_value":false},{"type":"SignatureField","key":"93bd","label":"Signature","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"signature","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"agreement_text":""},{"type":"HyperlinkField","key":"0751","label":"Hyperlink","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"hyperlink","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"default_url":""},{"type":"CalculatedField","key":"e1f6","label":"Text Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"text_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"'text value'","display":{"style":"text","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"857d","label":"Number Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"number_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"1337","display":{"style":"number","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"0755","label":"Date Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"date_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"new Date(0);","display":{"style":"date","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"ce49","label":"Currency Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"currency_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"1337.37","display":{"style":"currency","currency":"USD"},"default_values":null,"default_previous_value":false}]}} | ||
{"form":{"name":"Test Form (fulcrum-core)","description":null,"projects_enabled":false,"assignment_enabled":true,"bounding_box":[27.7695993399641,-82.6439975202084,27.7695993399641,-82.6439975202084],"record_title_key":"ae75","title_field_keys":["ae75","a861","cfe6"],"status_field":{"type":"StatusField","label":"Record Status","key":"@status","data_name":"status","default_value":"complete","enabled":true,"read_only":false,"hidden":false,"description":"","choices":[{"label":"Complete","value":"complete","color":"#87D30F"},{"label":"Pending","value":"pending","color":"#FFD300"},{"label":"Failed","value":"failed","color":"#CB0D0C"}],"required":false,"disabled":false,"default_previous_value":false},"auto_assign":true,"hidden_on_dashboard":false,"record_count":1,"geometry_types":["Point"],"geometry_required":false,"script":null,"id":"18300cfb-20e3-4e8b-9aef-878636b09ac4","created_at":"2015-12-03T01:36:21Z","updated_at":"2015-12-04T00:16:01Z","image":null,"image_thumbnail":null,"image_small":null,"image_large":null,"elements":[{"type":"TextField","key":"ae75","label":"Name","description":"Enter your name","required":true,"disabled":false,"hidden":false,"data_name":"name","default_value":"no name","visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":"[a-zA-Z0-9]+","pattern_description":"Alphanumeric Only","min_length":1,"max_length":30,"default_previous_value":false},{"type":"TextField","key":"a861","label":"Integer Number","description":null,"required":true,"disabled":false,"hidden":false,"data_name":"integer_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":true,"format":"integer","min":null,"max":null,"min_length":null,"max_length":null,"default_previous_value":false},{"type":"TextField","key":"cfe6","label":"Decimal Number","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"decimal_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":true,"format":"decimal","min":null,"max":null,"min_length":null,"max_length":null,"default_previous_value":false},{"type":"YesNoField","key":"3a9c","label":"Yes/No","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"yesno","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"positive":{"label":"Yes","value":"yes"},"negative":{"label":"No","value":"no"},"neutral":{"label":"N/A","value":"n/a"},"neutral_enabled":false,"default_previous_value":false},{"type":"YesNoField","key":"01ed","label":"Yes/No/NA","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"yesnona","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"positive":{"label":"Yes","value":"yes"},"negative":{"label":"No","value":"no"},"neutral":{"label":"N/A","value":"n/a"},"neutral_enabled":false,"default_previous_value":false},{"type":"ChoiceField","key":"31e8","label":"Single Choice","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"single_choice","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"multiple":false,"allow_other":false,"choice_list_id":"032804cc-496a-4c77-b102-ec0b237cbd10","default_previous_value":false},{"type":"ChoiceField","key":"f464","label":"Multiple Choice","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"multiple_choice","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"multiple":true,"allow_other":true,"choice_list_id":"e7cba93d-fcea-4c52-a9e1-b75f19908f25","min_length":null,"max_length":null,"default_previous_value":false},{"type":"ClassificationField","key":"4412","label":"OS","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"os","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"allow_other":true,"classification_set_id":"b2b43507-a734-4d29-a141-22f60c36af71","default_previous_value":false},{"type":"PhotoField","key":"e840","label":"Photos","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"photos","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"min_length":null,"max_length":null},{"type":"VideoField","key":"38b1","label":"Videos","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"videos","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"track_enabled":true,"audio_enabled":true,"min_length":null,"max_length":null},{"type":"AudioField","key":"8530","label":"Audio","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"audio","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"track_enabled":false,"min_length":null,"max_length":null},{"type":"BarcodeField","key":"849a","label":"Barcode","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"barcode","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"DateTimeField","key":"8fd4","label":"Date","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"date","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"TimeField","key":"dfd5","label":"Time","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"time","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"default_previous_value":false},{"type":"Section","key":"13db","label":"More Info Inline","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"more_info_inline","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"display":"inline","elements":[{"type":"TextField","key":"7b1f","label":"Sub Name Inline","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"sub_name_inline","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}]},{"type":"Section","key":"e457","label":"More Info Drilldown","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"more_info_drilldown","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"display":"drilldown","elements":[{"type":"TextField","key":"b410","label":"Sub Name Drilldown","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"sub_name_drilldown","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}]},{"type":"Repeatable","key":"cff5","label":"Rooms","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"rooms","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"elements":[{"type":"TextField","key":"bc81","label":"Room Number","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"room_number","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"numeric":false,"pattern":null,"pattern_description":null,"min_length":null,"max_length":null,"default_previous_value":false}],"title_field_key":null,"title_field_keys":["bc81"],"geometry_types":["Point"],"geometry_required":false,"min_length":null,"max_length":null},{"type":"AddressField","key":"fe3c","label":"Address","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"address","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"auto_populate":true,"default_previous_value":false},{"type":"SignatureField","key":"93bd","label":"Signature","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"signature","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":null,"agreement_text":""},{"type":"HyperlinkField","key":"0751","label":"Hyperlink","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"hyperlink","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"default_url":""},{"type":"CalculatedField","key":"e1f6","label":"Text Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"text_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"'text value'","display":{"style":"text","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"857d","label":"Number Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"number_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"1337","display":{"style":"number","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"0755","label":"Date Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"date_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"new Date(0);","display":{"style":"date","currency":null},"default_values":null,"default_previous_value":false},{"type":"CalculatedField","key":"ce49","label":"Currency Calculation","description":null,"required":false,"disabled":false,"hidden":false,"data_name":"currency_calculation","default_value":null,"visible_conditions_type":null,"visible_conditions":null,"required_conditions_type":null,"required_conditions":[],"expression":"1337.37","display":{"style":"currency","currency":"USD"},"default_values":null,"default_previous_value":false}]}} |
@@ -56,4 +56,8 @@ import fs from 'fs'; | ||
it('parses assignment_enabled', () => { | ||
form.isAssignmentEnabled.should.eql(false); | ||
form.isAssignmentEnabled.should.eql(true); | ||
}); | ||
it('parses auto_assign', () => { | ||
form.isAutoAssign.should.eql(true); | ||
}); | ||
}); |
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
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
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
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
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
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
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
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
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
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
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
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
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
1039987
16245
+ Addeduuid@3.4.0(transitive)
- Removeduuid@2.0.3(transitive)
Updatedasync@^2.1.4
Updatedlodash.includes@^4.3.0
Updatedlodash.padstart@^4.6.1
Updatedlodash.startswith@^4.2.1
Updatedlodash.trim@^4.5.1
Updateduuid@^3.0.1