This project was generated with Angular CLI version 6.0.3.
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.
npm install viz-toolkit@latest --registry http://artifacts.corp.vizientinc.com/artifactory/api/npm/npm
"viz-toolkit": "file:./libs/viz-toolkit",
"viz-toolkit": "file:./libs/viz-toolkit",
Import the basic theme viz-toolkit provides
"styles": ["node_modules/viz-toolkit/themes/index.theme.css", "src/styles.css"]
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 { }
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 install --save @angular/animations
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
@NgModule({
...
imports: [BrowserAnimationsModule],
...
})
export class AppModule { }
If you want to use the mat-icon component with the official Material Design Icons, load the icon font in your index.html.
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
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.
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
.
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.
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"
...,
},
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
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)