0.18.3 • Published 5 years ago

epc-design-system v0.18.3

Weekly downloads
294
License
-
Repository
-
Last release
5 years ago

Integration Steps

To integrate epc-design-system with your project do the following...

    1. npm install epc-design-system
    1. Add "node_modules/epc-design-system/styles/less/CMStheme.css" to your build styles in the anguler.json file
    1. For validation add "node_modules/epc-design-system/js/cms-validation.uncompressed.js" to your build scripts in the anguler.json file
    1. Import / Inject validation service:
import { ValidationService } from 'epc-design-system/dist/validation.service.js'; 
constructor(private validationService: ValidationService) {
}
    1. Bind validations to control.
ngOnInit() {
this.validationService._bindValidations();  
}
    1. Apply validations to button clicks:
// On Form Submit Handle Like This
buttonClick(obj) {
    let self = this;
    this.validationService.validate("forum-id-1").then(
        success=>{    
          //Success
        },
        err=>{
          //Error
        }
      )
}
formSubmit(obj) {
    let self = this;
    this.validationService.validate("forum-id-2").then(
        success=>{    
          //Success
        },
        err=>{
          //Error
        }
      )
}
    1. Apply validation classes to fields:
<form id="forum-id-1" (ngSubmit)="formSubmit()">
  <input id="justification-field" class="cms-regreq-field cms-check-just"/>
  <button type="button">
</form>
<div id="forum-id-2">
  <input id="justification-field" class="cms-regreq-field cms-check-just"/>
  <button type="button" (click)="buttonClick($event)">
</div>

Release Notes

  • 0.12.94 - validateThen, validateAsync
  • 0.12.90 - Updated Read Me.
  • 0.12.89 - Added Country Validations.
  • 0.12.77 - Stable.
  • 0.12.58 - Not stable until this point.
  • 0.12.41 - Update Read me
  • 0.12.40 - Stable on help desk dev branch.
  • 0.12.38 - Integration Steps and Release Notes added to the read me.
  • 0.12.37 - Validation tool tips added. (Bug fix)
  • 0.12.36 - Validations working with help desk.

Project Info

https://www.npmjs.com/package/epc-design-system


Test Scripts

Chrome IE

  1. Menu Nav & To Top button

1.1 Desktop

  1. Responsive - tablet

  2. Responsive - iPhone -- Footer not all silver -- code snippets are opened

3.1 Big hr

3.2 Alignment

  1. Buttons clickable?

  2. Code and Doc buttons

  3. Code actually works?


TO DO:

  1. Add tips

  2. Add code and docs to Text Inputs


END Test Scripts


PS C:\ws\Projects\node_modules\epc-design-system> history Id CommandLine


1 cd c:/ws/Projects 2 npm i epc-design-system 2.5 npm update epc-design-system 3 dir 4 cd node_ 5 dir 6 cd e 7 cls 8 npm i 9 grunt

https://www.npmjs.com/package/epc-design-system https://design.cms.gov/components/button/

PS C:\ws\Projects\node_modules\epc-design-system> Next Step

 Please have a look at the package.json file and the gruntfile I provided, the next steps are to setup both linting and minification for the js/css files so we can have reports generated on the codebase’s health.

https://portal.cms.gov/wps/contenthandler/!ut/p/digest!3JKaotSk_gMd0aUfF0xN-w/war/EPThemeStatic/themes/Simple/modules/cms_css/head/../images/cms-portal-logo.svg


https://portaldev-beta.cms.gov https://portaldev-beta.cms.cmstest/ https://portallab-beta.cms.cmstest https://portallab-beta.cms.cmstest/wps/portal/unauthportal/home/

https://portallab-beta.cms.cmstest

https://portal.cms.gov

https://portaldev-beta.cms.gov/wps/myportal/cmsportal/myportal/

0.18.3

5 years ago

0.18.2

5 years ago

0.15.1

5 years ago

0.14.0

5 years ago

0.13.0

5 years ago

0.12.99

5 years ago

0.12.98

5 years ago

0.12.97

5 years ago

0.12.96

5 years ago

0.12.95

5 years ago

0.12.94

5 years ago

0.12.93

5 years ago

0.12.92

5 years ago

0.12.91

5 years ago

0.12.90

5 years ago

0.12.89

5 years ago

0.12.82

5 years ago

0.12.81

5 years ago

0.12.80

5 years ago

0.12.79

5 years ago

0.12.78

5 years ago

0.12.77

5 years ago

0.12.76

5 years ago

0.12.74

5 years ago

0.12.73

5 years ago

0.12.72

5 years ago

0.12.70

5 years ago

0.12.69

5 years ago

0.12.68

5 years ago

0.12.67

5 years ago

0.12.66

5 years ago

0.12.65

5 years ago

0.12.64

5 years ago

0.12.62

5 years ago

0.12.61

5 years ago

0.12.60

5 years ago

0.12.59

5 years ago

0.12.58

5 years ago

0.12.57

5 years ago

0.12.56

5 years ago

0.12.54

5 years ago

0.12.53

5 years ago

0.12.52

5 years ago

0.12.51

5 years ago

0.12.50

5 years ago

0.12.49

5 years ago

0.12.48

5 years ago

0.12.47

5 years ago

0.12.46

5 years ago

0.12.45

5 years ago

0.12.44

5 years ago

0.12.43

5 years ago

0.12.42

5 years ago

0.12.41

5 years ago

0.12.40

5 years ago

0.12.39

5 years ago

0.12.38

5 years ago

0.12.37

5 years ago

0.12.36

5 years ago

0.12.35

5 years ago

0.12.34

5 years ago

0.12.33

5 years ago

0.12.32

5 years ago

0.12.31

5 years ago

0.12.30

5 years ago

0.12.29

5 years ago

0.12.28

5 years ago

0.12.27

5 years ago

0.12.26

5 years ago

0.12.25

5 years ago

0.12.24

5 years ago

0.12.23

5 years ago

0.12.22

5 years ago

0.12.21

5 years ago

0.12.20

5 years ago

0.12.19

5 years ago

0.12.18

5 years ago

0.12.17

5 years ago

0.12.16

5 years ago

0.12.15

5 years ago

0.12.14

5 years ago

0.12.13

5 years ago

0.12.12

5 years ago

0.12.11

5 years ago

0.12.10

5 years ago

0.12.9

5 years ago

2.0.0

5 years ago

0.12.8

5 years ago

0.12.7

5 years ago

0.12.6

5 years ago

0.12.5

5 years ago

0.12.4

5 years ago

0.12.3

5 years ago

0.12.2

5 years ago