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

@nexa-calendar/angular

v1.2.0

Published

Angular module wrapper for Nexa-Calendar.

Readme

@nexa-calendar/angular

Angular module wrapper for Nexa-Calendar.

Installation

npm install @nexa-calendar/angular @nexa-calendar/ui @nexa-calendar/core
# or
pnpm add @nexa-calendar/angular @nexa-calendar/ui @nexa-calendar/core

Setup

1. Import the Module

// app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxNxCalendarModule } from '@nexa-calendar/angular';
import '@nexa-calendar/ui/styles.css';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxNxCalendarModule],
  bootstrap: [AppComponent],
})
export class AppModule {}

2. Standalone Components (Angular 17+)

// app.component.ts
import { Component } from '@angular/core';
import { NgxNxCalendarModule } from '@nexa-calendar/angular';
import '@nexa-calendar/ui/styles.css';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [NgxNxCalendarModule],
  template: `
    <ngx-nx-calendar
      [view]="'month'"
      [locale]="'en'"
      [theme]="'ocean'"
      [events]="events"
      (dateClick)="onDateClick($event)"
      (eventClick)="onEventClick($event)"
    />
  `,
})
export class AppComponent {
  events = [
    {
      id: '1',
      title: 'Team Meeting',
      start: new Date().toISOString(),
      duration: 60,
    },
  ];

  onDateClick(info: any) {
    console.log('Date clicked:', info.date);
  }

  onEventClick(info: any) {
    console.log('Event clicked:', info.event);
  }
}

Input Properties

| Property | Type | Default | Description | | --------------------- | ------------------ | --------- | --------------- | | @Input() view | string | 'month' | Current view | | @Input() date | Date | Today | Current date | | @Input() locale | string | 'en' | Locale code | | @Input() theme | string | 'light' | Theme name | | @Input() events | ICalendarEvent[] | [] | Calendar events | | @Input() resources | IResource[] | [] | Resources | | @Input() editable | boolean | true | Enable editing | | @Input() selectable | boolean | true | Allow selection | | @Input() weekends | boolean | true | Show weekends | | @Input() minTime | string | '00:00' | Day start time | | @Input() maxTime | string | '24:00' | Day end time |

Output Events

| Event | Event Type | Description | | ----------------------- | ------------------ | --------------------- | | @Output() dateClick | DateClickEvent | User clicked a date | | @Output() dateSelect | DateSelectEvent | User selected a range | | @Output() eventClick | EventClickEvent | User clicked an event | | @Output() eventDrop | EventDropEvent | Event was moved | | @Output() eventResize | EventResizeEvent | Event was resized | | @Output() viewChange | ViewChangeEvent | View was changed |

Example: Event Handling

import { Component } from '@angular/core';

@Component({
  selector: 'app-calendar',
  template: `
    <ngx-nx-calendar
      [view]="currentView"
      [events]="calendarEvents"
      [editable]="true"
      [selectable]="true"
      (dateClick)="handleDateClick($event)"
      (eventClick)="handleEventClick($event)"
      (eventDrop)="handleEventDrop($event)"
    />
  `,
})
export class CalendarComponent {
  currentView = 'week';
  calendarEvents = [
    {
      id: '1',
      title: 'Meeting',
      start: new Date().toISOString(),
      duration: 60,
    },
  ];

  handleDateClick(info: any) {
    // Create new event
    const newEvent = {
      id: Date.now().toString(),
      title: 'New Event',
      start: info.date.toISOString(),
      duration: 60,
    };
    this.calendarEvents = [...this.calendarEvents, newEvent];
  }

  handleEventClick(info: any) {
    console.log('Event:', info.event);
  }

  handleEventDrop(info: any) {
    console.log('Event moved:', info.event.id, 'to', info.newStart);
    // Update event in your backend
  }
}

Themes

<ngx-nx-calendar theme="dark"></ngx-nx-calendar>
<ngx-nx-calendar theme="ocean"></ngx-nx-calendar>
<ngx-nx-calendar theme="rose"></ngx-nx-calendar>

Business Hours

calendarEvents = [];

// In component
businessHours = {
  daysOfWeek: [1, 2, 3, 4, 5], // Mon-Fri
  startTime: '09:00',
  endTime: '18:00',
};
<ngx-nx-calendar [events]="calendarEvents" [businessHours]="businessHours" />

License

MIT - see LICENSE