# ngx-docks

> Angular library for live layout customization.

Latest version **1.0.1** (published 2018-12-20) · 0 weekly downloads

## Install

```sh
npm install ngx-docks
pnpm add ngx-docks
yarn add ngx-docks
bun add ngx-docks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-12-20 |
| First published | 2018-12-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Solvera sp. z o. o. |
| Maintainers | solvera.io |

## Links

- npm: https://www.npmjs.com/package/ngx-docks
- npm.io page: https://npm.io/package/ngx-docks

## Recent versions

- 1.0.1 (latest) — 2018-12-20
- 1.0.0 — 2018-12-20
- 0.1.0 — 2018-12-19

## README

# ngx-docks

## Table of contents
1. [Getting Started](#getting-started)
2. [Features](#features)
3. [Installation](#installation)
4. [Usage](#usage)
5. [License](#license)
6. [Contributing](#contribution)

## <a name="getting-started"></a> Getting Started


`ngx-docks` is an Angular component for layout customization. It allows you to freely move, dock and undock all of the layout components up to your needs. The library was designed to be extremely flexible and light; Try it out and see how it can improve your website.
 
It was built for modern browsers using _TypeScript, CSS3 and HTML5_ and Angular `>=4.0.0`.

Check out the [documentation](http://ngx-docks.com/documentation.html) & [demos](http://ngx-docks.com/examples.html) for more information!

### Browsers support

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
| --------- | --------- | --------- | --------- | --------- |
| Edge | since 63.0 | ✓ | ✓ | ✓

## <a name="features"></a> Features
- Dynamic docks to presenting your own components in the way you want
- The ability to create your own docks layouts
- Resizable and draggable windows
- User own layouts saving
- Decoupled theme'ing with included Google Material theme
- Light codebase / No external dependencies
- AoT Compilation Support

## <a name="installation"></a> Installation

To use ngx-docks in your project install it via npm:

```
npm i ngx-docks --save
```

## <a name="usage"></a> Usage

### Import `DocksModule`

You need to import the `DocksModule` in the module of your app where you want to use it.

```js
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DemoComponent } from "./components/demo-component";
import { DocksModule } from 'ngx-docks';

@NgModule({
  imports: [
      BrowserModule, 
      DocksModule
  ],
  declarations: [DemoComponent],
  bootstrap: [DemoComponent]
})
export class AppModule {}
```

### Create docks board

You need to declare all components used in dynamic docks.

```js
import {DockMap, DockMenuItem, DockPreset} from 'ngx-docks/lib/interface';
import {DocksModule} from 'ngx-docks';
...

export class AppComponent {

  public boardId = 'unique-board-id';
  public dockMap: DockMap = null;
  public menu: DockMenuItem[] = null;
  public presets: DockPreset[] = [];  // your own set of presets

  constructor() {
    [this.menu, this.dockMap] = DocksModule.createMenuAndMap([
      FirstDockWindowComponent,
      SecondDockWindowComponent,
      ThirdDockWindowComponent
    ]);
  }
}
```

And add board component to your page:

```angular2html
<div class="container">
  <ngx-dock-board
    [boardId]="boardId"
    [dockMap]="dockMap"
    [menu]="menu"
    [presets]="presets"
  ></ngx-dock-board>
</div>
```  

Your dock components should contains static parameters:

```angular2html
```js
export class FirstDockWindowComponent {

    static dockTitle = 'Dock title';
    static dockKey = 'dock_key_id';
    
    constructor() { }
}
```
```

## <a name="license"></a>Licence

### Personal/Open-Source

Use in personal/open-source projects, such as:

    Your portfolio website
    Charity websites
    
Distribute, modify, and/or integrate the ngx-docks.js Library in multiple personal/open-source projects under the same GPLv3 license

The ngx-docks.js Library is made available under a GPLv3 license for open-source and personal projects.

GPLv3 license Summary:

    The GPLv3 allows others to copy, distribute and modify the software as long as they state what has been changed when, and ensure that any modifications are also licensed under the GPL. Software incorporating (via compiler) GPL-licensed code must also be made also available under the GPLv3 along with build & install instructions.




### Commercial

Client projects
Distribute, modify, and/or integrate the ngx-docks.js Library in one commercial application per license


You must purchase a commercial license for each project you plan to integrate the ngx-docks.js Library unlimited to number of developers.

Your end users do not need to purchase a license, providing they are not creating their own commercial applications. 


**DETAILS:**

Licensee may use ngx-docks component in any web application manufactured and marketed by the Licensed company.
The count of the applications is not restricted. 
The count of appearances of ngx-docks component in these applications is not restricted. 


Unlimited number of developers from licensed company may work with ngx-docks.


As developer is identified any person who works with ngx-docks 
and requires for his work some knowledge about ngx-docks API or configuration.

None of Licensee's customers may assign their own developers to work with any Licensee's application 
that require any knowledge about ngx-docks API or configuration.

Licensee must not sell or give to anybody outside the Licensed company ngx-docks component alone 
as the component to build any other web applications.
Licensee must not sell ngx-docks as part of any web component with the similar functionality as ngx-docks itself.

Licensee may modify any ngx-docks files to comply with their needs.

## <a name="contributing"></a>Contributing

Solvera  is a platform of digital natives united in a developer community. Well organized, communicative, and patient, focused on handling your business challenges in a highly IT-literate way.
        
We are the ideal companion to turn an arduous journey into a march of creativity, involvement and effectiveness.
        
As problem solvers, we work on the most diverse and challenging projects, we are comfortable in both start-up and enterprise environments alike.
        
A highly-skilled, experienced, and dedicated team makes us adept at tackling the most complex projects and delivering outstanding results.

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