├── plugins ├── bootstrap │ └── 3.3.5 │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── bootstrap-theme.min.css ├── bootstrap-colorpicker │ ├── dist │ │ ├── img │ │ │ └── bootstrap-colorpicker │ │ │ │ ├── alpha.png │ │ │ │ ├── hue.png │ │ │ │ ├── saturation.png │ │ │ │ ├── hue-horizontal.png │ │ │ │ └── alpha-horizontal.png │ │ ├── css │ │ │ ├── bootstrap-colorpicker.min.css.map │ │ │ ├── bootstrap-colorpicker.min.css │ │ │ ├── bootstrap-colorpicker.css │ │ │ └── bootstrap-colorpicker.css.map │ │ └── js │ │ │ └── bootstrap-colorpicker.min.js │ ├── docs │ │ ├── includes │ │ │ ├── examples │ │ │ │ ├── 01_basic.hbs │ │ │ │ ├── 06_horizontal.hbs │ │ │ │ ├── 05_transparent.hbs │ │ │ │ ├── 02_component.hbs │ │ │ │ ├── 04_events.hbs │ │ │ │ ├── 07_inline.hbs │ │ │ │ ├── 03_component_options.hbs │ │ │ │ ├── 08_palette.hbs │ │ │ │ ├── 11_modal.hbs │ │ │ │ ├── 10_disabled.hbs │ │ │ │ └── 09_size.hbs │ │ │ ├── example.hbs │ │ │ ├── social.hbs │ │ │ ├── examples.hbs │ │ │ └── api.hbs │ │ ├── helpers │ │ │ └── code │ │ │ │ └── index.js │ │ ├── pages │ │ │ └── index.hbs │ │ ├── layout.hbs │ │ └── assets │ │ │ └── main.css │ ├── spec │ │ ├── support │ │ │ └── jasmine.json │ │ └── color │ │ │ └── hex-color-spec.js │ ├── .editorconfig │ ├── .npmignore │ ├── .jshintrc │ ├── composer.json │ ├── .bower.json │ ├── .travis.yml │ ├── LICENSE │ ├── src │ │ ├── js │ │ │ ├── colorpicker-plugin-wrapper.js │ │ │ ├── colorpicker-defaults.js │ │ │ ├── colorpicker-component.js │ │ │ └── colorpicker-color.js │ │ ├── less │ │ │ └── colorpicker.less │ │ └── sass │ │ │ └── _colorpicker.scss │ ├── serve.js │ ├── README.md │ ├── package.json │ ├── .github │ │ ├── PULL_REQUEST_TEMPLATE.md │ │ ├── ISSUE_TEMPLATE.md │ │ ├── CONTRIBUTING.md │ │ └── CODE_OF_CONDUCT.md │ └── Gruntfile.js └── topology │ └── layout.css ├── .idea ├── misc.xml ├── vcs.xml ├── modules.xml └── topolofy-es5.iml └── README.md /plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap/3.3.5/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha.png -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue.png -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/saturation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/saturation.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue-horizontal.png -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnnyhhj/topology-es5/HEAD/plugins/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha-horizontal.png -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/01_basic.hbs: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/spec/support/jasmine.json: -------------------------------------------------------------------------------- 1 | { 2 | "spec_dir": "spec", 3 | "spec_files": [ 4 | "**/*[sS]pec.js" 5 | ], 6 | "helpers": [ 7 | "helpers/**/*.js" 8 | ], 9 | "stopSpecOnExpectationFailure": false, 10 | "random": false 11 | } 12 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | indent_size = 2 9 | indent_style = space 10 | insert_final_newline = true 11 | trim_trailing_whitespace = true -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/06_horizontal.hbs: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/05_transparent.hbs: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 基于Topology的一个实现(es5+jquery+bootstrap) 2 | ## 主要功能有: 3 | ### 1.左侧栏基础节点的增加 4 | ### 2.点击节点和连线的右侧菜单的基础功能修改 5 | ### 3.画布右键菜单基础功能 6 | ### 4.下载png图片的功能 7 | 8 | ##### 直接打开项目下topology_es5.html文件就可以预览,无需部署,推荐使用webstorm来编辑 9 | ##### 感谢大佬开源这么好用的画图工具 10 | ##### topology项目地址:https://github.com/le5le-com/topology 11 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.npmignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | .DS_Store* 4 | ehthumbs.db 5 | Thumbs.db 6 | *.log 7 | /node_modules/ 8 | /bower_components/ 9 | /nbproject/ 10 | /gh-pages/ 11 | /package-lock.json 12 | Gruntfile.js 13 | /build 14 | /docs 15 | /tests 16 | /spec 17 | .* 18 | /src/docs 19 | *.psd 20 | *.ai 21 | composer.json 22 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/02_component.hbs: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 10 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/04_events.hbs: -------------------------------------------------------------------------------- 1 | Change background color 2 | 9 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/07_inline.hbs: -------------------------------------------------------------------------------- 1 |
2 | 7 | 16 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "bitwise": false, 3 | "browser": true, 4 | "curly": true, 5 | "eqeqeq": true, 6 | "eqnull": true, 7 | "esnext": true, 8 | "immed": true, 9 | "jquery": true, 10 | "latedef": true, 11 | "newcap": true, 12 | "noarg": true, 13 | "node": true, 14 | "strict": false, 15 | "trailing": true, 16 | "undef": true, 17 | "predef" : ["define"] 18 | } 19 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/spec/color/hex-color-spec.js: -------------------------------------------------------------------------------- 1 | var Color = require("../../src/js/colorpicker-color.js"); 2 | 3 | it("should return color in raw format", function(){ 4 | var color = new Color('aabbcc'); 5 | expect(color.toHex(true)).toEqual("#aabbcc"); 6 | }); 7 | 8 | it("should return color formatted", function(){ 9 | var color = new Color('aabbcc'); 10 | expect(color.toHex()).toEqual("aabbcc"); 11 | }); 12 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/03_component_options.hbs: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 13 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "itsjavi/bootstrap-colorpicker", 3 | "description": "Fancy and customizable colorpicker plugin for Twitter Bootstrap", 4 | "license": "Apache License Version 2.0", 5 | "authors": [ 6 | { 7 | "name": "Javier Aguilar", 8 | "homepage": "https://itsjavi.com" 9 | } 10 | ], 11 | "minimum-stability": "dev", 12 | "require": { 13 | "components/jquery" : ">=1.10" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-colorpicker", 3 | "homepage": "https://github.com/itsjavi/bootstrap-colorpicker", 4 | "version": "2.5.3", 5 | "_release": "2.5.3", 6 | "_resolution": { 7 | "type": "version", 8 | "tag": "2.5.3", 9 | "commit": "525cd6a0aa26ae95803bbf34d231c4163136a314" 10 | }, 11 | "_source": "https://github.com/itsjavi/bootstrap-colorpicker.git", 12 | "_target": "^2.5.1", 13 | "_originalSource": "bootstrap-colorpicker" 14 | } -------------------------------------------------------------------------------- /.idea/topolofy-es5.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "6" 4 | - "8" 5 | before_script: 6 | - npm install -g grunt-cli 7 | - curl -o- -L https://yarnpkg.com/install.sh | bash 8 | 9 | script: 10 | - yarn install 11 | - grunt --verbose 12 | # Check that files didn't change after running grunt. It should be run before pushing any code change. 13 | - if ! git diff --name-only --quiet -- dist docs src index.html --; then echo \"Files where modified after grunt execution!!...\"; exit 1; fi 14 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/example.hbs: -------------------------------------------------------------------------------- 1 |
2 |
{{title}}
3 | {{#if description}}
{{description}}
{{/if}} 4 |
5 |
6 | {{> (lookup . 'content') }} 7 |
8 | 9 | {{#code}} 10 | {{> (lookup . 'content') }} 11 | {{/code}} 12 |
13 |
14 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Stefan Petre 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/helpers/code/index.js: -------------------------------------------------------------------------------- 1 | var beautify = require('js-beautify').html; 2 | 3 | var entityMap = { 4 | "&": "&", 5 | "<": "<", 6 | ">": ">", 7 | '"': '"', 8 | "'": ''', 9 | "/": '/' 10 | }; 11 | module.exports.register = function (Handlebars, options) { 12 | Handlebars.registerHelper('code', function (hboptions) { 13 | var codeStr = beautify(String(hboptions.fn(this)).trim(), { 14 | "wrap_line_length": 80, 15 | "wrap_attributes": "auto", 16 | "indent_scripts": "normal" 17 | }).replace(/[&<>"'\/]/g, function (s) { 18 | return entityMap[s]; 19 | }); 20 | 21 | return '
' + codeStr + '
'; 22 | }); 23 | }; 24 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/08_palette.hbs: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 22 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/11_modal.hbs: -------------------------------------------------------------------------------- 1 | 4 | 16 | 21 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/10_disabled.hbs: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 |

7 | Enable 8 | Disable 9 |

10 | 24 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/social.hbs: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/src/js/colorpicker-plugin-wrapper.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Colorpicker v2.5.2 3 | * https://itsjavi.com/bootstrap-colorpicker/ 4 | * 5 | * Originally written by (c) 2012 Stefan Petre 6 | * Licensed under the Apache License v2.0 7 | * http://www.apache.org/licenses/LICENSE-2.0.txt 8 | * 9 | */ 10 | 11 | (function(root, factory) { 12 | if (typeof define === 'function' && define.amd) { 13 | // AMD. Register as an anonymous module unless amdModuleId is set 14 | define(["jquery"], function(jq) { 15 | return (factory(jq)); 16 | }); 17 | } else if (typeof exports === 'object') { 18 | // Node. Does not work with strict CommonJS, but 19 | // only CommonJS-like environments that support module.exports, 20 | // like Node. 21 | module.exports = factory(require("jquery")); 22 | } else if (jQuery && !jQuery.fn.colorpicker) { 23 | factory(jQuery); 24 | } 25 | }(this, function($) { 26 | 'use strict'; 27 | //@colorpicker-color 28 | //@colorpicker-defaults 29 | //@colorpicker-component 30 | })); 31 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples/09_size.hbs: -------------------------------------------------------------------------------- 1 | 2 | 19 | 38 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/serve.js: -------------------------------------------------------------------------------- 1 | /* 2 | Script for serving index.html and other static content with Node. 3 | Run it using `node serve` from your terminal and navigate to http://localhost:5000 4 | in order to test your changes in the browser. 5 | */ 6 | 7 | var http = require('http'), fs = require('fs'), mimeTypes = { 8 | 'html': 'text/html', 9 | 'css': 'text/css', 10 | 'js': 'text/javascript', 11 | 'json': 'application/json', 12 | 'png': 'image/png', 13 | 'jpg': 'image/jpg' 14 | }; 15 | 16 | http.createServer(function (req, res) { 17 | var file = (req.url === '/') ? 'index.html' : "." + req.url; 18 | var ext = require('path').extname(file), 19 | type = (mimeTypes[ext] ? mimeTypes[ext] : ''); 20 | 21 | fs.exists(file, function (exists) { 22 | if (exists) { 23 | res.writeHead(200, {'Content-Type': type}); 24 | fs.createReadStream(file).pipe(res); 25 | } else { 26 | console.warn(file, ' does not exit'); 27 | } 28 | }); 29 | }).listen(5000); 30 | 31 | console.log("Your bootstrap-colorpicker development URL is http://localhost:5000"); 32 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/includes/examples.hbs: -------------------------------------------------------------------------------- 1 |

Examples

2 |
3 | 4 | {{> example title="Simple input field" content="01_basic" }} 5 | {{> example title="As a component" content="02_component" }} 6 | {{> example title="With custom options" description="Sample overriding the initial color and format" content="03_component_options" }} 7 | {{> example title="Working with events" content="04_events" }} 8 | {{> example title="Transparent color support" content="05_transparent" }} 9 | {{> example title="Horizontal mode" content="06_horizontal" }} 10 | {{> example title="Inline mode" content="07_inline" }} 11 | {{> example title="Aliased color palette" content="08_palette" }} 12 | {{> example title="Customized widget size" description="Also showing the support of HTML color names" content="09_size" }} 13 | {{> example title="Disabled / enabled status" content="10_disabled" }} 14 | {{> example title="Inside a modal" content="11_modal" }} 15 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/pages/index.hbs: -------------------------------------------------------------------------------- 1 | 6 |
7 |
8 |

9 | {{package.description}}. 10 | Originally written by Stefan Petre and maintained by 12 | Javi Aguilar and the Github community. 13 |

14 |

15 | NOTE That this is an older version of the library documentation, please check 16 | the project README 17 | to find the documentation for the newer and latest versions. 18 |

19 |
20 |
21 | {{> social }} 22 |
23 |
24 | {{> api }} 25 |
26 |
27 | {{> examples }} 28 |
29 |
30 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/layout.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Colorpicker for Twitter Bootstrap 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | {{> body }} 28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/README.md: -------------------------------------------------------------------------------- 1 | # Bootstrap Colorpicker 2 2 | 3 | Simple and customizable colorpicker component for Twitter Bootstrap. 4 | 5 | [![Build Status](https://api.travis-ci.org/farbelous/bootstrap-colorpicker.svg?branch=v2.x)](https://travis-ci.org/farbelous/bootstrap-colorpicker) 6 | 7 | ## Installation 8 | For downloading the source code, you have many choices: 9 | 10 | - Downloading the [latest v2.x source code ZIP file](https://github.com/farbelous/bootstrap-colorpicker/archive/v2.x.zip) 11 | - Cloning the source code: `git clone https://github.com/farbelous/bootstrap-colorpicker.git` 12 | - Installing via NPM: `npm install bootstrap-colorpicker` 13 | - Installing via Yarn: `yarn add bootstrap-colorpicker` 14 | - Installing via Composer: `composer require itsjavi/bootstrap-colorpicker` 15 | 16 | ## Getting started 17 | - For using the plugin you will only need the files under the `dist` folder 18 | - [Documentation and demos](https://farbelous.github.io/bootstrap-colorpicker/v2/) 19 | 20 | ## Contributing and reporting issues 21 | If you want to contribute to the source code or report issues and suggestions, please read the [CONTRIBUTING.md](.github/CONTRIBUTING.md) guidelines first. Some steps are mandatory in order to accept a Pull Request. 22 | 23 | ## Credits 24 | Originally written by [Stefan Petre](http://www.eyecon.ro/) 25 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/docs/assets/main.css: -------------------------------------------------------------------------------- 1 | .container { 2 | background: #fff; 3 | } 4 | 5 | h4 ~ p { 6 | padding-left: 20px; 7 | } 8 | 9 | .well .markup, 10 | .example-content .example-code { 11 | background: #2B2B2B; 12 | color: #BABABA; 13 | position: relative; 14 | padding: 15px 15px 15px; 15 | margin: 15px 0 0 0; 16 | border-radius: 0 0 4px 4px; 17 | box-shadow: none; 18 | font-size: 12px; 19 | line-height: 1.42857143; 20 | word-break: break-all; 21 | word-wrap: break-word; 22 | border: 1px solid #000; 23 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace; 24 | white-space: pre; 25 | overflow: auto; 26 | } 27 | 28 | .well .markup::after { 29 | content: "Source code"; 30 | position: absolute; 31 | top: 15px; 32 | left: 15px; 33 | font-size: 12px; 34 | font-weight: bold; 35 | color: #eee; 36 | text-transform: uppercase; 37 | letter-spacing: 1px; 38 | } 39 | 40 | .share-btn { 41 | vertical-align: middle; 42 | display: inline-block; 43 | font-size: 12px; 44 | line-height: 1.5; 45 | } 46 | 47 | 48 | .example-title{ 49 | font-size: 14px; 50 | margin: 10px 0 10px 2px; 51 | font-weight: bold; 52 | } 53 | .example-description{ 54 | margin: 10px 0 10px 2px; 55 | } 56 | .example-code{ 57 | display:none; 58 | } 59 | .example-content-widget{ 60 | margin-bottom: 2px; 61 | } 62 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-colorpicker", 3 | "version": "2.5.3", 4 | "description": "Fancy and customizable colorpicker plugin for Twitter Bootstrap", 5 | "main": "./dist/js/bootstrap-colorpicker.js", 6 | "homepage": "https://itsjavi.com/bootstrap-colorpicker/", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/itsjavi/bootstrap-colorpicker.git" 10 | }, 11 | "bugs": { 12 | "url": "https://github.com/itsjavi/bootstrap-colorpicker/issues" 13 | }, 14 | "keywords": [ 15 | "bootstrap", 16 | "colorpicker" 17 | ], 18 | "author": "Javier Aguilar", 19 | "license": "Apache-2.0", 20 | "licenses": [ 21 | { 22 | "type": "Apache-2.0", 23 | "url": "http://opensource.org/licenses/Apache-2.0" 24 | } 25 | ], 26 | "dependencies": { 27 | "jquery": ">=1.10" 28 | }, 29 | "scripts": { 30 | "test": "jasmine" 31 | }, 32 | "devDependencies": { 33 | "grunt": "~0.4.5", 34 | "grunt-assemble": "~0.4.0", 35 | "grunt-combine": "~0.8.3", 36 | "grunt-contrib-clean": "~1.0.0", 37 | "grunt-contrib-cssmin": "~1.0.1", 38 | "grunt-contrib-jshint": "~1.0.0", 39 | "grunt-contrib-less": "~1.2.0", 40 | "grunt-contrib-uglify": "~1.0.0", 41 | "grunt-contrib-watch": "~1.0.0", 42 | "grunt-jsbeautifier": "~0.2.10", 43 | "grunt-strip-code": "^1.0.6", 44 | "jasmine": "^2.6.0", 45 | "jquery": ">=1.10", 46 | "jsdom": "^10.1.0" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ### Is your PR fixing an issue or introduces a new feature? 10 | 11 | {Please write here} 12 | 13 | ### In case of fix, how this PR fixes the problem? 14 | 15 | {Please write here only in case of fix PR or remove the section} 16 | 17 | {Please also mention the related issue numbers you are trying to close, if applicable} 18 | 19 | ### In case of new feature, what are the benefits and use cases? 20 | 21 | {Please write here only in case of feature PR or remove the section} 22 | 23 | ### Check list 24 | Please mark with `x` inside the `[ ]` for anything that applies to this PR. 25 | 26 | - [ ] All tests passed in travis-ci 27 | - [ ] Regenerated the `dist` files via `grunt` 28 | - [ ] All documentation examples are still working after testing them via `node serve` 29 | - [ ] Added an example in the documentation for the newly introduced feature 30 | - [ ] Provided an example via JsFiddle in the description of this PR 31 | - [ ] Tested at least with latest Chrome, Firefox and Mobile (iOS Safari and/or Chrome for Android) 32 | - [ ] This PR also introduces coding style changes (indentation, etc), in a separated commit 33 | - [ ] The commit history is understandable and grouped into the minimum number of commits possible 34 | - [ ] I've followed all other [`CONTRIBUTING.md`](.github/CONTRIBUTING.md#pull-requests) guidelines for Pull Requests. 35 | 36 | ### Additional Comments (if any) 37 | 38 | {Please write here} 39 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["src/less/colorpicker.less"],"names":[],"mappings":";;;;;;;;AAoBA,wBACE,MAAA,MACA,OAAA,MAXA,iBAAsB,g7KAatB,OAAA,UACA,MAAA,KACA,0BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAfF,sBAAA,IACA,mBAAA,IACA,cAAA,IAeE,SAAA,SACA,IAAA,EACA,KAAA,EACA,OAAA,KAAA,EAAA,EAAA,KACA,4BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAzBJ,sBAAA,IACA,mBAAA,IACA,cAAA,IA8BF,mBADA,iBAEE,MAAA,KACA,OAAA,MACA,MAAA,KACA,OAAA,WACA,YAAA,IACA,cAAA,IAIiB,qBADF,mBAEf,QAAA,MACA,OAAA,IACA,WAAA,KACA,WAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,WAAA,KAGF,iBA1DE,iBAAsB,4rBA8DxB,mBA9DE,iBAAsB,wqBAgEtB,QAAA,KAKF,mBADA,iBADA,wBAGE,gBAAA,QAGF,aACE,QAAA,IACA,UAAA,MACA,WAAA,IAxEA,sBAAA,IACA,mBAAA,IACA,cAAA,IAwEA,QAAA,KAIU,mBADA,oBAEV,QAAA,MACA,QAAA,GACA,YAAA,EAGU,mBACV,MAAA,KAGU,oBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,oBAAA,eACA,SAAA,SACA,IAAA,KACA,KAAA,IAGU,mBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,KACA,KAAA,IAGW,iBACX,SAAA,SAGU,oCACV,UAAA,MAGkC,uDAClC,QAAA,MAGF,mBACE,OAAA,KACA,WAAA,IACA,MAAA,KAlIA,iBAAsB,wqBAoItB,oBAAA,EAAA,KAGiB,uBACjB,OAAA,KAGF,uBACE,QAAA,KACA,OAAA,KACA,WAAA,IACA,MAAA,KAGqB,yBACrB,OAAA,QACA,MAAA,KACA,OAAA,KACA,MAAA,KAGuB,2BACvB,YAAA,IAI2B,+BADW,0CAEtC,QAAA,aACA,OAAA,QACA,OAAA,KACA,eAAA,SACA,MAAA,KAGU,gCACV,SAAA,SACA,QAAA,aACA,MAAA,KACA,QAAA,KAGU,oCACV,MAAA,MACA,UAAA,MACA,OAAA,KAGkC,4DAClC,cAAA,IAGkC,uDAClC,MAAA,MAIkC,uDADA,qDAElC,MAAA,MACA,OAAA,KACA,MAAA,KACA,OAAA,WACA,YAAA,EACA,cAAA,IAIqD,yDADF,uDAEnD,QAAA,MACA,OAAA,KACA,WAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,IACA,OAAA,KACA,WAAA,EAGkC,qDAlNlC,iBAAsB,4pBAsNY,uDAtNlC,iBAAsB,owBA0NN,0BAChB,KAAA,KACA,MAAA,IAGgB,yBAChB,KAAA,KACA,MAAA,IAGmB,6BACnB,aAAA,EACA,YAAA,EAGmB,4BACnB,aAAA,EACA,YAAA,EAQC,uCAAA,qCAAA,4CAAA,2CAAA,iCACC,QAAA,MASD,sCAAA,oCAAA,2CAAA,0CAAA,gCACC,QAAA,KAIe,wCACjB,QAAA"} -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 9 | 10 | ### Brief description 11 | 12 | {Please write here a summary of the issue} 13 | 14 | 19 | ### Which software are you using? 20 | 21 | - bootstrap-colorpicker version: {Please write here} 22 | - bootstrap version: {Please write here} 23 | - jQuery version: {Please write here} 24 | - Browser name and version: {Please write here} 25 | - Operative System name an version: {Please write here} 26 | 27 | ### What's the expected or desirable behavior? 28 | 29 | {Please write here in case of code-related issues or remove this section} 30 | 31 | ### What's the actual current behavior? 32 | 33 | {Please write here in case of code-related issues or remove this section} 34 | 35 | ### Are there some other related issues or PRs? 36 | 37 | {Please write here if applicable the issue numbers or remove this section} 38 | 39 | ### Steps to reproduce 40 | 41 | {Please write here in case of code-related issues or remove this section} 42 | 43 | 47 | *Live example*: {Please write here a link to your JsFiddle example} 48 | 49 | ### Additional Comments (if any) 50 | 51 | {Please write here} 52 | -------------------------------------------------------------------------------- /plugins/bootstrap-colorpicker/src/js/colorpicker-defaults.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Default plugin options 3 | */ 4 | var defaults = { 5 | horizontal: false, // horizontal mode layout ? 6 | inline: false, //forces to show the colorpicker as an inline element 7 | color: false, //forces a color 8 | format: false, //forces a format 9 | input: 'input', // children input selector 10 | container: false, // container selector 11 | component: '.add-on, .input-group-addon', // children component selector 12 | fallbackColor: false, // fallback color value. null = keeps current color. 13 | fallbackFormat: 'hex', // fallback color format 14 | hexNumberSignPrefix: true, // put a '#' (number sign) before hex strings 15 | sliders: { 16 | saturation: { 17 | maxLeft: 100, 18 | maxTop: 100, 19 | callLeft: 'setSaturation', 20 | callTop: 'setBrightness' 21 | }, 22 | hue: { 23 | maxLeft: 0, 24 | maxTop: 100, 25 | callLeft: false, 26 | callTop: 'setHue' 27 | }, 28 | alpha: { 29 | maxLeft: 0, 30 | maxTop: 100, 31 | callLeft: false, 32 | callTop: 'setAlpha' 33 | } 34 | }, 35 | slidersHorz: { 36 | saturation: { 37 | maxLeft: 100, 38 | maxTop: 100, 39 | callLeft: 'setSaturation', 40 | callTop: 'setBrightness' 41 | }, 42 | hue: { 43 | maxLeft: 100, 44 | maxTop: 0, 45 | callLeft: 'setHue', 46 | callTop: false 47 | }, 48 | alpha: { 49 | maxLeft: 100, 50 | maxTop: 0, 51 | callLeft: 'setAlpha', 52 | callTop: false 53 | } 54 | }, 55 | template: '