# dgs-core

> DGS core.

Latest version **0.0.11** (published 2018-08-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dgs-core
pnpm add dgs-core
yarn add dgs-core
bun add dgs-core
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2018-08-06 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 306.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Meleca Grigore |
| Maintainers | zaruba |
| Keywords | angular, angular 2, angular 5, angular 6, dgs |

## Links

- npm: https://www.npmjs.com/package/dgs-core
- npm.io page: https://npm.io/package/dgs-core

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.7.1

## Recent versions

- 0.0.11 (latest) — 2018-08-06
- 0.0.10 — 2018-08-03
- 0.0.9 — 2018-08-03
- 0.0.8 — 2018-08-02
- 0.0.7 — 2018-08-02
- 0.0.6 — 2018-08-02
- 0.0.5 — 2018-08-02
- 0.0.4 — 2018-08-02
- 0.0.3 — 2018-08-02
- 0.0.2 — 2018-08-02
- 0.0.1 — 2018-08-02

## README

# Angular5 dgs-core - DGS Core

* [Getting started](#getting-started)
* [Roadmap](#roadmap)
* [API](#api)
* [Contributors](#contributors)
* [Development](#development)

## 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

```shell
npm install --save dgs-core
```

### Step 2: Import the component module

```js
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`._

```js
"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

| Input  | Type | Default | Required | Description |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| task | `Task` | - | yes | Initial process object |
| language | `Lang` | The one you sent in `dgsEnvironment` | no | Sends active language to `dgs-core` |
| grid | `boolean` | `false` | no | Let `dgs-core` know that you are gonna use instance as a grid |
| hideName | `boolean` | `false` | no | Decides to show process name or not |

## Contributors

| Contributor Name | Contributor Page |
| ------------- | ------------- |
| Grigore Meleca | [grigoreme](https://github.com/grigoreme) |

## 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

```shell
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.

---
_Source: https://npm.io/package/dgs-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
