open-index/open-npm huggingface dataset:
npm package: @qbs-origin/sign-lib
Description: Angular library for digital signature functionality with PDF viewing and signing capabilities.
Latest version: 2.1.26

# @qbs-origin/sign-lib

Angular library for digital signature functionality with PDF viewing and signing capabilities.

## Installation

```bash
npm install @qbs-origin/sign-lib
```

## Peer Dependencies

This library requires the following peer dependencies:

```bash
npm install @angular/common @angular/core pdfjs-dist ng2-pdf-viewer
```

## Usage

Import the `SignLibModule` in your Angular module:

```typescript
import { SignLibModule } from '@qbs-origin/sign-lib';

@NgModule({
  imports: [
    SignLibModule
  ]
})
export class AppModule { }
```

## Component Usage

Use the `SignLibComponent` in your template:

```html
<sign-lib
  [config]="signConfig"
  (libEvent)="onSignEvent($event)">
</sign-lib>
```

## Configuration

```typescript
const signConfig = {
  AppDataId: 'your-app-data-id',
  StepId: 'step-identifier',
  Token: 'auth-token',
  BaseUrl: 'https://your-api-url.com',
  AutoSign: false,
  ShowConfirm: true,
  SignMode: 'client' // 'client' | 'both'
};
```

## Events

The component emits events through `libEvent`:
- `'success'` - Signing completed successfully
- `'error'` - An error occurred during signing

## License

Proprietary - Qoobiss