GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RbkGh/NgFluentOrderTracker: Your one-stop beautiful order tracker component for angular.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
e2e
e2e
 
 
src
src
 
 
.angular-cli.json
.angular-cli.json
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
karma.conf.js
karma.conf.js
 
 
ng-package.json
ng-package.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
protractor.conf.js
protractor.conf.js
 
 
public_api.ts
public_api.ts
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 

Repository files navigation

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
  • Contributing
  • Development

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/>.

About

Your one-stop beautiful order tracker component for angular.

Topics

angularangular-componentangular-libraryangular-widgetangular2angular4angular6ionicionic-framework

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.