0.4.14 • Published 12 months ago

@standardkit/ui v0.4.14

Weekly downloads
-
License
Unlicense
Repository
-
Last release
12 months ago

StandardKit UI

What is it?

Angular Component Library for rapidly building dashboards & portals.

  • Admin Portal
  • Platform Configuration
  • System Monitoring / Jobs
  • Reporting Dashboard
  • SaaS Back-office

Basically any sidebar-based dashboard with cards, tables, modals & forms.

Paradigms & Principles

  • Content Projection (named slots)
  • Defaults & Standards (works with minimal setup in a standard way)
  • Configure & Compose (specify what you need, build what you want)
  • Customize & Override (color outside the lines and enjoy freedom)

For more information on underlying paradigms, visit standardkit.dev.

Component Categories

  • Core & Common (button, icon, alert, card etc.)
  • Layout (sidebar, top-bar, navigation, card-page, sidebar-page etc.)
  • Tables (data-table, table, search, filter, pagination etc.)
  • Forms (text-input, select-input, multi-select-input, etc.)

For more information about components, check the documentation docs.standardkit.dev or run the example project in this repository.

The docs are currently not yet live. Please run the example project locally instead for now with ng serve

Installation

NPM

To install StandardKit UI Components through npm, use:

npm i @standardkit/ui

Setup Styles

Go to angular.json and add the scss folder to your include paths like this:

Don't forget to add it for your tests as well!

{
  "architect": {
    "build": {
      "options": {
        "stylePreprocessorOptions": {
          "includePaths": ["node_modules/@standardkit/ui/src/styles"]
        }
      }
    }
  }
}

Then, add the base styling and the theme variables.

@use "@standardkit/ui/base";
@use "@standardkit/ui/theme";

// Include StandardKit Fonts
@include theme.include-default-fonts;
@include theme.use-default-font;

Icons

Install font awesome icons:

npm install --save @fortawesome/fontawesome-free

Add the icon path to your angular.json as well.

Basic Examples

Layout

<!--sidebar.layout.html-->
<ui-sidebar-page>
  <ui-header brand="Admin Portal">
    <ui-user-menu [items]="menuItems"></ui-user-menu>
  </ui-header>

  <ui-sidebar [navigationItems]="navigationItems"></ui-sidebar>

  <router-outlet></router-outlet>
</ui-sidebar-page>

Page with Data Table

<!--data-table.page.html-->
<ui-top-bar [isFullWidth]="true" name="Data Table">
  <ui-breadcrumbs [breadcrumbs]="breadcrumbs"></ui-breadcrumbs>
  <ui-button (buttonClick)="onAddItem()" icon="plus">Add Item</ui-button>
</ui-top-bar>

<ui-data-table (request)="onRequest($event)" [columns]="columns" [response]="response"></ui-data-table>

Simple Form

<!--name.form.html-->
<ui-form [formGroup]="form">
  <ui-field name="name">
    <ui-label>Name</ui-label>
    <ui-text-input formControlName="name">
      <ng-container slot="error">Name is required</ng-container>
    </ui-text-input>
  </ui-field>

  <ui-button [isSubmit]="true" (click)="onSubmit()" icon="save">Submit</ui-button>
</ui-form>

Version Compatibility

AngularStandardKit
Angular 16Standardkit 0.1.0
Angular 17not supported
Angular 18StandardKit 0.2.0
Angular 19 - legacyStandardKit 0.3.0
Angular 19 - standaloneStandardKit 0.4.x

Migration Guide

19 - legacy (0.3.0) to 19 - standalone (0.4.x)

Warning: 19 - standalone is currently a work in progress. Migrate at your own risk.

  • Change imports from SkButtonModule to UiButton
  • change template usages from <sk-button> to <ui-button>

Component updates

  • ui-select-input error slot now becomes slot="error" (new) instead of slot="footer" (old)
  • ui-button now has a buttonClick event that handles keydown/tabindex and takes into account disabled status

16 to 19 - legacy

  • Rich text input has been removed along with the quill dependency. If you want to continue using it, copy the component from old source code.

Just upgrade angular itself, nothing is changed only version bumps. Create an issue if you need help migrating through v17.

0.4.10

12 months ago

0.4.9

12 months ago

0.4.8

12 months ago

0.4.13

12 months ago

0.4.14

12 months ago

0.4.11

12 months ago

0.4.12

12 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.4.5

12 months ago

0.4.4

12 months ago

0.4.7

12 months ago

0.4.6

12 months ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago