Skip to content

theothersideofgod/viz-toolkit

Repository files navigation

VizientToolkit

This project was generated with Angular CLI version 6.0.3.

Getting started

For help getting started with a new Angular app, check out the Angular CLI. For existing apps, follow these steps to begin using Vizient Toolkit.

Step 1: Install Vizient ToolKit link

npm install viz-toolkit@latest --registry http://artifacts.corp.vizientinc.com/artifactory/api/npm/npm

Put libs/viz-toolkit in root folder. Add this line into your package.json.

"viz-toolkit": "file:./libs/viz-toolkit",

Run npm/yarn install.

"viz-toolkit": "file:./libs/viz-toolkit",

Step 2: Include CSS

Import the basic theme viz-toolkit provides

Put this line into angular.json

"styles": ["node_modules/viz-toolkit/themes/index.theme.css", "src/styles.css"]

Step 3: Import the component modules link

Import the component modules.

  import {
    VizHeaderModule,
    VizDateRangePickerModule,
    VizSelectModule,
    VizFooterModule,
    VizMenuModule,
    VizCheckboxModule,
    VizButtonModule,
    VizFormFieldModule,
    VizTreeModule,
    VizSliderModule,
    VizToolbarModule,
    VizIconModule,
    VizListModule,
    VizChipModule,
    VizBadgeModule,
    VizTabsModule,
    VizDialogModule,
    VizLoginModule,
    VizNodataModule,
    VizFeedbackIndicatorModule,
    VizSidenavModule,
    VizProgressSpinnerModule,
    VizTableModule,
    VizSteppersModule,
    VizBottomSheetModule,
    VizBreadcrumbModule,
    VizSearchModule,
    VizChartModule,
    VizDatepickerModule,
    VizRadioModule,
    VizSlideToggleModule,
    VizCardModule,
    VizProgressBarModule,
    VizPaginatorModule,
    VizSnackBarModule,
    VizBottomSheetModule,
    VizHttpStatusModule
  } from 'viz-toolkit';
  @NgModule({
    ...
    imports: [
      VizHeaderModule,
      VizDateRangePickerModule,
      VizSelectModule,
      VizFooterModule,
      VizMenuModule,
      VizCheckboxModule,
      VizButtonModule,
      VizFormFieldModule,
      VizTreeModule,
      VizSliderModule,
      VizToolbarModule,
      VizIconModule,
      VizListModule,
      VizChipModule,
      VizBadgeModule,
      VizTabsModule,
      VizDialogModule,
      VizLoginModule,
      VizNodataModule,
      VizFeedbackIndicatorModule,
      VizSidenavModule,
      VizProgressSpinnerModule,
      VizTableModule,
      VizSteppersModule,
      VizBottomSheetModule,
      VizBreadcrumbModule,
      VizSearchModule,
      VizChartModule,
      VizDatepickerModule,
      VizRadioModule,
      VizSlideToggleModule,
      VizCardModule,
      VizProgressBarModule,
      VizPaginatorModule,
      VizSnackBarModule,
      VizBottomSheetModule,
      VizHttpStatusModule
    ],
    ...
  })
  export class AppModule { }

Step 4: Animations

Some Material components depend on the Angular animations module in order to be able to do more advanced transitions. If you want these animations to work in your app, you have to install the @angular/animations

NPM

npm install --save @angular/animations
    import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

    @NgModule({
      ...
      imports: [BrowserAnimationsModule],
      ...
    })
    export class AppModule { }

Step 5: Add Material Icons

If you want to use the mat-icon component with the official Material Design Icons, load the icon font in your index.html.

Put this line into index.html

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Build:lib

Run npm run build:lib to build the toolkit library. The build artifacts will be stored in the libs/viz-toolkit directory. Use the library import { VizHeaderModule } from 'viz-toolkit'

Set package.json

"devDependencies": {
  ...,
  "viz-toolkit":"file:./libs/viz-toolkit"
  ...,
},

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Change log

1.0.2

  • Recreate viz-select. select has been rebuild with the material component.
  • Footer's logo can program now.
  • Update checkbox disable style.
  • Update select disable style.
  • Add Component: VizHttpStatusModule for inform http error state.

1.0.5

  • Add header login dropdown function.
  • Add month picker.
  • Add Expansion Panel Angular Material Examples.
  • Add custom stepper component.

1.0.8

  • Upgrade angular to 7.2.x
  • fix some module error when build with '--prod'
  • Update Component Content : Checkbox(example), Datepicker(example), Form Fields(example), Radio Button(example), Menu(example), List(exmaple), Tab(example), Dialog (Examples, Usage & content guidelines, Design specs)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published