Socket
Socket
Sign inDemoInstall

ember-cli-nouislider

Package Overview
Dependencies
300
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

1

.prettierrc.js

@@ -0,3 +1,4 @@

/* eslint-env node */
module.exports = {
singleQuote: true
};

71

addon/components/range-slider.js

@@ -17,17 +17,19 @@ /* eslint ember/closure-actions: 0 */

attributeBindings: ['disabledOrUndefined:disabled'],
slider: null,
start: undefined,
step: undefined,
margin: undefined,
limit: undefined,
pips: undefined,
animate: true,
snap: false,
connect: false,
disabled: false,
orientation: 'horizontal',
direction: 'ltr',
behaviour: 'tap',
tooltips: false,
multitouch: false,
slider: null,
start: undefined,
step: undefined,
margin: undefined,
padding: undefined,
limit: undefined,
pips: undefined,
animate: true,
snap: false,
connect: false,
disabled: false,
orientation: 'horizontal',
direction: 'ltr',
behaviour: 'tap',
tooltips: false,
multitouch: false,
keyboardSupport: true,

@@ -67,3 +69,3 @@ min: 0,

let properties = this.getProperties(
'start', 'step', 'margin',
'start', 'step', 'margin', 'padding',
'limit', 'range', 'connect',

@@ -73,5 +75,6 @@ 'orientation', 'direction',

'pips', 'format', 'tooltips',
'multitouch', 'cssPrefix', 'cssClasses'
'multitouch', 'cssPrefix',
'cssClasses', 'keyboardSupport'
);
let sliderEvents = A(['change', 'set', 'slide', 'update', 'start', 'end']);
let sliderEvents = A(['change', 'set', 'slide', 'update']);

@@ -110,4 +113,32 @@ // We first check if the element has a slider already created

});
slider.on('start', () => {
run(this, function() {
this.onStart();
if (!isEmpty(this.get(`on-start`))) {
let val = this.get("slider").get();
this.sendAction(`on-start`, val);
}
});
});
slider.on('end', () => {
run(this, function() {
this.onEnd();
if (!isEmpty(this.get(`on-end`))) {
let val = this.get("slider").get();
this.sendAction(`on-end`, val);
}
});
});
},
onStart() {
this.sliding = true;
},
onEnd() {
delete this.sliding;
},
didUpdateAttrs() {

@@ -122,3 +153,3 @@ this.update();

'range', 'animate', 'snap',
'start'
'start', 'padding', 'keyboardSupport'
);

@@ -147,3 +178,3 @@

if (slider) {
if (slider && !this.sliding) {
let value = this.get('start');

@@ -150,0 +181,0 @@ slider.set(value);

@@ -0,1 +1,11 @@

## master
## 1.2.0 2020-03-02
* Update nouislider version (#75 - @crowjonah)
* Don't call slider.set during dragging (#63 - @stephankaag)
* Added the padding option (#62 - @sonnyt)
* Upgrade ember-cli-sass and add sass to devDependencies
* Upgrade to ember-cli 3.12
## 1.1.0 2018-11-09

@@ -2,0 +12,0 @@

The MIT License (MIT)
Copyright (c) 2018
Copyright (c) 2020

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "ember-cli-nouislider",
"version": "1.1.0",
"version": "1.2.0",
"description": "Ember range-slider component powered by nouislider",
"license": "MIT",
"author": "Kenneth Kalmer",

@@ -11,6 +10,6 @@ "directories": {

},
"repository": "https://github.com/kennethkalmer/ember-cli-nouislider",
"scripts": {
"build": "ember build",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint .",
"start": "ember serve",

@@ -21,33 +20,33 @@ "test": "ember test",

"dependencies": {
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^2.0.0",
"ember-cli-babel": "^6.6.0",
"ember-cli-htmlbars": "^2.0.1",
"nouislider": "^11.0.3"
"broccoli-funnel": "^3.0.2",
"broccoli-merge-trees": "^4.0.1",
"ember-cli-babel": "^7.7.3",
"ember-cli-htmlbars": "^4.2.3",
"nouislider": "^14.1.1"
},
"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^3.0.0",
"ember-cli": "~3.1.2",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^4.1.1",
"ember-cli-sass": "^7.0.0",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0",
"ember-disable-prototype-extensions": "^1.1.2",
"@ember/optional-features": "^0.7.0",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~3.12.0",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-eslint": "^5.1.0",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-sass": "^10.0.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-template-lint": "^1.0.0-beta.1",
"ember-cli-uglify": "^3.0.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
"ember-load-initializers": "^2.0.0",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^4.0.0",
"ember-source": "~3.1.0",
"ember-source-channel-url": "^1.0.1",
"ember-try": "^0.2.23",
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-node": "^6.0.1",
"loader.js": "^4.2.3",
"qunit-dom": "^0.5.0"
"ember-qunit": "^4.4.1",
"ember-resolver": "^5.0.1",
"ember-source": "~3.12.0",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^1.0.0",
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-node": "^9.0.1",
"loader.js": "^4.7.0",
"qunit-dom": "^0.8.4",
"sass": "^1.26.1"
},

@@ -62,4 +61,6 @@ "keywords": [

],
"repository": "https://github.com/kennethkalmer/ember-cli-nouislider",
"license": "MIT",
"engines": {
"node": "6.* || 8.* || >= 10.*"
"node": "10.* || >= 12"
},

@@ -66,0 +67,0 @@ "ember-addon": {

@@ -19,8 +19,11 @@ # ember-cli-nouislider

(This addon supports Ember 1.13 and up. It might work on older versions, but this is guaranteed.)
This will install `nouislider` via Bower, and will include it into your application's
mergetree, so you don't need to worry about anything there.
## Compatibility
* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Node.js v10 or above
## Demo & documentation

@@ -84,33 +87,5 @@

## Contributing or running locally
This section outlines the details of collaborating on this Ember addon.
## License
### Installing dependencies
* `git clone https://github.com/kennethkalmer/ember-cli-nouislider`
* `cd ember-cli-nouislider`
* `yarn install`
### Linting
* `npm run lint:js`
* `npm run lint:js -- --fix`
### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `npm test` – Runs `ember try:each` to test your addon against multiple Ember versions
### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc