onap-ui-angular
TypeScript icon, indicating that this package has built-in type declarations

5.4.4 • Public • Published

ONAP-UI-ANGULAR Style-Guide and Components

This project aims to create a unified UI styled components for multiple development teams who work on the same web-based applications. This repository contains the definition of all the basic widgets and reusable controllers.

Note: the project is build of 3 different projects:

  1. onap-ui-common - contains HTML and SCSS files for all components
  2. onap-ui-angular - contains Angular components according to the HTML defined in onap-ui-common
  3. onap-ui-react - contains React components according to the HTML defined in onap-ui-common

Usage

To start using this library you need to install 2 libraris:

  1. onap-ui-angular or onap-ui-react.
  2. onap-ui-common
npm install --save-dev onap-ui-angular
npm install --save-dev onap-ui-common

Link the library's CSS file

The main CSS file is defined in onap-ui-common library. There are several options to link it to your project:

Angular CLI projects

You can add this line to src/style.css file:

@import "node_modules/onap-ui-common/lib/style.css";

Angular CLI project has angular.json file, that defines location of styles files. By default angular.json contains the following definition:

    "styles": [
      "src/styles.css"
    ],

So you can add to src/styles.css import of onap-ui-common styles.

HTML
<link rel="stylesheet" href="node_modules/onap-ui-common/lib/style.css">
As Module (Using loading tool, i.e. Webpack)
import 'onap-ui-common/lib/style.css';
Importing SCSS typography files

onap-ui-common also contains to SCSS files: variables.scss mixins.scss

You can import these files to your project and get the same color scheme and variables line onap-ui-common.

Using the library in latest Angular (6)

Add the library to your module
  import { SdcUiComponentsModule, SdcUiComponents } from 'onap-ui-angular';
 
  @NgModule({
    declarations: [
      AppComponent
    ],
    imports: [
      BrowserModule,
      FormsModule,
      HttpModule,
      SdcUiComponentsModule
    ],
    providers: [
        SdcUiComponents.ModalService
    ],
    bootstrap: [AppComponent]
  })
  export class AppModule { }

Running storybook

The components in this library are displayed via storybook. Head to http://onap-sdc.github.io/onap-ui-angular to see the components that are in master.

While developing, just run npm run storybook in your terminal to launch a local storybook server where you can see your changes. For deploying storybook to your own fork repository, refer to the guides section below.

Useful guides

Adding a new component

Deploying storybook to a fork's github pages

Understanding project build

Having some trouble? Have an issue?

For bugs and issues, please use the issues page

How to Contribute

Contribution can be made only by following these guide lines

  • This project combines both React & Angular framework libraries. Hence, every change in the basic HTML files structure, must be followed by changes on react and angular projects (onap-ui-angular, onap-ui-react).
  • There will be no any 3rd party UI framework imported (i.e. Bootstrap, Material, Foundation... etc.).
  • Contribution are done only by the contribution guide. Contributions submitted not in this format and guidelines will not be considered.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.4.453latest

Version History

VersionDownloads (Last 7 Days)Published
5.4.453
5.4.30
5.4.20
5.4.10
5.3.90
5.3.80
5.3.70
5.3.51
5.3.40
5.3.30
5.3.20
5.2.100
5.2.90
5.2.80
5.2.70
5.2.60
5.2.50
5.2.40
5.2.30
5.2.20
5.2.10
5.2.00
5.1.870
5.1.860
5.1.850
5.1.840
5.1.830
5.1.820
5.1.810
5.1.800
5.1.790
5.1.780
5.1.770
5.1.760
5.1.740
5.1.730
5.1.720
5.1.710
5.1.700
5.1.690
5.1.680
5.1.670
5.1.660
5.1.640
5.1.630
5.1.620
5.1.610
5.1.600
5.1.590
5.1.580
5.1.570
5.1.560
5.1.550
5.1.540
5.1.530
5.1.520
5.1.510
5.1.500
5.1.490
5.1.470
5.1.460
5.1.450
5.1.440
5.1.430
5.1.420
5.1.390
5.1.380
5.1.370
5.1.360
5.1.350
5.1.340
5.1.330
5.1.320
5.1.310
5.1.300
5.1.290
5.1.280
5.1.270
5.1.260
5.1.250
5.1.240
5.1.230
5.1.210
5.1.170
5.1.160
5.1.150
5.1.140
5.1.130
5.1.120
5.1.90
5.1.80
5.1.70
5.1.60
5.1.50
5.1.40
5.1.30
5.1.20
5.1.10
5.1.00

Package Sidebar

Install

npm i onap-ui-angular

Weekly Downloads

54

Version

5.4.4

License

MIT

Unpacked Size

3.22 MB

Total Files

751

Last publish

Collaborators

  • onap-sdc