Skip to content

Commit 49ef5c1

Browse files
committed
feat: version 1.0.0
0 parents  commit 49ef5c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2093
-0
lines changed

.angular-cli.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "your-awesome-library"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist/demo",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "yal",
21+
"styles": [
22+
"styles.scss"
23+
],
24+
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
26+
"environments": {
27+
"dev": "environments/environment.ts",
28+
"prod": "environments/environment.prod.ts"
29+
}
30+
}
31+
],
32+
"e2e": {
33+
"protractor": {
34+
"config": "./protractor.conf.js"
35+
}
36+
},
37+
"lint": [
38+
{
39+
"project": "src/tsconfig.app.json"
40+
},
41+
{
42+
"project": "src/tsconfig.spec.json"
43+
},
44+
{
45+
"project": "e2e/tsconfig.e2e.json"
46+
}
47+
],
48+
"test": {
49+
"karma": {
50+
"config": "./karma.conf.js"
51+
}
52+
},
53+
"defaults": {
54+
"styleExt": "scss",
55+
"component": {}
56+
}
57+
}

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://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+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage/*
31+
/libpeerconnection.log
32+
npm-debug.log
33+
testem.log
34+
/typings
35+
36+
# e2e
37+
/e2e/*.js
38+
/e2e/*.map
39+
40+
# System Files
41+
.DS_Store
42+
Thumbs.db
43+
44+
# Binary files
45+
*.tgz

CHANGELOG.md

+197
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
<a name="1.0.0"></a>
2+
# [1.0.0](https://github.com/isaacplmann/ngx-contextmenu) (2017-03-31)
3+
4+
5+
### BREAKING CHANGES
6+
7+
* **position:** Context menu is injected on the root app element to avoid having to compensate for css positioning
8+
* **dependencies:** Depends on Angular 4+
9+
* **template:** Use ng-template instead of template
10+
* **declarative:** No imperative way of declaring context menus. i.e. can't passing `actions` into `contextMenuService.show.next({})`
11+
12+
13+
<a name="0.8.1"></a>
14+
# [0.8.1](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.8.0...v0.8.1) (2017-02-28)
15+
16+
17+
### Bug Fixes
18+
19+
* **position:** Default to 100x100 size if menuElement is undefined
20+
21+
22+
23+
<a name="0.8.0"></a>
24+
# [0.8.0](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.7...v0.8.0) (2017-02-27)
25+
26+
27+
### Features
28+
29+
* **passive:** Add a passive menuitem that will not close the menu when clicked
30+
31+
32+
33+
<a name="0.7.7"></a>
34+
# [0.7.7](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.6...v0.7.7) (2017-02-10)
35+
36+
37+
### Bug Fixes
38+
39+
* **position:** Use getComputedStyle to calculate offsetParent style
40+
41+
42+
43+
<a name="0.7.6"></a>
44+
# [0.7.6](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.5...v0.7.6) (2017-02-06)
45+
46+
47+
### Bug Fixes
48+
49+
* **position:** Don't offset context menu when inside fixed positioned element
50+
51+
52+
53+
<a name="0.7.5"></a>
54+
# [0.7.5](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.4...v0.7.5) (2017-02-01)
55+
56+
57+
### Bug Fixes
58+
59+
* **position:** Don't offset context menu when inside absolute positioned element
60+
61+
62+
63+
<a name="0.7.4"></a>
64+
# [0.7.4](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.3...v0.7.4) (2017-01-30)
65+
66+
67+
### Bug Fixes
68+
69+
* **position:** Recover when context menu offsetParent is undefined
70+
71+
72+
73+
<a name="0.7.3"></a>
74+
# [0.7.3](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.1...v0.7.3) (2017-01-27)
75+
76+
77+
### Bug Fixes
78+
79+
* **position:** Position contextmenu when parent element has 3d transform
80+
81+
82+
83+
<a name="0.7.2"></a>
84+
# 0.7.2 (2017-01-27)
85+
86+
### Bad build - ignore
87+
88+
89+
<a name="0.7.1"></a>
90+
# [0.7.1](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.7.0...v0.7.1) (2017-01-18)
91+
92+
93+
### Bug Fixes
94+
95+
* **closing:** Close context menu with esc key in Safari
96+
97+
98+
99+
<a name="0.7.0"></a>
100+
# [0.7.0](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.6.0...v0.7.0) (2017-01-05)
101+
102+
103+
### Features
104+
105+
* **dividers:** Add appropriate divider class for bootstrap 4
106+
* **position:** Position context menu to the left or above the mouse location, if the menu goes outside the body element
107+
* **closing:** Hide the context menu on escape keydown or window scroll events
108+
109+
110+
111+
<a name="0.6.0"></a>
112+
# [0.6.0](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.5.3...v0.6.0) (2016-12-08)
113+
114+
115+
### Features
116+
117+
* **dividers:** Add the ability to create dividers in the context menu ([c050ae5](https://github.com/isaacplmann/angular2-contextmenu/commit/c050ae5))
118+
119+
120+
121+
<a name="0.5.3"></a>
122+
## [0.5.3](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.5.2...v0.5.3) (2016-12-02)
123+
124+
125+
### Bug Fixes
126+
127+
* **styles:** Remove invisible context menu items from the DOM instead of using [hidden] attribute ([1a7121e](https://github.com/isaacplmann/angular2-contextmenu/commit/1a7121e))
128+
129+
130+
131+
<a name="0.5.1"></a>
132+
# [0.5.1](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.4.1...v0.5.1) (2016-10-20)
133+
- Add `forRoot` function to globally set `useBootstrap4`
134+
135+
136+
<a name="0.4.1"></a>
137+
## [0.4.1](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.4.1) (2016-10-12)
138+
- Fix bug `[enabled]` as a function not blocking execution
139+
140+
141+
<a name="0.4.0"></a>
142+
# [0.4.0](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.4.0) (2016-10-11)
143+
- `[contextMenu]` and `[contextMenuSubject]` to automate wiring up the context menu
144+
- `[visible]` and `[enabled]` can be booleans or functions
145+
- Can have multiple context menus per component
146+
147+
148+
<a name="0.2.1"></a>
149+
## [0.2.1](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.2.1) (2016-09-12)
150+
- Fix type definition for `ContextMenuService` to make `actions` optional
151+
152+
153+
<a name="0.2.0"></a>
154+
# [0.2.0](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.2.0) (2016-09-12)
155+
- Add `ContextMenuItemComponent` for declarative configuration
156+
157+
158+
<a name="0.1.11"></a>
159+
## [0.1.11](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.1.11) (2016-07-28)
160+
161+
162+
163+
<a name="0.1.10"></a>
164+
## [0.1.10](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.1.10) (2016-07-28)
165+
166+
167+
168+
<a name="0.1.10"></a>
169+
## [0.1.10](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.5...v0.1.10) (2016-07-26)
170+
171+
172+
173+
<a name="0.1.5"></a>
174+
## [0.1.5](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.4...v0.1.5) (2016-05-25)
175+
176+
177+
178+
<a name="0.1.4"></a>
179+
## [0.1.4](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.3...v0.1.4) (2016-05-25)
180+
181+
182+
183+
<a name="0.1.3"></a>
184+
## [0.1.3](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.2...v0.1.3) (2016-05-25)
185+
186+
187+
188+
<a name="0.1.2"></a>
189+
## [0.1.2](https://github.com/isaacplmann/angular2-contextmenu/compare/v0.1.1...v0.1.2) (2016-05-25)
190+
191+
192+
193+
<a name="0.1.1"></a>
194+
## 0.1.1 (2016-05-25)
195+
196+
197+

DEVELOPER.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
There are a few npm scripts provided with [ngx-cli-library-seed](https://github.com/isaacplmann/ngx-cli-library-seed).
2+
3+
- `start`: Run the demo
4+
- `build`: Build the demo and the library
5+
- `build:demo`: Build the demo
6+
- `build:lib`: Build the library
7+
- `test`: Run all unit tests
8+
- `e2e`: Run all e2e tests
9+
- `pub`: Publish the demo and the library
10+
- `pub:demo`: Build and deploy the demo to github pages
11+
- `pub:lib`: Build and publish the library to npm
12+
- `pack:lib`: Build and pack a local `*.tgz` file of the library

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)