fulcrum-core
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.MemoryDataSource = exports.DataSource = exports.FeatureValidator = exports.RecordLinkItemValue = exports.RecordLinkValue = exports.RecordLinkElement = exports.SectionElement = exports.TextValue = exports.TextElement = exports.CalculatedValue = exports.CalculatedElement = exports.DateValue = exports.DateElement = exports.ClassificationValue = exports.ClassificationElement = exports.ChoiceValue = exports.ChoiceElement = exports.BarcodeValue = exports.BarcodeElement = exports.AddressValue = exports.AddressElement = exports.VideoValue = exports.VideoItemValue = exports.PhotoValue = exports.PhotoItemValue = exports.AudioValue = exports.AudioItemValue = exports.RepeatableElement = exports.Condition = exports.ChildElements = exports.NumberUtils = exports.DateUtils = exports.TextUtils = exports.FormValues = exports.Feature = exports.RepeatableValue = exports.RepeatableItemValue = exports.ElementFactory = exports.ClassificationSet = exports.Classification = exports.ChoiceList = exports.Choice = exports.FormValue = exports.Element = exports.Record = exports.Form = undefined; | ||
exports.DefaultValues = exports.MemoryDataSource = exports.DataSource = exports.FeatureValidator = exports.RecordLinkItemValue = exports.RecordLinkValue = exports.RecordLinkElement = exports.SectionElement = exports.TextValue = exports.TextElement = exports.CalculatedValue = exports.CalculatedElement = exports.DateValue = exports.DateElement = exports.ClassificationValue = exports.ClassificationElement = exports.ChoiceValue = exports.ChoiceElement = exports.BarcodeValue = exports.BarcodeElement = exports.AddressValue = exports.AddressElement = exports.VideoValue = exports.VideoItemValue = exports.PhotoValue = exports.PhotoItemValue = exports.AudioValue = exports.AudioItemValue = exports.RepeatableElement = exports.Condition = exports.ChildElements = exports.NumberUtils = exports.DateUtils = exports.TextUtils = exports.FormValues = exports.Feature = exports.RepeatableValue = exports.RepeatableItemValue = exports.ElementFactory = exports.ClassificationSet = exports.Classification = exports.ChoiceList = exports.Choice = exports.FormValue = exports.Element = exports.Record = exports.Form = undefined; | ||
@@ -189,2 +189,6 @@ var _form = require('./form'); | ||
var _defaultValues = require('./values/default-values'); | ||
var _defaultValues2 = _interopRequireDefault(_defaultValues); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -238,2 +242,3 @@ | ||
exports.MemoryDataSource = _memoryDataSource2.default; | ||
exports.DefaultValues = _defaultValues2.default; | ||
//# sourceMappingURL=index.js.map |
@@ -30,2 +30,7 @@ "use strict"; | ||
} | ||
}, { | ||
key: "record", | ||
get: function get() { | ||
return this._record; | ||
} | ||
}]); | ||
@@ -32,0 +37,0 @@ |
@@ -130,2 +130,11 @@ 'use strict'; | ||
}, { | ||
key: 'addRecord', | ||
value: function addRecord(record) { | ||
var item = new _recordLinkItemValue2.default({ record_id: record.id }); | ||
item._record = record; | ||
this._items.push(item); | ||
} | ||
}, { | ||
key: 'isEmpty', | ||
@@ -132,0 +141,0 @@ get: function get() { |
{ | ||
"name": "fulcrum-core", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Fulcrum Core", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/fulcrumapp/fulcrum-core", |
@@ -47,2 +47,3 @@ import Form from './form'; | ||
import MemoryDataSource from './utils/memory-data-source'; | ||
import DefaultValues from './values/default-values'; | ||
@@ -95,1 +96,2 @@ export {Form}; | ||
export {MemoryDataSource}; | ||
export {DefaultValues}; |
@@ -15,2 +15,6 @@ export default class RecordLinkItemValue { | ||
} | ||
get record() { | ||
return this._record; | ||
} | ||
} |
@@ -90,2 +90,10 @@ import FormValue from './form-value'; | ||
} | ||
addRecord(record) { | ||
const item = new RecordLinkItemValue({record_id: record.id}); | ||
item._record = record; | ||
this._items.push(item); | ||
} | ||
} |
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
703051
11956