Skip to content

Commit

Permalink
Merge pull request #121 from coreui/feat-sidebar-nav-link-attributes
Browse files Browse the repository at this point in the history
feat: sidebar nav-link attributes
  • Loading branch information
xidedix authored Dec 3, 2018
2 parents 31b2955 + 90320e0 commit 8b366a4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 16 deletions.
31 changes: 29 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
## [angular](./README.md) version `changelog`

###### `v2.1.0`
- feat: sidebar nav-link `attributes` - optional JS object with valid JS API naming:
- valid attributes: `rel`, `target`, `hidden`, `disabled`, etc...
- item example (`_nav.ts`):
```
...
{
name: 'Try CoreUI PRO',
url: 'https://coreui.io/pro/react/',
icon: 'cui-layers icons',
variant: 'danger',
attributes: { target: '_blank', rel: "noopener" },
},
...
```
- update: `@coreui/angular` to `2.1.0`
- update: `@coreui/coreui` to `^2.1.3`
- update: `ngx-bootstrap` to `^3.1.2`
- update: `@angular/cli` to `^6.2.8`
- update: `@types/jasmine` to `^2.8.12`
- update: `@types/jasminewd2` to `^2.0.6`
- update: `@types/node` to `^10.12.11`
- update: `jasmine-core` to `^3.3.0`
- update: `karma` to `^3.1.3`
- update: `karma-jasmine-html-reporter` to `^1.4.0`


###### `v2.0.1`
- refactor(modals): buttons spacing
- refactor(brand-buttons): buttons spacing
Expand Down Expand Up @@ -39,7 +66,7 @@
- fix(forms): autocomplete
- fix(login): form, autocomplete
- fix(register): form, autocomplete
- update: `@types/node` to `10.7.0`",`
- update: `@types/node` to `10.7.0`
- update: `codelyzer` to `4.4.4`
- update: `karma-jasmine-html-reporter` to `1.3.0`
- update: `typescript` to `2.9.2`
Expand All @@ -58,7 +85,7 @@
- update: `codelyzer` to `4.4.3`
- update: `jasmine-core` to `3.2.0`
- update: `karma` to `3.0.0`
- update: `protractor": "5.4.0`
- update: `protractor` to `5.4.0`
- update: `ts-node` to `7.0.1`
- update: `tslint` to `5.11.0`

Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coreui/coreui-free-angular-admin-template",
"version": "2.0.1",
"version": "2.1.0",
"description": "CoreUI Free Angular 2+ Admin Template",
"author": {
"name": "Łukasz Holeczek",
Expand Down Expand Up @@ -36,8 +36,8 @@
"@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^6.1.10",
"@angular/router": "^6.1.10",
"@coreui/angular": "^2.0.0-rc.1",
"@coreui/coreui": "^2.0.20",
"@coreui/angular": "2.1.0",
"@coreui/coreui": "^2.1.3",
"@coreui/coreui-plugin-chartjs-custom-tooltips": "^1.2.0",
"@coreui/icons": "0.3.0",
"bootstrap": "^4.1.3",
Expand All @@ -48,31 +48,31 @@
"moment": "^2.22.2",
"mutationobserver-shim": "^0.3.2",
"ng2-charts": "^1.6.0",
"ngx-bootstrap": "^3.0.1",
"ngx-bootstrap": "^3.1.2",
"ngx-perfect-scrollbar": "^6.3.1",
"rxjs": "^6.3.3",
"rxjs-compat": "^6.3.3",
"simple-line-icons": "^2.4.1",
"ts-helpers": "^1.1.2",
"tsickle": "^0.33.0",
"tsickle": "^0.34.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.7.5",
"@angular/cli": "^6.2.6",
"@angular/cli": "^6.2.8",
"@angular/compiler-cli": "^6.1.10",
"@angular/language-service": "^6.1.10",
"@types/jasmine": "^2.8.9",
"@types/jasminewd2": "^2.0.5",
"@types/node": "^10.12.0",
"@types/jasmine": "^2.8.12",
"@types/jasminewd2": "^2.0.6",
"@types/node": "^10.12.11",
"codelyzer": "^4.5.0",
"jasmine-core": "^3.2.1",
"jasmine-core": "^3.3.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^3.0.0",
"karma": "^3.1.3",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^1.3.1",
"karma-jasmine-html-reporter": "^1.4.0",
"protractor": "^5.4.1",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
Expand Down
16 changes: 14 additions & 2 deletions src/app/_nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,29 @@ export const navItems = [
}
]
},
{
name: 'Disabled',
url: '/dashboard',
icon: 'icon-ban',
badge: {
variant: 'secondary',
text: 'NEW'
},
attributes: { disabled: true },
},
{
name: 'Download CoreUI',
url: 'http://coreui.io/angular/',
icon: 'icon-cloud-download',
class: 'mt-auto',
variant: 'success'
variant: 'success',
attributes: { target: '_blank', rel: 'noopener' }
},
{
name: 'Try CoreUI PRO',
url: 'http://coreui.io/pro/angular/',
icon: 'icon-layers',
variant: 'danger'
variant: 'danger',
attributes: { target: '_blank', rel: 'noopener' }
}
];

0 comments on commit 8b366a4

Please sign in to comment.