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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-multi-calendar-picker

v1.5.1

Published

CalendarPicker based on dayjs

Readme

vue-multi-calendar-picker

Calendar picker for Vue 2.7 and Vue 3 based on dayjs.

Installation

yarn add vue-multi-calendar-picker dayjs

Vue is a peer dependency and must be provided by the host application. Supported peer range: ^2.7.14 || ^3.2.0.

Usage

Vue 2:

<template>
  <vue-calendar
    v-model="date"
    locale="ru"
    format="DD.MM.YYYY HH:mm"
    :calendars-count="2"
    :min="min"
    :max="max"
    :marked-range="markedRange"
    :disabled-days="disabledDays"
    @selected="onSelected"
  />
</template>

<script>
import VueCalendar from 'vue-multi-calendar-picker';

export default {
  components: { VueCalendar },
  data() {
    return {
      date: '',
      layers: [],
      min: '01.05.2026 09:00',
      max: '31.05.2026 18:00',
      markedRange: [
        {
          period: {
            start: '10.05.2026 00:00',
            end: '15.05.2026 23:59'
          },
          class: 'marked'
        }
      ]
    };
  },
  methods: {
    disabledDays(day) {
      return [6, 7].includes(day.isoWeekday());
    },
    onSelected(layers) {
      this.layers = layers;
    }
  }
};
</script>

Vue 3:

<template>
  <vue-calendar v-model="date" format="DD.MM.YYYY" locale="en" />
</template>

<script setup>
import { ref } from 'vue';
import VueCalendar from 'vue-multi-calendar-picker';

const date = ref('');
</script>

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | value | String | - | Selected value used by Vue 2 v-model. | | modelValue | String | - | Selected value used by Vue 3 v-model. | | placeholder | String | - | Input placeholder. | | format | String | DD.MM.YYYY | dayjs parse/format string. Include H, h, k, m, or s to enable time selection. | | calendarsCount | Number | 1 | Number of month layers displayed at once. | | inputClass | Object\|String | form-control | Class binding for the input. | | min | String | null | Minimum selectable date in the same format. | | max | String | null | Maximum selectable date in the same format. | | markedRange | Array | [] | Ranges to decorate on the calendar. | | title | String | null | Date picker title. | | timeTitle | String | null | Time picker title. | | disabledDays | Function | null | Receives a dayjs date, return true to disable the day. | | disabled | Boolean | false | Disables the input. | | locale | String\|Object | window.locale or ru | Locale for month and weekday names, and localized parsing. Built-in locales: ru, en. Region tags such as en-US are normalized to en. |

Localization

The package includes ru and en dayjs locales. By default it uses window.locale when available, normalized to the language part, or ru otherwise.

window.locale = 'en-US';
<vue-calendar v-model="date" locale="en" />

Events

| Event | Payload | Description | | --- | --- | --- | | input | String | Emitted for Vue 2 v-model changes. | | update:modelValue | String | Emitted for Vue 3 v-model changes. | | selected | Array | Emitted after a date, or date and time, is selected. | | dayHover | dayjs\|undefined | Emitted when hovering a day. | | layerChange | Array | Emitted when visible months/years change. | | focus | Array | Emitted when the input is focused by the component method. | | close | Array | Emitted when the picker closes. |

Slots

| Slot | Props | Description | | --- | --- | --- | | day | { day } | Custom day cell content. | | title | - | Custom date picker title. | | time-title | - | Custom time picker title. | | previousSign | - | Custom previous month control. | | nextSign | - | Custom next month control. |

Build

yarn install --immutable
yarn lint
yarn build

The library build is generated in dist.

The default package entry imports src/sass/style.scss, so bundler-based applications receive the component styles automatically. For direct UMD usage, include dist/vue-multi-calendar-picker.css next to the UMD script.

Vue 2 and Vue 3

The component accepts both value/input and modelValue/update:modelValue, so normal v-model works in Vue 2.7 and Vue 3. The click-outside directive dependency must be @ttbooking/[email protected] or newer for Vue 3 support.

Plans

  • Add a dedicated Vue 3 build pipeline.