viewres-ssr-webcomps
v1.0.41
Published
This is a repository which will house all the special service requests (SSR's) and which are built as web components using the Lit framework
Downloads
5
Readme
aa-ct-manage-travel-ssr-webcomponents
This is a repository which will house all the special service requests (SSR's) and which are built as web components using the Lit framework
SSR's built -- wheelchair, service-animal, petc, lap-infant, Blind-Deaf-DPNA
Steps to use this repository
If you want to run this in local for dev purposes
- Clone this repo
- In the index.html file, put your respective component which you want to dev/test in the below fashion
<body> <blind-deaf-dpna></blind-deaf-dpna> <script type="module" src="src/blind-deaf-dpna.ts"></script> </body>
- Run "npm run dev" and open the link in the terminal
If you want this to publish to a registry, do the following steps Note: this is temporary, in the future this process will be automated with a github actions pipeline which will automatically publish your changes to packages.aa.com
- Clone this repo
- Increment the version ("version": "1.0.21") to the next version in the package.json
- Push the code to git
- Run "npm run build"
- Run "npm run publish --access public" (Make sure the registry is set to https://registry.npmjs.org/ in your .npmrc file)
- In the viewres-ui code base, replace the existing component with the one you developed, like below
<!-- <viewres-deaf-blind-dpna class="special-assistance" *ngIf="!isLoadingMain" [reservation]="reservation"></viewres-deaf-blind-dpna> --> <blind-deaf-dpna firstName="John" lastName="Last" recordLocator="INLXZY" locale="locale"> </blind-deaf-dpna>