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

ng-fluent-order-tracker

v1.2.0

Published

Github Url : ================= [https://github.com/RbkGh/NgFluentOrderTracker](https://github.com/RbkGh/NgFluentOrderTracker)

Downloads

4

Readme

NgFluentOrderTracker - Your one-stop beautiful order tracker component for angular apps

Github Url :

https://github.com/RbkGh/NgFluentOrderTracker

Demo

Table of contents

Getting started & Usage

Step 1: Install ng-fluent-order-tracker:

npm i ng-fluent-order-tracker

Step 2: (i) Import the FluentOrderTrackerModule by including it in its @NgModule imports array:


import {FluentOrderTrackerModule} from './modules/fluent-order-tracker/fluent-order-tracker.module';


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

Step 2 (ii) initialize orderEntities in your component.Eg :


import {Component, OnInit} from '@angular/core';
import {OrderEntity} from './modules/fluent-order-tracker/models/order-entity';
import {OrderState} from './modules/fluent-order-tracker/models/order-state.enum';
import {OrderStateTextUtil} from './modules/fluent-order-tracker/util/order-state-text.enum';

@Component({
 selector: 'app-root',
 templateUrl: './app.component.html',
 styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
 orderEntities: Array<OrderEntity> = [];

 ngOnInit(): void {
   this.initOrderEntities();
 }

 initOrderEntities() {
   const orderEntityProcessed: OrderEntity = {} as OrderEntity;
   orderEntityProcessed.orderState = OrderState.COMPLETED;
   orderEntityProcessed.orderStateText = OrderStateTextUtil.ORDER_PROCESSED;

   const orderEntityApproved: OrderEntity = {} as OrderEntity;
   orderEntityApproved.orderState = OrderState.DECLINED;
   orderEntityApproved.orderStateText = OrderStateTextUtil.ORDER_DECLINED;

   const orderEntityShipped: OrderEntity = {} as OrderEntity;
   orderEntityShipped.orderState = OrderState.TODO;
   orderEntityShipped.orderStateText = OrderStateTextUtil.ORDER_SHIPPED;

   const orderEntityInTransit: OrderEntity = {} as OrderEntity;
   orderEntityInTransit.orderState = OrderState.COMPLETED;
   orderEntityInTransit.orderStateText = OrderStateTextUtil.ORDER_IN_TRANSIT;

   const orderEntityDelivered: OrderEntity = {} as OrderEntity;
   orderEntityDelivered.orderState = OrderState.COMPLETED;
   orderEntityDelivered.orderStateText = OrderStateTextUtil.ORDER_DELIVERED;

   this.orderEntities.push(orderEntityProcessed);
   this.orderEntities.push(orderEntityApproved);
   this.orderEntities.push(orderEntityShipped);
   this.orderEntities.push(orderEntityInTransit);
   this.orderEntities.push(orderEntityDelivered);

 }
}

Step 3 : Use the selector in a component template :

<app-fluent-order-tracker [orderEntities]="orderEntities"></app-fluent-order-tracker>

checkout how to populate orderEntities in app.component.ts for more details

Contributing

Contributions are welcome. You can start by looking at issues with label Help wanted or creating new Issue with proposal or bug report. Note that we are using https://conventionalcommits.org/ commits format.

Development

npm run packagr

npm pack in dist folder

npm login

npm publish dist

Inspiration

This library is inspired by Order Status Tracking

Warning

Library is under active development and may have API breaking changes for subsequent major versions after 1.0.0.

Author(s)

  • Rodney Boachie

License:

Copyright (C) 2018 Rodney Boachie <[email protected]>
This file is part of NgFluentOrderTracker
NgFluentOrderTracker is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.