Skip to content

Commit 8b366a4

Browse files
authored
Merge pull request #121 from coreui/feat-sidebar-nav-link-attributes
feat: sidebar nav-link attributes
2 parents 31b2955 + 90320e0 commit 8b366a4

File tree

3 files changed

+55
-16
lines changed

3 files changed

+55
-16
lines changed

Diff for: CHANGELOG.md

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
## [angular](./README.md) version `changelog`
22

3+
###### `v2.1.0`
4+
- feat: sidebar nav-link `attributes` - optional JS object with valid JS API naming:
5+
- valid attributes: `rel`, `target`, `hidden`, `disabled`, etc...
6+
- item example (`_nav.ts`):
7+
```
8+
...
9+
{
10+
name: 'Try CoreUI PRO',
11+
url: 'https://coreui.io/pro/react/',
12+
icon: 'cui-layers icons',
13+
variant: 'danger',
14+
attributes: { target: '_blank', rel: "noopener" },
15+
},
16+
...
17+
```
18+
- update: `@coreui/angular` to `2.1.0`
19+
- update: `@coreui/coreui` to `^2.1.3`
20+
- update: `ngx-bootstrap` to `^3.1.2`
21+
- update: `@angular/cli` to `^6.2.8`
22+
- update: `@types/jasmine` to `^2.8.12`
23+
- update: `@types/jasminewd2` to `^2.0.6`
24+
- update: `@types/node` to `^10.12.11`
25+
- update: `jasmine-core` to `^3.3.0`
26+
- update: `karma` to `^3.1.3`
27+
- update: `karma-jasmine-html-reporter` to `^1.4.0`
28+
29+
330
###### `v2.0.1`
431
- refactor(modals): buttons spacing
532
- refactor(brand-buttons): buttons spacing
@@ -39,7 +66,7 @@
3966
- fix(forms): autocomplete
4067
- fix(login): form, autocomplete
4168
- fix(register): form, autocomplete
42-
- update: `@types/node` to `10.7.0`",`
69+
- update: `@types/node` to `10.7.0`
4370
- update: `codelyzer` to `4.4.4`
4471
- update: `karma-jasmine-html-reporter` to `1.3.0`
4572
- update: `typescript` to `2.9.2`
@@ -58,7 +85,7 @@
5885
- update: `codelyzer` to `4.4.3`
5986
- update: `jasmine-core` to `3.2.0`
6087
- update: `karma` to `3.0.0`
61-
- update: `protractor": "5.4.0`
88+
- update: `protractor` to `5.4.0`
6289
- update: `ts-node` to `7.0.1`
6390
- update: `tslint` to `5.11.0`
6491

Diff for: package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-angular-admin-template",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "CoreUI Free Angular 2+ Admin Template",
55
"author": {
66
"name": "Łukasz Holeczek",
@@ -36,8 +36,8 @@
3636
"@angular/platform-browser": "^6.1.10",
3737
"@angular/platform-browser-dynamic": "^6.1.10",
3838
"@angular/router": "^6.1.10",
39-
"@coreui/angular": "^2.0.0-rc.1",
40-
"@coreui/coreui": "^2.0.20",
39+
"@coreui/angular": "2.1.0",
40+
"@coreui/coreui": "^2.1.3",
4141
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
4242
"@coreui/icons": "0.3.0",
4343
"bootstrap": "^4.1.3",
@@ -48,31 +48,31 @@
4848
"moment": "^2.22.2",
4949
"mutationobserver-shim": "^0.3.2",
5050
"ng2-charts": "^1.6.0",
51-
"ngx-bootstrap": "^3.0.1",
51+
"ngx-bootstrap": "^3.1.2",
5252
"ngx-perfect-scrollbar": "^6.3.1",
5353
"rxjs": "^6.3.3",
5454
"rxjs-compat": "^6.3.3",
5555
"simple-line-icons": "^2.4.1",
5656
"ts-helpers": "^1.1.2",
57-
"tsickle": "^0.33.0",
57+
"tsickle": "^0.34.0",
5858
"zone.js": "^0.8.26"
5959
},
6060
"devDependencies": {
6161
"@angular-devkit/build-angular": "^0.7.5",
62-
"@angular/cli": "^6.2.6",
62+
"@angular/cli": "^6.2.8",
6363
"@angular/compiler-cli": "^6.1.10",
6464
"@angular/language-service": "^6.1.10",
65-
"@types/jasmine": "^2.8.9",
66-
"@types/jasminewd2": "^2.0.5",
67-
"@types/node": "^10.12.0",
65+
"@types/jasmine": "^2.8.12",
66+
"@types/jasminewd2": "^2.0.6",
67+
"@types/node": "^10.12.11",
6868
"codelyzer": "^4.5.0",
69-
"jasmine-core": "^3.2.1",
69+
"jasmine-core": "^3.3.0",
7070
"jasmine-spec-reporter": "^4.2.1",
71-
"karma": "^3.0.0",
71+
"karma": "^3.1.3",
7272
"karma-chrome-launcher": "^2.2.0",
7373
"karma-coverage-istanbul-reporter": "^2.0.4",
7474
"karma-jasmine": "^1.1.2",
75-
"karma-jasmine-html-reporter": "^1.3.1",
75+
"karma-jasmine-html-reporter": "^1.4.0",
7676
"protractor": "^5.4.1",
7777
"ts-node": "^7.0.1",
7878
"tslint": "^5.11.0",

Diff for: src/app/_nav.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,29 @@ export const navItems = [
215215
}
216216
]
217217
},
218+
{
219+
name: 'Disabled',
220+
url: '/dashboard',
221+
icon: 'icon-ban',
222+
badge: {
223+
variant: 'secondary',
224+
text: 'NEW'
225+
},
226+
attributes: { disabled: true },
227+
},
218228
{
219229
name: 'Download CoreUI',
220230
url: 'http://coreui.io/angular/',
221231
icon: 'icon-cloud-download',
222232
class: 'mt-auto',
223-
variant: 'success'
233+
variant: 'success',
234+
attributes: { target: '_blank', rel: 'noopener' }
224235
},
225236
{
226237
name: 'Try CoreUI PRO',
227238
url: 'http://coreui.io/pro/angular/',
228239
icon: 'icon-layers',
229-
variant: 'danger'
240+
variant: 'danger',
241+
attributes: { target: '_blank', rel: 'noopener' }
230242
}
231243
];

0 commit comments

Comments
 (0)