qms-angular
TypeScript icon, indicating that this package has built-in type declarations

1.1.56 • Public • Published

QmsAngular

This library was generated with Angular CLI version 12.0.5.

Code scaffolding

Run ng generate component component-name --project qms-angular to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project qms-angular.

Note: Don't forget to add --project qms-angular or else it will be added to the default project in your angular.json file.

Build

Run ng build qms-angular to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build qms-angular, go to the dist folder cd dist/qms-angular and run npm publish.

Running unit tests

Run ng test qms-angular to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Installation

Use the package Jquery, Dagre.

npm i jquery
npm i dagre@0.8.4

App must have using material theming as below:

@use '~@angular/material' as mat;
@import "~@angular/material/theming";

@include mat.core();

$app-primary: mat.define-palette(mat.$indigo-palette);
$app-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);

$app-warn: mat.define-palette(mat.$red-palette);

$app-theme: mat.define-light-theme($app-primary, $app-accent, $app-warn);

@include mat.all-component-themes($app-theme);

In your common styles, import qms theming.

@import 'qms-angular/lib.theme';

Should add some script in build angular.json

 "assets": [
    ...
    {
    "glob": "**/*",
    "input": "dist/qms-angular/src/assets",
    "output": "/assets/"
    }
  ],
  "styles": [
      ...
      "./node_modules/bootstrap/dist/css/bootstrap.min.css",
      "./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
      "src/styles.scss"
    ],
 ....
 "scripts": [
    ...
    "./node_modules/qms-angular/src/assets/jointjs/js/gd.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/client.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/jquery/jquery.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/lodash/lodash.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/backbone/backbone.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/rappid.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/example.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/joint.format.svg.js",
    "./node_modules/qms-angular/src/assets/jointjs/js/joint.format.raster.js"
  ]     

Usage: Can import in your main modules.

import { QmsAngularModule, QMSButtonModule... } from 'qms-angular';

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.56
    19
    • latest

Version History

Package Sidebar

Install

npm i qms-angular

Weekly Downloads

22

Version

1.1.56

License

none

Unpacked Size

35.3 MB

Total Files

2456

Last publish

Collaborators

  • tamphuc0503