feat: add calendar with week numbers example (#5515)

This commit is contained in:
Sergey Andrievskiy 2019-09-20 16:14:25 +03:00 committed by Maksim Karatkevich
parent 6a9a33d0de
commit 01fc61f7a6
3 changed files with 58 additions and 16 deletions

24
package-lock.json generated
View file

@ -1647,24 +1647,24 @@
}
},
"@nebular/auth": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/@nebular/auth/-/auth-4.1.2.tgz",
"integrity": "sha512-fLCZgQwHgI3B8Zh4+y8R6n4WP+vyrrkDH9PkrNbAWU2eMUjOh4xobkGrFZRtu/XxMS/Apq5BKV2OxrLcEh4nEQ=="
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@nebular/auth/-/auth-4.3.1.tgz",
"integrity": "sha512-yRBRr88d9e7xKX+qKT3JxqhFIHoPI6Rm2RmbhgdxDgh2yrGiaDO+1DZrDXbZHlvtZ75Jr2meerJKLTVhIxRagA=="
},
"@nebular/eva-icons": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/@nebular/eva-icons/-/eva-icons-4.1.2.tgz",
"integrity": "sha512-awIRdhtncfdJVsn1JqaZfDYM0OSeIl3PH+MQKDJ4sAw1ARAiAkfm9ia53XI/rDayhQS8rm4mK28xuXGXc/9DHw=="
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@nebular/eva-icons/-/eva-icons-4.3.1.tgz",
"integrity": "sha512-GxxhIbxfdTUyZ5xljMiN5vjqS2Ri+HJYu7IeE0dmL4C80TnN/qYRhqlWt8P26Vwl00oomuMBF4Dgy12b3Efw9g=="
},
"@nebular/security": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/@nebular/security/-/security-4.1.2.tgz",
"integrity": "sha512-MdG6UkCyeiKTyzdk8gOWn8tNuZhIQPW01142l/DowSeNKiu/+Zmj8FbkM+0c1IobhLKrS/TdoUP/3SODWP9S4g=="
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@nebular/security/-/security-4.3.1.tgz",
"integrity": "sha512-7iRim2eLF9RjwYlmQvdFveuVa8JBfKjmCbkNV1CmWsP9T7rjomNDzKp+ij5p8YHHj/la52Pm/27s20ivsTS6dQ=="
},
"@nebular/theme": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/@nebular/theme/-/theme-4.1.2.tgz",
"integrity": "sha512-6V3Fk3dQTm9yJNe3wDh20ljZen8C9Btvmtuk/nQHdLOyWG7/Znkean1fgmjfEm/98rfgj01a6RksEVXYnfLcVQ==",
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@nebular/theme/-/theme-4.3.1.tgz",
"integrity": "sha512-c/isx60KxIEQaSTf7n24VIZc4eA6iYVJS9LE6z5+Xw5a6SAf73BES7pA7PFk9/n6uGbGMVqKZXP3wK1Hru10rA==",
"requires": {
"intersection-observer": "0.5.0"
}

View file

@ -39,17 +39,30 @@
"@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",
@ -57,6 +70,8 @@
"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"
@ -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",

View file

@ -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>