-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize additional Digital Form fields
- Loading branch information
Showing
20 changed files
with
560 additions
and
267 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/site/stages/build/drupal/static-data-files/digitalForm/fragments/address.graphql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* | ||
* The "Address" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://design.va.gov/patterns/ask-users-for/addresses | ||
* | ||
*/ | ||
module.exports = ` | ||
fragment address on ParagraphDigitalFormAddress { | ||
fieldTitle | ||
fieldMilitaryAddressCheckbox | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
...ges/build/drupal/static-data-files/digitalForm/fragments/digitalForm.graphql.unit.spec.js
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...build/drupal/static-data-files/digitalForm/fragments/identificationInformation.graphql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* | ||
* The "Identification Information" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://design.va.gov/patterns/ask-users-for/social-security-number | ||
* | ||
*/ | ||
module.exports = ` | ||
fragment identificationInformation on ParagraphDigitalFormIdentificationInfo { | ||
fieldTitle | ||
fieldIncludeVeteranSService | ||
} | ||
`; |
14 changes: 14 additions & 0 deletions
14
src/site/stages/build/drupal/static-data-files/digitalForm/fragments/listLoop.graphql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* | ||
* The "List & Loop" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://design.va.gov/patterns/ask-users-for/multiple-responses | ||
* | ||
*/ | ||
module.exports = ` | ||
fragment listLoop on ParagraphDigitalFormListLoop { | ||
fieldTitle | ||
fieldOptional | ||
} | ||
`; |
14 changes: 14 additions & 0 deletions
14
...site/stages/build/drupal/static-data-files/digitalForm/fragments/phoneAndEmail.graphql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* | ||
* The "Phone and Email Address" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://design.va.gov/patterns/ask-users-for/phone-numbers | ||
* | ||
*/ | ||
module.exports = ` | ||
fragment phoneAndEmail on ParagraphDigitalFormPhoneAndEmail { | ||
fieldTitle | ||
fieldIncludeEmail | ||
} | ||
`; |
28 changes: 28 additions & 0 deletions
28
...s/build/drupal/static-data-files/digitalForm/fragments/yourPersonalInformation.graphql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const identificationInformation = require('./identificationInformation.graphql'); | ||
const nameAndDateOfBirth = require('./nameAndDateOfBirth.graphql'); | ||
|
||
/* | ||
* | ||
* The "Your personal information" Digital Form pattern. | ||
* | ||
* Pattern documentation: | ||
* https://github.com/department-of-veterans-affairs/vets-website/blob/0ae48c0b017a37d84f6ae425c67c332f4c67fb8b/src/applications/simple-forms/mock-simple-forms-patterns-v3/config/form.js#L40 | ||
* | ||
*/ | ||
module.exports = ` | ||
${identificationInformation} | ||
${nameAndDateOfBirth} | ||
fragment yourPersonalInformation on ParagraphDigitalFormYourPersonalInfo { | ||
fieldNameAndDateOfBirth { | ||
entity { | ||
...nameAndDateOfBirth | ||
} | ||
} | ||
fieldIdentificationInformation { | ||
entity { | ||
...identificationInformation | ||
} | ||
} | ||
} | ||
`; |
52 changes: 0 additions & 52 deletions
52
src/site/stages/build/drupal/static-data-files/digitalForm/index.unit.spec.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.