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

@tavara/ngx-useful-date-picker

v0.0.4

Published

A modern, lightweight, zoneless-ready date picker for Angular 19+ built with Signals.

Readme

Demo del Date Picker

A modern, lightweight, and incredibly fast date picker for Angular 19+.
Built from the ground up using Angular Signals and fully compatible with Zoneless applications.

Features

  • Zoneless Ready: No zone.js required. 100% Signal-based change detection.
  • Multi-Range Selection: Select single days, date ranges, or multiple discrete ranges out of the box.
  • Highly Customizable: Easy to theme via CSS variables.
  • Lightweight: No heavy dependencies (no Moment.js, no date-fns).
  • Strict Typings: Powered by a robust Discriminated Union data model for predictable state management.

Installation

npm install @tavara/ngx-useful-date-picker

Usage

Import the standalone component into your application:

import { Component } from '@angular/core';
import { UsefulDatePickerComponent, Selection } from '@tavara/ngx-useful-date-picker';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [UsefulDatePickerComponent],
  template: `
    <ngx-useful-date-picker
      [selections]="myDates"
      (selectionsChange)="onDatesChanged($event)"
      [calendarMode]="'range'"
      [weekStartsMonday]="true"
      [disableFilter]="myDisableFilter"
      accent="#d63384"
    >
    </ngx-useful-date-picker>
  `,
})
export class AppDemo {
  myDates: Selection[] = [];

  onDatesChanged(newSelections: Selection[]) {
    this.myDates = newSelections;
  }

  // Example: Disable all weekends
  myDisableFilter = (date: DatePoint): boolean => {
    const d = new Date(date.y, date.m, date.d).getDay();
    return d === 0 || d === 6;
  };
}

Theming

You can easily override the default colors by targeting the CSS variables on the component or in your global stylesheet:

:root {
  --udp-primary: #2563eb; /* Accent color for selected days */
  --udp-conn-active: #bfdbfe; /* Background for the range connection */
  --udp-conn-preview: #e5e7eb; /* Background for the hover preview */
  --udp-text-inverse: #ffffff; /* Text color inside the primary circles */
}

Internationalization (i18n)

The date picker is in English by default. To change the language, provide your own implementation of the UsefulDatePickerIntl service in your app config.

The library includes a Spanish translation out of the box (UsefulDatePickerIntlEs):

import { ApplicationConfig } from '@angular/core';
import { UsefulDatePickerIntl, UsefulDatePickerIntlEs } from '@tavara/ngx-useful-date-picker';

export const appConfig: ApplicationConfig = {
  providers: [{ provide: UsefulDatePickerIntl, useClass: UsefulDatePickerIntlEs }],
};

To support other languages, simply extend the base class:

import { Injectable } from '@angular/core';
import { UsefulDatePickerIntl } from '@tavara/ngx-useful-date-picker';

@Injectable({ providedIn: 'root' })
export class UsefulDatePickerIntlFr extends UsefulDatePickerIntl {
  override monthsShort = ['Janv.', 'Févr.', 'Mars' /* ... */];
  // Override other properties as needed
}

Gallery & Advanced Features

Here are some of the different modes and states supported by the date picker:

Default / Empty State

Vacío

Single Day Selection

Un Solo Día

Day Mode (Instead of Range)

Modo Día

Custom Accent Color

Color Personalizado

Cross-Month Selection

Rango Intermensual

Week Starts on Sunday

Semana Desde el Domingo

Spanish Language Override (i18n)

Idioma Español

Contributing

Contributions, issues, and feature requests are welcome!
Feel free to check out the repository at https://gitlab.com/tavara/useful-date-picker.

License

MIT License © Javier Távara