File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## [ Unreleased]
44
5+ ### BREAKING CHANGES
6+
7+ - ** Dependency** : Require Angular 21
8+
59## [ 20.0.0] - 2025-06-13
610
711### BREAKING CHANGES
Original file line number Diff line number Diff line change 7575 "executor" : " @nx/jest:jest" ,
7676 "outputs" : [" {workspaceRoot}/coverage/{projectRoot}" ],
7777 "options" : {
78- "jestConfig" : " apps/demo/jest.config.ts"
78+ "jestConfig" : " apps/demo/jest.config.ts" ,
79+ "tsConfig" : " apps/demo/tsconfig.spec.json"
7980 }
8081 }
8182 }
Original file line number Diff line number Diff line change 1+ import { provideZoneChangeDetection } from "@angular/core" ;
12import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
23import { AppModule } from './app/app.module' ;
34
45platformBrowserDynamic ( )
5- . bootstrapModule ( AppModule )
6+ . bootstrapModule ( AppModule , { applicationProviders : [ provideZoneChangeDetection ( ) ] , } )
67 . catch ( ( err ) => console . error ( err ) ) ;
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ globalThis.ngJest = {
55 errorOnUnknownProperties : true ,
66 } ,
77} ;
8- import 'jest-preset-angular/setup-jest' ;
8+ import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone' ;
9+
10+ setupZoneTestEnv ( ) ;
Original file line number Diff line number Diff line change 88 "noImplicitOverride" : true ,
99 "noPropertyAccessFromIndexSignature" : true ,
1010 "noImplicitReturns" : true ,
11- "noFallthroughCasesInSwitch" : true
11+ "noFallthroughCasesInSwitch" : true ,
12+ "module" : " preserve" ,
13+ "moduleResolution" : " bundler" ,
14+ "lib" : [" dom" , " es2022" ]
1215 },
1316 "files" : [],
1417 "include" : [],
2831 "enableI18nLegacyMessageIdFormat" : false ,
2932 "strictInjectionParameters" : true ,
3033 "strictInputAccessModifiers" : true ,
31- "strictTemplates" : true
34+ "strictTemplates" : true ,
35+ "strictDomEventTypes" : false
3236 }
3337}
Original file line number Diff line number Diff line change 22 "extends" : " ./tsconfig.json" ,
33 "compilerOptions" : {
44 "outDir" : " ../../dist/out-tsc" ,
5- "module" : " commonjs " ,
5+ "module" : " preserve " ,
66 "target" : " es2016" ,
7- "types" : [" jest" , " node" ]
7+ "types" : [" jest" , " node" ],
8+ "moduleResolution" : " bundler" ,
9+ "isolatedModules" : true
810 },
911 "files" : [" src/test-setup.ts" ],
1012 "include" : [
Original file line number Diff line number Diff line change 1+ import { fileURLToPath } from "node:url" ;
2+ import { dirname } from "node:path" ;
13import type { StorybookConfig } from '@storybook/angular' ;
24import remarkGfm from 'remark-gfm' ;
35
46const config : StorybookConfig = {
57 framework : {
6- name : ' @storybook/angular' ,
8+ name : getAbsolutePath ( " @storybook/angular" ) ,
79 options : { } ,
810 } ,
911
1012 stories : [ '../**/*.@(mdx|stories.@(js|jsx|ts|tsx))' ] ,
1113
1214 addons : [
1315 {
14- name : ' @storybook/addon-docs' ,
16+ name : getAbsolutePath ( " @storybook/addon-docs" ) ,
1517 options : {
1618 mdxPluginOptions : {
1719 mdxCompileOptions : {
@@ -33,3 +35,7 @@ const config: StorybookConfig = {
3335} ;
3436
3537export default config ;
38+
39+ function getAbsolutePath ( value : string ) : any {
40+ return dirname ( fileURLToPath ( import . meta. resolve ( `${ value } /package.json` ) ) ) ;
41+ }
Original file line number Diff line number Diff line change 2424 "url" : " git+ssh://git@github.com:PerfectMemory/ngx-contextmenu.git"
2525 },
2626 "peerDependencies" : {
27- "@angular/cdk" : " ^20 .0.3 " ,
28- "@angular/common" : " ^20 .0.3 " ,
29- "@angular/core" : " ^20 .0.3 "
27+ "@angular/cdk" : " ^21 .0.6 " ,
28+ "@angular/common" : " ^21 .0.6 " ,
29+ "@angular/core" : " ^21 .0.6 "
3030 },
3131 "dependencies" : {
3232 "tslib" : " ^2.3.0"
Original file line number Diff line number Diff line change 1010 "executor" : " @nx/angular:package" ,
1111 "outputs" : [" {workspaceRoot}/dist/{projectRoot}" ],
1212 "options" : {
13- "project" : " libs/ngx-contextmenu/ng-package.json"
13+ "project" : " libs/ngx-contextmenu/ng-package.json" ,
14+ "tsConfig" : " libs/ngx-contextmenu/tsconfig.lib.json"
1415 },
1516 "configurations" : {
1617 "production" : {
1718 "tsConfig" : " libs/ngx-contextmenu/tsconfig.lib.prod.json"
1819 },
19- "development" : {
20- "tsConfig" : " libs/ngx-contextmenu/tsconfig.lib.json"
21- }
20+ "development" : {}
2221 },
2322 "defaultConfiguration" : " production"
2423 },
2524 "test" : {
2625 "executor" : " @nx/jest:jest" ,
2726 "outputs" : [" {workspaceRoot}/coverage/{projectRoot}" ],
2827 "options" : {
29- "jestConfig" : " libs/ngx-contextmenu/jest.config.ts"
28+ "jestConfig" : " libs/ngx-contextmenu/jest.config.ts" ,
29+ "tsConfig" : " libs/ngx-contextmenu/tsconfig.spec.json"
3030 }
3131 },
3232 "lint" : {
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { Meta } from '@storybook/addon-docs/blocks';
44
55# Keyboard navigation
66
7- | Key | Code | Action |
8- | :---------- | : --------- | -------------------------------------------------- | --- | -------------------------------------------------------- |
9- | ContextMenu | 93 | Open a contextmenu when its DOM element is focused |
10- | ArrowDown | 40 | Move to next menu item (wrapping) |
11- | ArrowUp | 38 | Move to previous menu item (wrapping) |
12- | ArrowLeft | ArrowRight | 37 | 39 | Open / Close submenu depending on ` dir ` (` ltr ` or ` ltr ` ) |
13- | Enter | Space | 13 | 32 | Open submenu or execute current menu item |
14- | Esc | 27 | Close current menu |
7+ | Key | Code | Action |
8+ | :--------------------- | : ------ | -------------------------------------------------------- |
9+ | ContextMenu | 93 | Open a contextmenu when its DOM element is focused |
10+ | ArrowDown | 40 | Move to next menu item (wrapping) |
11+ | ArrowUp | 38 | Move to previous menu item (wrapping) |
12+ | ArrowLeft / ArrowRight | 37 / 39 | Open / Close submenu depending on ` dir ` (` ltr ` or ` ltr ` ) |
13+ | Enter / Space | 13 / 32 | Open submenu or execute current menu item |
14+ | Esc | 27 | Close current menu |
You can’t perform that action at this time.
0 commit comments