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

ngx-mat-tui-calendar

v12.1.3

Published

Angular Material Design wrapper, supporting theming, for the Toast UI Calendar, suitable for web-based scheduling, events, appointments, and day planner applications.

Downloads

49

Readme

ngx-mat-tui-calendar

License: MIT Development Status GitHub stars GitHub release (latest by date)

npm npm downloads

ngx-mat-tui-calendar

This project is an Angular, Material Design wrapper for the Toast UI Calendar, published via npm-logo_1-tiny .

  • Material Design theming
  • Material Design buttons and dialog
  • Responsive to mobile devices
  • Dark mode in progress...

This repo contains two projects:

  1. the source code for the npm library ngx-mat-tui-calendar, located in projects/ngx-mat-tui-calendar
  2. the demo app, located in src

The top-level angular.json and package.json files are used for building both projects.

This repo was generated with Angular CLI version 12.2.3. Angular ^12.2 requires node ^v14.15 (npm ^v6.14).

Online Demo

https://ngx-mat-tui-calendar-demo.netlify.app/

UI

Month View

Week View

Day View

Event Editing Dialog

Usage

Getting started

Install via npm:

npm i --save ngx-mat-tui-calendar --legacy-peer-deps

which will add ngx-mat-tui-calendar, as well as all of its dependencies to your package.json file.

Next import the module into your app's app.module.ts:

import {NgxMatTuiCalendarModule} from 'ngx-mat-tui-calendar';

Then add NgxMatTuiCalendarModule to your list of NgModule imports, in app.module.ts

Insert the following HTML into your app's template file

<mat-tui-calendar></mat-tui-calendar>

Set up an Angular theme. For example add the following line to the top of your src/styles.scss file

@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';

Quickstart Repo

A demonstration of the simple usage described above can be found at repo https://github.com/ron2015schmitt/ngx-mat-tui-calendar-quickstart

Demo Repo

A more extensive demonstration of usage can be found at repo https://github.com/ron2015schmitt/ngx-mat-tui-calendar-demo

Documentation

ngx-mat-tui-calendar

Selector: ngx-mat-tui-calendar

  <ngx-mat-tui-calendar #tuiCalendar 
    (userCreatedSchedule)="onUserCreatedSchedule($event)"
    (userUpdatedSchedule)="onUserUpdatedSchedule($event)"
    (userDeletedSchedule)="onUserDeletedSchedule($event)"
    [options]="options"
  >

Properties

| Name | Description | |------|-------------| | @Input() options: CalendarOptions | The options object for the calendar. | | @Output() userCreatedSchedule: EventEmitter | Event emitter that emits when the user creates a new "schedule" (ie calendar task). | | @Output() userUpdatedSchedule: EventEmitter | Event emitter that emits when the user updates a "schedule" (ie calendar task). | | @Output() userDeletedSchedule: EventEmitter | Event emitter that emits when the user deletes a "schedule" (ie calendar task). |

Options

export interface CalendarOptions {
  ioptions: IOptions, // IOptions is defined in the tui-calendar package
  darkMode: boolean,  // not yet implemented. default is false
  themeClass?: string,
  buttons: {       // this sets visibility of buttons.  default is true
    previous?: boolean,
    next?: boolean,
    today?: boolean,
    longPrevious?: boolean,
    longNext?: boolean,
    month?: boolean,
    week?: boolean,
    day?: boolean,
  };
}

Development

Getting started

git clone https://github.com/ron2015schmitt/ngx-mat-tui-calendar
cd ngx-mat-tui-calendar
npm install --legacy-peer-deps
ng build  
ng serve

Point your browser to http://localhost:4200/

library package for ngx-mat-tui-calendar

The code that makes up the npm package is located in folder projects/ngx-mat-tui-calendar.

After making changes, increment the version in projects/ngx-mat-tui-calendar/package.json. We use the convention that the major version number corresponds to the major version of Angular used. The minor and patch versions are specific to this package.

The top-level angular.json file defines the build process for the library. The top-level package.json must include all the peer dependencies in projects/ngx-mat-tui-calendar/package.json.

API

The API is defined in projects/ngx-mat-tui-calendar/src/public-api.ts.

Build

Run ng build to build the library project. The build artifacts will be stored in the dist/ngx-mat-tui-calendar directory.

README

The main README file (README.md) and the package README file (projects/ngx-mat-tui-calendar/README.md) must be manually kept in sync: if you change one, then copy the change to the other.

Publish package to https://npmjs.com/

Change directories to the dist/ngx-mat-tui-calendar directory and run the following:

npm login
npm publish

publish source to github

Commit your changes and push to github.com. Then create a tab and release on github that matches the npm version number.

Demo App

Development server

The demo app is defined by the top-level package.json file, the top-level angular.json file and the contents of the src folder.

Run ng serve demo for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

However, if you change the library files, in directory projects/ngx-mat-tui-calendar, you need to

  1. Rebuild the library using ng build
  2. Kill the dev server by typing Ctrl-C in the terminal where you are running ng serve demo
  3. Run ng serve demo to restart the dev server

Step 2 is usually necessary! You will get spurious errors without killing and restarting the server.