ember-pickr
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -13,3 +13,22 @@ /** @documenter yuidoc */ | ||
const optionFields = ["theme", "closeOnScroll", "appClass", "useAsButton", "inline", "autoReposition", "sliders", "disabled", "lockOpacity", "outputPrecision", "comparison", "default", "swatches", "defaultRepresentation", "showAlways", "closeWithKey", "position", "adjustableNumbers"]; | ||
const optionFields = [ | ||
"theme", | ||
"closeOnScroll", | ||
"appClass", | ||
"useAsButton", | ||
"inline", | ||
"autoReposition", | ||
"sliders", | ||
"disabled", | ||
"lockOpacity", | ||
"outputPrecision", | ||
"comparison", | ||
"default", | ||
"swatches", | ||
"defaultRepresentation", | ||
"showAlways", | ||
"closeWithKey", | ||
"position", | ||
"adjustableNumbers" | ||
]; | ||
@@ -188,2 +207,16 @@ /** | ||
/** | ||
* Pickr got closed | ||
* @argument onHide | ||
* @type {Function} | ||
*/ | ||
onHide: undefined, | ||
/** | ||
* Pickr got opened | ||
* @argument onShow | ||
* @type {Function} | ||
*/ | ||
onShow: undefined, | ||
/** | ||
* User clicked the save / clear button. Also fired on clear with `null` as color. | ||
@@ -212,2 +245,10 @@ * @argument onSave | ||
/** | ||
* User has stopped changing the color. | ||
* @argument onChangeStop | ||
* @type {Function} | ||
* @param {HSVaColorObject} colorObject | ||
*/ | ||
onChangeStop: undefined, | ||
/** | ||
* Called after user clicked the cancel button (return to previous color). | ||
@@ -278,2 +319,10 @@ * @argument onCancel | ||
} | ||
}).on('hide', (...args) => { | ||
if (this.onHide) { | ||
this.onHide(...args); | ||
} | ||
}).on('show', (...args) => { | ||
if (this.onShow) { | ||
this.onShow(...args); | ||
} | ||
}).on('clear', (...args) => { | ||
@@ -287,2 +336,6 @@ if (this.onClear) { | ||
} | ||
}).on('changestop', (...args) => { | ||
if (this.onChangeStop) { | ||
this.onChangeStop(...args); | ||
} | ||
}).on('cancel', (...args) => { | ||
@@ -289,0 +342,0 @@ if (this.onCancel) { |
@@ -7,2 +7,11 @@ ### Changelog | ||
#### [v2.2.0](https://github.com/astronomersiva/ember-pickr/compare/v2.1.0...v2.2.0) | ||
> 27 July 2019 | ||
- Bump ember-cli from 3.6.1 to 3.11.0 [`a38c1ff`](https://github.com/astronomersiva/ember-pickr/commit/a38c1ff83152356d5116874b26f839b893600a77) | ||
- Bump ember-auto-import from 1.4.1 to 1.5.2 [`44a6836`](https://github.com/astronomersiva/ember-pickr/commit/44a6836626cb9b36198de1930a520e28f128d741) | ||
- Bump ember-cli-htmlbars from 3.0.1 to 3.1.0 [`588322b`](https://github.com/astronomersiva/ember-pickr/commit/588322ba13ef7f26bf027d137104e6ded477bf6b) | ||
- Handle show, hide and changestop events [`6a40f53`](https://github.com/astronomersiva/ember-pickr/commit/6a40f5308c1aab9082acca492cd4f80c6a6b31e0) | ||
#### [v2.1.0](https://github.com/astronomersiva/ember-pickr/compare/v2.0.0...v2.1.0) | ||
@@ -9,0 +18,0 @@ |
{ | ||
"name": "ember-pickr", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Color Picker for EmberJS using pickr", | ||
@@ -31,5 +31,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@ember/optional-features": "^0.6.3", | ||
"@ember/optional-features": "^0.7.0", | ||
"broccoli-asset-rev": "^3.0.0", | ||
"ember-cli": "~3.6.1", | ||
"ember-cli": "~3.11.0", | ||
"ember-cli-addon-docs": "^0.6.1", | ||
@@ -56,6 +56,6 @@ "ember-cli-addon-docs-esdoc": "^0.2.1", | ||
"ember-source": "~3.10.0", | ||
"ember-source-channel-url": "^1.1.0", | ||
"ember-source-channel-url": "^2.0.1", | ||
"ember-try": "^1.0.0", | ||
"eslint-plugin-ember": "^5.2.0", | ||
"eslint-plugin-node": "^7.0.1", | ||
"eslint-plugin-node": "^9.1.0", | ||
"loader.js": "^4.7.0", | ||
@@ -62,0 +62,0 @@ "qunit-dom": "^0.9.0" |
Sorry, the diff of this file is not supported yet
175598
1277