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

@sdcorejs/angular

v20.1.5

Published

Angular Material-based UI building blocks for data-heavy business applications. The package combines standalone components, consistent form controls, workflow primitives, application services, theming, and localization for Angular 19, 20, and 21.

Downloads

3,104

Readme

@sdcorejs/angular

Angular Material-based UI building blocks for data-heavy business applications. The package combines standalone components, consistent form controls, workflow primitives, application services, theming, and localization for Angular 19, 20, and 21.

npm version monthly npm downloads Angular 19, 20, and 21 MIT license

Showcase · Quick start · API manifest · Source · Changelog · Issues

Compatibility

Install the package major that matches your Angular application.

| Angular | Package | Recommended install | | ------- | ----------------------- | ------------------------------------------------------------------------------------------------ | | 19.x | @sdcorejs/angular@^19 | npm install @sdcorejs/angular@^19 @angular/material@^19 @angular/material-date-fns-adapter@^19 | | 20.x | @sdcorejs/angular@^20 | npm install @sdcorejs/angular@^20 @angular/material@^20 @angular/material-date-fns-adapter@^20 | | 21.x | @sdcorejs/angular@^21 | npm install @sdcorejs/angular@^21 @angular/material@^21 @angular/material-date-fns-adapter@^21 |

The package manifests accept Angular 19–21 peers, while releases provide an Angular-aligned package line for each major. The first version number is reserved for Angular compatibility, so read the changelog for explicitly labeled breaking changes before upgrading.

Installation and setup

The examples below use Angular 19; replace 19 with your application's Angular major.

npm install @sdcorejs/angular@^19 @angular/material@^19 @angular/material-date-fns-adapter@^19

Load the global stylesheet once:

/* styles.scss */
@use '@sdcorejs/angular/assets/scss/sd-core';

The stylesheet includes the Roboto, Material Icons, and Material Symbols font files used by the library. No Google Fonts link is required. @sdcorejs/utils, date-fns, and other declared implementation dependencies install transitively.

Quick start

This standalone component renders a primary action and shows the button's built-in loading state while work is in progress. No SDCoreJS-specific provider is required for this example.

