Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yerramshilpa committed Sep 9, 2024
1 parent 8eea23c commit daa0e82
Show file tree
Hide file tree
Showing 58 changed files with 300 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
</usa-accordion-item>

<usa-accordion-item header="Benefits.gov Benefit Finder">
<ng-template UsaAccordionHeader> USA.gov Government Benefits, Grants, and Loans </ng-template>
<ng-template UsaAccordionHeader>
USA.gov Government Benefits, Grants, and Loans
</ng-template>
<ng-template UsaAccordionContent>
Connect to this benefits.gov tool to find government benefit information and determine your eligibility.
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ <h2 class="sds-card__title">More About</h2>
</usa-accordion-item>

<usa-accordion-item #fourth header="Benefits.gov Benefit Finder">
<ng-template UsaAccordionHeader> USA.gov Government Benefits, Grants, and Loans </ng-template>
<ng-template UsaAccordionHeader>
USA.gov Government Benefits, Grants, and Loans
</ng-template>
<ng-template UsaAccordionContent>
Connect to this benefits.gov tool to find government benefit information and determine your eligibility.
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,29 @@
(change)="firstGroupChange({ source: 'originalEmitter: MatButtonToggle', value: $event.value })"
class="sds-button-group"
>
<sds-button-group-option value="reports" [aria-label]="'reports'" [checked]="true"> Reports </sds-button-group-option>
<sds-button-group-option value="reports" [aria-label]="'reports'" [checked]="true">
Reports
</sds-button-group-option>
<sds-button-group-option value="subscriptions" [aria-label]="'subscriptions'">
Subscriptions
</sds-button-group-option>
<sds-button-group-option value="history"> History </sds-button-group-option>
<sds-button-group-option value="history">
History
</sds-button-group-option>
</sds-button-group>

<sds-button-group
[mode]="'checkbox'"
(change)="secondGroupChange({ source: 'originalEmitter: MatButtonToggle', value: $event.value })"
class="sds-button-group sds-button-group--secondary"
>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="subscriptions"> Subscriptions </sds-button-group-option>
<sds-button-group-option value="history"> History </sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="subscriptions">
Subscriptions
</sds-button-group-option>
<sds-button-group-option value="history">
History
</sds-button-group-option>
</sds-button-group>
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
<sds-button-group [mode]="'checkbox'" class="sds-button-group sds-button-group--secondary">
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
</sds-button-group>

<sds-button-group [mode]="'checkbox'" class="sds-button-group sds-button-group--secondary">
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
</sds-button-group>

<sds-button-group [mode]="'checkbox'" class="sds-button-group sds-button-group--secondary">
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
</sds-button-group>

<sds-button-group [mode]="'checkbox'" class="sds-button-group sds-button-group--secondary">
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports"> Reports </sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
<sds-button-group-option value="reports">
Reports
</sds-button-group-option>
</sds-button-group>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ <h6>API reference for SDS Dialog</h6>
<p><code>import &#123; SdsDialogModule &#125; from '&#64;gsa-sam/components';</code></p>

