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

visit-library-calendar

v0.1.420

Published

## Project setup ``` npm install visit-library-calendar

Downloads

135

Readme

SharedComponents

Project setup

npm install visit-library-calendar

Including the Calendar in your project

<Calendar></Calendar>

Using properties of the widget to customize

 <Calendar id="booking-calendar" :selectedDate="2020-11-01" booking="false" @onDateSelected="showData" :bookedDays="[24,26,27]" :avialableDays="[25,28,29,30]" :dateStyle="rounded-no-border"></Calendar>

Import stylesheet as below in EntryComponent of the widget

<style src="visit-library-calendar/dist/Calendar.css" ></style> 

Properties supported

booking : A boolean property accepting "true" / "false"

selectedDate : Set the date here the calendar will show that date e.g "2019-11-01"

avialableDays : An array of days that will be marked on the calendar that are available with respect to a product

bookedDays : An array of days that will be marked on the calendar that are booked with respect to a product

dateStyle : rounded_no_border , rounded_with_border, square_with_border

@onDateSelected : Should provide a reference to an existing vue method, which will get triggered with a date object containing the selected date

show : Indicates whether calendar is visible or not. So this should be set inorder to make the calendar visible

Theming

:root{
--calendar-header-bg-color:#f1f0f0; --calendar-footer-bg-color:#f1f0f0; --calendar-body-bg-color:#f1f0f0; --calendar-month-text-color:#000000; --calendar-header-arrow-color:#000000; --calendar-day-text-color:rgb(105, 101, 101); --calendar-date-text-color:#ffffff;
}

#Revision history

Affected libs/widgets : Drop down component , booking widget sprint -2 & sprint - 3
Date/Time | Modification | Author | Version

2018-12-19 11.35 | Made it possible to close the calendar by clicking outside | Thushan |0.1.13

2018-12-19 1.28 | Reformatted README | Thushan |0.1.14

2018-12-19 2.19 | Changed the event listener entity from document to window | Thushan |0.1.15

2018-12-19 2.19 | Added console logs | Thushan |0.1.16

2018-12-19 2.19 | Changed the show property to type Boolean | Thushan |0.1.18
2018-12-19 11.13 | Changed the show property check to === "true" | Thushan |0.1.18

2018-12-19 12.12 | Changed the show property check to === true | Thushan |0.1.19

2018-12-19 12.39 | Fixed toggle show issue | Thushan |0.1.20

2018-12-19 12.39 | Fixed integration issue | Thushan |0.1.21

2018-12-20 9.31 | Calendar closing event added | Thushan |0.1.22