Releases: motss/app-datepicker
Releases · motss/app-datepicker
Release v2.11.0
2.10.0
🌮 🎉 app-datepicker
is now a hybrid Polymer element that supports both Polymer 1.x and Polymer 2.0 stable!!
- Pleased to announce that
app-datepicker
is now compatible with both Polymer 1.x and Polymer 2.0 stable. - Now Intl polyfill will not load (previously it does) if the browser does not natively support it and it is recommended for users to load the polyfill at the top-level document by some feature detections.
alwaysResetSelectedDateOnDialogClose
- proposed by #74 to allow datepicker to reset the selected date to today's date once the datepicker closes and the demo has this included as well.
2.9.0
NEW FEATURE
confirmLabel
- proposed by #61 to allow customization for text in confirm button ofapp-datepicker-dialog
.dismissLabel
- proposed by #61 to allow customization for text in dismiss button ofapp-datepicker-dialog
.- Various bug fixes: #55, #62, #67, #53, #54.
[email protected]
[email protected]
is working in progress to address some of the issues of 2.x such as support for web accessibility, support for Polymer 2.0, etc. Meaning mainly bug fixes will likely to occur as of now and new features will go into [email protected]
! 🎉
While waiting for Polymer 2.0 to go stable, feedbacks are welcome to help make app-datepicker
more useful and awesome and feature rich.
disableDates and Intl polyfill removed
disableDates
- proposed by #45 to support disabling dates defined by the user and see Live demo for more details.Intl
polyfill was previously beingimportHref
for browsers that do not support native Intl. Now, users are recommended to load polyfills at the top-level document (usuallyindex.html
) using feature detection.
New property autoUpdateDate added
- New feature added:
autoUpdateDate
proposed by #20 to enable auto date update when datepicker is a standalone element on the document (not inside an overlay/ dialog and has no button for date confirmation). - Merged multiple animations into one single file - to reduce network request when loading this element.
- Updated all dependencies to the latest.
- Fixed #23 for missing dependencies
iron-iconset-svg
. - Fixed #24 to increase readability for hovered year in the list view.
- Updated demo to include the newly added property
autoUpdateDate
.
v2.5.1
- Added styling when mouse hover at dates on the calendar on all available themes.
- Fixed #12 to enable fast month switching.
- Use
new Date()
to get total number of days in a month.
eg.
// To get the total number of days in February.
let _givenFullYear = 2016;
let _givenMonth = 1;
let _totalNumberOfDays = new Date(_givenFullYear, _givenMonth + 1, 0).getDate();
console.log(_totalNumberOfDays); // 29
Release with locale support
- Added locale support with Intl.DateTimeFormat for all modern browsers and Safari with Intl.js polyfill - to fix #8 with 0d851dd, 7b18c9c
- DRY-up the code.
- Added browser support information
- A full list of language codes can be found in the demo page.
v2.4.0
v2.3.0 release with a list of features and improvements
- A list of new features being added in the release:
inputDate
- To allow date change from the external, #7.invalidDate
- Comes withinputDate
to indicate valid input date.noAnimation
- To disable/ enable animations and transitions within the datepicker.pageEntryAnimation
- To customize entry animation when page switching between months.pageExitAnimation
- To customize exit animation when page switching between months.
enforceDateChange
- By default, a datepicker will not trigger date change when a date is being tapped on. Buttons are required to confirm before propagate the changes. This method is now open to update selected date without respecting the confirmation.- Dynamically generate non-critical elements further reduces the element nodes generated behind the screen.
- Added support for IE11 and Edge by fixing the layout issue (at long last!!!)
- CSS tweaks.
- Improved how codes run inside a datepicker.
- Sneak peek: To provide minified version of all files inside a new directory
dist
for production in the upcoming release..
Quick Update: No longer depend on Lodash!
- 89777d3: Removed all Lodash methods as of v2.1.12 after weeks of deep consideration about the issue.
- PART 3 OTW: Expect to bring a few more improvements and/ or features to this element!