{"id":13480989,"url":"https://github.com/zefoy/ngx-color-picker","last_synced_at":"2026-03-17T21:35:32.368Z","repository":{"id":16678324,"uuid":"80424409","full_name":"zefoy/ngx-color-picker","owner":"zefoy","description":"Color picker widget for the Angular (version 2 and newer)","archived":false,"fork":false,"pushed_at":"2026-01-28T16:51:35.000Z","size":8307,"stargazers_count":472,"open_issues_count":72,"forks_count":152,"subscribers_count":18,"default_branch":"main","last_synced_at":"2026-03-12T02:47:55.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zefoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-01-30T13:37:22.000Z","updated_at":"2025-12-30T02:00:40.000Z","dependencies_parsed_at":"2023-11-26T19:24:24.183Z","dependency_job_id":"8725e032-202c-4943-a7da-b6299f130535","html_url":"https://github.com/zefoy/ngx-color-picker","commit_stats":{"total_commits":321,"total_committers":40,"mean_commits":8.025,"dds":"0.30841121495327106","last_synced_commit":"557140f10b24023da505f3dec74621c3ac51b250"},"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"purl":"pkg:github/zefoy/ngx-color-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zefoy","download_url":"https://codeload.github.com/zefoy/ngx-color-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefoy%2Fngx-color-picker/sbom","scorecard":{"id":732411,"data":{"date":"2025-07-07","repo":{"name":"github.com/zefoy/ngx-color-picker","commit":"a21d7d84793d55a32b06969688b8dce14139917c"},"scorecard":{"version":"v5.2.1-18-gbb9c347d","commit":"bb9c347dff6349d986baab6578a46d68a5524c62"},"score":3.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":7,"reason":"9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 7/28 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/bb9c347dff6349d986baab6578a46d68a5524c62/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T14:47:59.187Z","repository_id":16678324,"created_at":"2025-08-22T14:47:59.188Z","updated_at":"2025-08-22T14:47:59.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30632046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T17:00:47.330Z","updated_at":"2026-03-17T21:35:32.353Z","avatar_url":"https://github.com/zefoy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Third Party Components","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)","Uncategorized","UI Components"],"sub_categories":["Form Controls","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e","Uncategorized","Form"],"readme":"# Angular Color Picker\n\n\u003ca href=\"https://badge.fury.io/js/ngx-color-picker\"\u003e\u003cimg src=\"https://badge.fury.io/js/ngx-color-picker.svg\" align=\"right\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e\n\nThis is a simple color picker based on the cool angular2-color-picker by Alberplz.\n\nThis documentation is for the latest version which requires Angular version newer than 2 major versions prior to the current latest version. For older Angular versions you need to use an older version of this library.\n\n### Quick links\n\n[Example application](https://zefoy.github.io/ngx-color-picker/)\n |\n[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-color-picker/tree/main)\n\n### Building the library\n\n```bash\nnpm install\nnpm run build\n```\n\n### Running the example\n\n```bash\nnpm install\nnpm run start\n```\n\n### Installing and usage\n\n```bash\nnpm install ngx-color-picker --save\n```\n\n##### Import the library into your component:\n\n```javascript\nimport { ColorPickerDirective } from 'ngx-color-picker';\n\n@Component({\n  // ...\n  imports: [\n    // ...\n    ColorPickerDirective, \n    // ...    \n  ]\n})\n```\n\n##### Use it in your HTML template:\n\n```html\n\u003cinput [(colorPicker)]=\"color\" [style.background]=\"color\"/\u003e\n```\n\n```javascript\n[colorPicker]                // The color to show in the color picker dialog.\n\n[cpWidth]                    // Use this option to set color picker dialog width ('230px').\n[cpHeight]                   // Use this option to force color picker dialog height ('auto').\n\n[cpToggle]                   // Sets the default open / close state of the color picker (false).\n[cpDisabled]                 // Disables opening of the color picker dialog via toggle / events.\n\n[cpColorMode]                // Dialog color mode: 'color', 'grayscale', 'presets' ('color').\n\n[cpCmykEnabled]              // Enables CMYK input format and color change event (false).\n\n[cpOutputFormat]             // Output color format: 'auto', 'hex', 'rgba', 'hsla' ('auto').\n[cpAlphaChannel]             // Alpha mode: 'enabled', 'disabled', 'always', 'forced' ('enabled').\n\n[cpFallbackColor]            // Used when the color is not well-formed or is undefined ('#000').\n\n[cpPosition]                 // Dialog position: 'auto', 'top', 'bottom', 'left', 'right',\n                             //  'top-left', 'top-right', 'bottom-left', 'bottom-right' ('auto').\n[cpPositionOffset]           // Dialog offset percentage relative to the directive element (0%).\n[cpPositionRelativeToArrow]  // Dialog position is calculated relative to dialog arrow (false).\n\n[cpPresetLabel]              // Label text for the preset colors if any provided ('Preset colors').\n[cpPresetColors]             // Array of preset colors to show in the color picker dialog ([]).\n\n[cpDisableInput]             // Disables / hides the color input field from the dialog (false).\n\n[cpDialogDisplay]            // Dialog positioning mode: 'popup', 'inline' ('popup').\n                             //   popup: dialog is shown as popup (fixed positioning).\n                             //   inline: dialog is shown permanently (static positioning).\n\n[cpIgnoredElements]          // Array of HTML elements that will be ignored when clicked ([]).\n\n[cpSaveClickOutside]         // Save currently selected color when user clicks outside (true).\n[cpCloseClickOutside]        // Close the color picker dialog when user clicks outside (true).\n\n[cpOKButton]                 // Show an OK / Apply button which saves the color (false).\n[cpOKButtonText]             // Button label text shown inside the OK / Apply button ('OK').\n[cpOKButtonClass]            // Additional class for customizing the OK / Apply button ('').\n\n[cpCancelButton]             // Show a Cancel / Reset button which resets the color (false).\n[cpCancelButtonText]         // Button label text shown inside the Cancel / Reset button ('Cancel').\n[cpCancelButtonClass]        // Additional class for customizing the Cancel / Reset button ('').\n\n[cpAddColorButton]           // Show an Add Color button which add the color into preset (false).\n[cpAddColorButtonText]       // Button label text shown inside the Add Color button ('Add color').\n[cpAddColorButtonClass]      // Additional class for customizing the Add Color button ('').\n\n[cpRemoveColorButtonClass]   // Additional class for customizing the Remove Color button ('').\n\n[cpPresetColorsClass]        // Additional class for customizing the Preset Colors container ('').\n\n[cpMaxPresetColorsLength]    // Use this option to set the max colors allowed in presets (null).\n\n[cpPresetEmptyMessage]       // Message for empty colors if any provided used ('No colors added').\n[cpPresetEmptyMessageClass]  // Additional class for customizing the empty colors message ('').\n\n[cpUseRootViewContainer]     // Create dialog component in the root view container (false).\n                             // Note: The root component needs to have public viewContainerRef.\n\n(colorPickerOpen)            // Current color value, send when dialog is opened (value: string).\n(colorPickerClose)           // Current color value, send when dialog is closed (value: string).\n\n(colorPickerChange)          // Changed color value, send when color is changed (value: string).\n(colorPickerCancel)          // Color select canceled, send when Cancel button is pressed (void).\n(colorPickerSelect)          // Selected color value, send when OK button is pressed (value: string).\n\n(cpToggleChange)             // Status of the dialog, send when dialog is opened / closed (open: boolean).\n\n(cpInputChange)              // Input name and its value, send when user changes color through inputs\n                             // ({input: string, value: number | string, color: string})\n\n(cpSliderChange)             // Slider name and its value, send when user changes color through slider\n                             //   ({slider: string, value: number | string, color: string})\n(cpSliderDragStart)          // Slider name and current color, send when slider dragging starts (mousedown,touchstart)\n                             //   ({slider: string, color: string})\n(cpSliderDragEnd)            // Slider name and current color, send when slider dragging ends (mouseup,touchend)\n                             //   ({slider: string, color: string})\n\n(cpCmykColorChange)          // Outputs the color as CMYK string if CMYK is enabled (value: string).\n\n(cpPresetColorsChange)       // Preset colors, send when 'Add Color' button is pressed (value: array).\n```\n\n##### Available control / helper functions (provided by the directive):\n\n```javascript\nopenDialog()                 // Opens the color picker dialog if not already open.\ncloseDialog()                // Closes the color picker dialog if not already closed.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefoy%2Fngx-color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzefoy%2Fngx-color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefoy%2Fngx-color-picker/lists"}