Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix years refresh after minYear/maxYear changes #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/datepicker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ng2-datepicker

ng2-datepicker is simple and minimal Angular datepicker component. It is fully customizable.
ng2-datepicker is simple and minimal Angular datepicker component. It is fully customizable. Based on 'bleenco' ng2-datepicker. In this package was fixed bug at year select, which appears after dynamically changed minYear/maxYear.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions projects/datepicker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng2-datepicker",
"version": "12.0.0",
"name": "ng2-datepicker-mannavard",
"version": "12.1.0",
"author": {
"name": "Jan Kuri",
"email": "jkuri88@gmail.com"
Expand Down
1 change: 1 addition & 0 deletions projects/datepicker/src/lib/datepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export class DatepickerComponent implements ControlValueAccessor, OnInit, OnChan
toggleView(): void {
this.view = this.view === 'days' ? 'years' : 'days';
if (this.view === 'years') {
this.initYears();
this.ref.detectChanges();
this.scrollToYear();
}
Expand Down
5 changes: 4 additions & 1 deletion projects/datepicker/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"module": "es2015",
"target": "es2015",
"declaration": true,
"declarationMap": true,
Expand All @@ -13,7 +14,9 @@
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
"enableResourceInlining": true,
"flatModuleOutFile": "ng2-datepicker.js",
"flatModuleId": "ng2-datepicker",
},
"exclude": ["src/test.ts", "**/*.spec.ts"]
}