svelte-plugins / datepicker Goto Github PK
View Code? Open in Web Editor NEWA simple datepicker component designed for Svelte.
Home Page: https://svelte-plugins.github.io/datepicker
License: MIT License
A simple datepicker component designed for Svelte.
Home Page: https://svelte-plugins.github.io/datepicker
License: MIT License
Describe the bug
When using the time picker feature, if you use the keyboard to manually type values it breaks the calendar and jumps to 1969.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To just enter time and for the calendar to not jump dates.
Describe the bug
Hi!
I am trying to set a maximum allowed date in the range picker (a week into the future).
There doesn't seem to be a min/max prop I could use, but I found enabledDates
. This doesn't seem to allow multi-year ranges - is this a bug?
The disabledDates
also seemed like a good option, but I couldn't find a way to only set the start date (and let it go on forever).
Is there another way to achieve this?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
I'm experiencing a bug where a lot of the times on refresh my localhost crashes with the error 'document is not defined'. It stems from this line in the datepicker.svelte component:
$: theme !== null && document.documentElement.setAttribute('data-picker-theme', theme);
Thanks for checking it out :)
Hello!
I cant get themes to work as they should. I change the theme-attribute in datepicker, but it doesnt use the new tags. I guess im doing it wrong. Would it be possible to add an example how to use themes?
Thanks for your work!
Regards
Joel
Thanks for a great plugin!
Would it be possible to add a inverted function to disable dates? So that instead all dates that are not in an enable-array are disabled?
Regards
Joel
Describe the bug
I am unable to change the style of the Time Picker popup. It has a white background with blue buttons, but I can't inspect or debug it because it disappears automatically.
To Reproduce
Steps to reproduce the behavior:
showTimePicker
paramExpected behavior
A css variable could be exposed to change the styles
Desktop:
:global(.datepicker[data-picker-theme='custom-datepicker']) {
--datepicker-container-position: relative;
/* --datepicker-container-width: max-width; */
--datepicker-calendar-width: 375px;
--datepicker-state-active: white;
--datepicker-calendar-header-text-color: #black;
--datepicker-calendar-day-color: #white;
--datepicker-calendar-range-selected-background: #111;
--datepicker-border-color: #111;
--datepicker-container-border: 100px solid #111;
}
Describe the bug
Html buttons on calendar are without type="button". So they get type="submit" as default and it could trigger form submission
Very nice plugin :)
It could be a good idea to allow for the sidepane to be opened with the regular Datepicker and have a default 'today' button. In some cases this could save a lot of clicks. If the sidepane is overkill, maybe just as addition next to, or below the month ?
In any case, thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.