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

axiom-scheduler

v2.1.5

Published

An Angular Scheduler component with multiple view modes,themes and animations.

Downloads

35

Readme

Axiom Scheduler (beta)

Axiom scheduler is an angular scheduler component use Momentjs.

Online Demo

Usage Demo

Demo source is available here : Source

Install component package from npm :

npm install axiom-scheduler moment angular2-draggable

Axiom Scheduler also need to install @angular/animations. (By default angular will install animation module when you create a new angular project using angular CLI)

For drag and resizing feature Axiom scheduler using angular2-draggable, Thanks to xieziyu :blush:.

Import component module :

import { AxiomSchedulerModule } from 'axiom-scheduler';

...

@NgModule({
  imports: [
    AxiomSchedulerModule
  ], 
  declarations: [
    AppComponent
  ],
  bootstrap: [AppComponent]
})

...

Usage

Add ax-scheduler tag to use scheduler.


<ax-scheduler [axEventTemplate]="eventTemplate" [axSchedulerView]="'week'"
      [axEventToolbar]="true" [axAnimation]="'default" [axTheme]="'light'" [axEvents]="events"
      [axDragStep]="5" [axShowLocale]="true">
</ax-scheduler>

Events

Axiom scheduler using an AxiomSchedulerEvent array to view events. AxiomSchedulerEvent is a class that contains these members :

| Name | Type | Default | Description | | ------ | ------ | ------ | ------ | | _id | Symbol | this member is readonly | provide a unique id for each event and could be use in delete and edit operations | | from | Date | null | start date of event | | to | Date | null | end date of event | | data | Date | null | provide an object to store event additional data | | color | string | null | color of event | | locked | boolean | false | when it is true event will be locked | | title | string | null | default title of event |

Custom event template

For customizing events to show you can use [axEventTemplate] parameter and design your events template.


<ng-template #t let-item="item">
   <div class="event-template">
      {{ item.data.title }} at <b> {{ item.from | date:'HH:mm' }} {{ item.to | date:'HH:mm' }} </b>
   </div>
</ng-template>

<ax-scheduler [axEventTemplate]="t" [axSchedulerView]="'week'"
      [axEventToolbar]="true" [axAnimation]="'default" [axTheme]="'light'" [axEvents]="events"
      [axDragStep]="5" [axShowLocale]="true">
</ax-scheduler>

As shown above, #t template passed to [axEventTemplate], item variable provide entire event to use in your template.

Events drag and resize

You can drag and resize events to new hours easily. For lock an event and disable drag and resize features just in event object set lock property to True.

Alt Text

Localization

For change scheduler locale just pass your locale to [axLocale], Always you can check available locales in Momentjs i18n document.


<ax-scheduler [axLocale]="'bm'">
</ax-scheduler>

Alt Text

Themes

For change scheduler theme just pass 'light' or 'dark' to [axTheme].


<ax-scheduler [axTheme]="'dark'">
</ax-scheduler>

Alt Text

Animations

For change scheduler theme just pass available animations shown in Input params table to [axAnimation].


<ax-scheduler [axAnimation]="'animation4'">
</ax-scheduler>

Alt Text

@Input() Params

| Name | Type | Default | Usage | | ------ | ------ | ------ | ------ | | axEvents | -- | AxiomSchedulerEvent [ ] | List of scheduler events | | axStartDate | Date | Today | Current date of scheduler | | axEventTemplate | TempateRef | -- | Custom template for events | | axDragStep | Number | 5 | Events drag and resize step | | axLocale | String | 'en' | Set scheduler locale, for more information of available locales, check Momentjs i18n document | | axEventToolbar | boolean | false | Show/Hide events toolbar | | axSchedulerView | AxiomSchedulerView | 'day' | Set default scheduler view, Available views : 'day', 'week', 'month', 'year' | | axViews | AxiomSchedulerView [ ] | All views | Set scheduler available views to show | | axTheme | AxiomSchedulerTheme | 'light' | Set default scheduler theme, Available themes : 'light', 'dark' | | axAnimation | AxiomSchedulerAnimation | 'default' | Set default scheduler animation effects, Available animations : 'animation1', 'animation2', 'animation3', 'animation4', 'default', 'none' | | axShowLocale | boolean | true | Show/Hide locale dropdown | | axShowLocale | boolean | true | Show/Hide locale dropdown |

@Output() Params

| Name | Event Paramaters | Description | ------ | ------ | ------ | | axEventChange | AxiomSchedulerEvent | Fire when an event changed by dragging, resizing, or ... | | axEventClick | AxiomSchedulerEvent | Fire when an event clicked | | axEventDeleteClick | AxiomSchedulerEvent | Fire when remove button clicked from event's toolbar | | axEventEditClick | AxiomSchedulerEvent | Fire when edit button clicked from event's toolbar | | axDateChange | Date | Fire when date of scheduler changed by navigator | | axViewChange | AxiomSchedulerView | Fire when view of scheduler changed |

License

MIT