Skip to content

Commit

Permalink
feat: add calendar with week numbers example (#5515)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored and Maksim Karatkevich committed May 22, 2020
1 parent 6a9a33d commit 01fc61f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 16 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,39 @@
"@angular/platform-browser": "^8.0.0",
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"@nebular/auth": "4.1.2",
"@nebular/eva-icons": "4.1.2",
"@nebular/security": "4.1.2",
"@nebular/theme": "4.1.2",
"@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "4.3.1",
"@nebular/eva-icons": "4.3.1",
"@nebular/security": "4.3.1",
"@nebular/theme": "4.3.1",
"@swimlane/ngx-charts": "^10.0.0",
"angular-tree-component": "7.2.0",
"angular2-chartjs": "0.4.1",
"angular2-toaster": "^7.0.0",
"bootstrap": "4.3.1",
"chart.js": "2.7.1",
"ckeditor": "4.7.3",
"classlist.js": "1.1.20150312",
"core-js": "2.5.1",
"echarts": "^4.0.2",
"eva-icons": "^1.1.0",
"intl": "1.2.5",
"ionicons": "2.0.1",
"leaflet": "1.2.0",
"nebular-icons": "1.1.0",
"ng2-ckeditor": "^1.2.2",
"ng2-completer": "2.0.8",
"ng2-smart-table": "1.3.5",
"ngx-echarts": "^4.0.1",
"node-sass": "^4.12.0",
"normalize.css": "6.0.0",
"pace-js": "1.0.2",
"roboto-fontface": "0.8.0",
"rxjs": "6.5.2",
"rxjs-compat": "6.3.0",
"socicon": "3.0.5",
"tinymce": "4.5.7",
"tslib": "^1.9.0",
"typeface-exo": "0.0.22",
"web-animations-js": "github:angular/web-animations-js#release_pr208",
"zone.js": "~0.9.1"
Expand All @@ -67,8 +82,12 @@
"@angular/compiler-cli": "^8.0.0",
"@angular/language-service": "8.0.0",
"@compodoc/compodoc": "1.0.1",
"@fortawesome/fontawesome-free": "^5.2.0",
"@types/d3-color": "1.0.5",
"@types/googlemaps": "^3.30.4",
"@types/jasmine": "2.5.54",
"@types/jasminewd2": "2.0.3",
"@types/leaflet": "1.2.3",
"@types/node": "6.0.90",
"codelyzer": "^5.0.1",
"conventional-changelog-cli": "1.3.4",
Expand Down
23 changes: 23 additions & 0 deletions src/app/pages/extra-components/calendar/calendar.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="calendars">
<div class="calendar-container">
<span class="subtitle">
Selected date: {{ date | date }}
</span>
<nb-calendar [(date)]="date" [boundingMonth]="true" showWeekNumber></nb-calendar>
</div>
<div class="calendar-container">
<span class="subtitle">
Selected range: {{ range.start | date }} - {{ range.end | date }}
</span>
<nb-calendar-range [(range)]="range"></nb-calendar-range>
</div>
<div class="calendar-container">
<span class="subtitle">
Selected date: {{ date2 | date }}
</span>
<nb-calendar
[(date)]="date2"
[dayCellComponent]="dayCellComponent"
></nb-calendar>
</div>
</div>

0 comments on commit 01fc61f

Please sign in to comment.