New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@reportwright/angular

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reportwright/angular

ReportWright viewer and designer custom elements for Angular (CUSTOM_ELEMENTS_SCHEMA).

Source
npmnpm
Version
0.13.1
Version published
Weekly downloads
77
-96.17%
Maintainers
1
Weekly downloads
 
Created
Source

@reportwright/angular

npm license Socket

<reportwright-viewer> and <reportwright-designer> custom elements for Angular. Custom elements need no Angular compiler step, so they work with any Angular version.

// main.ts
import { defineReportWrightElements } from '@reportwright/angular';
defineReportWrightElements();

// a standalone component
@Component({
  selector: 'app-report',
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  template: `
    <reportwright-viewer [options]="{ definition: def, data: { orders: orders }, fontsUrl: '/pw/fonts/' }"></reportwright-viewer>
    <reportwright-viewer [options]="{ server: 'https://reports.example.com', report: 'invoice', params: { id: id } }"></reportwright-viewer>
    <reportwright-designer [options]="{ server: server, definition: def }" (pw-save)="save($event.detail)"></reportwright-designer>`,
})
export class ReportComponent { /* … */ }

options are those of mountViewer / mountDesigner (see @reportwright/viewer); server, report, height and lang also work as attributes. Events: pw-ready (detail: the handle) and, on the designer without an onSave, pw-save (detail: the definition). MIT.

No server needed: pass definition, data (JSON by data source name) and fontsUrl (a copy of @reportwright/fonts/public/fonts). server (the self-hosted ReportWright server) is optional: see what works standalone.

Keywords

reportwright

FAQs

Package last updated on 08 Oct 2026

Related posts