Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions angularjs-color-picker.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions angularjs-color-picker.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*!
* angular-color-picker v0.5.0
* angular-color-picker v0.6.0
* https://github.com/ruhley/angular-color-picker/
*
* Copyright 2015 ruhley
*
* 2015-06-04 14:13:50
* 2015-06-15 15:07:39
*
*/
(function() {
Expand Down Expand Up @@ -427,11 +427,11 @@ angular.module('color.picker').run(['$templateCache', function($templateCache) {
'<div class="color-picker-wrapper" ng-class="{\'color-picker-swatch-only\': config.swatchOnly}">\n' +
' <div ng-class="{\'input-group\': config.swatchBootstrap}">\n' +
' <span ng-if="config.swatchPos === \'left\'" class="color-picker-swatch" ng-click="focus()" ng-show="config.swatch" ng-class="{\'color-picker-swatch-left\': config.swatchPos !== \'right\', \'color-picker-swatch-right\': config.swatchPos === \'right\', \'input-group-addon\': config.swatchBootstrap}">\n' +
' <span class="color-picker-swatch-color" style="background-color: {{swatchColor}};"></span>\n' +
' <span class="color-picker-swatch-color" ng-attr-style="background-color: {{swatchColor}};"></span>\n' +
' </span>\n' +
' <input class="color-picker-input form-control" type="text" ng-model="ngModel" size="7" ng-focus="show()" ng-class="{\'color-picker-input-swatch\': config.swatch && !config.swatchOnly && config.swatchPos === \'left\'}">\n' +
' <span ng-if="config.swatchPos === \'right\'" class="color-picker-swatch" ng-click="focus()" ng-show="config.swatch" ng-class="{\'color-picker-swatch-left\': config.swatchPos !== \'right\', \'color-picker-swatch-right\': config.swatchPos === \'right\', \'input-group-addon\': config.swatchBootstrap}">\n' +
' <span class="color-picker-swatch-color" style="background-color: {{swatchColor}};"></span>\n' +
' <span class="color-picker-swatch-color" ng-attr-style="background-color: {{swatchColor}};"></span>\n' +
' </span>\n' +
' </div>\n' +
' <div class="color-picker-panel" ng-show="visible" ng-class="{\n' +
Expand All @@ -441,14 +441,14 @@ angular.module('color.picker').run(['$templateCache', function($templateCache) {
' \'color-picker-panel-bottom color-picker-panel-left\': config.pos === \'bottom left\',\n' +
' }">\n' +
' <div class="color-picker-hue color-picker-sprite" ng-click="hueChange($event, true)" ng-mousemove="hueChange($event, false)" ng-mousedown="hueDown()" ng-mouseup="hueUp()">\n' +
' <div class="color-picker-slider" style="top: {{huePos}}%;"></div>\n' +
' <div class="color-picker-slider" ng-attr-style="top: {{huePos}}%;"></div>\n' +
' </div>\n' +
' <div class="color-picker-opacity color-picker-sprite" ng-show="config.alpha" ng-click="opacityChange($event, true)" ng-mousemove="opacityChange($event, false)" ng-mousedown="opacityDown()" ng-mouseup="opacityUp()">\n' +
' <div class="color-picker-slider" style="top: {{opacityPos}}%;"></div>\n' +
' <div class="color-picker-slider" ng-attr-style="top: {{opacityPos}}%;"></div>\n' +
' </div>\n' +
' <div class="color-picker-grid color-picker-sprite" style="background-color: {{grid}};" ng-click="colorChange($event, true)" ng-mousemove="colorChange($event, false)" ng-mousedown="colorDown()" ng-mouseup="colorUp()">\n' +
' <div class="color-picker-grid color-picker-sprite" ng-attr-style="background-color: {{grid}};" ng-click="colorChange($event, true)" ng-mousemove="colorChange($event, false)" ng-mousedown="colorDown()" ng-mouseup="colorUp()">\n' +
' <div class="color-picker-grid-inner"></div>\n' +
' <div class="color-picker-picker" style="top: {{lightnessPos}}%; left: {{saturationPos}}%;">\n' +
' <div class="color-picker-picker" ng-attr-style="top: {{lightnessPos}}%; left: {{saturationPos}}%;">\n' +
' <div></div>\n' +
' </div>\n' +
' </div>\n' +
Expand Down
4 changes: 2 additions & 2 deletions angularjs-color-picker.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions angularjs-color-picker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-color-picker",
"description": "Color Picker Directive For AngularJS",
"version": "0.5.0",
"version": "0.6.0",
"homepage": "https://github.com/ruhley/angular-color-picker",
"repository": {
"type": "git",
Expand Down
12 changes: 6 additions & 6 deletions lib/scripts/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ angular.module('color.picker').run(['$templateCache', function($templateCache) {
'<div class="color-picker-wrapper" ng-class="{\'color-picker-swatch-only\': config.swatchOnly}">\n' +
' <div ng-class="{\'input-group\': config.swatchBootstrap}">\n' +
' <span ng-if="config.swatchPos === \'left\'" class="color-picker-swatch" ng-click="focus()" ng-show="config.swatch" ng-class="{\'color-picker-swatch-left\': config.swatchPos !== \'right\', \'color-picker-swatch-right\': config.swatchPos === \'right\', \'input-group-addon\': config.swatchBootstrap}">\n' +
' <span class="color-picker-swatch-color" style="background-color: {{swatchColor}};"></span>\n' +
' <span class="color-picker-swatch-color" ng-attr-style="background-color: {{swatchColor}};"></span>\n' +
' </span>\n' +
' <input class="color-picker-input form-control" type="text" ng-model="ngModel" size="7" ng-focus="show()" ng-class="{\'color-picker-input-swatch\': config.swatch && !config.swatchOnly && config.swatchPos === \'left\'}">\n' +
' <span ng-if="config.swatchPos === \'right\'" class="color-picker-swatch" ng-click="focus()" ng-show="config.swatch" ng-class="{\'color-picker-swatch-left\': config.swatchPos !== \'right\', \'color-picker-swatch-right\': config.swatchPos === \'right\', \'input-group-addon\': config.swatchBootstrap}">\n' +
' <span class="color-picker-swatch-color" style="background-color: {{swatchColor}};"></span>\n' +
' <span class="color-picker-swatch-color" ng-attr-style="background-color: {{swatchColor}};"></span>\n' +
' </span>\n' +
' </div>\n' +
' <div class="color-picker-panel" ng-show="visible" ng-class="{\n' +
Expand All @@ -17,14 +17,14 @@ angular.module('color.picker').run(['$templateCache', function($templateCache) {
' \'color-picker-panel-bottom color-picker-panel-left\': config.pos === \'bottom left\',\n' +
' }">\n' +
' <div class="color-picker-hue color-picker-sprite" ng-click="hueChange($event, true)" ng-mousemove="hueChange($event, false)" ng-mousedown="hueDown()" ng-mouseup="hueUp()">\n' +
' <div class="color-picker-slider" style="top: {{huePos}}%;"></div>\n' +
' <div class="color-picker-slider" ng-attr-style="top: {{huePos}}%;"></div>\n' +
' </div>\n' +
' <div class="color-picker-opacity color-picker-sprite" ng-show="config.alpha" ng-click="opacityChange($event, true)" ng-mousemove="opacityChange($event, false)" ng-mousedown="opacityDown()" ng-mouseup="opacityUp()">\n' +
' <div class="color-picker-slider" style="top: {{opacityPos}}%;"></div>\n' +
' <div class="color-picker-slider" ng-attr-style="top: {{opacityPos}}%;"></div>\n' +
' </div>\n' +
' <div class="color-picker-grid color-picker-sprite" style="background-color: {{grid}};" ng-click="colorChange($event, true)" ng-mousemove="colorChange($event, false)" ng-mousedown="colorDown()" ng-mouseup="colorUp()">\n' +
' <div class="color-picker-grid color-picker-sprite" ng-attr-style="background-color: {{grid}};" ng-click="colorChange($event, true)" ng-mousemove="colorChange($event, false)" ng-mousedown="colorDown()" ng-mouseup="colorUp()">\n' +
' <div class="color-picker-grid-inner"></div>\n' +
' <div class="color-picker-picker" style="top: {{lightnessPos}}%; left: {{saturationPos}}%;">\n' +
' <div class="color-picker-picker" ng-attr-style="top: {{lightnessPos}}%; left: {{saturationPos}}%;">\n' +
' <div></div>\n' +
' </div>\n' +
' </div>\n' +
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-color-picker",
"description": "Color Picker Directive For AngularJS",
"version": "0.5.0",
"version": "0.6.0",
"dependencies": {},
"repository": {
"type": "git",
Expand Down