npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lucasz/d-datepicker

v1.0.2

Published

DDatepicker ======

Readme

DDatepicker

Usage

  1. Import the component

import DDatepicker from 'd-datepicker';

  1. Add it to the components object

components: {DDatepicker}

  1. Use it in the template
<DDatepicker
  ...props
/>

Props

| Name | Type | Required | Values | Description | |:-------------------|:-----------------------------------------------------------------------------------------:|:------------:|:-----------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:| | idAttr | String | ❌ | - | The id of the input element. | | nameAttr | String | ❌ | - | The name of the input element. | | classAttr | String | ❌ | - | The class of the input element. | | placeholderAttr | String | ❌ | - | The placeholder of the input element. | | currentDate | Date | ❌ | Default value: new Date() | The currently selected date. | | minDate | Date | ❌ | Default value: null | Restriction for the minimum date. Dates earlier than this date cannot be picked from. | | maxDate | Date | ❌ | Default value: null | Restriction for the maximum date. Dates later than this date cannot be picked from. | | leftArrowIcon | String | ❌ | - | The icon for selecting the previous month. | | rightArrowIcon | String | ❌ | - | The icon for selecting the next month. | | arrowIconAlt | String | ❌ | - | The alt value for both arrow icons. | | locale | Object<{weekday: String[], todayBtn: String, clearBtn: String, closeBtn: String}> | ❌ | Default value: { weekday: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], todayBtn: "Today", clearBtn: "Clear", closeBtn: "Close", } | Represents the strings to be used for the weekdays and buttons, this adds the possibility to use several languages. | | inputDividerSymbol | String | ❌ | Default value: / ---Possible values:/, - | The divider symbol that is shown inside the input field, and used to parse the date from the input field. | | inputFormat | Boolean | ❌ | Default value: DD_MM_YY ---Possible values: DD_MM_YY, MM_DD_YY, YY_MM_DD | The format of the date, so the order of day, month and year. | | swipingEnabled | Boolean | ❌ | Default value: false | The ability to switch between months with swiping movements, for mobile users. | | hasDateRange | Boolean | ❌ | Default value: false | This enables the ability to select a range of dates. When this is enabled, the user needs to select 2 dates to specify the range. When the second date is selected, there is an event fired which returns two dates to indicate the range. |

Events

| Name | Description | |:-------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:| | value-changed | Fires when a date has been selected. Returns a Date and with hasDateRange enabled it returns two dates when the second date is selected([Date, Date]). |