From 8be505090c93a5d2f99f20d589a2597d21cc9bd5 Mon Sep 17 00:00:00 2001 From: motss Date: Mon, 9 Nov 2015 18:35:16 +0800 Subject: [PATCH] Added full animation according to specs, 2 additional animations, unit test, ready for release --- bower.json | 6 +- datepicker-slide-from-left-animation.html | 44 ++++++++ datepicker-slide-from-right-animation.html | 44 ++++++++ demo/index.html | 11 +- jv-datepicker-dialog-theme.html | 2 +- jv-datepicker-dialog.html | 5 +- jv-datepicker-theme.html | 5 + jv-datepicker.html | 113 +++++++++++++++++---- test/jv-datepicker-test.html | 83 +++++---------- 9 files changed, 219 insertions(+), 94 deletions(-) create mode 100644 datepicker-slide-from-left-animation.html create mode 100644 datepicker-slide-from-right-animation.html diff --git a/bower.json b/bower.json index b2d7597a..29aca073 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jv-datepicker", - "version": "1.7.2", + "version": "2.0.0", "authors": [ "motss " ], @@ -35,7 +35,9 @@ "paper-dialog": "PolymerElements/paper-dialog#~1.0.1", "paper-icon-button": "PolymerElements/paper-icon-button#~1.0.3", "iron-list": "PolymerElements/iron-list#~1.1.5", - "paper-slider": "PolymerElements/paper-slider#~1.0.7" + "paper-slider": "PolymerElements/paper-slider#~1.0.7", + "test-fixture": "PolymerElements/test-fixture#~1.0.1", + "iron-test-helpers": "PolymerElements/iron-test-helpers#~1.0.6" }, "devDependencies": { "iron-component-page": "PolymerElements/iron-component-page#^1.0.0" diff --git a/datepicker-slide-from-left-animation.html b/datepicker-slide-from-left-animation.html new file mode 100644 index 00000000..05172b53 --- /dev/null +++ b/datepicker-slide-from-left-animation.html @@ -0,0 +1,44 @@ + + + + + + + diff --git a/datepicker-slide-from-right-animation.html b/datepicker-slide-from-right-animation.html new file mode 100644 index 00000000..4f29e61b --- /dev/null +++ b/datepicker-slide-from-right-animation.html @@ -0,0 +1,44 @@ + + + + + + + diff --git a/demo/index.html b/demo/index.html index bbba0a56..58d7f526 100644 --- a/demo/index.html +++ b/demo/index.html @@ -10,7 +10,6 @@ - @@ -82,7 +81,6 @@ font-size: 10px; } - /* mixin */ jv-datepicker-dialog#colorDialog { background: #424242; @@ -115,7 +113,7 @@ -