@department-of-veterans-affairs/component-library 54.0.0 → 54.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/12.app.bundle.js +1 -1
- package/dist/2205.app.bundle.js +1 -1
- package/dist/2236.app.bundle.js +1 -1
- package/dist/2923.app.bundle.js +1 -1
- package/dist/3589.app.bundle.js +1 -1
- package/dist/4475.app.bundle.js +1 -1
- package/dist/4780.app.bundle.js +1 -1
- package/dist/5341.app.bundle.js +1 -1
- package/dist/5663.app.bundle.js +1 -1
- package/dist/6555.app.bundle.js +1 -1
- package/dist/6650.app.bundle.js +1 -1
- package/dist/6696.app.bundle.js +1 -1
- package/dist/6849.app.bundle.js +1 -1
- package/dist/7166.app.bundle.js +1 -1
- package/dist/7372.app.bundle.js +1 -1
- package/dist/7734.app.bundle.js +1 -1
- package/dist/8255.app.bundle.js +1 -1
- package/dist/8913.app.bundle.js +1 -1
- package/dist/9496.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/contacts.js +1 -1
- package/dist/components/types/components.d.ts +64 -0
- package/dist/components/types/contacts.d.ts +16 -0
- package/dist/components/va-alert-expandable.js +1 -1
- package/dist/components/va-combo-box2.js +2 -2
- package/dist/components/va-crisis-line-modal2.js +1 -1
- package/dist/components/va-file-input-multiple.js +1 -1
- package/dist/components/va-file-input2.js +1 -1
- package/dist/components/va-table.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const contactsMap=Object.freeze({"222_VETS":{phoneNumber:"8772228387",description:"VA Help Line"},"4AID_VET":{phoneNumber:"8774243838",description:"National Call Center for Homeless Veterans"},711:{phoneNumber:"711",description:"Telecommunications Relay Service"},911:{phoneNumber:"911",description:"911"},CAREGIVER:{phoneNumber:"8552603274",description:"VA National Caregiver Support Line"},CRISIS_LINE:{phoneNumber:"8002738255",description:"Veterans Crisis hotline"},CRISIS_TTY:{phoneNumber:"
|
|
1
|
+
const contactsMap=Object.freeze({"222_VETS":{phoneNumber:"8772228387",description:"VA Help Line"},"4AID_VET":{phoneNumber:"8774243838",description:"National Call Center for Homeless Veterans"},711:{phoneNumber:"711",description:"Telecommunications Relay Service"},911:{phoneNumber:"911",description:"911"},CAREGIVER:{phoneNumber:"8552603274",description:"VA National Caregiver Support Line"},CRISIS_LINE:{phoneNumber:"8002738255",description:"Veterans Crisis hotline"},CRISIS_TTY:{phoneNumber:"8002738255",description:"Veterans Crisis hotline TTY"},CRISIS_MODAL_TTY:{phoneNumber:"711",extension:"988",description:"Veterans Crisis hotline TTY"},DMC:{phoneNumber:"8008270648",description:"Debt Management Center"},DMC_OVERSEAS:{phoneNumber:"6127136415",description:"Debt Management Center (Overseas)"},DMDC_DEERS:{phoneNumber:"8663632883",description:"Defense Manpower Data Center (DMDC) | Defense Enrollment Eligibility Reporting System (DEERS) Support Office"},DS_LOGON:{phoneNumber:"8005389552",description:"Defense Manpower Data Center"},DS_LOGON_TTY:{phoneNumber:"8663632883",description:"Defense Manpower Data Center TTY"},FEDERAL_RELAY_SERVICE:{phoneNumber:"8008778339",description:"Federal Relay Service"},GI_BILL:{phoneNumber:"8884424551",description:"Education Call Center (1-888-GI-BILL-1)"},GO_DIRECT:{phoneNumber:"8003331795",description:"Go Direct/Direct Express (Treasury)"},HELP_DESK:{phoneNumber:"8006982411",description:"VA Help desk"},HEALTH_RESOURCE_CENTER:{phoneNumber:"8664001238",description:"Health Resource Center"},HEALTHCARE_ELIGIBILITY_CENTER:{phoneNumber:"8554888440",description:"VA Healthcare Eligibility Center (Eligibility Division)"},HELP_TTY:{phoneNumber:"8008778339",description:"VA Help Desk TTY"},MY_HEALTHEVET:{phoneNumber:"8773270022",description:"My HealtheVet help desk"},NCA:{phoneNumber:"8005351117",description:"National Cemetery Scheduling Office"},SUICIDE_PREVENTION_LIFELINE:{phoneNumber:"8007994889",description:"Suicide Prevention Line"},TESC:{phoneNumber:"8882242950",description:"U.S. Treasury Electronic Payment Solution Center"},TREASURY_DMS:{phoneNumber:"8888263127",description:"U.S. Department of the Treasury (Debt Management Services)"},VA_311:{phoneNumber:"8006982411",description:"VA Help desk (VA411)"},VA_411:{phoneNumber:"8006982411",description:"VA Help desk (VA411)"},VA_BENEFITS:{phoneNumber:"8008271000",description:"Veterans Benefits Assistance"}}),CONTACTS=Object.freeze(Object.entries(contactsMap).reduce(((e,n)=>Object.assign(Object.assign({},e),{[n[0]]:n[1].phoneNumber})),{})),CONTACTS_WITH_EXTENSION=Object.freeze(Object.entries(contactsMap).reduce(((e,[n,r])=>Object.assign(Object.assign({},e),{[n]:r.extension?{phoneNumber:r.phoneNumber,extension:r.extension}:{phoneNumber:r.phoneNumber}})),{}));export{CONTACTS as C,CONTACTS_WITH_EXTENSION as a,contactsMap as c};
|
|
@@ -590,6 +590,34 @@ export namespace Components {
|
|
|
590
590
|
* @maturityLevel available
|
|
591
591
|
*/
|
|
592
592
|
interface VaCrisisLineModal {
|
|
593
|
+
/**
|
|
594
|
+
* URL for the chat service. Defaults to Veterans Crisis Line chat.
|
|
595
|
+
*/
|
|
596
|
+
"chatUrl"?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Phone extension for the crisis line. Defaults to 1.
|
|
599
|
+
*/
|
|
600
|
+
"phoneExtension"?: string;
|
|
601
|
+
/**
|
|
602
|
+
* Phone number for the crisis line. Defaults to 988.
|
|
603
|
+
*/
|
|
604
|
+
"phoneNumber"?: string;
|
|
605
|
+
/**
|
|
606
|
+
* Text number for the crisis line. Defaults to 838255.
|
|
607
|
+
*/
|
|
608
|
+
"textNumber"?: string;
|
|
609
|
+
/**
|
|
610
|
+
* Selector for an external button that should trigger the modal. When provided, the internal trigger button will not be rendered. Accepts ID (#myButton), class (.my-button), or attribute selector.
|
|
611
|
+
*/
|
|
612
|
+
"triggerRef"?: string;
|
|
613
|
+
/**
|
|
614
|
+
* TTY extension for the crisis line. Defaults to 988.
|
|
615
|
+
*/
|
|
616
|
+
"ttyCrisisExtension"?: string;
|
|
617
|
+
/**
|
|
618
|
+
* TTY number for the crisis line. Defaults to 711.
|
|
619
|
+
*/
|
|
620
|
+
"ttyNumber"?: string;
|
|
593
621
|
}
|
|
594
622
|
/**
|
|
595
623
|
* @componentName Critical Action
|
|
@@ -1906,6 +1934,10 @@ export namespace Components {
|
|
|
1906
1934
|
* @maturityLevel available
|
|
1907
1935
|
*/
|
|
1908
1936
|
interface VaTable {
|
|
1937
|
+
/**
|
|
1938
|
+
* Text to display in empty cells. Needed for screen readers to announce empty cells.
|
|
1939
|
+
*/
|
|
1940
|
+
"emptyCellText"?: string;
|
|
1909
1941
|
/**
|
|
1910
1942
|
* When active, forces the table to expand to the full-width of its container
|
|
1911
1943
|
*/
|
|
@@ -4541,6 +4573,34 @@ declare namespace LocalJSX {
|
|
|
4541
4573
|
* @maturityLevel available
|
|
4542
4574
|
*/
|
|
4543
4575
|
interface VaCrisisLineModal {
|
|
4576
|
+
/**
|
|
4577
|
+
* URL for the chat service. Defaults to Veterans Crisis Line chat.
|
|
4578
|
+
*/
|
|
4579
|
+
"chatUrl"?: string;
|
|
4580
|
+
/**
|
|
4581
|
+
* Phone extension for the crisis line. Defaults to 1.
|
|
4582
|
+
*/
|
|
4583
|
+
"phoneExtension"?: string;
|
|
4584
|
+
/**
|
|
4585
|
+
* Phone number for the crisis line. Defaults to 988.
|
|
4586
|
+
*/
|
|
4587
|
+
"phoneNumber"?: string;
|
|
4588
|
+
/**
|
|
4589
|
+
* Text number for the crisis line. Defaults to 838255.
|
|
4590
|
+
*/
|
|
4591
|
+
"textNumber"?: string;
|
|
4592
|
+
/**
|
|
4593
|
+
* Selector for an external button that should trigger the modal. When provided, the internal trigger button will not be rendered. Accepts ID (#myButton), class (.my-button), or attribute selector.
|
|
4594
|
+
*/
|
|
4595
|
+
"triggerRef"?: string;
|
|
4596
|
+
/**
|
|
4597
|
+
* TTY extension for the crisis line. Defaults to 988.
|
|
4598
|
+
*/
|
|
4599
|
+
"ttyCrisisExtension"?: string;
|
|
4600
|
+
/**
|
|
4601
|
+
* TTY number for the crisis line. Defaults to 711.
|
|
4602
|
+
*/
|
|
4603
|
+
"ttyNumber"?: string;
|
|
4544
4604
|
}
|
|
4545
4605
|
/**
|
|
4546
4606
|
* @componentName Critical Action
|
|
@@ -6065,6 +6125,10 @@ declare namespace LocalJSX {
|
|
|
6065
6125
|
* @maturityLevel available
|
|
6066
6126
|
*/
|
|
6067
6127
|
interface VaTable {
|
|
6128
|
+
/**
|
|
6129
|
+
* Text to display in empty cells. Needed for screen readers to announce empty cells.
|
|
6130
|
+
*/
|
|
6131
|
+
"emptyCellText"?: string;
|
|
6068
6132
|
/**
|
|
6069
6133
|
* When active, forces the table to expand to the full-width of its container
|
|
6070
6134
|
*/
|
|
@@ -31,6 +31,11 @@ export declare const contactsMap: Readonly<{
|
|
|
31
31
|
phoneNumber: string;
|
|
32
32
|
description: string;
|
|
33
33
|
};
|
|
34
|
+
CRISIS_MODAL_TTY: {
|
|
35
|
+
phoneNumber: string;
|
|
36
|
+
extension: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
34
39
|
DMC: {
|
|
35
40
|
phoneNumber: string;
|
|
36
41
|
description: string;
|
|
@@ -119,3 +124,14 @@ export declare const contactsMap: Readonly<{
|
|
|
119
124
|
export declare const CONTACTS: {
|
|
120
125
|
[x: string]: string;
|
|
121
126
|
};
|
|
127
|
+
export interface ContactInfo {
|
|
128
|
+
phoneNumber: string;
|
|
129
|
+
extension?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Map of contact objects that include phoneNumber and (if defined) extension.
|
|
133
|
+
* Use CONTACTS for legacy string-only access or CONTACTS_WITH_EXTENSION for full data.
|
|
134
|
+
*/
|
|
135
|
+
export declare const CONTACTS_WITH_EXTENSION: {
|
|
136
|
+
[key: string]: ContactInfo;
|
|
137
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";import{d as defineCustomElement$2}from"./va-icon2.js";const vaAlertExpandableCss=
|
|
1
|
+
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";import{d as defineCustomElement$2}from"./va-icon2.js";const vaAlertExpandableCss='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}:host([status=warning]){background-color:var(--vads-alert-color-background-warning-on-light)}:host([status=info]){background-color:var(--vads-alert-color-background-info-on-light)}:host([status=success]){background-color:var(--vads-alert-color-background-success-on-light)}:host([status=continue]){background-color:var(--vads-color-base-lightest)}.alert-expandable-trigger{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex;padding:0.75rem}div.warning .alert-expandable-trigger:hover{background-color:var(--vads-color-gold-lighter)}div.info .alert-expandable-trigger:hover{background-color:var(--vads-color-primary-alt-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable:not(.hide-icon) .alert-expandable-body{padding-left:32px;}.alert-expandable-body{overflow:hidden}.alert-expandable-body.closed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.alert-expandable-body.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height)}#slot-wrap{margin:0.75rem}.alert-expandable-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded=true] .alert-expandable-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}.alert-expandable__status-icon{color:var(--vads-color-base-darker);margin-right:8px}::slotted(*:first-child){margin-top:0 !important}::slotted(*:last-child){margin-bottom:0 !important}',VaAlertExpandableStyle0=vaAlertExpandableCss,VaAlertExpandable$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.open=void 0,this.status=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.iconless=!1}handleResize(){this.updateAlertBodyMaxHeight()}toggleOpen(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-alert-expandable",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open}handleKeydown(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleOpen())}updateAlertBodyMaxHeight(){var e;const a=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.getElementById("alert-body");if(!a)return;const t=a.scrollHeight+"px";a.style.setProperty("--calc-max-height","calc("+t+" + 2rem)")}componentDidLoad(){requestAnimationFrame((()=>this.updateAlertBodyMaxHeight()))}render(){const{status:e,open:a,iconless:t}=this,o=classnames("alert-expandable",e,{"hide-icon":t}),r=classnames("alert-expandable-body",{open:a,closed:!a});return h(Host,{key:"5ea0af5f0558d6ee0624e7f92791efd94ba1c4df"},h("div",{key:"4115ea4fec5dfee79cb89b8b286d8a5b7183ed22",class:o},h("a",{key:"8776efb5c735cec192135ba64589249e225786e8",role:"button","aria-controls":"alert-body","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this),class:"alert-expandable-trigger"},!t&&h("va-icon",{key:"f1bbccd44fa57f2644c3ca837aead419b9172db0",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[e]||"info",size:3}),h("div",{key:"50c53962be3cfad3727704208544d2f748120d2e"},h("span",{key:"445835725b87dd9ab8345d65cd5f308fcd66abf4",class:"alert-expandable-title"},h("span",{key:"e9eaf60e35f3cb32eb97bdf93eb3d4e426cd2c9e",class:"usa-sr-only"},`${{continue:"Continue",error:"Error",warning:"Warning",info:"Information",success:"Success"}[e]||"Information"} Alert`," "),this.trigger),h("va-icon",{key:"9b309ac19189390a6b750aee296793f7bcb4aae1",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),h("div",{key:"38c4a4ed76a166335977c226e5dde624600718d5",id:"alert-body",class:r},h("div",{key:"3d61d3a4f7f9baad1e9b20d8bc2ff12bf9942a66",id:"slot-wrap"},h("slot",{key:"dc996601268d23f3af322c18967ad19e526b8a35"})))))}get el(){return this}static get style(){return VaAlertExpandableStyle0}},[1,"va-alert-expandable",{status:[1],trigger:[1],disableAnalytics:[4,"disable-analytics"],iconless:[4],open:[32]},[[9,"resize","handleResize"]]]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-alert-expandable","va-icon"].forEach((e=>{switch(e){case"va-alert-expandable":customElements.get(e)||customElements.define(e,VaAlertExpandable$1);break;case"va-icon":customElements.get(e)||defineCustomElement$2()}}))}const VaAlertExpandable=VaAlertExpandable$1,defineCustomElement=defineCustomElement$1;export{VaAlertExpandable,defineCustomElement};
|