We have moved to separately published packages from a monorepo.
This will:
- provide caching to vastly improve build time
- provide better dependency management between packages (requiring less downloads for some users)
- provide an easier debugging environment
- give us the option to support multiple frameworks (such as React or WebComponents)
- give us a mature toolset that we don't have to maintain
- allow consumers to update various UI components without opting in to all changes across all components at once
Please update any bookmarks to point to the new repo: https://github.com/GetTerminus/terminus-oss
Tips on migrating to the new packages can be found here: Migration guide.
New API docs location: https://github.com/GetTerminus/terminus-ui
The library of UI components used for Terminus applications.
Table of Contents
- Library Purpose
- Documentation
- Available Features
- Installation
- SCSS Helpers
- Contributing
- Contributors
- Project Resources
This library was created to assist Terminus engineers in maintaining a consistent experience across applications while following a unified design language.
The library is open source with the hopes that others may find solutions and ideas here, as we have done while browsing so many other repositories. While we want to make decisions that are best for everyone, in the end, the needs of the Terminus engineering team must come first.
If a deviation makes sense for the feature itself, but not for Terminus, we support (and will assist in) abstracting the functionality out for generalization.
This library is heavily based on Material Design currently. This provides us a way to rely on very well thought out usability and accessibility decisions for areas we have not yet addressed internally. While we hold Material in high regard, we do not believe that all of their decisions are best for the Terminus UI specifically.
The available features table contains links for functional and usage documentation for each feature.
- π¨ started
- β available
- π© deprecated
Feature | Notes | Status | Demo | Docs | Usage |
---|---|---|---|---|---|
autocomplete | Deprecated. See selection-list |
π© | Demo | Docs | Usage |
autofocus | Focus a focusable element on load | β | Demo | Docs | Usage |
badge | See chip |
β | Demo | ||
button | β | Demo | Docs | ||
card | Presentational card | β | Demo | Docs | Usage |
chart | Charts, graphs etc | β | Demo | Docs | Usage |
chip | Chip | β | Demo | Docs | Usage |
checkbox | β | Demo | Docs | Usage | |
cohort-date-range | CohortDateRange | β | Demo | Docs | Usage |
confirmation | Add a confirmation step to any ts-button |
β | Demo | Docs | Usage |
copy | Component to easily copy string values | β | Demo | Docs | Usage |
csv entry | Manually enter CSV values | β | Demo | Docs | Usage |
datepicker | See TsInputComponent |
β | Demo | Docs | Usage |
date-range | Dual inputs with calendar pop-ups | β | Demo | Docs | Usage |
drawer | Slide-out drawer panel | β | Demo | Docs | Usage |
expansion-panel | Expansion panel with accordion & stepper functionality | β | Demo | Docs | Usage |
file-upload | File upload with drag and drop | β | Demo | Docs | Usage |
icon | Supported icons: https://material.io/icons | β | Demo | Docs | Usage |
icon-button | Icon only button | β | Demo | Docs | Usage |
input | Input with masking, datepicker, etc | β | Demo | Docs | Usage |
link | β | Demo | Docs | Usage | |
loading overlay | Overlay with loading spinner | β | Demo | Docs | |
login form | Email/password with 'remember me' checkbox | β | Demo | Docs | Usage |
logo | Variations of the official logo, certain colors available | β | Demo | Docs | Usage |
menu | β | Demo | Docs | Usage | |
navigation | Global navigation menu | β | Demo | Docs | Usage |
paginator | Paging controls for collections | β | Demo | Docs | Usage |
pipes | A collection of pipes for Angular | β | Demo | Docs | |
popover | Popover with templates | β | Demo | Docs | Usage |
radio-group | β | Demo | Docs | Usage | |
scrollbars | Custom scrollbars for both axis' | β | Demo | Docs | Usage |
search | Input with search capabilities | β | Demo | Docs | |
select | Deprecated. See selection-list |
π© | Demo | Docs | Usage |
selection-list | Classic select dropdown / autocomplete | β | Demo | Docs | Usage |
spacing | Helpers for consistent spacing | β | Demo | Docs | |
sort | Used by table for column sorting |
β | (see table demo) | Docs | Usage |
table | β | Demo | Docs | Usage | |
tabs | Horizontal tab interface | β | Demo | Docs | Usage |
textarea | See input |
β | (see input demo) | ||
toggle | Toggle switch | β | Demo | Docs | Usage |
tooltip | Simple tooltip | β | Demo | Docs |
π Pipes Documentation
πͺ Pipes Demo
Pipe | Notes | Status |
---|---|---|
tsAbbreviateNumber |
Abbreviate a number | β |
tsDate |
short , medium , extended , timestamp |
β |
tsRoundNumber |
Round a number to a specific precision | β |
tsSentenceCase |
Convert string casing to sentence-case | β |
tsTimeAgo |
Human-readable time span | β |
tsTitleCase |
Title Case A String | β |
tsTruncateAt |
Truncate a string, start , middle , end |
β |
Feature | Notes | Status | Demo | Docs | Usage |
---|---|---|---|---|---|
Validators | Expose custom validation methods for reactive forms | β | Demo | Docs | Usage |
Name | Purpose | Status |
---|---|---|
creditCard |
A credit card number must be valid | β |
domain |
A domain must be valid | β |
email |
An email address must be valid | β |
equalToControl |
A control's value must be equal to another control's value | β |
greaterThan |
A number must be greater than another value | β |
inCollection |
A value must be found in a collection | β |
isInRange |
A number must be between two numbers | β |
lessThan |
A number must be less than another value | β |
lowercase |
A value must contain a minimum amount of lowercase characters | β |
maxDate |
A date must be before a maximum date | β |
minDate |
A date must be after a minimum date | β |
numbers |
A value must contain a minimum amount of numbers | β |
password |
A password must meet certain requirements | β |
uppercase |
A value must contain a minimum amount of uppercase characters | β |
url |
A URL must be valid | β |
Feature | Notes | Status | Demo | Docs | Usage |
---|---|---|---|---|---|
TS_SPACING |
Expose our spacing sizes in TypeScript | β | Demo |
Feature | Notes | Status | Docs |
---|---|---|---|
a11y | Accessibility helpers | β | |
animation | π¨ | ||
breakpoints | Media query breakpoints | β | Docs |
colors | Base colors | β | Docs |
cursors | β | Docs | |
input-placeholder | β | ||
layout | β | Docs | |
opposite-direction | Reverse a direction | β | |
shadows | Shadow functions & mixins | β | Docs |
spacing | Control vertical/horizontal spacing | β | Docs |
triangle | Create a triangle using CSS | β | |
typography | Typography styles | β | Docs |
z-index | z-index helper | β | Docs |
Install the library and required dependencies:
# Primary dependencies:
$ yarn add @terminus/ui @terminus/ngx-tools
# Peer dependencies that will need to be installed (needed by UI and tools libraries):
$ yarn add @angular/cdk @angular/material @angular/[email protected] date-fns ngx-perfect-scrollbar \
@ngrx/effects @ngrx/store popper.js text-mask-core text-mask-addons
# Optional dependencies (needed if using `TsChartComponent`):
$ yarn add @amcharts/amcharts4 @amcharts/amcharts4-geodata
NOTE:
@angular/*
&@ngrx/*
require9.0.0
or greater.
Add the following links to install the body fonts and icon fonts used by the library:
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
To use the global styles, import the CSS file into your stylesheets:
@import '~@terminus/ui/terminus-ui.css';
To use the provided SCSS helper methods/variables/mixins, import the helpers file from @terminus/ui
:
@import '~@terminus/ui/helpers';
View the contribution documentation and the development documentation.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
- Semantic Release - Automatically release versioned release to NPM and generate a changelog in the Github tag.
- Commitizen - Interactive cli for enforcing commit message format.
- Commitizen VSCode Plugin - VSCode plugin for commitizen.
- Doctoc - Generate documentation table of contents.
- CodeCov - Code coverage reporting.