npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@srikanthsai27/common-view-all-lib-test

v1.2.1

Published

A dynamic, configuration-driven Angular library for generating forms and data tables with advanced features like column customization and export.

Downloads

35

Readme

Common View All Library

This library provides a dynamic, configuration-driven interface for Angular applications, including dynamic forms and data tables.

📋 Features

  • Dynamic Form Generation from JSON configuration (using Formly)
  • Data Table Display with sorting, pagination, and filtering (using Angular Material)
  • Advanced Table Features: Column customization, Excel/PDF export (SAS URL based), multi-select
  • Responsive Design: Optimized for both mobile and desktop views
  • Configurable API Integration: Flexible base URL and prefix mapping for different services

🚀 Quick Setup

1. Installation

npm install @srikanthsai27/common-view-all-lib-test

2. Configuration

Configure the library in your app.config.ts or AppModule:

import { COMMON_VIEW_ALL_CONFIG } from '@srikanthsai27/common-view-all-lib-test';

const commonViewAllConfig = {
  commonBaseURL: 'https://your-api-base-url.com',
  apiPrefix: {
    UAD: 'uad-api',
    TAX: 'tax-api',
    FORMS: 'forms-api',
    PRODUCTS: 'products-api',
    INTEGRATION: 'integration-api',
    DOCUMENTS: 'documents-api',
    CHECKLIST: 'checklist-api'
  }
};

// In your providers array:
{ provide: COMMON_VIEW_ALL_CONFIG, useValue: commonViewAllConfig }

3. Usage

Import the component and use it in your template:

import { CommonViewAllComponent } from '@srikanthsai27/common-view-all-lib-test';

@Component({
  selector: 'app-report-page',
  standalone: true,
  imports: [CommonViewAllComponent],
  template: `
    <lib-common-view-all [screenConfigID]="'YOUR_SCREEN_CONFIG_ID'"></lib-common-view-all>
  `,
})
export class ReportPageComponent {}

🔧 Core Components

CommonViewAllComponent

The main entry point that fetches configuration and renders both the search form and the result table.

  • Input: screenConfigID: string - The ID used to fetch the UI configuration from the backend.

Services

  • LibCommonService: Handles common UI interactions and error dialogs.
  • LibRestService: Manages API calls with configurable prefixes.
  • LibFormlyApiService: Facilitates dynamic form generation and validation.

🌍 Required Dependencies

Ensure your project has the following dependencies installed:

  • @angular/material
  • @angular/cdk
  • @ngx-formly/core
  • @ngx-translate/core
  • moment
  • rxjs

🌍 Translation Keys

Add the following keys to your translation files (e.g., en.json):

{
  "search_criteria": "Search Criteria",
  "search": "Search",
  "reset": "Reset",
  "Edit_Filters": "Edit Filters",
  "not_find_search_filter": "No search filters found",
  "ERROR": "Error occurred",
  "customErrMsg": "Please contact support",
  "corsMessage": "CORS error"
}

📄 License

MIT