0.0.11 • Published 6 years ago

dgs-core v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Angular5 dgs-core - DGS Core

Warning

Library is under active development and may have breaking changes until stable 2.0.0 release or subsequent major versions after 2.0.0.

Getting started

Step 1: Install dgs-core

NPM

npm install --save dgs-core

Step 2: Import the component module

import { DGSCoreModule, IDGSEnvironment } from 'dgs-core';

const dgsEnvironment: IDGSEnvironment = {
  debug: environment.debug,
  apiUrl: environment.apiUrl,
  defaultLanguage: {
    Name: 'English',
    Code: 'en',
    Icon: 'fa fa-globe',
  },
  languages: [{
      Name: 'English',
      Code: 'en',
      Icon: 'fa fa-globe',
    }],
  lowerCaseTranslates: true,
};

@NgModule({
  declarations: [AppComponent],
  imports: [DGSCoreModule.forRoot(dgsEnvironment)],
  bootstrap: [AppComponent]
})
export class AppModule {}

Step 3: Include assets

To load assets like themes and pdf viewer its ncessary to include assets. IF you're using the Angular CLI, you can add this to your angular-cli.json. Note: Path to dgs-core bundle must set relative to basepath inside angular-cli.json.

"apps": {
    ...any,
    "assets": [
        ...any,
        {
          "glob": "**/*",
          "input": "../node_modules/dgs-core/assets/",
          "output": "./assets/"
        }
    ],
    ...any,
}

Step 4: Include a theme

For now library doesn't allow you to use a custom theme, but i will be avalaible soon. Keep in touch with us.

API

Inputs

InputTypeDefaultRequiredDescription
taskTask-yesInitial process object
languageLangThe one you sent in dgsEnvironmentnoSends active language to dgs-core
gridbooleanfalsenoLet dgs-core know that you are gonna use instance as a grid
hideNamebooleanfalsenoDecides to show process name or not

Contributors

Contributor NameContributor Page
Grigore Melecagrigoreme

Development

Setup build path

Open ng-package.json and setup dest to location where you want your build to go. (example: ../myProject/node_modules/dgs-core)

Build

npm run build

For more information read docs/developer_guide.md

Release

To release to npm just run npm run release, of course if you have permissions ;)

Inspiration

Thanks to ng-select for README inspiration.

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago