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

raise-frontend-component-new

v0.0.60

Published

Run `ng serve demo-app` to start the demo-app to debug the components. demo-app import local `raise-common-lib`, so you can import the component you want to debug

Readme

RaiseCommomLib

Debugging components

Run ng serve demo-app to start the demo-app to debug the components. demo-app import local raise-common-lib, so you can import the component you want to debug

Components development guide

  • Component and Service

    • how to writing and exporting
    // raise-common-lib.module.ts
    
    @NgModule({
      declarations: [
        CommonGridComponent,
      ],
      imports: [CommonModule, GridModule, PagerModule, GridAllModule],
      providers: [
        PageService,
        SortService,
        FilterService,
        ExcelExportService,
        EditService,
        ResizeService,
        ToolbarService,
        ColumnChooserService,
        AggregateService,
        ColumnMenuService,
        DetailRowService,
        SelectionService,
        GroupService,
      ],
      exports: [
        CommonGridComponent,
      ]
    })

    In short, components are written in declarations and exports, modules are written in imports, and services are written in providers.

    // public-api.ts
    
    /*
    * Public API Surface of raise-common-lib
    */
    export * from './lib/common-grid/index.component';
    export * from './lib/service/common-function.service';
    export * from './lib/raise-common-lib.module';
    • how to use
      import module
    // xxx.modules.ts
    
    import { RaiseCommonLibModule } from "raise-common-lib";
    @NgModule({
      imports: [RaiseCommonLibModule]
    })

    import service

    // xxx.component.ts
    
    import { CommonFunctionService } from "raise-common-lib";
    export class xxxComponent implements OnInit {
      constructor(
      	  public cmFun: CommonFunctionService
      )
      useComonFunc() {
        const dd = this.cmFun.testMethod();
      	console.log('dd',dd)
      }
    }
  • Style

    The global style file is placed in projects\raise-common-lib\src\assets\style , syncfusion.min.css is syncfusion style,variables.scss is our extracted css variables, style.scss is our custom style.

    • how to code, for example:
    :root {
        /*
        * font-family
        */
        --rs-font-family: Arial;
    
        /*
        * Background
        */
        --rs-container-bg: #f8fafb;
    
        /*
        * text
        */
        --rs-text-color: #1f3f5c;
        --rs-labels-color: #6c7c90;
        --rs-placeholder-color: #0369c2;
    
        /*
        * border
        */
    
        /*
        * grid
        */
        --rs-grid-header-cell-font-size: 10px; // grid header cell font size
        --rs-grid-row-cell-font-size: 11px; // grid row cell font size
        --rs-grid-row-hover-bg: rgba(31, 123, 255, 0.04); // grid row hover color
        --rs-grid-row-active-bg: rgba(31, 123, 255, 0.08); // grid row active color
    }

    in your component style file, you can import variables.scss and use the variables.

    @import '../../assets/style/variables.scss';
    
    .e-rowcell {
      padding: 2px 8px 3px;
      &:not(.e-editedbatchcell):not(.e-updatedtd) {
        color: var(--rs-text-color);
        font-family: Arial;
        font-size: var(--rs-grid-row-cell-font-size);
        font-weight: 400;
        line-height: 23px;
      }
    }
    • how to custom variables
      in variables.scss,we have defined some default variables, you can define your own variables in your component.
      // xxxx.component.html
      <div class="my-grid-1">
          <rs-common-grid>
          </rs-common-grid>
      </div>
      <div class="my-grid-2" >
          <rs-common-grid>
          </rs-common-grid>
      </div>
    // xxxx.component.scss
    .my-grid-1 {
      --rs-grid-row-cell-font-size: 15px;
    }
    .my-grid-2 {
      --rs-grid-row-cell-font-size: 12px;
    }