ember-cli-selectize
Advanced tools
@@ -19,3 +19,3 @@ import Ember from 'ember'; | ||
| export default Ember.Component.extend({ | ||
| attributeBindings: ['multiple', 'autocomplete', 'required', 'tabindex'], | ||
| attributeBindings: ['name', 'multiple', 'autocomplete', 'required', 'tabindex'], | ||
| classNames: ['ember-selectize'], | ||
@@ -210,2 +210,3 @@ | ||
| placeholder: this.get('placeholder'), | ||
| score: this.get('score'), | ||
| onBlur: this._registerAction('on-blur'), | ||
@@ -222,6 +223,7 @@ onFocus: this._registerAction('on-focus'), | ||
| 'scrollDuration', 'loadThrottle', 'preload', | ||
| 'dropdownParent', 'addPrecedence', 'selectOnTab']; | ||
| 'dropdownParent', 'addPrecedence', 'selectOnTab', | ||
| 'searchField']; | ||
| generalOptions.forEach(function(option) { | ||
| options[option] = this.get(option); | ||
| options[option] = this.get(option) || options[option]; | ||
| }, this); | ||
@@ -788,4 +790,3 @@ | ||
| _componentToDOM(componentName, data) { | ||
| let componentLookup = getOwner(this).lookup('component-lookup:main'); | ||
| let ComponentClass = componentLookup.lookupFactory(componentName); | ||
| let ComponentClass = getOwner(this).resolveRegistration(`component:${componentName}`); | ||
@@ -800,3 +801,4 @@ if (!ComponentClass) { | ||
| component.createElement(); | ||
| let container = document.createElement('div'); | ||
| Ember.run(() => component.appendTo(container)); | ||
@@ -803,0 +805,0 @@ return component.element; |
+11
-4
@@ -7,15 +7,22 @@ /* jshint node: true */ | ||
| included: function(app) { | ||
| this._super.included.apply(this, arguments); | ||
| var host = this._findHost(); | ||
| //default theme name is 'default' | ||
| var options = app.options['ember-cli-selectize'] || { theme: 'default' }; | ||
| var options = { theme: 'default' }; | ||
| if (host.options && host.options['ember-cli-selectize']) { | ||
| options = host.options['ember-cli-selectize']; | ||
| } | ||
| if (process.env.EMBER_CLI_FASTBOOT !== 'true') { | ||
| //import theme based on options | ||
| if (options.theme){ | ||
| app.import(app.bowerDirectory + '/selectize/dist/css/selectize.' + options.theme + '.css'); | ||
| if (options.theme) { | ||
| this.import(host.bowerDirectory + '/selectize/dist/css/selectize.' + options.theme + '.css'); | ||
| } | ||
| //import javascript | ||
| app.import(app.bowerDirectory + '/selectize/dist/js/standalone/selectize.js'); | ||
| this.import(host.bowerDirectory + '/selectize/dist/js/standalone/selectize.js'); | ||
| } | ||
| } | ||
| }; |
+11
-12
| { | ||
| "name": "ember-cli-selectize", | ||
| "version": "0.5.5", | ||
| "version": "0.5.6", | ||
| "description": "An Ember and Selectize integration, packaged as an Ember-cli addon.", | ||
@@ -10,5 +10,5 @@ "directories": { | ||
| "scripts": { | ||
| "build": "ember build", | ||
| "start": "ember server", | ||
| "build": "ember build", | ||
| "test": "ember try:testall" | ||
| "test": "ember try:each" | ||
| }, | ||
@@ -26,25 +26,24 @@ "repository": { | ||
| "broccoli-asset-rev": "^2.4.2", | ||
| "ember-ajax": "~2.3.0", | ||
| "ember-cli": "2.5.0", | ||
| "ember-ajax": "^2.0.1", | ||
| "ember-cli": "2.8.0", | ||
| "ember-cli-app-version": "^1.0.0", | ||
| "ember-cli-content-security-policy": "0.4.0", | ||
| "ember-cli-dependency-checker": "^1.2.0", | ||
| "ember-cli-htmlbars": "^1.0.5", | ||
| "ember-cli-htmlbars": "^1.0.3", | ||
| "ember-cli-htmlbars-inline-precompile": "^0.3.1", | ||
| "ember-cli-inject-live-reload": "^1.4.0", | ||
| "ember-cli-jshint": "^1.0.0", | ||
| "ember-cli-qunit": "^1.4.0", | ||
| "ember-cli-release": "1.0.0-beta.1", | ||
| "ember-cli-qunit": "^2.1.0", | ||
| "ember-cli-release": "^0.2.9", | ||
| "ember-cli-sri": "^2.1.0", | ||
| "ember-cli-test-loader": "^1.1.0", | ||
| "ember-cli-uglify": "^1.2.0", | ||
| "ember-disable-prototype-extensions": "^1.1.0", | ||
| "ember-disable-proxy-controllers": "^1.0.1", | ||
| "ember-export-application-global": "^1.0.5", | ||
| "ember-load-initializers": "^0.5.1", | ||
| "ember-resolver": "^2.0.3", | ||
| "ember-try": "^0.2.2", | ||
| "loader.js": "^4.0.1" | ||
| }, | ||
| "dependencies": { | ||
| "ember-cli-babel": "^5.1.5", | ||
| "ember-cli-babel": "^5.1.6", | ||
| "ember-cli-import-polyfill": "^0.2.0", | ||
| "ember-getowner-polyfill": "1.0.1", | ||
@@ -51,0 +50,0 @@ "ember-new-computed": "^1.0.0" |
+8
-0
@@ -97,2 +97,5 @@ # Ember-cli-selectize [](https://travis-ci.org/miguelcobain/ember-cli-selectize) [](http://emberobserver.com/addons/ember-cli-selectize) | ||
| <tr> | ||
| <td valign="top"><code>searchField</code></td> | ||
| <td valign="top">If <code>searchField</code> is a string, it specifies what field should be searched on. It also accepts an array to search on multiple fields, e.g., <code>['label', 'value']</code>. Defaults to <code>'label'</code>.</td> | ||
| <tr> | ||
| <td valign="top"><code>filter</code></td> | ||
@@ -168,2 +171,7 @@ <td valign="top">This property will have the text that the user entered to filter options. Useful for searching options in server from a large set.</td> | ||
| </tr> | ||
| <tr> | ||
| <td valign="top"><code>score</code></td> | ||
| <td valign="top">Overrides the default score() method if a cutom one is passed as an option to | ||
| the component.</td> | ||
| </tr> | ||
| </table> | ||
@@ -170,0 +178,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
42539
1.72%19
-9.52%754
0.94%298
2.76%4
33.33%+ Added
Updated