├── .editorconfig ├── .gitignore ├── .npmignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── rollup.config.js ├── screenshots └── thumbnail.png └── src ├── color-picker-conic-gradient.directive.js ├── color-picker-core.module.js ├── color-picker-rotator.directive.js ├── color-picker.component.js ├── color-picker.service.js ├── conic-gradient.js ├── main.js ├── propeller.js └── scss └── color-picker.scss /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # see editorconfig.org for more information 3 | 4 | root = true 5 | 6 | [*] 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | indent_style = space 11 | indent_size = 4 12 | [**.scss] 13 | end_of_line = lf 14 | 15 | [**.md] 16 | trim_trailing_whitespace = false 17 | 18 | ## Commenting out below in case we ever want to customize per filetype 19 | # [**.js] 20 | # indent_size = 4 21 | 22 | # [**.css] 23 | # indent_size = 4 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | node_modules/ 5 | bower_components/ 6 | platforms/ 7 | plugins/ 8 | dist/ 9 | .sass-cache/ 10 | 11 | # Sublime Text 12 | *.sublime-workspace 13 | *.sublime-project 14 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | node_modules/ 5 | bower_components/ 6 | platforms/ 7 | plugins/ 8 | .sass-cache/ 9 | 10 | # Sublime Text 11 | *.sublime-workspace 12 | *.sublime-project 13 | 14 | .jscsrc 15 | .jshintrc 16 | .sass-lint.yml 17 | .editorconfig 18 | .bowerrc 19 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, gender identity and expression, level of experience, 9 | education, socio-economic status, nationality, personal appearance, race, 10 | religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting one or more of the project maintainers. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Git Commit Message Convention 2 | 3 | > This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/convention.md). 4 | 5 | #### Examples 6 | 7 | Appears under "Features" header 8 | 9 | ``` 10 | feat: Add support for selecting a color by dblclick 11 | ``` 12 | 13 | Appears under "Bug fixes" header, with a link to issue #28: 14 | 15 | ``` 16 | fix(rotator): Fix regression in IE and Edge not rotating the el properly 17 | 18 | close #28 19 | ``` 20 | 21 | Appears under "Performance improvements" header, and under "Breaking changes" with the breaking change explanation: 22 | 23 | ``` 24 | perf: Replace base64 bitmap with polyfilled conic-gradient 25 | 26 | BREAKING CHANGE: wheel.png was removed and is no longer available to be used. 27 | ``` 28 | 29 | The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header. 30 | 31 | ``` 32 | revert: feat: Add support for selecting a color by dblclick 33 | 34 | This reverts commit 667ecc1654a317a13331b17617d973392f415f02. 35 | ``` 36 | 37 | ### Full Message Format 38 | 39 | A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**: 40 | 41 | ``` 42 | (): 43 | 44 | 45 | 46 |