Commits
* added the ability to enable and disable dates, using isDisabledDate function
* reworked to use isDisabledDate prop
* fixed docs
* ran prettier
* Update comments
* Use optional chaining
* Update docs example
* Revert demo
* Fix lints
* Create disableddate dev page
* Format
* added checks to prevent selecting a disabled date by typing or from arrow keys
* Small adjustments
* Update CHANGELOG.md
* updated-fallback-to-browseDate
* fixed-typo
* Make toValidDate args non-null
* Debug set date button
* Svelte 3 test
* Revert "Svelte 3 test"
This reverts commit 8184f5235b9d45061448a88b606d134f59a99738.
* added toValidDate to both DateInput and DatePicker
* Fix time changing when switching calendar dates
* Also run toValidDate in textUpdate
* Fix double-setting to invalid date not being fixed
---------
Co-authored-by: stinger567 <jdsteck567@gmail.com>
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
* added functiinality to set unused time precision to 0
* Apply time precision on setValue/setBrowseDate
* Update CHANGELOG.md
---------
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
* Adds 'M' to allow short month names (e.g. 31-Mar-24')
* Changed to using 'MMM' instead of 'M'
* Run the code through format
* WIP on getting locales to work
* Correct processing of Locale
Previously, createFormat() created a FormatToken[]. Have introduced a new class FormatTokens which behaves exactly like FormatToken[] but also includes a reference to the InnerLocale. That way parse() knows which locale strings to use for months.
Changed the tests to reflect the new structure.
* Updated demo app to include dropdown for locale
* Update locale prop demo
* Format
* Fix lint errors
* Fix `createFormat` parsing locale
* Change parsing logic, make generic parseEnum
* Make parsing case insensitive
* Fix Prop
* Fix build error
* Add locale dropdown to DatePicker demo
* Update CHANGELOG.md
---------
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
* Set autocomplete to false
Fixed #93
* Update CHANGELOG.md
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
* added the ability to enable and disable dates, using isDisabledDate function
* reworked to use isDisabledDate prop
* fixed docs
* ran prettier
* Update comments
* Use optional chaining
* Update docs example
* Revert demo
* Fix lints
* Create disableddate dev page
* Format
* added checks to prevent selecting a disabled date by typing or from arrow keys
* Small adjustments
* Update CHANGELOG.md
* updated-fallback-to-browseDate
* fixed-typo
* Make toValidDate args non-null
* Debug set date button
* Svelte 3 test
* Revert "Svelte 3 test"
This reverts commit 8184f5235b9d45061448a88b606d134f59a99738.
* added toValidDate to both DateInput and DatePicker
* Fix time changing when switching calendar dates
* Also run toValidDate in textUpdate
* Fix double-setting to invalid date not being fixed
---------
Co-authored-by: stinger567 <jdsteck567@gmail.com>
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
* Adds 'M' to allow short month names (e.g. 31-Mar-24')
* Changed to using 'MMM' instead of 'M'
* Run the code through format
* WIP on getting locales to work
* Correct processing of Locale
Previously, createFormat() created a FormatToken[]. Have introduced a new class FormatTokens which behaves exactly like FormatToken[] but also includes a reference to the InnerLocale. That way parse() knows which locale strings to use for months.
Changed the tests to reflect the new structure.
* Updated demo app to include dropdown for locale
* Update locale prop demo
* Format
* Fix lint errors
* Fix `createFormat` parsing locale
* Change parsing logic, make generic parseEnum
* Make parsing case insensitive
* Fix Prop
* Fix build error
* Add locale dropdown to DatePicker demo
* Update CHANGELOG.md
---------
Co-authored-by: Kasper <kasperkh.kh@gmail.com>