@department-of-veterans-affairs/component-library 51.4.0 → 52.1.0
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/0.app.bundle.js +1 -1
- package/dist/1822.app.bundle.js +1 -1
- package/dist/2236.app.bundle.js +1 -1
- package/dist/251.app.bundle.js +1 -1
- package/dist/2923.app.bundle.js +1 -1
- package/dist/2986.app.bundle.js +1 -1
- package/dist/3397.app.bundle.js +1 -1
- package/dist/3589.app.bundle.js +1 -1
- package/dist/3601.app.bundle.js +2 -0
- package/dist/3601.app.bundle.js.LICENSE.txt +5 -0
- package/dist/4400.app.bundle.js +1 -1
- package/dist/4432.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/5348.app.bundle.js +2 -0
- package/dist/5348.app.bundle.js.LICENSE.txt +5 -0
- package/dist/5663.app.bundle.js +1 -1
- package/dist/606.app.bundle.js +1 -1
- package/dist/6308.app.bundle.js +1 -1
- package/dist/6555.app.bundle.js +1 -1
- package/dist/6650.app.bundle.js +1 -1
- package/dist/6830.app.bundle.js +1 -1
- package/dist/6849.app.bundle.js +1 -1
- package/dist/7166.app.bundle.js +1 -1
- package/dist/7307.app.bundle.js +1 -1
- package/dist/7372.app.bundle.js +1 -1
- package/dist/7734.app.bundle.js +1 -1
- package/dist/8039.app.bundle.js +1 -0
- package/dist/8255.app.bundle.js +1 -1
- package/dist/8762.app.bundle.js +1 -0
- package/dist/8913.app.bundle.js +1 -1
- package/dist/9186.app.bundle.js +1 -1
- package/dist/9376.app.bundle.js +1 -1
- package/dist/9496.app.bundle.js +1 -1
- package/dist/960.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/types/components.d.ts +215 -15
- package/dist/components/utils.js +1 -1
- package/dist/components/va-accordion-item2.js +1 -1
- package/dist/components/va-alert-expandable.js +1 -1
- package/dist/components/va-alert2.js +1 -1
- package/dist/components/va-banner.js +1 -1
- package/dist/components/va-checkbox2.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-link2.js +1 -1
- package/dist/components/va-modal2.js +1 -1
- package/dist/components/va-omb-info.js +1 -1
- package/dist/components/va-segmented-progress-bar.js +1 -1
- package/dist/components/va-service-list-item.js +1 -1
- package/dist/components/va-sidenav.js +1 -1
- package/dist/components/va-tab-item.d.ts +11 -0
- package/dist/components/va-tab-item.js +1 -0
- package/dist/components/va-tab-panel.d.ts +11 -0
- package/dist/components/va-tab-panel.js +1 -0
- package/dist/components/va-tabs.d.ts +11 -0
- package/dist/components/va-tabs.js +1 -0
- package/dist/components/va-telephone-input.js +1 -1
- package/dist/components/va-telephone2.js +1 -1
- package/dist/components/va-text-input2.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/dist/react-bindings/index.d.ts +3 -0
- package/dist/react-bindings/index.js +1 -1
- package/dist/react-bindings/index.js.map +1 -1
- package/dist/react-bindings/index.ts +3 -0
- package/package.json +3 -3
- package/dist/7508.app.bundle.js +0 -1
|
@@ -109,12 +109,18 @@ export { VaStatementOfTruth as VaStatementOfTruth } from '../types/components/va
|
|
|
109
109
|
export { defineCustomElement as defineCustomElementVaStatementOfTruth } from './va-statement-of-truth';
|
|
110
110
|
export { VaSummaryBox as VaSummaryBox } from '../types/components/va-summary-box/va-summary-box';
|
|
111
111
|
export { defineCustomElement as defineCustomElementVaSummaryBox } from './va-summary-box';
|
|
112
|
+
export { VaTabItem as VaTabItem } from '../types/components/va-tabs/va-tab-item';
|
|
113
|
+
export { defineCustomElement as defineCustomElementVaTabItem } from './va-tab-item';
|
|
114
|
+
export { VaTabPanel as VaTabPanel } from '../types/components/va-tabs/va-tab-panel';
|
|
115
|
+
export { defineCustomElement as defineCustomElementVaTabPanel } from './va-tab-panel';
|
|
112
116
|
export { VaTable as VaTable } from '../types/components/va-table/va-table';
|
|
113
117
|
export { defineCustomElement as defineCustomElementVaTable } from './va-table';
|
|
114
118
|
export { VaTableInner as VaTableInner } from '../types/components/va-table/va-table-inner/va-table-inner';
|
|
115
119
|
export { defineCustomElement as defineCustomElementVaTableInner } from './va-table-inner';
|
|
116
120
|
export { VaTableRow as VaTableRow } from '../types/components/va-table/va-table-inner/va-table-row';
|
|
117
121
|
export { defineCustomElement as defineCustomElementVaTableRow } from './va-table-row';
|
|
122
|
+
export { VaTabs as VaTabs } from '../types/components/va-tabs/va-tabs';
|
|
123
|
+
export { defineCustomElement as defineCustomElementVaTabs } from './va-tabs';
|
|
118
124
|
export { VaTelephone as VaTelephone } from '../types/components/va-telephone/va-telephone';
|
|
119
125
|
export { defineCustomElement as defineCustomElementVaTelephone } from './va-telephone';
|
|
120
126
|
export { VaTelephoneInput as VaTelephoneInput } from '../types/components/va-telephone-input/va-telephone-input';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{getAssetPath,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";import"./i18n-setup.js";export{C as CONTACTS,c as contactsMap}from"./contacts.js";export{i as initIconSpriteLocation}from"./va-icon2.js";export{VaAccordion,defineCustomElement as defineCustomElementVaAccordion}from"./va-accordion.js";export{VaAccordionItem,defineCustomElement as defineCustomElementVaAccordionItem}from"./va-accordion-item.js";export{VaAdditionalInfo,defineCustomElement as defineCustomElementVaAdditionalInfo}from"./va-additional-info.js";export{VaAlert,defineCustomElement as defineCustomElementVaAlert}from"./va-alert.js";export{VaAlertExpandable,defineCustomElement as defineCustomElementVaAlertExpandable}from"./va-alert-expandable.js";export{VaAlertSignIn,defineCustomElement as defineCustomElementVaAlertSignIn}from"./va-alert-sign-in.js";export{VaBackToTop,defineCustomElement as defineCustomElementVaBackToTop}from"./va-back-to-top.js";export{VaBanner,defineCustomElement as defineCustomElementVaBanner}from"./va-banner.js";export{VaBreadcrumbs,defineCustomElement as defineCustomElementVaBreadcrumbs}from"./va-breadcrumbs.js";export{VaButton,defineCustomElement as defineCustomElementVaButton}from"./va-button.js";export{VaButtonIcon,defineCustomElement as defineCustomElementVaButtonIcon}from"./va-button-icon.js";export{VaButtonPair,defineCustomElement as defineCustomElementVaButtonPair}from"./va-button-pair.js";export{VaButtonSegmented,defineCustomElement as defineCustomElementVaButtonSegmented}from"./va-button-segmented.js";export{VaCard,defineCustomElement as defineCustomElementVaCard}from"./va-card.js";export{VaCheckbox,defineCustomElement as defineCustomElementVaCheckbox}from"./va-checkbox.js";export{VaCheckboxGroup,defineCustomElement as defineCustomElementVaCheckboxGroup}from"./va-checkbox-group.js";export{VaComboBox,defineCustomElement as defineCustomElementVaComboBox}from"./va-combo-box.js";export{VaCrisisLineModal,defineCustomElement as defineCustomElementVaCrisisLineModal}from"./va-crisis-line-modal.js";export{VaCriticalAction,defineCustomElement as defineCustomElementVaCriticalAction}from"./va-critical-action.js";export{VaDate,defineCustomElement as defineCustomElementVaDate}from"./va-date.js";export{VaFileInput,defineCustomElement as defineCustomElementVaFileInput}from"./va-file-input.js";export{VaFileInputMultiple,defineCustomElement as defineCustomElementVaFileInputMultiple}from"./va-file-input-multiple.js";export{VaHeaderMinimal,defineCustomElement as defineCustomElementVaHeaderMinimal}from"./va-header-minimal.js";export{VaIcon,defineCustomElement as defineCustomElementVaIcon}from"./va-icon.js";export{VaLanguageToggle,defineCustomElement as defineCustomElementVaLanguageToggle}from"./va-language-toggle.js";export{VaLink,defineCustomElement as defineCustomElementVaLink}from"./va-link.js";export{VaLinkAction,defineCustomElement as defineCustomElementVaLinkAction}from"./va-link-action.js";export{VaLoadingIndicator,defineCustomElement as defineCustomElementVaLoadingIndicator}from"./va-loading-indicator.js";export{VaMaintenanceBanner,defineCustomElement as defineCustomElementVaMaintenanceBanner}from"./va-maintenance-banner.js";export{VaMemorableDate,defineCustomElement as defineCustomElementVaMemorableDate}from"./va-memorable-date.js";export{VaMinimalFooter,defineCustomElement as defineCustomElementVaMinimalFooter}from"./va-minimal-footer.js";export{VaModal,defineCustomElement as defineCustomElementVaModal}from"./va-modal.js";export{VaNeedHelp,defineCustomElement as defineCustomElementVaNeedHelp}from"./va-need-help.js";export{VaNotification,defineCustomElement as defineCustomElementVaNotification}from"./va-notification.js";export{VaOfficialGovBanner,defineCustomElement as defineCustomElementVaOfficialGovBanner}from"./va-official-gov-banner.js";export{VaOmbInfo,defineCustomElement as defineCustomElementVaOmbInfo}from"./va-omb-info.js";export{VaOnThisPage,defineCustomElement as defineCustomElementVaOnThisPage}from"./va-on-this-page.js";export{VaPagination,defineCustomElement as defineCustomElementVaPagination}from"./va-pagination.js";export{VaPrivacyAgreement,defineCustomElement as defineCustomElementVaPrivacyAgreement}from"./va-privacy-agreement.js";export{VaProcessList,defineCustomElement as defineCustomElementVaProcessList}from"./va-process-list.js";export{VaProcessListItem,defineCustomElement as defineCustomElementVaProcessListItem}from"./va-process-list-item.js";export{VaProgressBar,defineCustomElement as defineCustomElementVaProgressBar}from"./va-progress-bar.js";export{VaPromoBanner,defineCustomElement as defineCustomElementVaPromoBanner}from"./va-promo-banner.js";export{VaRadio,defineCustomElement as defineCustomElementVaRadio}from"./va-radio.js";export{VaRadioOption,defineCustomElement as defineCustomElementVaRadioOption}from"./va-radio-option.js";export{VaSearchFilter,defineCustomElement as defineCustomElementVaSearchFilter}from"./va-search-filter.js";export{VaSearchInput,defineCustomElement as defineCustomElementVaSearchInput}from"./va-search-input.js";export{VaSegmentedProgressBar,defineCustomElement as defineCustomElementVaSegmentedProgressBar}from"./va-segmented-progress-bar.js";export{VaSelect,defineCustomElement as defineCustomElementVaSelect}from"./va-select.js";export{VaServiceListItem,defineCustomElement as defineCustomElementVaServiceListItem}from"./va-service-list-item.js";export{VaSidenav,defineCustomElement as defineCustomElementVaSidenav}from"./va-sidenav.js";export{VaSidenavItem,defineCustomElement as defineCustomElementVaSidenavItem}from"./va-sidenav-item.js";export{VaSidenavSubmenu,defineCustomElement as defineCustomElementVaSidenavSubmenu}from"./va-sidenav-submenu.js";export{VaStatementOfTruth,defineCustomElement as defineCustomElementVaStatementOfTruth}from"./va-statement-of-truth.js";export{VaSummaryBox,defineCustomElement as defineCustomElementVaSummaryBox}from"./va-summary-box.js";export{VaTable,defineCustomElement as defineCustomElementVaTable}from"./va-table.js";export{VaTableInner,defineCustomElement as defineCustomElementVaTableInner}from"./va-table-inner.js";export{VaTableRow,defineCustomElement as defineCustomElementVaTableRow}from"./va-table-row.js";export{VaTelephone,defineCustomElement as defineCustomElementVaTelephone}from"./va-telephone.js";export{VaTelephoneInput,defineCustomElement as defineCustomElementVaTelephoneInput}from"./va-telephone-input.js";export{VaTextInput,defineCustomElement as defineCustomElementVaTextInput}from"./va-text-input.js";export{VaTextarea,defineCustomElement as defineCustomElementVaTextarea}from"./va-textarea.js";export{i as i18next}from"./i18next.js";
|
|
1
|
+
export{getAssetPath,setAssetPath,setNonce,setPlatformOptions}from"@stencil/core/internal/client";import"./i18n-setup.js";export{C as CONTACTS,c as contactsMap}from"./contacts.js";export{i as initIconSpriteLocation}from"./va-icon2.js";export{VaAccordion,defineCustomElement as defineCustomElementVaAccordion}from"./va-accordion.js";export{VaAccordionItem,defineCustomElement as defineCustomElementVaAccordionItem}from"./va-accordion-item.js";export{VaAdditionalInfo,defineCustomElement as defineCustomElementVaAdditionalInfo}from"./va-additional-info.js";export{VaAlert,defineCustomElement as defineCustomElementVaAlert}from"./va-alert.js";export{VaAlertExpandable,defineCustomElement as defineCustomElementVaAlertExpandable}from"./va-alert-expandable.js";export{VaAlertSignIn,defineCustomElement as defineCustomElementVaAlertSignIn}from"./va-alert-sign-in.js";export{VaBackToTop,defineCustomElement as defineCustomElementVaBackToTop}from"./va-back-to-top.js";export{VaBanner,defineCustomElement as defineCustomElementVaBanner}from"./va-banner.js";export{VaBreadcrumbs,defineCustomElement as defineCustomElementVaBreadcrumbs}from"./va-breadcrumbs.js";export{VaButton,defineCustomElement as defineCustomElementVaButton}from"./va-button.js";export{VaButtonIcon,defineCustomElement as defineCustomElementVaButtonIcon}from"./va-button-icon.js";export{VaButtonPair,defineCustomElement as defineCustomElementVaButtonPair}from"./va-button-pair.js";export{VaButtonSegmented,defineCustomElement as defineCustomElementVaButtonSegmented}from"./va-button-segmented.js";export{VaCard,defineCustomElement as defineCustomElementVaCard}from"./va-card.js";export{VaCheckbox,defineCustomElement as defineCustomElementVaCheckbox}from"./va-checkbox.js";export{VaCheckboxGroup,defineCustomElement as defineCustomElementVaCheckboxGroup}from"./va-checkbox-group.js";export{VaComboBox,defineCustomElement as defineCustomElementVaComboBox}from"./va-combo-box.js";export{VaCrisisLineModal,defineCustomElement as defineCustomElementVaCrisisLineModal}from"./va-crisis-line-modal.js";export{VaCriticalAction,defineCustomElement as defineCustomElementVaCriticalAction}from"./va-critical-action.js";export{VaDate,defineCustomElement as defineCustomElementVaDate}from"./va-date.js";export{VaFileInput,defineCustomElement as defineCustomElementVaFileInput}from"./va-file-input.js";export{VaFileInputMultiple,defineCustomElement as defineCustomElementVaFileInputMultiple}from"./va-file-input-multiple.js";export{VaHeaderMinimal,defineCustomElement as defineCustomElementVaHeaderMinimal}from"./va-header-minimal.js";export{VaIcon,defineCustomElement as defineCustomElementVaIcon}from"./va-icon.js";export{VaLanguageToggle,defineCustomElement as defineCustomElementVaLanguageToggle}from"./va-language-toggle.js";export{VaLink,defineCustomElement as defineCustomElementVaLink}from"./va-link.js";export{VaLinkAction,defineCustomElement as defineCustomElementVaLinkAction}from"./va-link-action.js";export{VaLoadingIndicator,defineCustomElement as defineCustomElementVaLoadingIndicator}from"./va-loading-indicator.js";export{VaMaintenanceBanner,defineCustomElement as defineCustomElementVaMaintenanceBanner}from"./va-maintenance-banner.js";export{VaMemorableDate,defineCustomElement as defineCustomElementVaMemorableDate}from"./va-memorable-date.js";export{VaMinimalFooter,defineCustomElement as defineCustomElementVaMinimalFooter}from"./va-minimal-footer.js";export{VaModal,defineCustomElement as defineCustomElementVaModal}from"./va-modal.js";export{VaNeedHelp,defineCustomElement as defineCustomElementVaNeedHelp}from"./va-need-help.js";export{VaNotification,defineCustomElement as defineCustomElementVaNotification}from"./va-notification.js";export{VaOfficialGovBanner,defineCustomElement as defineCustomElementVaOfficialGovBanner}from"./va-official-gov-banner.js";export{VaOmbInfo,defineCustomElement as defineCustomElementVaOmbInfo}from"./va-omb-info.js";export{VaOnThisPage,defineCustomElement as defineCustomElementVaOnThisPage}from"./va-on-this-page.js";export{VaPagination,defineCustomElement as defineCustomElementVaPagination}from"./va-pagination.js";export{VaPrivacyAgreement,defineCustomElement as defineCustomElementVaPrivacyAgreement}from"./va-privacy-agreement.js";export{VaProcessList,defineCustomElement as defineCustomElementVaProcessList}from"./va-process-list.js";export{VaProcessListItem,defineCustomElement as defineCustomElementVaProcessListItem}from"./va-process-list-item.js";export{VaProgressBar,defineCustomElement as defineCustomElementVaProgressBar}from"./va-progress-bar.js";export{VaPromoBanner,defineCustomElement as defineCustomElementVaPromoBanner}from"./va-promo-banner.js";export{VaRadio,defineCustomElement as defineCustomElementVaRadio}from"./va-radio.js";export{VaRadioOption,defineCustomElement as defineCustomElementVaRadioOption}from"./va-radio-option.js";export{VaSearchFilter,defineCustomElement as defineCustomElementVaSearchFilter}from"./va-search-filter.js";export{VaSearchInput,defineCustomElement as defineCustomElementVaSearchInput}from"./va-search-input.js";export{VaSegmentedProgressBar,defineCustomElement as defineCustomElementVaSegmentedProgressBar}from"./va-segmented-progress-bar.js";export{VaSelect,defineCustomElement as defineCustomElementVaSelect}from"./va-select.js";export{VaServiceListItem,defineCustomElement as defineCustomElementVaServiceListItem}from"./va-service-list-item.js";export{VaSidenav,defineCustomElement as defineCustomElementVaSidenav}from"./va-sidenav.js";export{VaSidenavItem,defineCustomElement as defineCustomElementVaSidenavItem}from"./va-sidenav-item.js";export{VaSidenavSubmenu,defineCustomElement as defineCustomElementVaSidenavSubmenu}from"./va-sidenav-submenu.js";export{VaStatementOfTruth,defineCustomElement as defineCustomElementVaStatementOfTruth}from"./va-statement-of-truth.js";export{VaSummaryBox,defineCustomElement as defineCustomElementVaSummaryBox}from"./va-summary-box.js";export{VaTabItem,defineCustomElement as defineCustomElementVaTabItem}from"./va-tab-item.js";export{VaTabPanel,defineCustomElement as defineCustomElementVaTabPanel}from"./va-tab-panel.js";export{VaTable,defineCustomElement as defineCustomElementVaTable}from"./va-table.js";export{VaTableInner,defineCustomElement as defineCustomElementVaTableInner}from"./va-table-inner.js";export{VaTableRow,defineCustomElement as defineCustomElementVaTableRow}from"./va-table-row.js";export{VaTabs,defineCustomElement as defineCustomElementVaTabs}from"./va-tabs.js";export{VaTelephone,defineCustomElement as defineCustomElementVaTelephone}from"./va-telephone.js";export{VaTelephoneInput,defineCustomElement as defineCustomElementVaTelephoneInput}from"./va-telephone-input.js";export{VaTextInput,defineCustomElement as defineCustomElementVaTextInput}from"./va-text-input.js";export{VaTextarea,defineCustomElement as defineCustomElementVaTextarea}from"./va-textarea.js";export{i as i18next}from"./i18next.js";
|
|
@@ -141,9 +141,9 @@ export namespace Components {
|
|
|
141
141
|
*/
|
|
142
142
|
"iconless"?: boolean;
|
|
143
143
|
/**
|
|
144
|
-
* Determines the icon and background color. One of `info`, `
|
|
144
|
+
* Determines the icon and background color. One of `info`, `success`, `warning`, or `continue`
|
|
145
145
|
*/
|
|
146
|
-
"status"?: 'continue' | '
|
|
146
|
+
"status"?: 'continue' | 'info' | 'success' | 'warning';
|
|
147
147
|
/**
|
|
148
148
|
* The text to trigger the expansion
|
|
149
149
|
*/
|
|
@@ -664,10 +664,6 @@ export namespace Components {
|
|
|
664
664
|
* A comma-separated list of unique file type specifiers.
|
|
665
665
|
*/
|
|
666
666
|
"accept"?: string;
|
|
667
|
-
/**
|
|
668
|
-
* The text displayed on the button.
|
|
669
|
-
*/
|
|
670
|
-
"buttonText": string;
|
|
671
667
|
/**
|
|
672
668
|
* Emit component-library-analytics events on the file input change event.
|
|
673
669
|
*/
|
|
@@ -765,7 +761,7 @@ export namespace Components {
|
|
|
765
761
|
/**
|
|
766
762
|
* Array of booleans, displays file password field for corresponding file input.
|
|
767
763
|
*/
|
|
768
|
-
"encrypted"
|
|
764
|
+
"encrypted"?: boolean[];
|
|
769
765
|
/**
|
|
770
766
|
* Array of error messages corresponding to each file input. The length and order match the files array.
|
|
771
767
|
*/
|
|
@@ -782,10 +778,26 @@ export namespace Components {
|
|
|
782
778
|
* Label for the file input, displayed above the input.
|
|
783
779
|
*/
|
|
784
780
|
"label"?: string;
|
|
781
|
+
/**
|
|
782
|
+
* Maximum allowed file size in bytes. The value is applied to all file inputs.
|
|
783
|
+
*/
|
|
784
|
+
"maxFileSize"?: number;
|
|
785
|
+
/**
|
|
786
|
+
* Minimum allowed file size in bytes. The value is applied to all file inputs.
|
|
787
|
+
*/
|
|
788
|
+
"minFileSize"?: number;
|
|
785
789
|
/**
|
|
786
790
|
* Name attribute for the file input element, used to identify the form data in the submission.
|
|
787
791
|
*/
|
|
788
792
|
"name"?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Array of password error messages corresponding to each file input. The length and order match the files array.
|
|
795
|
+
*/
|
|
796
|
+
"passwordErrors"?: Array<string | null>;
|
|
797
|
+
/**
|
|
798
|
+
* Array of numbers corresponding to the progress of the upload of each file.
|
|
799
|
+
*/
|
|
800
|
+
"percentUploaded"?: number[];
|
|
789
801
|
/**
|
|
790
802
|
* Optionally displays the read-only view
|
|
791
803
|
*/
|
|
@@ -794,10 +806,22 @@ export namespace Components {
|
|
|
794
806
|
* If true, the file input is marked as required, and users must select a file.
|
|
795
807
|
*/
|
|
796
808
|
"required"?: boolean;
|
|
809
|
+
/**
|
|
810
|
+
* Array of booleans corresponding to each file input - if true, resets component instance to initial visual state.
|
|
811
|
+
*/
|
|
812
|
+
"resetVisualState"?: boolean[];
|
|
797
813
|
/**
|
|
798
814
|
* Optional, shows the additional info slot content only for indexes of file inputs provided. Defaults to `null` (show on all fields). ex: [1,3]
|
|
799
815
|
*/
|
|
800
816
|
"slotFieldIndexes"?: Number[];
|
|
817
|
+
/**
|
|
818
|
+
* Optional file status, ex: "Uploading...", "Uploaded".
|
|
819
|
+
*/
|
|
820
|
+
"statusText"?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Array of objects representing a previously uploaded file. Example: `[{ name: string, type: string, size: number}]`
|
|
823
|
+
*/
|
|
824
|
+
"uploadedFiles"?: UploadedFile[];
|
|
801
825
|
/**
|
|
802
826
|
* The value attribute for the file view element.
|
|
803
827
|
*/
|
|
@@ -1272,7 +1296,11 @@ export namespace Components {
|
|
|
1272
1296
|
*/
|
|
1273
1297
|
"expDate": string;
|
|
1274
1298
|
/**
|
|
1275
|
-
* The
|
|
1299
|
+
* The form number to display in the Privacy Act Statement button text. When provided, the button reads "Privacy Act Statement for VA Form {formId}". This improves accessibility when multiple instances exist on the same page.
|
|
1300
|
+
*/
|
|
1301
|
+
"formId"?: string;
|
|
1302
|
+
/**
|
|
1303
|
+
* The OMB control number
|
|
1276
1304
|
*/
|
|
1277
1305
|
"ombNumber"?: string;
|
|
1278
1306
|
/**
|
|
@@ -1824,6 +1852,30 @@ export namespace Components {
|
|
|
1824
1852
|
*/
|
|
1825
1853
|
interface VaSummaryBox {
|
|
1826
1854
|
}
|
|
1855
|
+
interface VaTabItem {
|
|
1856
|
+
/**
|
|
1857
|
+
* The text content of the button element.
|
|
1858
|
+
*/
|
|
1859
|
+
"buttonText": string;
|
|
1860
|
+
/**
|
|
1861
|
+
* Denotes whether this tab item is currently selected in parent `va-tabs`. Note that this value does not need to be passed for component initialization, it will be set via logic in parent `va-tabs` on initial render.
|
|
1862
|
+
*/
|
|
1863
|
+
"selected"?: boolean;
|
|
1864
|
+
/**
|
|
1865
|
+
* The `id` of the target panel that this tab item controls.
|
|
1866
|
+
*/
|
|
1867
|
+
"targetId": string;
|
|
1868
|
+
}
|
|
1869
|
+
interface VaTabPanel {
|
|
1870
|
+
/**
|
|
1871
|
+
* The unique identifier for the tab panel. This should match the id referenced by the corresponding `va-tab-item`.
|
|
1872
|
+
*/
|
|
1873
|
+
"panelId": string;
|
|
1874
|
+
/**
|
|
1875
|
+
* Indicates whether the tab panel is currently selected/visible in parent `va-tabs`. Note that this value does not need to be passed for component initialization, it will be set via logic in parent `va-tabs` on initial render.
|
|
1876
|
+
*/
|
|
1877
|
+
"selected": boolean;
|
|
1878
|
+
}
|
|
1827
1879
|
/**
|
|
1828
1880
|
* @componentName Table
|
|
1829
1881
|
* @maturityCategory caution
|
|
@@ -1909,6 +1961,21 @@ export namespace Components {
|
|
|
1909
1961
|
}
|
|
1910
1962
|
interface VaTableRow {
|
|
1911
1963
|
}
|
|
1964
|
+
/**
|
|
1965
|
+
* @componentName Tabs
|
|
1966
|
+
* @maturityCategory caution
|
|
1967
|
+
* @maturityLevel candidate
|
|
1968
|
+
*/
|
|
1969
|
+
interface VaTabs {
|
|
1970
|
+
/**
|
|
1971
|
+
* The index of the initially selected tab. Defaults to `0` (the first tab).
|
|
1972
|
+
*/
|
|
1973
|
+
"initiallySelected"?: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* A unique name for the rendered div serving as `role="tablist"`. To be set as value for wrapper's `aria-label` attribute.
|
|
1976
|
+
*/
|
|
1977
|
+
"label": string;
|
|
1978
|
+
}
|
|
1912
1979
|
/**
|
|
1913
1980
|
* @componentName Telephone
|
|
1914
1981
|
* @maturityCategory use
|
|
@@ -2377,6 +2444,10 @@ export interface VaStatementOfTruthCustomEvent<T> extends CustomEvent<T> {
|
|
|
2377
2444
|
detail: T;
|
|
2378
2445
|
target: HTMLVaStatementOfTruthElement;
|
|
2379
2446
|
}
|
|
2447
|
+
export interface VaTabItemCustomEvent<T> extends CustomEvent<T> {
|
|
2448
|
+
detail: T;
|
|
2449
|
+
target: HTMLVaTabItemElement;
|
|
2450
|
+
}
|
|
2380
2451
|
export interface VaTableInnerCustomEvent<T> extends CustomEvent<T> {
|
|
2381
2452
|
detail: T;
|
|
2382
2453
|
target: HTMLVaTableInnerElement;
|
|
@@ -2815,6 +2886,7 @@ declare global {
|
|
|
2815
2886
|
interface HTMLVaFileInputElementEventMap {
|
|
2816
2887
|
"vaChange": any;
|
|
2817
2888
|
"vaPasswordChange": any;
|
|
2889
|
+
"vaFileInputError": any;
|
|
2818
2890
|
"component-library-analytics": any;
|
|
2819
2891
|
}
|
|
2820
2892
|
/**
|
|
@@ -3501,6 +3573,30 @@ declare global {
|
|
|
3501
3573
|
prototype: HTMLVaSummaryBoxElement;
|
|
3502
3574
|
new (): HTMLVaSummaryBoxElement;
|
|
3503
3575
|
};
|
|
3576
|
+
interface HTMLVaTabItemElementEventMap {
|
|
3577
|
+
"tabItemSelected": any;
|
|
3578
|
+
"tabItemKeyNavigated": any;
|
|
3579
|
+
}
|
|
3580
|
+
interface HTMLVaTabItemElement extends Components.VaTabItem, HTMLStencilElement {
|
|
3581
|
+
addEventListener<K extends keyof HTMLVaTabItemElementEventMap>(type: K, listener: (this: HTMLVaTabItemElement, ev: VaTabItemCustomEvent<HTMLVaTabItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3582
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3583
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3584
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3585
|
+
removeEventListener<K extends keyof HTMLVaTabItemElementEventMap>(type: K, listener: (this: HTMLVaTabItemElement, ev: VaTabItemCustomEvent<HTMLVaTabItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
3586
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3587
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3588
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3589
|
+
}
|
|
3590
|
+
var HTMLVaTabItemElement: {
|
|
3591
|
+
prototype: HTMLVaTabItemElement;
|
|
3592
|
+
new (): HTMLVaTabItemElement;
|
|
3593
|
+
};
|
|
3594
|
+
interface HTMLVaTabPanelElement extends Components.VaTabPanel, HTMLStencilElement {
|
|
3595
|
+
}
|
|
3596
|
+
var HTMLVaTabPanelElement: {
|
|
3597
|
+
prototype: HTMLVaTabPanelElement;
|
|
3598
|
+
new (): HTMLVaTabPanelElement;
|
|
3599
|
+
};
|
|
3504
3600
|
/**
|
|
3505
3601
|
* @componentName Table
|
|
3506
3602
|
* @maturityCategory caution
|
|
@@ -3540,6 +3636,17 @@ declare global {
|
|
|
3540
3636
|
prototype: HTMLVaTableRowElement;
|
|
3541
3637
|
new (): HTMLVaTableRowElement;
|
|
3542
3638
|
};
|
|
3639
|
+
/**
|
|
3640
|
+
* @componentName Tabs
|
|
3641
|
+
* @maturityCategory caution
|
|
3642
|
+
* @maturityLevel candidate
|
|
3643
|
+
*/
|
|
3644
|
+
interface HTMLVaTabsElement extends Components.VaTabs, HTMLStencilElement {
|
|
3645
|
+
}
|
|
3646
|
+
var HTMLVaTabsElement: {
|
|
3647
|
+
prototype: HTMLVaTabsElement;
|
|
3648
|
+
new (): HTMLVaTabsElement;
|
|
3649
|
+
};
|
|
3543
3650
|
interface HTMLVaTelephoneElementEventMap {
|
|
3544
3651
|
"component-library-analytics": any;
|
|
3545
3652
|
}
|
|
@@ -3697,9 +3804,12 @@ declare global {
|
|
|
3697
3804
|
"va-sidenav-submenu": HTMLVaSidenavSubmenuElement;
|
|
3698
3805
|
"va-statement-of-truth": HTMLVaStatementOfTruthElement;
|
|
3699
3806
|
"va-summary-box": HTMLVaSummaryBoxElement;
|
|
3807
|
+
"va-tab-item": HTMLVaTabItemElement;
|
|
3808
|
+
"va-tab-panel": HTMLVaTabPanelElement;
|
|
3700
3809
|
"va-table": HTMLVaTableElement;
|
|
3701
3810
|
"va-table-inner": HTMLVaTableInnerElement;
|
|
3702
3811
|
"va-table-row": HTMLVaTableRowElement;
|
|
3812
|
+
"va-tabs": HTMLVaTabsElement;
|
|
3703
3813
|
"va-telephone": HTMLVaTelephoneElement;
|
|
3704
3814
|
"va-telephone-input": HTMLVaTelephoneInputElement;
|
|
3705
3815
|
"va-text-input": HTMLVaTextInputElement;
|
|
@@ -3862,9 +3972,9 @@ declare namespace LocalJSX {
|
|
|
3862
3972
|
*/
|
|
3863
3973
|
"onComponent-library-analytics"?: (event: VaAlertExpandableCustomEvent<any>) => void;
|
|
3864
3974
|
/**
|
|
3865
|
-
* Determines the icon and background color. One of `info`, `
|
|
3975
|
+
* Determines the icon and background color. One of `info`, `success`, `warning`, or `continue`
|
|
3866
3976
|
*/
|
|
3867
|
-
"status"?: 'continue' | '
|
|
3977
|
+
"status"?: 'continue' | 'info' | 'success' | 'warning';
|
|
3868
3978
|
/**
|
|
3869
3979
|
* The text to trigger the expansion
|
|
3870
3980
|
*/
|
|
@@ -4453,10 +4563,6 @@ declare namespace LocalJSX {
|
|
|
4453
4563
|
* A comma-separated list of unique file type specifiers.
|
|
4454
4564
|
*/
|
|
4455
4565
|
"accept"?: string;
|
|
4456
|
-
/**
|
|
4457
|
-
* The text displayed on the button.
|
|
4458
|
-
*/
|
|
4459
|
-
"buttonText"?: string;
|
|
4460
4566
|
/**
|
|
4461
4567
|
* Emit component-library-analytics events on the file input change event.
|
|
4462
4568
|
*/
|
|
@@ -4505,6 +4611,10 @@ declare namespace LocalJSX {
|
|
|
4505
4611
|
* The event emitted when the file input value changes.
|
|
4506
4612
|
*/
|
|
4507
4613
|
"onVaChange"?: (event: VaFileInputCustomEvent<any>) => void;
|
|
4614
|
+
/**
|
|
4615
|
+
* The event emitted when adding a file results in an error, e.g. exceeding max file size
|
|
4616
|
+
*/
|
|
4617
|
+
"onVaFileInputError"?: (event: VaFileInputCustomEvent<any>) => void;
|
|
4508
4618
|
/**
|
|
4509
4619
|
* The event emitted when the file input password value changes.
|
|
4510
4620
|
*/
|
|
@@ -4583,6 +4693,14 @@ declare namespace LocalJSX {
|
|
|
4583
4693
|
* Label for the file input, displayed above the input.
|
|
4584
4694
|
*/
|
|
4585
4695
|
"label"?: string;
|
|
4696
|
+
/**
|
|
4697
|
+
* Maximum allowed file size in bytes. The value is applied to all file inputs.
|
|
4698
|
+
*/
|
|
4699
|
+
"maxFileSize"?: number;
|
|
4700
|
+
/**
|
|
4701
|
+
* Minimum allowed file size in bytes. The value is applied to all file inputs.
|
|
4702
|
+
*/
|
|
4703
|
+
"minFileSize"?: number;
|
|
4586
4704
|
/**
|
|
4587
4705
|
* Name attribute for the file input element, used to identify the form data in the submission.
|
|
4588
4706
|
*/
|
|
@@ -4591,6 +4709,14 @@ declare namespace LocalJSX {
|
|
|
4591
4709
|
* Event emitted when any change to the file inputs occurs. Sends back an object with the following data structure: `{ action: string, file: triggering file, state: files array }` The action will be `'FILE_ADDED'`, `'FILE UPDATED'` or `'FILE_REMOVED'`
|
|
4592
4710
|
*/
|
|
4593
4711
|
"onVaMultipleChange"?: (event: VaFileInputMultipleCustomEvent<any>) => void;
|
|
4712
|
+
/**
|
|
4713
|
+
* Array of password error messages corresponding to each file input. The length and order match the files array.
|
|
4714
|
+
*/
|
|
4715
|
+
"passwordErrors"?: Array<string | null>;
|
|
4716
|
+
/**
|
|
4717
|
+
* Array of numbers corresponding to the progress of the upload of each file.
|
|
4718
|
+
*/
|
|
4719
|
+
"percentUploaded"?: number[];
|
|
4594
4720
|
/**
|
|
4595
4721
|
* Optionally displays the read-only view
|
|
4596
4722
|
*/
|
|
@@ -4599,10 +4725,22 @@ declare namespace LocalJSX {
|
|
|
4599
4725
|
* If true, the file input is marked as required, and users must select a file.
|
|
4600
4726
|
*/
|
|
4601
4727
|
"required"?: boolean;
|
|
4728
|
+
/**
|
|
4729
|
+
* Array of booleans corresponding to each file input - if true, resets component instance to initial visual state.
|
|
4730
|
+
*/
|
|
4731
|
+
"resetVisualState"?: boolean[];
|
|
4602
4732
|
/**
|
|
4603
4733
|
* Optional, shows the additional info slot content only for indexes of file inputs provided. Defaults to `null` (show on all fields). ex: [1,3]
|
|
4604
4734
|
*/
|
|
4605
4735
|
"slotFieldIndexes"?: Number[];
|
|
4736
|
+
/**
|
|
4737
|
+
* Optional file status, ex: "Uploading...", "Uploaded".
|
|
4738
|
+
*/
|
|
4739
|
+
"statusText"?: string;
|
|
4740
|
+
/**
|
|
4741
|
+
* Array of objects representing a previously uploaded file. Example: `[{ name: string, type: string, size: number}]`
|
|
4742
|
+
*/
|
|
4743
|
+
"uploadedFiles"?: UploadedFile[];
|
|
4606
4744
|
/**
|
|
4607
4745
|
* The value attribute for the file view element.
|
|
4608
4746
|
*/
|
|
@@ -5145,7 +5283,11 @@ declare namespace LocalJSX {
|
|
|
5145
5283
|
*/
|
|
5146
5284
|
"expDate": string;
|
|
5147
5285
|
/**
|
|
5148
|
-
* The
|
|
5286
|
+
* The form number to display in the Privacy Act Statement button text. When provided, the button reads "Privacy Act Statement for VA Form {formId}". This improves accessibility when multiple instances exist on the same page.
|
|
5287
|
+
*/
|
|
5288
|
+
"formId"?: string;
|
|
5289
|
+
/**
|
|
5290
|
+
* The OMB control number
|
|
5149
5291
|
*/
|
|
5150
5292
|
"ombNumber"?: string;
|
|
5151
5293
|
/**
|
|
@@ -5797,6 +5939,38 @@ declare namespace LocalJSX {
|
|
|
5797
5939
|
*/
|
|
5798
5940
|
interface VaSummaryBox {
|
|
5799
5941
|
}
|
|
5942
|
+
interface VaTabItem {
|
|
5943
|
+
/**
|
|
5944
|
+
* The text content of the button element.
|
|
5945
|
+
*/
|
|
5946
|
+
"buttonText": string;
|
|
5947
|
+
/**
|
|
5948
|
+
* This event is fired when the user navigates between tab items using the keyboard using the left and right arrow keys. It allows focus to be managed by parent va-tabs.
|
|
5949
|
+
*/
|
|
5950
|
+
"onTabItemKeyNavigated"?: (event: VaTabItemCustomEvent<any>) => void;
|
|
5951
|
+
/**
|
|
5952
|
+
* This event is fired so that va-tabs element can manage which item is selected.
|
|
5953
|
+
*/
|
|
5954
|
+
"onTabItemSelected"?: (event: VaTabItemCustomEvent<any>) => void;
|
|
5955
|
+
/**
|
|
5956
|
+
* Denotes whether this tab item is currently selected in parent `va-tabs`. Note that this value does not need to be passed for component initialization, it will be set via logic in parent `va-tabs` on initial render.
|
|
5957
|
+
*/
|
|
5958
|
+
"selected"?: boolean;
|
|
5959
|
+
/**
|
|
5960
|
+
* The `id` of the target panel that this tab item controls.
|
|
5961
|
+
*/
|
|
5962
|
+
"targetId": string;
|
|
5963
|
+
}
|
|
5964
|
+
interface VaTabPanel {
|
|
5965
|
+
/**
|
|
5966
|
+
* The unique identifier for the tab panel. This should match the id referenced by the corresponding `va-tab-item`.
|
|
5967
|
+
*/
|
|
5968
|
+
"panelId": string;
|
|
5969
|
+
/**
|
|
5970
|
+
* Indicates whether the tab panel is currently selected/visible in parent `va-tabs`. Note that this value does not need to be passed for component initialization, it will be set via logic in parent `va-tabs` on initial render.
|
|
5971
|
+
*/
|
|
5972
|
+
"selected"?: boolean;
|
|
5973
|
+
}
|
|
5800
5974
|
/**
|
|
5801
5975
|
* @componentName Table
|
|
5802
5976
|
* @maturityCategory caution
|
|
@@ -5886,6 +6060,21 @@ declare namespace LocalJSX {
|
|
|
5886
6060
|
}
|
|
5887
6061
|
interface VaTableRow {
|
|
5888
6062
|
}
|
|
6063
|
+
/**
|
|
6064
|
+
* @componentName Tabs
|
|
6065
|
+
* @maturityCategory caution
|
|
6066
|
+
* @maturityLevel candidate
|
|
6067
|
+
*/
|
|
6068
|
+
interface VaTabs {
|
|
6069
|
+
/**
|
|
6070
|
+
* The index of the initially selected tab. Defaults to `0` (the first tab).
|
|
6071
|
+
*/
|
|
6072
|
+
"initiallySelected"?: number;
|
|
6073
|
+
/**
|
|
6074
|
+
* A unique name for the rendered div serving as `role="tablist"`. To be set as value for wrapper's `aria-label` attribute.
|
|
6075
|
+
*/
|
|
6076
|
+
"label"?: string;
|
|
6077
|
+
}
|
|
5889
6078
|
/**
|
|
5890
6079
|
* @componentName Telephone
|
|
5891
6080
|
* @maturityCategory use
|
|
@@ -6265,9 +6454,12 @@ declare namespace LocalJSX {
|
|
|
6265
6454
|
"va-sidenav-submenu": VaSidenavSubmenu;
|
|
6266
6455
|
"va-statement-of-truth": VaStatementOfTruth;
|
|
6267
6456
|
"va-summary-box": VaSummaryBox;
|
|
6457
|
+
"va-tab-item": VaTabItem;
|
|
6458
|
+
"va-tab-panel": VaTabPanel;
|
|
6268
6459
|
"va-table": VaTable;
|
|
6269
6460
|
"va-table-inner": VaTableInner;
|
|
6270
6461
|
"va-table-row": VaTableRow;
|
|
6462
|
+
"va-tabs": VaTabs;
|
|
6271
6463
|
"va-telephone": VaTelephone;
|
|
6272
6464
|
"va-telephone-input": VaTelephoneInput;
|
|
6273
6465
|
"va-text-input": VaTextInput;
|
|
@@ -6635,6 +6827,8 @@ declare module "@stencil/core" {
|
|
|
6635
6827
|
* @maturityLevel deployed
|
|
6636
6828
|
*/
|
|
6637
6829
|
"va-summary-box": LocalJSX.VaSummaryBox & JSXBase.HTMLAttributes<HTMLVaSummaryBoxElement>;
|
|
6830
|
+
"va-tab-item": LocalJSX.VaTabItem & JSXBase.HTMLAttributes<HTMLVaTabItemElement>;
|
|
6831
|
+
"va-tab-panel": LocalJSX.VaTabPanel & JSXBase.HTMLAttributes<HTMLVaTabPanelElement>;
|
|
6638
6832
|
/**
|
|
6639
6833
|
* @componentName Table
|
|
6640
6834
|
* @maturityCategory caution
|
|
@@ -6648,6 +6842,12 @@ declare module "@stencil/core" {
|
|
|
6648
6842
|
*/
|
|
6649
6843
|
"va-table-inner": LocalJSX.VaTableInner & JSXBase.HTMLAttributes<HTMLVaTableInnerElement>;
|
|
6650
6844
|
"va-table-row": LocalJSX.VaTableRow & JSXBase.HTMLAttributes<HTMLVaTableRowElement>;
|
|
6845
|
+
/**
|
|
6846
|
+
* @componentName Tabs
|
|
6847
|
+
* @maturityCategory caution
|
|
6848
|
+
* @maturityLevel candidate
|
|
6849
|
+
*/
|
|
6850
|
+
"va-tabs": LocalJSX.VaTabs & JSXBase.HTMLAttributes<HTMLVaTabsElement>;
|
|
6651
6851
|
/**
|
|
6652
6852
|
* @componentName Telephone
|
|
6653
6853
|
* @maturityCategory use
|
package/dist/components/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,
|
|
1
|
+
import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,n="slot"){const r=e.shadowRoot.querySelector(n).assignedNodes();return null!==t?Array.from(r).filter((e=>e.nodeName.toLowerCase()===t)):Array.from(r)}function consoleDevError(e){Build.isDev&&!Build.isTesting&&console.error(e)}function plurality(e){return 1===e?"":"s"}function getCharacterMessage(e,t){if(void 0===e||""===e)return`${t} character${plurality(t)} allowed`;let n;if(e.length<=t){const r=t-e.length;n=`${r} character${plurality(r)} left`}else{const r=e.length-t;n=`${r} character${plurality(r)} over limit`}return n}function makeArray(e,t){return Array.from({length:t-e+1},((t,n)=>e+n))}const isElement=e=>e&&"object"==typeof e&&1===e.nodeType;function select(e,t){if("string"!=typeof e)return[];if(!t||!isElement(t))return[];const n=t.shadowRoot.querySelectorAll(e);return Array.from(n)}function selectOrMatches(e,t){const n=select(e,t);return"string"!=typeof e||isElement(t)&&t.matches(e)&&n.push(t),n}const Sanitizer={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return Sanitizer._entities[e]},escapeHTML:function(e){for(var t="",n=0;n<e.length;n++)t+=e[n],n+1<arguments.length&&(t+=String(arguments[n+1]||"").replace(Sanitizer._entity,Sanitizer.getEntity));return t}};function getHeaderLevel(e){let t=null;return t="string"==typeof e?parseInt(e,10):Math.floor(e),t>=1&&t<=6?`h${t}`:null}function isInteractiveLinkOrButton(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function isMessageSet(e){return e&&"false"!==e||!1}function isArguments(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function deepEquals(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(isArguments(e)||isArguments(t)){if(!isArguments(e)||!isArguments(t))return!1;const o=Array.prototype.slice;return deepEquals(o.call(e),o.call(t),n,r)}{if(e.constructor!==t.constructor)return!1;const o=Object.keys(e),i=Object.keys(t);if(0===o.length&&0===i.length)return!0;if(o.length!==i.length)return!1;let s,a=n.length;for(;a--;)if(n[a]===e)return r[a]===t;n.push(e),r.push(t),o.sort(),i.sort();for(let e=o.length-1;e>=0;e--)if(o[e]!==i[e])return!1;for(let i=o.length-1;i>=0;i--)if(s=o[i],!deepEquals(e[s],t[s],n,r))return!1;return n.pop(),r.pop(),!0}}function getArticle(e,t=!0){const n=["a","i","e","o"];t&&n.push("u");const r=e.charAt(0).toLowerCase();return n.includes(r)?"an":"a"}function debounce(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout((()=>e.apply(this,r)),t)}}function getMaxLength(e){if(null==e)return;const t="string"==typeof e?parseInt(e,10):e;if(!(t<=0||isNaN(t)))return t;consoleDevError("The maxlength prop must be positive!")}function updateScreenReaderCount(e,t,n){e&&(e.innerText=getCharacterMessage(t,getMaxLength(n)))}export{Sanitizer as S,getSlottedNodes as a,isNumeric as b,consoleDevError as c,deepEquals as d,getArticle as e,debounce as f,getHeaderLevel as g,getMaxLength as h,isMessageSet as i,getCharacterMessage as j,isInteractiveLinkOrButton as k,makeArray as m,selectOrMatches as s,updateScreenReaderCount as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{a as getSlottedNodes}from"./utils.js";import{c as classnames}from"./index2.js";const vaAccordionItemCss='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}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;color:#1b1b1b;background-color:#f0f0f0;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}:host{display:block}:host(:not(:last-child)){margin-bottom:0.5rem}:host(:last-child){margin-bottom:0.3125rem}button{font:inherit;line-height:1.15}::slotted([slot=headline]){display:none}::slotted([slot=icon]),::slotted([slot=subheader-icon]){width:0.625rem;margin-right:0.938rem}::slotted([slot=subheader-icon]){margin-top:0.2rem}.va-accordion__header,.va-accordion__subheader{display:block}.va-accordion__header ::slotted([slot=icon]),.va-accordion__subheader ::slotted([slot=subheader-icon]){margin-right:15px;width:inherit;vertical-align:text-top}.va-accordion__subheader{font-weight:400;font-size:16px;line-height:26px;margin-top:2px}.usa-prose>::slotted(p){line-height:1.5;max-width:64ex}:host(:not([open])) #content,:host([open=false]) #content{display:none}@media print{:host(:not([open])) #content,:host([open=false]) #content{display:block}}',VaAccordionItemStyle0=vaAccordionItemCss,VaAccordionItem=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.accordionItemToggled=createEvent(this,"accordionItemToggled",7),this.expandButton=null,this.header=void 0,this.headerSrOnly=void 0,this.subheader=null,this.open=!1,this.level=2,this.bordered=!1,this.slotHeader=null,this.slotTag=null}toggleOpen(t){this.accordionItemToggled.emit(t)}populateStateValues(){getSlottedNodes(this.el,null).forEach((t=>{this.slotHeader=t.innerHTML,this.slotTag=t.tagName.toLowerCase()}))}componentDidLoad(){this.el.id&&this.el.id===window.location.hash.slice(1)&&this.expandButton&&(this.open=!0,this.el.setAttribute("open","true"),this.el.scrollIntoView())}render(){const{bordered:t,header:e,subheader:a,level:o,open:r,headerSrOnly:n}=this,i=classnames({"usa-accordion--bordered":t});return h(Host,null,h("div",{class:i},h((()=>{const t=this.el.querySelector('[slot="headline"]'),i=null==t?void 0:t.innerHTML,s=t&&t.tagName.includes("H")?t.tagName.toLowerCase():`h${o}`;return h(s,{class:"usa-accordion__heading"},h("button",{type:"button",class:"usa-accordion__button","aria-expanded":r?"true":"false","aria-controls":"content",onClick:this.toggleOpen.bind(this),ref:t=>{this.expandButton=t},part:"accordion-header"},h("span",{class:"va-accordion__header"},h("slot",{name:"icon"}),this.slotHeader||e||i,n&&h("span",{class:"usa-sr-only"}," ",n)),this.subheader&&h("span",{class:"va-accordion__subheader"},h("slot",{name:"subheader-icon"}),a)))}),null),h("slot",{name:"headline",onSlotchange:()=>this.populateStateValues()}),h("div",{id:"content",class:"usa-accordion__content usa-prose",hidden:!r,part:"accordion-content"},h("slot",null))))}get el(){return this}static get style(){return VaAccordionItemStyle0}},[1,"va-accordion-item",{header:[1],headerSrOnly:[1,"header-sr-only"],subheader:[1],open:[516],level:[2],bordered:[4],slotHeader:[32],slotTag:[32]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["va-accordion-item"].forEach((t=>{"va-accordion-item"===t&&(customElements.get(t)||customElements.define(t,VaAccordionItem))}))}export{VaAccordionItem as V,defineCustomElement as d};
|
|
1
|
+
import{proxyCustomElement,HTMLElement,createEvent,h,Host}from"@stencil/core/internal/client";import{a as getSlottedNodes}from"./utils.js";import{c as classnames}from"./index2.js";const vaAccordionItemCss='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}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;color:#1b1b1b;background-color:#f0f0f0;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}:host{display:block}:host(:not(:last-child)){margin-bottom:0.5rem}:host(:last-child){margin-bottom:0.3125rem}button{font:inherit;line-height:1.15}::slotted([slot=headline]){display:none}::slotted([slot=icon]),::slotted([slot=subheader-icon]){width:0.625rem;margin-right:0.938rem}.va-accordion__header,.va-accordion__subheader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.va-accordion__subheader{font-weight:400;font-size:16px;line-height:26px;margin-top:2px}.va-accordion__header.va-accordion__header--has-icon{padding-top:2px;line-height:inherit}.va-accordion__subheader.va-accordion__subheader--has-icon{margin-top:calc(0.2rem + 2px);padding-bottom:0.2rem;line-height:1.219}.va-accordion__header ::slotted([slot=icon]),.va-accordion__subheader ::slotted([slot=subheader-icon]){margin-right:15px;width:inherit}.va-accordion__header ::slotted([slot=icon]){line-height:0}.usa-prose>::slotted(p){line-height:1.5;max-width:64ex}:host(:not([open])) #content,:host([open=false]) #content{display:none}@media print{:host(:not([open])) #content,:host([open=false]) #content{display:block}}',VaAccordionItemStyle0=vaAccordionItemCss,VaAccordionItem=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.accordionItemToggled=createEvent(this,"accordionItemToggled",7),this.expandButton=null,this.header=void 0,this.headerSrOnly=void 0,this.subheader=null,this.open=!1,this.level=2,this.bordered=!1,this.slotHeader=null,this.slotTag=null}toggleOpen(t){this.accordionItemToggled.emit(t)}populateStateValues(){getSlottedNodes(this.el,null).forEach((t=>{this.slotHeader=t.innerHTML,this.slotTag=t.tagName.toLowerCase()}))}componentDidLoad(){this.el.id&&this.el.id===window.location.hash.slice(1)&&this.expandButton&&(this.open=!0,this.el.setAttribute("open","true"),this.el.scrollIntoView())}render(){const{bordered:t,header:e,subheader:a,level:o,open:r,headerSrOnly:n}=this,i=classnames({"usa-accordion--bordered":t});return h(Host,null,h("div",{class:i},h((()=>{const t=this.el.querySelector('[slot="headline"]'),i=null==t?void 0:t.innerHTML,s=t&&t.tagName.includes("H")?t.tagName.toLowerCase():`h${o}`,d=classnames({"va-accordion__header":!0,"va-accordion__header--has-icon":this.el.querySelector('[slot="icon"]')}),c=classnames({"va-accordion__subheader":!0,"va-accordion__subheader--has-icon":this.el.querySelector('[slot="subheader-icon"]')});return h(s,{class:"usa-accordion__heading"},h("button",{type:"button",class:"usa-accordion__button","aria-expanded":r?"true":"false","aria-controls":"content",onClick:this.toggleOpen.bind(this),ref:t=>{this.expandButton=t},part:"accordion-header"},h("span",{class:d},h("slot",{name:"icon"}),this.slotHeader||e||i,n&&h("span",{class:"usa-sr-only"}," ",n)),this.subheader&&h("span",{class:c},h("slot",{name:"subheader-icon"}),a)))}),null),h("slot",{name:"headline",onSlotchange:()=>this.populateStateValues()}),h("div",{id:"content",class:"usa-accordion__content usa-prose",hidden:!r,part:"accordion-content"},h("slot",null))))}get el(){return this}static get style(){return VaAccordionItemStyle0}},[1,"va-accordion-item",{header:[1],headerSrOnly:[1,"header-sr-only"],subheader:[1],open:[516],level:[2],bordered:[4],slotHeader:[32],slotTag:[32]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["va-accordion-item"].forEach((t=>{"va-accordion-item"===t&&(customElements.get(t)||customElements.define(t,VaAccordionItem))}))}export{VaAccordionItem as V,defineCustomElement as d};
|
|
@@ -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="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}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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)}: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='
|
|
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}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}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)}: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(*){margin-bottom:0 !important;margin-top: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:"2cdda8510a348d1fb5e2c417dd19afcc807340af"},h("div",{key:"20be2efc2d471103b8d47f0a6a96ac00810eba2d",class:o},h("a",{key:"ec0a9e2da3c17623138aa73e793d9eb7bf000220",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:"cfc29d801676e34d5704bff2ff0d4ad93718f811",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[e]||"info",size:3}),h("div",{key:"5dc8e34dcb7658946b96e9997ebddc142ca56398"},h("span",{key:"13a17f190907863b63dd7dfd14210265120eff3b",class:"alert-expandable-title"},h("span",{key:"3ea6846d1ab43f7a154bc79a34f58fdad0786ec2",class:"sr-only"},"Alert: "),this.trigger),h("va-icon",{key:"a61d4bd0805a1731c627a522beeba85880df9afd",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),h("div",{key:"48762639fe412284ee0bfec39d4111c09eff028f",id:"alert-body",class:r},h("div",{key:"d99a6cd31af43580b7463f150b361598e4cdadde",id:"slot-wrap"},h("slot",{key:"1251dea513e5c5ddb04a969bf2ae3f324a51d1a2"})))))}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};
|