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

xunk-calendar

v3.0.2

Published

Simple calendar component for Angular 8+ and Angular Material

Downloads

50

Readme

XunkCalendar

XunkCalendar is a simple calendar component with material design designed for Angular 6+ and Angular Material (might work with earlier versions too!). It allows creation of a heatmap for dates (with strange syntax, since this was designed for a specific project). Check the demo app's source for how to do this. A live demo can be found at https://radialapps.github.io/xunk-calendar/

Build Status

demo Maintainability Codacy Badge

GitHub version GitHub license Dependencies Dev Dependencies

npm version

Installation

The package is hosted on npm, so you can install it just by

npm install xunk-calendar

Usage

First, import XunkCalendarModule into app.module. You may then use the component as

<xunk-calendar [selectedDate]="selDate"></xunk-calendar>

selectedDate binds to a JSON object of the following format (say for 2018-02-16):

{
  date: 16,
  month: 1,
  year: 18
}

Note that month starts with 0, but date starts with 1. To quickly make the initial selected date to today, you may do

selDate = XunkCalendarModule.getToday();

Dependencies

The component makes use of mat-icon and mat-button from @angular/material. You may need other dependencies in package.json to build the module.

Known Issues

Currently, the selectedDate object has to be initialized properly, and a minimal initialization looks like

public selDate = { date:1, month:1, year:1 };

ngOnInit() {
  this.selDate = XunkCalendarModule.getToday();
}

Contributing

Contributing is free! You are welcome to criticize, help write code, file bugs or give me a lesson on how to properly comment code! If there is one thing, since circleci's build will test for it, it is absolutely imperative to lint your code (with ng lint).