├── .all-contributorsrc ├── .editorconfig ├── .eslintrc.json ├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── release.yaml │ └── test.yaml ├── .gitignore ├── .husky └── commit-msg ├── .prettierrc.json ├── .releaserc.json ├── .vscode ├── extensions.json ├── launch.json └── tasks.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── LICENSE ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── angular.json ├── assets └── ngxpert cmdk cover.png ├── commitlint.config.js ├── cypress.config.ts ├── cypress ├── basic.cy.ts ├── fixtures │ └── example.json ├── group.cy.ts ├── item.cy.ts ├── keybindings.cy.ts ├── props.cy.ts └── support │ ├── commands.ts │ ├── component-index.html │ └── component.ts ├── hooks └── pre-commit.js ├── karma.conf.js ├── logo.svg ├── package-lock.json ├── package.json ├── projects └── ngxpert │ └── cmdk │ ├── .eslintrc.json │ ├── README.md │ ├── karma.conf.js │ ├── ng-package.json │ ├── package.json │ ├── src │ ├── lib │ │ ├── cmdk.module.ts │ │ ├── cmdk.service.spec.ts │ │ ├── cmdk.service.ts │ │ ├── components │ │ │ ├── command │ │ │ │ ├── command.component.html │ │ │ │ ├── command.component.spec.ts │ │ │ │ └── command.component.ts │ │ │ ├── group │ │ │ │ ├── group.component.html │ │ │ │ ├── group.component.scss │ │ │ │ └── group.component.ts │ │ │ ├── list │ │ │ │ ├── list.component.html │ │ │ │ └── list.component.ts │ │ │ └── separator │ │ │ │ ├── separator.component.html │ │ │ │ ├── separator.component.scss │ │ │ │ └── separator.component.ts │ │ ├── directives │ │ │ ├── empty │ │ │ │ ├── empty.directive.spec.ts │ │ │ │ └── empty.directive.ts │ │ │ ├── input │ │ │ │ ├── input.directive.spec.ts │ │ │ │ └── input.directive.ts │ │ │ ├── item │ │ │ │ ├── item.directive.spec.ts │ │ │ │ └── item.directive.ts │ │ │ └── loader │ │ │ │ ├── loader.directive.spec.ts │ │ │ │ └── loader.directive.ts │ │ └── types.ts │ ├── public-api.ts │ └── test.ts │ ├── styles │ ├── framer.scss │ ├── globals.scss │ ├── linear.scss │ ├── raycast.scss │ └── vercel.scss │ ├── tsconfig.lib.json │ ├── tsconfig.lib.prod.json │ └── tsconfig.spec.json ├── src ├── app │ ├── app.component.html │ ├── app.component.ts │ ├── core │ │ └── services │ │ │ ├── code-highlight.service.spec.ts │ │ │ └── code-highlight.service.ts │ ├── icons │ │ ├── assign-to-icon │ │ │ └── assign-to-icon.component.ts │ │ ├── assign-to-me-icon │ │ │ └── assign-to-me-icon.component.ts │ │ ├── avatar │ │ │ └── avatar.component.ts │ │ ├── badge │ │ │ └── badge.component.ts │ │ ├── button │ │ │ └── button.component.ts │ │ ├── change-labels-icon │ │ │ └── change-labels-icon.component.ts │ │ ├── change-priority-icon │ │ │ └── change-priority-icon.component.ts │ │ ├── change-status-icon │ │ │ └── change-status-icon.component.ts │ │ ├── clipboard-icon │ │ │ └── clipboard-icon.component.ts │ │ ├── contact-icon │ │ │ └── contact-icon.component.ts │ │ ├── copied │ │ │ └── copied.component.ts │ │ ├── copy │ │ │ └── copy.component.ts │ │ ├── docs-icon │ │ │ └── docs-icon.component.ts │ │ ├── feedback-icon │ │ │ └── feedback-icon.component.ts │ │ ├── figma │ │ │ └── figma.component.ts │ │ ├── finder-icon │ │ │ └── finder-icon.component.ts │ │ ├── framer │ │ │ └── framer.component.ts │ │ ├── github │ │ │ └── github.component.ts │ │ ├── hammer-icon │ │ │ └── hammer-icon.component.ts │ │ ├── icons.module.ts │ │ ├── input │ │ │ └── input.component.ts │ │ ├── layout │ │ │ └── layout.component.ts │ │ ├── linear-icon │ │ │ └── linear-icon.component.ts │ │ ├── logo │ │ │ └── logo.component.ts │ │ ├── plus-icon │ │ │ └── plus-icon.component.ts │ │ ├── projects-icon │ │ │ └── projects-icon.component.ts │ │ ├── radio │ │ │ └── radio.component.ts │ │ ├── raycast-dark-icon │ │ │ └── raycast-dark-icon.component.ts │ │ ├── raycast-icon │ │ │ └── raycast-icon.component.ts │ │ ├── raycast-light-icon │ │ │ └── raycast-light-icon.component.ts │ │ ├── remove-label-icon │ │ │ └── remove-label-icon.component.ts │ │ ├── search │ │ │ └── search.component.ts │ │ ├── set-due-date-icon │ │ │ └── set-due-date-icon.component.ts │ │ ├── slack-icon │ │ │ └── slack-icon.component.ts │ │ ├── slider │ │ │ └── slider.component.ts │ │ ├── star-icon │ │ │ └── star-icon.component.ts │ │ ├── teams-icon │ │ │ └── teams-icon.component.ts │ │ ├── vercel-icon │ │ │ └── vercel-icon.component.ts │ │ ├── window-icon │ │ │ └── window-icon.component.ts │ │ └── you-tube-icon │ │ │ └── you-tube-icon.component.ts │ ├── sections │ │ ├── footer │ │ │ ├── footer.component.html │ │ │ └── footer.component.ts │ │ ├── meta │ │ │ ├── meta.component.html │ │ │ └── meta.component.ts │ │ └── theme-switcher │ │ │ ├── theme-switcher.component.html │ │ │ └── theme-switcher.component.ts │ ├── shared │ │ ├── components │ │ │ └── code-block │ │ │ │ ├── code-block.component.html │ │ │ │ ├── code-block.component.scss │ │ │ │ └── code-block.component.ts │ │ └── shared.module.ts │ ├── tests │ │ ├── group.component.ts │ │ ├── item-advanced.component.ts │ │ ├── item.component.ts │ │ ├── keybindings.component.ts │ │ ├── props.component.ts │ │ └── tests.module.ts │ └── themes │ │ ├── framer │ │ ├── framer.component.html │ │ └── framer.component.ts │ │ ├── linear │ │ ├── linear.component.html │ │ └── linear.component.ts │ │ ├── raycast │ │ ├── raycast.component.html │ │ ├── raycast.component.ts │ │ ├── sub-command-dialog │ │ │ ├── sub-command-dialog.component.html │ │ │ ├── sub-command-dialog.component.scss │ │ │ └── sub-command-dialog.component.ts │ │ └── sub-command │ │ │ ├── sub-command.component.html │ │ │ ├── sub-command.component.scss │ │ │ └── sub-command.component.ts │ │ └── vercel │ │ ├── vercel.component.html │ │ ├── vercel.component.scss │ │ └── vercel.component.ts ├── assets │ ├── .gitkeep │ ├── grid.svg │ ├── line.svg │ └── ngxpert cdk.svg ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills.ts ├── styles.scss ├── test.ts └── types.d.ts ├── tsconfig.app.json ├── tsconfig.json └── tsconfig.spec.json /.all-contributorsrc: -------------------------------------------------------------------------------- 1 | { 2 | "projectName": "cmdk", 3 | "projectOwner": "@ngxpert", 4 | "repoType": "github", 5 | "repoHost": "https://github.com", 6 | "files": [ 7 | "README.md" 8 | ], 9 | "imageSize": 100, 10 | "commit": true, 11 | "commitConvention": "angular", 12 | "contributors": [ 13 | { 14 | "login": "pacocoursey", 15 | "name": "Paco", 16 | "avatar_url": "https://avatars.githubusercontent.com/u/34928425?v=4", 17 | "profile": "https://github.com/pacocoursey", 18 | "contributions": [ 19 | "design", 20 | "doc", 21 | "ideas", 22 | "research" 23 | ] 24 | }, 25 | { 26 | "login": "shhdharmen", 27 | "name": "Dharmen Shah", 28 | "avatar_url": "https://avatars.githubusercontent.com/u/6831283?v=4", 29 | "profile": "https://github.com/shhdharmen", 30 | "contributions": [ 31 | "a11y", 32 | "code", 33 | "content", 34 | "design", 35 | "doc", 36 | "example", 37 | "ideas", 38 | "maintenance", 39 | "platform", 40 | "projectManagement", 41 | "research" 42 | ] 43 | }, 44 | { 45 | "login": "NetanelBasal", 46 | "name": "Netanel Basal", 47 | "avatar_url": "https://avatars.githubusercontent.com/u/6745730?v=4", 48 | "profile": "https://www.netbasal.com/", 49 | "contributions": [ 50 | "question", 51 | "business", 52 | "fundingFinding", 53 | "ideas", 54 | "maintenance", 55 | "mentoring", 56 | "projectManagement", 57 | "research", 58 | "review" 59 | ] 60 | } 61 | ], 62 | "contributorsPerLine": 7 63 | } 64 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.ts] 12 | quote_type = single 13 | 14 | [*.md] 15 | max_line_length = off 16 | trim_trailing_whitespace = false 17 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "ignorePatterns": [ 4 | "projects/**/*" 5 | ], 6 | "overrides": [ 7 | { 8 | "files": [ 9 | "*.ts" 10 | ], 11 | "parserOptions": { 12 | "project": [ 13 | "tsconfig.json" 14 | ], 15 | "createDefaultProgram": true 16 | }, 17 | "extends": [ 18 | "plugin:@angular-eslint/recommended", 19 | "plugin:@angular-eslint/template/process-inline-templates" 20 | ], 21 | "rules": { 22 | "@angular-eslint/directive-selector": [ 23 | "error", 24 | { 25 | "type": "attribute", 26 | "prefix": "app", 27 | "style": "camelCase" 28 | } 29 | ], 30 | "@angular-eslint/component-selector": [ 31 | "error", 32 | { 33 | "type": "element", 34 | "prefix": "app", 35 | "style": "kebab-case" 36 | } 37 | ] 38 | } 39 | }, 40 | { 41 | "files": [ 42 | "*.html" 43 | ], 44 | "extends": [ 45 | "plugin:@angular-eslint/template/recommended" 46 | ], 47 | "rules": {} 48 | } 49 | ] 50 | } 51 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | ## I'm submitting a... 8 | 9 | 10 |

