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

@trixwell/calendar

v1.2.2

Published

Angular calendar/scheduler library — year, month, week, and day views with drag-to-select, mobile touch selection, and a date-picker modal, built on Angular Material.

Readme

@trixwell/calendar

Angular calendar / scheduler library — year, month, week, and day views with drag-to-select, mobile touch selection, and a date-picker modal, built on Angular Material.

Install

npm install @trixwell/calendar @angular/material @angular/cdk date-fns

@angular/material, @angular/cdk, and date-fns are peer dependencies — they are not bundled and must be installed in the consuming app.

You'll also need:

  • An animations provider registered in your app config (provideAnimations() or provideAnimationsAsync() from @angular/platform-browser/animations) — required by Angular Material.
  • The Material Icons font, since components use <mat-icon> ligature icons. Add this to your index.html:
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />

Theme setup

Add the library's theme (Material theming + button/select overrides) to your global stylesheet:

@use '@trixwell/calendar/styles/theme';

This single @use sets up mat.theme(...) plus light/dark button and select styling. If you only want the design tokens (colors, spacing, radii, fonts) without the Material overrides, @use @trixwell/calendar/styles/tokens and @trixwell/calendar/styles/dark-tokens directly instead.

App setup

import { ApplicationConfig } from '@angular/core';
import { provideAnimations } from '@angular/platform-browser/animations';
import { provideCalendar } from '@trixwell/calendar';

export const appConfig: ApplicationConfig = {
  providers: [
    provideAnimations(),
    provideCalendar({
      data: MyCalendarDataProvider,   // implements CalendarDataProvider
      user: MyCalendarUserProvider,   // implements CalendarUserProvider
      // viewport is optional — defaults to a BreakpointObserver-based provider
    }),
  ],
};

CalendarDataProvider and CalendarUserProvider are interfaces you implement against your own backend:

interface CalendarDataProvider {
  getTasks(startISO: string, endISO: string): Observable<MasterTask[]>;
}

interface CalendarUserProvider {
  profile$: Observable<User | null>;
}

Usage

<app-calendar
  (daysConfirmed)="onDaysConfirmed($event)"
  (dateSelected)="onDateSelected($event)"
  (rangeSelected)="onRangeSelected($event)">
</app-calendar>
onDaysConfirmed(days: Date[]): void {
  // user confirmed which days to configure (mobile day-selection flow)
}

onDateSelected(date: Date): void {
  // user picked a date (date-picker modal, or a day header in week view)
}

onRangeSelected(range: { start: Date; end: Date }): void {
  // user selected a time range in day/week view (desktop drag or mobile touch)
}

Public API

Exported from the package entry point:

  • CalendarComponent — the top-level <app-calendar> facade
  • provideCalendar(config) and CalendarConfig — app-level DI setup
  • CALENDAR_DATA, CALENDAR_USER, CALENDAR_VIEWPORT — injection tokens for the three provider interfaces (CalendarDataProvider, CalendarUserProvider, CalendarViewportProvider)
  • DefaultCalendarViewportProvider — the default BreakpointObserver-based viewport provider
  • Entity types (MasterTask, User, CalendarView, etc.) from ./lib/calendar/core/entity

License

LGPL-3.0-only