
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
date-carousel
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License

This is a web component for picking a date in a carousel format. Scrolling through dates changes the week in focus. To learn about usage, check out the tests in test/date-carousel_test.js.
If you are using a javascript bundler like Webpack or Rollup, npm install the module and import it in your JS/TS code.
npm install --save date-carousel
import 'date-carousel/date-carousel.js'
<date-carousel (on-week-change)="onWeekChange($event)" (on-day-pick)="onDayPick($event)"></date-carousel>
<date-carousel useEthiopianCalendar (on-week-change)="onWeekChange($event)" (on-day-pick)="onDayPick($event)"></date-carousel>
weekInView: The ISO string (yyyy-mm-dd) of value of the first day of the current week.weekUnixValue: The unix timestamp value in seconds of the first day of the current week.datePicked: The ISO string (yyyy-mm-dd) of value of the currently selected day.dateUnixValue: The unix timestamp value in seconds of the currently selected day.NOTE Unix timestamp values do not contain timezone or daylight savings information. Use them wisely.
on-day-picked: When a user selects a day in the carousel, the attributes datePicked and dateUnixValue are updated and the event is dispatched.on-week-change: When users move forward or back in the date carousel, the attributes weekInView and weekUnixValue are updated and the event is dispatched.See CSS variables in the style tag of the component.
git clone ...
cd ...
npm install
npm start
git clone ...
cd ...
npm install
npm start
This component is built using Lit Element for the Tangerine Project.
FAQs

We found that date-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.