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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ferhaps/easy-ui-lib

v21.0.5

Published

Angular UI components, directives and pipes library with Angular Material

Downloads

437

Readme

@ferhaps/easy-ui-lib

A comprehensive Angular UI library providing reusable components, directives, and pipes built with Angular Material.

Installation

npm install @ferhaps/easy-ui-lib

Dependencies

This library requires:

  • Angular ^20.3.3
  • Angular Material ^20.2.7
  • Angular CDK ^20.3.3

Components

TableComponent

A feature-rich table component supporting:

  • Sorting
  • Single and Multi row selection
  • Drag & drop rows
  • Custom options menu
  • Infinite scroll
  • Customizable styles
  • Custom header
<lib-table
  [config]="{
    data: items,
    title: 'Users Table',
    dataProps: ['id', 'name', 'email'],
    tableHeadings: ['ID', 'Name', 'Email'],
    options: ['Edit', 'Delete'],
    withAdd: true,
    selectableRows: 'single' | 'multiple',
    sortable: true,
    draggable: true
  }"
  (action)="handleTableAction($event)">
  <div class="upper-part">Optional content to be displyed at the top of the table</div>
  <tr class="custom-headers">Custom header elements will be shown only if tableHeadings is empty</tr>
</lib-table>
export type SortState = 'none' | 'asc' | 'desc';

export type TableEvent<T = any> = {
  action: 'rowClick' | 'rowSelect' | 'drag' | 'scroll' | 'scrolled' | 'sort' | 'add' | string;
  obj?: T;
  prop?: keyof T;
  index?: number;
  selected?: boolean;
  selectedRows?: number[];
  sortState?: SortState;
  event?: Event;
};

handleTableAction(event: TableEvent) {}

SearchBarComponent

A styled search input with debounce functionality. The search event emits either a string or Event. Event is emitted when the "X" button is pressed

<lib-search-bar
  [for]="'users'"
  (search)="onSearch($event)">
</lib-search-bar>

DefaultDialogComponent

A customizable dialog component with optional back button.

<lib-default-dialog
  [dialogTitle]="'User Details'"
  [height]="'400px'"
  [withBack]="true"
  (back)="onBack()">
  <div class="dialog-content">
    <!-- Your content here -->
  </div>
</lib-default-dialog>

GlobalLoaderComponent

A centered spinner overlay for loading states.

<lib-global-loader />
private loaderService = inject(LoaderService);
this.loaderService.setLoading(true);
// do stuff
this.loaderService.setLoading(false);

ErrorHandlerComponent

Displays error messages in a dialog format.

<lib-error-handler />
private errorService = inject(ErrorService);
try {
  this.apiCall();
}
catch (e: HttpErrorResponse) {
  this.errorService.sendError(e);
}

Directives

FieldsMatchValidatorDirective

Validates if two form fields match (useful for password confirmation).

<input type="password" />
<input type="password-repeat" [libFieldsMatchValidator]="'password'" />

PasswordValidatorDirective

Ensures password meets the following requirments:

  • At least one uppercase letter
  • At least one lowercase letter
  • At least one special character from the specified set
  • At least one number
  • Minimum length of 8 characters
<input type="password" libPasswordValidator />

PhoneValidationDirective

Formats and validates phone number input as follows:

  • Ensures the input always starts with a '+' symbol If missing, automatically prepends it to the value

  • Allows only numbers and the plus sign

  • Prevents removing the initial '+' symbol:

<input type="tel" libPhoneValidation />

Pipes

SnakeCaseParserPipe

Converts snake_case to Title Case text.

<div>{{ 'user_name' | snakeCaseParser }}</div> <!-- Output: User name -->

Services

LoaderService

Manages global loading state.

private loaderService = inject(LoaderService);
this.loaderService.setLoading(true);
// do stuff
this.loaderService.setLoading(false);

ErrorService

Handles global error display.

private errorService = inject(ErrorService);
try {
  this.apiCall();
}
catch (e: HttpErrorResponse) {
  this.errorService.sendError(e);
}

Contributing

Please read our contributing guidelines and code of conduct before submitting pull requests.

License

MIT © [Ferhan Cherkez]