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

aki-datepicker

v2.1.7

Published

A calendar friendly for mobile, which can select the date by the range.It is typically used for hotel.

Downloads

89

Readme

vue-datepicker-mobile

996.icu LICENSE

v2

中文版

e.g.

Live Demo

demo

Props

| param | description | type | default | | :-: | :- | :-: | :-: | | custom | custom data.* | [object, array] | - | | endText | text of end for selected | string | '离店' | | initDate | Init position for visible month.Allow a string of date,default is this month. | string | today | | initLength | Init render length from init-date. | number | 6 | | loadLength | scroll load render length every time. | number | 6 | | mondayFirst | Whether Monday is the first-day as a week, default for Sunday. | boolean | true | | selectArea | area for allow user choose date. e.g.['2019-05-01', '2019-08-02'] | array | - | | selected | select some area. Ibid. | array | - | | single | select single date.default select a range. | boolean | false | | startText | text of beginning for selected | string | '入住' | | cancelText | text for cancel button | string | '取消' | | confirmText | text for confirm button | string | '确认' | | visible | display state, show or hide datepicker window. | boolean | false | | weekTexts | texts array of week name | array | ['一', '二', '三', '四', '五', '六', '日'] |

* 注

// 当key为月份如:'2019-05'时,value则为从当月1日开始的数据序列。可接受多个月份(多个key)
{
  '2019-04': [{custom1},{custom2},{custom29},{custom30}]
  '2019-05': [{custom1},{custom2},{custom30},{custom31}]
}
// 当key为具体日期如:'2019-05-20'时,value为从该日起的数据序列,自动往下一个月添加超出的数据
{
  '2019-04-09': [{custom1},{custom2},{custom29},{custom30},{custom99},{custom100},{custom2xx},{custom3xx}]
}
// 直接传入一个数组,相当于上面的key为当日
[{custom1},{custom2},{custom29},{custom30},{custom99},{custom100},{custom2xx},{custom3xx}]

custom

| param | description | type | | :-: | :- | :-: | | bgc | background color | string | | disabled | disabled status | boolean | | color | color of text | string | | info | display texts | [string, object, array] |

info

| param | description | type | | :-: | :- | :-: | | text | display text | string | | color | color of text | string |

this color priority great than custom.color

full e.g.

[
  {
    bgc: '#abc',
    disabled: true,
    color: 'red',
    info: 'full'
  },
  {
    bgc: 'rgb(255,0,100)',
    info: ['001', '002']
  },
  {
    bgc: 'hsl(100,100%,50%)',
    color: 'rgba(99, 99, 99, .9)',
    info: { text: '007', color: 'hsla(60, 50%, 70%, .6)' }
  }
]

Event

select({ start, end, range })

Called after select date range.start: object, end: object, range:[object]. range is a selected array does't include start and end.If don't have space between start and end,range is a array of null.

Object Of Date

start: {
  date: new Date(), // current day
  data: {
    disabled: false,
    custom: {} // custom object
  }
}

cancel()

Called when click cancel button.

confirm({ start, end, range })

Called when click confirm button.

disable(date)

Called after selected a date has custom.disabled.date is a Object Of Date.

viewport(month)

Called when somemonth in viewport with window, return current month.

month: {
  date: new Date(), // this month
  days: [date1, date2, date29, date30] // all days for this month
}

Instructions

simple

<aki-date :visible="visible" @confirm="confirmHandler" @cancel="visible=false" />

Description

This project used Intersection Observer API

Thanks

date-utils