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-bpm-ui

v11.6.2

Published

ng-bpm provides Angular components and services for Fujitsu's Digital Transformation Platform (DXP). ng-bpm consists of two libraries: - ng-bpm: Services for the AA REST API - ng-bpm-ui: GUI components

Downloads

8

Readme

ng-bpm

ng-bpm provides Angular components and services for Fujitsu's Digital Transformation Platform (DXP). ng-bpm consists of two libraries:

  • ng-bpm: Services for the AA REST API
  • ng-bpm-ui: GUI components

Using the ng-bpm library

Install the library using npm. For example:

npm install ng-bpm

Establish a session with the BPM server

Use ConnectionManagerService.getLoginInfo() to get a session on the BPM server:

constructor(
    private connectionManagerService: ConnectionManagerService,
    private bpmService: BpmService
) { }

// You can call getLoginInfo any number of times.
private getTenantsObservableFactory(bpmConnectionServer: BpmConnectionServer): Observable<BpmTenant[]> {
    return this.connectionManagerService.getLoginInfo(this.server).pipe(
        flatMap(() => this.bpmService.getTenants(bpmConnectionServer))
    );
}

Using the ng-bpm-ui library

Make sure you followed the instructions above for the ng-bpm library. In your own application do the following:

  1. Run npm install ng-bpm-ui

  2. Install the peer dependencies for ng-bpm-ui to your package.json

  • npm install bootstrap
  • npm install @ng-bootstrap/ng-bootstrap
  • npm install @ngx-translate/core
  • npm install @ngx-translate/http-loader
  • npm install font-awesome
  • npm install @fortawesome/angular-fontawesome
  • npm install @fortawesome/fontawesome-svg-core
  • npm install @fortawesome/free-solid-svg-icons
  1. Update your .angular.json
  • Under styles block add below code
    • "node_modules/bootstrap/dist/css/bootstrap.min.css",
    • "node_modules/font-awesome/css/font-awesome.min.css"

ng-bpm-ui internationalization

To implement i18n:

  1. Update AppComponent and add translation related code - import { TranslateService } from 'ng-bpm'; - Under class AppComponent block add below code
constructor(
    private translate: TranslateService,
) {
    this.translate.addLangs(['en', 'fr']);
    this.translate.setDefaultLang('en');
    const browserLang = translate.getBrowserLang();
    translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');
}
  1. Reference the language libraries from the ng-bpm-ui assets folder in angular.json. For example:
"assets": [
  "src/favicon.ico",
  "src/assets",
  {
    "glob": "**/*",
    "input": "./node_modules/ng-bpm-ui/assets/i18n",
    "output": "./assets/i18n"
  }
],

For an example please refer to the PUP.

ng-bpm Development

The source code for this project is here: https://interstage.beanstalkapp.com/agileengine

Running the ng-bpm Reference

Clone or copy the project.

Run npm install

Run ng serve and navigate to http://localhost:4200/. This displays the ng-bpm Reference.

Testing with a Live DXP Server

The ng-bpm Reference doesn't implement a login page so you need to connect to the DXP Monitor first. Navigate to the DXP Monitor page URL which looks something like http://dxpdemo7:49950/aa and assure you are logged in.

Packaging

To create the release package run npm run build-libs to build the ng-bpm and ng-bpm-ui libraries in the release folder.