alaska-field-relationship
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -116,4 +116,4 @@ /** | ||
RelationshipField.viewOptions = ['service', 'model', 'multi'] | ||
RelationshipField.viewOptions = ['filters', 'service', 'model', 'multi'] | ||
module.exports = RelationshipField; |
@@ -13,8 +13,6 @@ 'use strict'; | ||
var _reactSelect = require('react-select'); | ||
var _Select = require('alaska-field-select/lib/Select'); | ||
var _reactSelect2 = _interopRequireDefault(_reactSelect); | ||
var _Select2 = _interopRequireDefault(_Select); | ||
require('react-select/dist/react-select.min.css'); | ||
var _qs = require('qs'); | ||
@@ -72,5 +70,6 @@ | ||
model: field.model, | ||
search: keyword | ||
search: keyword, | ||
filters: field.filters | ||
}); | ||
_alaskaAdminView.api.post(_alaskaAdminView.PREFIX + '/api/search?' + query).then(function (res) { | ||
_alaskaAdminView.api.post(_alaskaAdminView.PREFIX + '/api/relation?' + query).then(function (res) { | ||
callback(null, { options: res.results }); | ||
@@ -116,3 +115,3 @@ }, callback); | ||
{ className: 'col-xs-10' }, | ||
_react2.default.createElement(_reactSelect2.default.Async, { | ||
_react2.default.createElement(_Select2.default, { | ||
multi: field.multi, | ||
@@ -119,0 +118,0 @@ value: value, |
{ | ||
"name": "alaska-field-relationship", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Alaska relationship field", | ||
@@ -37,4 +37,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"react-select": "^1.0.0-beta11" | ||
"alaska-field-select": "^0.4.1" | ||
} | ||
} |
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
18275
+ Addedalaska-field-select@^0.4.1
+ Addedacorn@5.7.4(transitive)
+ Addedalaska-field-select@0.4.6(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@1.2.8(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedenvify@3.4.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
+ Addedfbjs@0.6.1(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedjstransform@11.0.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprelude-extension@0.0.13(transitive)
+ Addedprelude-ls@1.2.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact@0.14.10(transitive)
+ Addedreact-addons-css-transition-group@0.14.8(transitive)
+ Addedreact-addons-shallow-compare@0.14.8(transitive)
+ Addedreact-dom@0.14.10(transitive)
+ Addedreact-selectize@0.9.0(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.4.40.5.7(transitive)
+ Addedtether@1.4.7(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedua-parser-js@0.7.39(transitive)
+ Addedwhatwg-fetch@0.9.0(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedreact-select@^1.0.0-beta11
- Removedclassnames@2.5.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedreact-input-autosize@2.2.2(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedreact-select@1.3.0(transitive)
- Removedscheduler@0.19.1(transitive)