Gathering detailed insights and metrics for air-datepicker
Gathering detailed insights and metrics for air-datepicker
Gathering detailed insights and metrics for air-datepicker
Gathering detailed insights and metrics for air-datepicker
npm install air-datepicker
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2,674 Stars
597 Commits
1,367 Forks
67 Watching
5 Branches
33 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (89.41%)
SCSS (9.63%)
HTML (0.86%)
EJS (0.1%)
Cumulative downloads
Total Downloads
Last day
-4.3%
5,960
Compared to previous day
Last week
10.7%
34,193
Compared to previous week
Last month
19.3%
133,123
Compared to previous month
Last year
83.8%
1,107,351
Compared to previous year
39
Lightweight, dependency-free, fast, customizable datepicker written in pure JavaScript. Works in all modern browsers which supports native css variables.
npm i air-datepicker
1import AirDatepicker from 'air-datepicker' 2import 'air-datepicker/air-datepicker.css' 3 4new AirDatepicker('#el' [, options]);
destroy()
behavior - added isDestroyed
property, opts
and selectedDates
will still have empty values, instead of null
, even after AirDatepicker has been destroyed #600fixedHeight
option, allows you to have equal weeks number in every monthdisableDate
, allows you to disabled one or multiple dates with datepicker APIdisabledDates
- it is a Set which holds all disabled dates{silent: true}
to update
and setCurrentView
methods, #583update
method - now if you pass selectedDates
then calendar will keep selected only those datesrange: true
, #568selectDate('2024-03-05')
#589clear
method, thanks to ahmetzambak in #591onFocus
and onBeforeSelect
grant you more control over range selection behaviour and more #526getViewDates()
allows you to get all dates that should be currently displayed in calendar #536toggleSelected
now can be a function #534clear
method #546It is been a while since the last release, a lot of work has been done, and I'm glad to finally present a new version of Air Datepicker.
The main goal was to remove jQuery dependency, and I'm happy to announce that Air Datepicker is no longer need any dependency, hurray! :partying_face:
Now it's written in ES6, uses native css variables for easy customization, and it's all built with webpack.
Soooo, here is the full list of changes:
selectedDates
option, to be able to select dates from the startcontainer
option which allows you to place datepicker in a custom elementnavTitles
can receive a function and could render dynamicallydateFormat
now can receive a functiononSelect
and onRenderCell
callbacks are now receive a single object as an argument instead of multiple parametersselectDate
now receives second parameter with optionsonChangeMonth
, onChangeYear
, onChangeDecades
are replaced with single option onChangeViewDate
npm i
, then npm run dev:serve
.air-datepicker
Thank you! :blush:
Air Datepicker is MIT licensed.
No vulnerabilities found.
Reason
1 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
branch protection is not maximal on development and all release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More