import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
import { SdButton } from '@sdcorejs/angular/components/button';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [SdButton],
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <sd-button type="fill" color="primary" title="Save changes" [loading]="saving()" (click)="save()" />

    <p aria-live="polite">{{ status() }}</p>
  `,
})
export class AppComponent {
  readonly saving = signal(false);
  readonly status = signal('Ready');

  async save(): Promise<void> {
    this.saving.set(true);
    this.status.set('Saving…');

    await new Promise<void>(resolve => setTimeout(resolve, 700));

    this.status.set('Saved');
    this.saving.set(false);
  }
}

Replace the timer with your typed service call and reset saving in a finally block in production code.

Main capabilities

| Area | Representative APIs | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- | | UI components | Navigation/data state, PDF preview, job progress, audit diff, modals, drawers, tabs, charts, editors, and document tooling | | Data and workflow | Local/server tables, entity/tree pickers, query builders, unsaved-change guards, background tasks, upload, and Excel import | | Form controls | Text/mask, number, time/time range, date/date range, datetime, select, autocomplete, checkbox, radio, switch, chip, and color | | Services | Typed API/retry/cancel, ref-counted loading, graph-safe persistence/cache/storage, viewport signals, notifications, and exports | | Portal modules | Auth, Keycloak, permission, layout, and icon modules | | Localization | Built-in vi, en, ja, ko, and zh catalogs, plus a synchronous custom-catalog provider |

The live showcase demonstrates components, forms, and services. The latest API manifest lists every published reference document without duplicating the full API here.

Standalone and subpath imports

Prefer public leaf entry points so dependencies stay explicit and unused entry points can be removed from the application graph. The package declares sideEffects: false.

import { SdButton } from '@sdcorejs/angular/components/button';
import { SdTable, type SdTableOption } from '@sdcorejs/angular/components/table';
import { SdInput } from '@sdcorejs/angular/forms/input';
import { SdNotifyService } from '@sdcorejs/angular/services/notify';
import { I18nService } from '@sdcorejs/angular/i18n';

Import standalone components in the host component's imports array and inject services normally.

Form controls use [(model)]. For group validation, pass a FormGroup through [form] and provide a name; SDCoreJS controls do not use formControlName or [(ngModel)] as their integration contract.

import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { SdInput } from '@sdcorejs/angular/forms/input';

@Component({
  selector: 'app-customer-form',
  standalone: true,
  imports: [SdInput],
  template: `
    <sd-input [form]="customerForm" name="customerName" label="Customer name" required maxlength="100" [(model)]="customer.name" />
  `,
})
export class CustomerFormComponent {
  readonly customerForm = new FormGroup({});
  readonly customer = { name: '' };
}

Theming

sd-core.scss loads the reset, utilities, bundled fonts, semantic colors, form styles, and Angular Material theme baseline. Override public semantic colors with sd.theme():

@use '@sdcorejs/angular/assets/scss/sd-core';
@use '@sdcorejs/angular/assets/scss/themes/default' as sd;

html {
  @include sd.theme(
    (
      primary: #2563eb,
      primary-light: #dbeafe,
      primary-dark: #1d4ed8,
    )
  );
}

See the assets and SCSS reference for supported --sd-* tokens, Material M3 guidance, utilities, fonts, and image assets.

Internationalization

Set the default Core UI language through SD_CORE_CONFIGURATION:

import { ApplicationConfig } from '@angular/core';
import { type ISdCoreConfiguration, SD_CORE_CONFIGURATION } from '@sdcorejs/angular/configurations';

const sdCoreConfig = {
  language: 'en',
} satisfies ISdCoreConfiguration;

export const appConfig: ApplicationConfig = {
  providers: [{ provide: SD_CORE_CONFIGURATION, useValue: sdCoreConfig }],
};

I18nService.setLanguage() persists a built-in language and reloads by default. A complete custom catalog can be supplied through the synchronous language: () => catalog hook. See the i18n reference for catalog typing and fallback behavior.

Documentation and examples

| Resource | Purpose | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | | Live showcase | Interactive component, form, and service demos | | Button example source | Action variants, icons, disabled state, and loading state | | Input example source | Model binding, validation, and viewed states | | Table example source | Data, selection, filters, grouping, paging, and tree workflows | | Persistence example source | Graph round-trip, identity, envelopes, and error containment | | Latest API manifest | Discover all Markdown docs for the latest release | | Versions registry | Select docs matching an installed package version | | Machine-readable catalog | Discover documentation across maintained package lines | | E2E attributes | Stable runtime selectors and state attributes | | 1.5 migration guide | Layout account actions, V2/V3 navigation, containment, and versioned docs | | 1.4 migration guide | Dedupe, loading, persistence, connector, responsive, and signal migrations |

Versioning

  • Use @sdcorejs/angular@^19, @^20, or @^21 to match the application's Angular major.
  • Maintained package lines are released from the same feature surface with required Angular-major adaptations.
  • Consumer-breaking changes and migration notes are recorded in the changelog.
  • Before adopting the 1.5 suffix, follow the 1.5 migration guide.
  • Before adopting the 1.4 suffix, follow the 1.4 migration guide.
  • Version-pinned reference docs remain available under https://sdcorejs.github.io/sdcorejs-angular/docs/<package-version>/.

Contributing

Contributions are welcome through focused pull requests. See the repository contribution workflow for setup, validation, and source-workspace guidance.

Support

Use GitHub Issues for reproducible bugs and focused feature proposals. Include the Angular major, package version, a minimal reproduction, and the expected behavior.

Maintainer

Trần Thuận Nghĩa — Full Stack Developer and maintainer of @sdcorejs/angular. He builds practical, strongly typed web applications and reusable tools that make complex business workflows easier to deliver and maintain.

SDCoreJS on GitHub · LinkedIn · Email

License

MIT © Trần Thuận Nghĩa. See the repository license.