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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue2-inline-calendar

v1.1.0

Published

The simple, functional inline calendar component for Vue2 (version for Vue3 is in development now) based on Intersection Observer API

Downloads

15

Readme

Vue2 Inline Calendar

The simple, functional inline calendar component for Vue2 (version for Vue3 is in development now) based on Intersection Observer API — just drag and scroll to get future and past dates.

Installation

npm i vue2-inline-calendar -S

or

yarn add vue2-inline-calendar

Usage

<template>
    <div id="app">
        <vue-inline-calendar @select-date="selectedDate = $event" />
    </div>
</template>

<script>
import VueInlineCalendar from 'vue2-inline-calendar'

export default {
  name: 'App',
  components: {
    VueInlineCalendar
  },
  data() {
    return {
      selectedDate: null
    }
  },
}
</script>

Available props

| Prop name | Description | Type | Default value | |------------------------|------------------------------------------------------------------------------------------|---------|---------------| | initialDate | Initial selected date | Date | null | | initialRange | Initial selected range of dates | Date | null | | daysRange | Number of days, which will be loaded on scroll | Number | 7 | | itemWidth | Width of date element (.date-item) | Number | 80 | | itemsGap | Distance between date elements | Number | 10 | | locale | A string with a BCP 47 language tag | String | "en-US" | | scrollSpeed | Speed of dates scroll | Number | 4 | | disableWeekends | Excluding weekends from selection | Boolean | false | | specMinDate | Minimum allowed date | Date | null | | specMaxDate | Maximum allowed date | Date | null | | disablePastDays | Excluding dates before today's date from selection | Boolean | false | | disableNextDays | Excluding dates after today's date from selection | Boolean | false | | isRange | Setting up range mode — selection of start and end dates | Boolean | false | | showYear | Showing of the current year (pass false, if you want to hide the year) | Boolean | true | | showMonth | Showing of the date's month (pass false, if you want to hide the month) | Boolean | true | | showWeekday | Showing of the date's weekend (pass false, if you want to hide the weekend) | Boolean | true | | enableMousewheelScroll | Enabling of the calendar scrolling when using the mousewheel | Boolean | false |

Available events

| Event name | Description | Payload | |--------------------|------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------| | select-date | Fires on date selection | Selected date (instance of Date object) | | select-dates-range | Fires on date range selection (when endDate is selected) | Object with startDate and endDate keys and dates as values: {startDate: this.startDate, endDate: this.endDate } |

License

MIT License

Support the author

If you would like to support me and my work, you can make a donation via Buy Me a Coffee (link at the section Sponsor this project) or with cryptocurrency:

| Platform | Address | |:----------------------------:|:---------------------------------------------:| | Bitcoin | bc1q0rygfalnctew4cla3ed9wfw2pv0uh4r0eyfuag | | Ethereum/Tether USDT (TRC20) | 0x38b3822213c6BDCc01eF770442F5BF0842AB740f | | Litecoin | ltc1qdgs0jult63k6ggjzaedh3er2z7w70aktl5j2wu |