<h3>Dialog opens Dialog</h3>
<button class="usa-button usa-button--base" (click)="openNestedDialog()">Open dialog</button>
<button class="usa-button usa-button--base" (click)="openNestedDialog()">
Open dialog
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export class DialogOverviewExampleDialog {
*/
@Component({
selector: 'sds-dialog-sample-nested',
template: ` <button class="usa-button" (click)="openDialog()">Open another dialog</button> `,
template: `
<button class="usa-button" (click)="openDialog()">
Open another dialog
</button>
`,
})
export class NestedDialogComponent {
animal: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<div sds-dialog-title>Save Entity as Draft?</div>
<div sds-dialog-subtitle>{{ data.name }} Do you want to save the entity as draft?</div>
<div sds-dialog-subtitle>
{{ data.name }} Do you want to save the entity as draft?
</div>
<div sds-dialog-content>
<label class="usa-label" for="input-type-text">Entity Name</label>
<input class="usa-input" [(ngModel)]="data.animal" id="input-type-text" name="input-type-text" type="text" />
</div>
<div sds-dialog-actions>
<button class="usa-button usa-button--base" (click)="onNoClick()">Cancel</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>Save</button>
<button class="usa-button usa-button--base" (click)="onNoClick()">
Cancel
</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>
Save
</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ <h6>API reference for SDS Dialog</h6>
<p><code>import &#123; SdsDialogModule &#125; from '&#64;gsa-sam/components';</code></p>

<h3>Official policy modal</h3>
<button class="usa-button usa-button--base" (click)="openOfficial()">Policy</button>
<button class="usa-button usa-button--base" (click)="openOfficial()">
Policy
</button>
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div class="sds-dialog-section--centered margin-y-205">
<img src="assets/img/logo-sam.svg" width="170" />
</div>
<div sds-dialog-title class="sds-dialog-section--centered text-uppercase">Policy Dialog</div>
<div sds-dialog-title class="sds-dialog-section--centered text-uppercase">
Policy Dialog
</div>
<div sds-dialog-subtitle class="sds-dialog-section--centered margin-top-neg-205">
You have requested access to <br />
It is important to read and adhere to the terms of use.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<div sds-dialog-title>Save Entity as Draft?</div>
<div sds-dialog-subtitle>{{ data.name }} Do you want to save the entity as draft?</div>
<div sds-dialog-subtitle>
{{ data.name }} Do you want to save the entity as draft?
</div>
<div sds-dialog-content>
<label class="usa-label" for="input-type-text">Entity Name</label>
<input class="usa-input" [(ngModel)]="data.animal" id="input-type-text" name="input-type-text" type="text" />
</div>
<div sds-dialog-actions>
<button class="usa-button usa-button--base" (click)="onNoClick()">Cancel</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>Save</button>
<button class="usa-button usa-button--base" (click)="onNoClick()">
Cancel
</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>
Save
</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ <h3>Passing Data</h3>
<div class="margin-bottom-105">
<input class="usa-input" aria-label="Name" [(ngModel)]="name" placeholder="eg: Jane Doe" />

<button class="usa-button usa-button--base margin-top-2" (click)="openDialog()">Pick one</button>
<button class="usa-button usa-button--base margin-top-2" (click)="openDialog()">
Pick one
</button>
</div>
<div *ngIf="animal">
Saved as: <i>{{ animal }}</i>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<div sds-dialog-title>Save Entity as Draft?</div>
<div sds-dialog-subtitle>{{ data.name }} Do you want to save the entity as draft?</div>
<div sds-dialog-subtitle>
{{ data.name }} Do you want to save the entity as draft?
</div>
<div sds-dialog-content>
<label class="usa-label" for="input-type-text">Entity Name</label>
<input class="usa-input" [(ngModel)]="data.animal" id="input-type-text" name="input-type-text" type="text" />
</div>
<div sds-dialog-actions>
<button class="usa-button usa-button--base" (click)="onNoClick()">Cancel</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>Save</button>
<button class="usa-button usa-button--base" (click)="onNoClick()">
Cancel
</button>
<button class="usa-button" [sds-dialog-close]="data.animal" cdkFocusInitial>
Save
</button>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<button type="button" (click)="openDialog()" class="usa-button usa-button--unstyled">Download</button>
<button type="button" (click)="openDialog()" class="usa-button usa-button--unstyled">
Download
</button>

<pre>
{{ updatedModel | json }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<button type="button" (click)="openDialog()" class="usa-button usa-button--base">Open</button>
<button type="button" (click)="openDialog()" class="usa-button usa-button--base">
Open
</button>

<pre>
{{ updatedModel | json }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<button type="button" (click)="openDialog()" class="usa-button usa-button--base">Open</button>
<button type="button" (click)="openDialog()" class="usa-button usa-button--base">
Open
</button>

<pre>
{{ updatedModel | json }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@

<div *expires="expireFifteenSeconds">
<div class="usa-card__container">
<span class="usa-card__body"> This text will expire in 15 seconds </span>
<span class="usa-card__body">
This text will expire in 15 seconds
</span>
</div>
</div>

<div *expires="'2099-01-31T23:59:59.999+5:00'" class="usa-card">
<div class="usa-card__container">
<span class="usa-card__body"> This text will expire on January 31st, 2099 11:59:59 PM Eastern Time </span>
<span class="usa-card__body">
This text will expire on January 31st, 2099 11:59:59 PM Eastern Time
</span>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p>Defined below are template options that are unique to file input formly type</p>
<p>
Defined below are template options that are unique to file input formly type
</p>
<ul>
<li><code>multiple: boolean</code> - defines wheher or not the input accepts multiple files vs single file</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<code>ng-template</code>, get the reference via ViewChild and pass that template in as a templateOption.template in
<code>ngAfterViewInit</code>.
</p>
<p>The teplate being built can expect to receive:</p>
<p>
The teplate being built can expect to receive:
</p>
<ul>
<li>The contents of fieldArray in fields</li>
<li>The form variable of the file-input</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="sds-card__title margin-top-1 margin-left-neg-2">Select Step</h2>
*ngFor="let step of stepTemplates; let i = index"
class="usa-sidenav__item"
[ngClass]="{
'usa-current': selectedStep?.id === step.id,
'usa-current': selectedStep?.id === step.id
}"
>
<ng-container [ngTemplateOutlet]="sidenavItem" [ngTemplateOutletContext]="{ $implicit: step }">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<button class="usa-button margin-bottom-3" (click)="toggleLinearMode()">Toggle Linear Mode</button>
<button class="usa-button margin-bottom-3" (click)="toggleLinearMode()">
Toggle Linear Mode
</button>

<custom-stepper-demo
#stepper
Expand Down Expand Up @@ -80,10 +82,14 @@ <h1 sdsStepHeader class="margin-top-0">

<!-- Custom Templates -->
<ng-template #gatherInformation>
<h1 class="margin-top-0">Gather Your Information</h1>
<h1 class="margin-top-0">
Gather Your Information
</h1>
<div class="sds-card">
<div class="sds-card__header">
<h2>U.S. REGISTRANTS:</h2>
<h2>
U.S. REGISTRANTS:
</h2>
</div>
<div class="sds-card__body">
<ul class="usa-list usa-list--unstyled">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h3>Add Subawardee</h3>
/>
</div>
<div class="grid-col padding-left-3 padding-top-3">
<button class="usa-button" type="button" (click)="onAddSubawardee(input.value)">Add Subawardee</button>
<button class="usa-button" type="button" (click)="onAddSubawardee(input.value)">
Add Subawardee
</button>
</div>
</div>
</div>
Expand All @@ -22,7 +24,9 @@ <h3>Add Subawardee</h3>
<h2 class="sds-card__title">No Subawardees</h2>
</div>
<div class="sds-card__body">
<p>To add a subawardee, begin by entering a subawardee Unique Entity ID above.</p>
<p>
To add a subawardee, begin by entering a subawardee Unique Entity ID above.
</p>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<code>icon</code> input to be one of the icons you just selected.
</p>
<p>
<code> &#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062; </code>
<code>
&#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062;
</code>
</p>
<div class="display-inline-flex flex-wrap">
<ng-container *ngFor="let item of sdsIcons; let i = index">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<code>icon</code> input to be one of the icons you just selected.
</p>
<p>
<code> &#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062; </code>
<code>
&#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062;
</code>
</p>
<div class="display-inline-flex flex-wrap">
<ng-container *ngFor="let item of bootstrapIcons">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<code>icon</code> input to be one of the icons you just selected.
</p>
<p>
<code> &#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062; </code>
<code>
&#060;usa-icon [icon]="'add'" [size]="'2x'"&#062;&#060;/usa-icon&#062;
</code>
</p>
<div class="display-inline-flex flex-wrap">
<ng-container *ngFor="let item of bootstrapIcons">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div>
<p>Search has been updated to keep the model up to date with each character entered by a user.</p>
<p>
Search has been updated to keep the model up to date with each character entered by a user.
</p>
<p>
An output <code>(submit)</code> has been added to search which emits when the user clicks submit. The value of the
event contains the current state of the model when the user clicks submit.
Expand Down
Loading

0 comments on commit daa0e82

Please sign in to comment.