11 | [ ] Regression (a behavior that used to work and stopped working in a new release)
12 | [ ] Bug report  
13 | [ ] Performance issue
14 | [ ] Feature request
15 | [ ] Documentation issue or request
16 | [ ] Support request
17 | [ ] Other... Please describe:
18 | 
19 | 20 | ## Current behavior 21 | 22 | 23 | 24 | ## Expected behavior 25 | 26 | 27 | 28 | ## Minimal reproduction of the problem with instructions 29 | 30 | ## What is the motivation / use case for changing the behavior? 31 | 32 | 33 | 34 | ## Environment 35 | 36 |

37 | Angular version: X.Y.Z
38 | 
39 | 
40 | Browser:
41 | - [ ] Chrome (desktop) version XX
42 | - [ ] Chrome (Android) version XX
43 | - [ ] Chrome (iOS) version XX
44 | - [ ] Firefox version XX
45 | - [ ] Safari (desktop) version XX
46 | - [ ] Safari (iOS) version XX
47 | - [ ] IE version XX
48 | - [ ] Edge version XX
49 |  
50 | For Tooling issues:
51 | - Node version: XX  
52 | - Platform:  
53 | 
54 | Others:
55 | 
56 | 
57 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## PR Checklist 2 | 3 | Please check if your PR fulfills the following requirements: 4 | 5 | - [ ] The commit message follows our guidelines: CONTRIBUTING.md#commit 6 | - [ ] Tests for the changes have been added (for bug fixes / features) 7 | - [ ] Docs have been added / updated (for bug fixes / features) 8 | 9 | ## PR Type 10 | 11 | What kind of change does this PR introduce? 12 | 13 | 14 | 15 | ``` 16 | [ ] Bugfix 17 | [ ] Feature 18 | [ ] Code style update (formatting, local variables) 19 | [ ] Refactoring (no functional changes, no api changes) 20 | [ ] Build related changes 21 | [ ] CI related changes 22 | [ ] Documentation content changes 23 | [ ] Other... Please describe: 24 | ``` 25 | 26 | ## What is the current behavior? 27 | 28 | 29 | 30 | Issue Number: N/A 31 | 32 | ## What is the new behavior? 33 | 34 | ## Does this PR introduce a breaking change? 35 | 36 | ``` 37 | [ ] Yes 38 | [ ] No 39 | ``` 40 | 41 | 42 | 43 | ## Other information 44 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "npm" # See documentation for possible values 9 | directories: 10 | - "/" 11 | - "/projects/ngxpert/cmdk" 12 | schedule: 13 | interval: "weekly" 14 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Make a Release and Deploy on GitHub Pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v4 14 | - name: Use Node.js 15 | uses: actions/setup-node@v4 16 | with: 17 | node-version: "20.x" 18 | 19 | - name: Cypress run 20 | uses: cypress-io/github-action@v6 21 | with: 22 | component: true 23 | 24 | - name: Install dependencies 25 | env: 26 | HUSKY_SKIP_INSTALL: true 27 | run: npm ci 28 | 29 | - name: NPM install, build and deploy 30 | env: 31 | GH_TOKEN: ${{ secrets.GH_TOKEN }} 32 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 33 | run: | 34 | npm run build 35 | npm run build:lib 36 | npx semantic-release 37 | npx angular-cli-ghpages --name="mr. Dharmen's Bot" --email=shhdharmen@gmail.com --dir=dist/cmdk/browser 38 | -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- 1 | name: Test, Build and Publish a beta version 2 | 3 | on: 4 | push: 5 | branches-ignore: 6 | - main 7 | pull_request: 8 | branches: 9 | - main 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | - name: Use Node.js 18 | uses: actions/setup-node@v4 19 | with: 20 | node-version: "20.x" 21 | 22 | - name: Install dependencies 23 | env: 24 | HUSKY_SKIP_INSTALL: true 25 | run: npm ci 26 | 27 | - name: Cypress run 28 | uses: cypress-io/github-action@v6 29 | with: 30 | component: true 31 | 32 | - name: Lint, build and release 33 | env: 34 | GH_TOKEN: ${{ secrets.GH_TOKEN }} 35 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 36 | run: | 37 | npm run lint 38 | npm run build:lib 39 | npx semantic-release --debug -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # Compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | /bazel-out 8 | 9 | # Node 10 | /node_modules 11 | npm-debug.log 12 | yarn-error.log 13 | 14 | # IDEs and editors 15 | .idea/ 16 | .project 17 | .classpath 18 | .c9/ 19 | *.launch 20 | .settings/ 21 | *.sublime-workspace 22 | 23 | # Visual Studio Code 24 | .vscode/* 25 | !.vscode/settings.json 26 | !.vscode/tasks.json 27 | !.vscode/launch.json 28 | !.vscode/extensions.json 29 | .history/* 30 | 31 | # Miscellaneous 32 | /.angular/cache 33 | .sass-cache/ 34 | /connect.lock 35 | /coverage 36 | /libpeerconnection.log 37 | testem.log 38 | /typings 39 | 40 | # System files 41 | .DS_Store 42 | Thumbs.db 43 | 44 | .nx -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no -- commitlint --edit "${1}" 5 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- 1 | { 2 | "branches": [ 3 | "+([0-9])?(.{+([0-9]),x}).x", 4 | "main", 5 | "next", 6 | "next-major", 7 | { "name": "beta", "prerelease": true }, 8 | { "name": "development", "prerelease": true }, 9 | { "name": "alpha", "prerelease": true } 10 | ], 11 | "preset": "angular", 12 | "plugins": [ 13 | "@semantic-release/commit-analyzer", 14 | "@semantic-release/release-notes-generator", 15 | "@semantic-release/changelog", 16 | [ 17 | "@semantic-release/npm", 18 | { 19 | "pkgRoot": "./dist/ngxpert/cmdk", 20 | "tarballDir": "dist" 21 | } 22 | ], 23 | [ 24 | "@semantic-release/github", 25 | { 26 | "assets": ["dist/*.tgz"] 27 | } 28 | ], 29 | "@semantic-release/git" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 3 | "recommendations": ["angular.ng-template"] 4 | } 5 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 3 | "version": "0.2.0", 4 | "configurations": [ 5 | { 6 | "name": "ng serve", 7 | "type": "pwa-chrome", 8 | "request": "launch", 9 | "preLaunchTask": "npm: start", 10 | "url": "http://localhost:4200/" 11 | }, 12 | { 13 | "name": "ng test", 14 | "type": "chrome", 15 | "request": "launch", 16 | "preLaunchTask": "npm: test", 17 | "url": "http://localhost:9876/debug.html" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558 3 | "version": "2.0.0", 4 | "tasks": [ 5 | { 6 | "type": "npm", 7 | "script": "start", 8 | "isBackground": true, 9 | "problemMatcher": { 10 | "owner": "typescript", 11 | "pattern": "$tsc", 12 | "background": { 13 | "activeOnStart": true, 14 | "beginsPattern": { 15 | "regexp": "(.*?)" 16 | }, 17 | "endsPattern": { 18 | "regexp": "bundle generation complete" 19 | } 20 | } 21 | } 22 | }, 23 | { 24 | "type": "npm", 25 | "script": "test", 26 | "isBackground": true, 27 | "problemMatcher": { 28 | "owner": "typescript", 29 | "pattern": "$tsc", 30 | "background": { 31 | "activeOnStart": true, 32 | "beginsPattern": { 33 | "regexp": "(.*?)" 34 | }, 35 | "endsPattern": { 36 | "regexp": "bundle generation complete" 37 | } 38 | } 39 | } 40 | } 41 | ] 42 | } 43 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # [3.0.0](https://github.com/ngxpert/cmdk/compare/v2.0.0...v3.0.0) (2024-06-23) 2 | 3 | 4 | ### Features 5 | 6 | * ng update @angular/cdk ([855bd8a](https://github.com/ngxpert/cmdk/commit/855bd8a858d8ab0519ca934b8368f6d681e16e57)) 7 | * ng update @angular/cli ([7c0b271](https://github.com/ngxpert/cmdk/commit/7c0b2717e28d95fac1c554ca5a769dd3e9e954df)) 8 | 9 | 10 | ### BREAKING CHANGES 11 | 12 | * Updating angular cdk to 18 13 | * Adding support for Angular version 18 14 | 15 | # [2.0.0](https://github.com/ngxpert/cmdk/compare/v1.0.0...v2.0.0) (2024-04-21) 16 | 17 | 18 | ### chore 19 | 20 | * add support for angular v17 ([2b2422c](https://github.com/ngxpert/cmdk/commit/2b2422c3e06f095db9fe189d41ff1152a57709e7)) 21 | * update ngneat overview to v6 ([614bd0c](https://github.com/ngxpert/cmdk/commit/614bd0cf5cc929eae76204e9f4bc22fdfd4b0f85)) 22 | 23 | 24 | ### Features 25 | 26 | * ng update changes, ngneat overview changes ([cfd241f](https://github.com/ngxpert/cmdk/commit/cfd241f6a3091dfbfff0e8c1e8061b5e5bed232c)) 27 | 28 | 29 | ### BREAKING CHANGES 30 | 31 | * update ngneat overview to v6 32 | * migrated to angular v17 33 | 34 | # 1.0.0 (2024-02-29) 35 | 36 | 37 | ### Bug Fixes 38 | 39 | * **command.component:** re-listen to keymanager changes when items change ([f89136a](https://github.com/ngxpert/cmdk/commit/f89136a1206cd6741e4ef6c8945a0cf0735eb4c5)), closes [#4](https://github.com/ngxpert/cmdk/issues/4) 40 | * fix ng-add schematics for standalone app ([036e9ac](https://github.com/ngxpert/cmdk/commit/036e9ac0f157759a57370bc98f43972e8ec49364)) 41 | 42 | 43 | ### Documentation 44 | 45 | * add versions ([ab16198](https://github.com/ngxpert/cmdk/commit/ab16198b6a49dca48aaff27df93aae5d8eeb56c6)), closes [#7](https://github.com/ngxpert/cmdk/issues/7) 46 | 47 | 48 | ### Features 49 | 50 | * access content children ([1c29f3e](https://github.com/ngxpert/cmdk/commit/1c29f3e1fbb6a20bab0bd185572dd33ef40b87ce)) 51 | * add classes in host for group, list and separator ([393fc34](https://github.com/ngxpert/cmdk/commit/393fc34af6a000850460cd928031e4fd75f6621f)) 52 | * add loader ([21abc42](https://github.com/ngxpert/cmdk/commit/21abc42dd42f1d8eaa07fef086d03c739196089c)) 53 | * add loop in cmdk-list and improve docs ([1b8c977](https://github.com/ngxpert/cmdk/commit/1b8c977b8f3c7bb1d26b66520dad21e1077980e4)) 54 | * change item component to directive ([e6b26ca](https://github.com/ngxpert/cmdk/commit/e6b26ca66a96d40b20ba82f5c130d96cdcfbcf27)) 55 | * directives behavior and options configuration ([a167295](https://github.com/ngxpert/cmdk/commit/a167295dcc19561a6b6f048a98279877bc1ad28d)) 56 | * examples and remove usage of ng-template ([6c84743](https://github.com/ngxpert/cmdk/commit/6c84743bf7931ea4cdc171ac370c4b62365d0347)) 57 | * first commit ([78d4843](https://github.com/ngxpert/cmdk/commit/78d48431e3bed79fa1acbd917dcd29362641bc3c)) 58 | * group, list and item components ([9de269e](https://github.com/ngxpert/cmdk/commit/9de269eee414ffafaa2185558cc68eaa1977afa1)) 59 | * handle display through lib css ([10b59c3](https://github.com/ngxpert/cmdk/commit/10b59c3b34756acba7afdcf43188891f2f773334)) 60 | * handle dynamic value and item changes ([050badc](https://github.com/ngxpert/cmdk/commit/050badc58dd1ba4a6dbf0cfa72cdaafbdb46023b)) 61 | * handle group and item renderring dynamically based on search ([5fab515](https://github.com/ngxpert/cmdk/commit/5fab51582d7223e256e463c7ab464c4a29dbc6e9)) 62 | * handle majority of functinalities from commans component ([8df63da](https://github.com/ngxpert/cmdk/commit/8df63dab616eb6c5b09acefcbf696055379154b8)) 63 | * initial files ([803a759](https://github.com/ngxpert/cmdk/commit/803a75902a757ca478ac6dde7e71d0b50f44bcf5)) 64 | * lib dependencies, disabled items ([1030b05](https://github.com/ngxpert/cmdk/commit/1030b0593c89a4f9a8d1ff78b4348952f379225f)) 65 | * remove styles ([7958784](https://github.com/ngxpert/cmdk/commit/79587847d4f323a110f6093e3c795ee29b80e190)) 66 | * repo change ([9f499c0](https://github.com/ngxpert/cmdk/commit/9f499c0c54c8e9e1ee88fa60afdbee1f8740a9e4)) 67 | * scroll active item into view ([39ccf37](https://github.com/ngxpert/cmdk/commit/39ccf375300f1adb1791efca81ec41526073682c)) 68 | * use angular/cdk key manager ([4b97449](https://github.com/ngxpert/cmdk/commit/4b97449e181746f6d9de64719e734be6965de199)) 69 | * use ng-template with @ngneat/overview ([beec82e](https://github.com/ngxpert/cmdk/commit/beec82e9c4d753b9fd8c72d14ffb18ebb23feea3)) 70 | 71 | 72 | ### BREAKING CHANGES 73 | 74 | * Supports Angular 16 75 | -------------------------------------------------------------------------------- /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 contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at shhdharmen@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to CMDK 2 | 3 | 🙏 We would ❤️ for you to contribute to cmdk and help make it even better than it is today! 4 | 5 | ## Developing 6 | 7 | Start by installing all dependencies: 8 | 9 | ```bash 10 | npm i 11 | ``` 12 | 13 | Run the playground app: 14 | 15 | ```bash 16 | npm start 17 | ``` 18 | 19 | ## Testing 20 | 21 | ### Run cypress tests 22 | 23 | ```bash 24 | npm start 25 | npm run unit 26 | ``` 27 | 28 | Cypress window will open, you can click on individual tests. 29 | 30 | ## Building 31 | 32 | ```bash 33 | npm run build:lib 34 | ``` 35 | 36 | ## Coding Rules 37 | 38 | To ensure consistency throughout the source code, keep these rules in mind as you are working: 39 | 40 | - All features or bug fixes **must be tested** by one or more specs (unit-tests). 41 | - All public API methods **must be documented**. 42 | 43 | ## Commit Message Guidelines 44 | 45 | ### TL;DR 46 | 47 | Simply run commit script after staging your files to take care about commit message guidelines 48 | 49 | ```bash 50 | npm run commit 51 | ``` 52 | 53 | ### Details 54 | 55 | We have very precise rules over how our git commit messages can be formatted. This leads to **more 56 | readable messages** that are easy to follow when looking through the **project history**. But also, 57 | we use the git commit messages to **generate the cmdk changelog**. 58 | 59 | #### Commit Message Format 60 | 61 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special 62 | format that includes a **type**, a **scope** and a **subject**: 63 | 64 | ``` 65 | (): 66 | 67 | 68 | 69 |