@department-of-veterans-affairs/component-library 50.5.0 → 51.0.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.
Files changed (88) hide show
  1. package/dist/141.app.bundle.js +1 -1
  2. package/dist/1822.app.bundle.js +1 -1
  3. package/dist/1966.app.bundle.js +1 -1
  4. package/dist/2205.app.bundle.js +1 -1
  5. package/dist/2236.app.bundle.js +1 -1
  6. package/dist/2482.app.bundle.js +1 -1
  7. package/dist/251.app.bundle.js +1 -1
  8. package/dist/2986.app.bundle.js +1 -1
  9. package/dist/323.app.bundle.js +1 -1
  10. package/dist/3305.app.bundle.js +2 -0
  11. package/dist/3397.app.bundle.js +1 -1
  12. package/dist/3589.app.bundle.js +1 -1
  13. package/dist/4351.app.bundle.js +1 -1
  14. package/dist/4400.app.bundle.js +1 -1
  15. package/dist/4475.app.bundle.js +1 -1
  16. package/dist/4780.app.bundle.js +1 -1
  17. package/dist/5119.app.bundle.js +1 -1
  18. package/dist/5663.app.bundle.js +1 -1
  19. package/dist/5689.app.bundle.js +1 -1
  20. package/dist/5845.app.bundle.js +1 -1
  21. package/dist/6498.app.bundle.js +1 -1
  22. package/dist/6555.app.bundle.js +1 -1
  23. package/dist/6650.app.bundle.js +1 -1
  24. package/dist/6718.app.bundle.js +1 -1
  25. package/dist/6832.app.bundle.js +1 -1
  26. package/dist/7166.app.bundle.js +1 -1
  27. package/dist/7307.app.bundle.js +1 -1
  28. package/dist/7372.app.bundle.js +1 -1
  29. package/dist/7481.app.bundle.js +1 -1
  30. package/dist/7495.app.bundle.js +1 -1
  31. package/dist/{5760.app.bundle.js → 7508.app.bundle.js} +1 -1
  32. package/dist/7734.app.bundle.js +1 -1
  33. package/dist/{4775.app.bundle.js → 8255.app.bundle.js} +2 -2
  34. package/dist/8255.app.bundle.js.LICENSE.txt +5 -0
  35. package/dist/8463.app.bundle.js +1 -1
  36. package/dist/8913.app.bundle.js +1 -1
  37. package/dist/9186.app.bundle.js +1 -1
  38. package/dist/9474.app.bundle.js +1 -1
  39. package/dist/9496.app.bundle.js +1 -1
  40. package/dist/9851.app.bundle.js +1 -1
  41. package/dist/app.bundle.js +1 -1
  42. package/dist/components/index.d.ts +4 -2
  43. package/dist/components/index.js +1 -1
  44. package/dist/components/types/components.d.ts +237 -118
  45. package/dist/components/utils.js +1 -1
  46. package/dist/components/va-accordion-item2.js +1 -1
  47. package/dist/components/va-accordion2.js +1 -1
  48. package/dist/components/va-button-segmented.d.ts +11 -0
  49. package/dist/components/va-button-segmented.js +1 -0
  50. package/dist/components/va-checkbox-group2.js +1 -1
  51. package/dist/components/va-combo-box2.js +1 -1
  52. package/dist/components/va-crisis-line-modal2.js +1 -1
  53. package/dist/components/va-file-input-multiple.js +1 -1
  54. package/dist/components/va-file-input2.js +1 -1
  55. package/dist/components/va-header-minimal.js +1 -1
  56. package/dist/components/va-icon2.js +1 -1
  57. package/dist/components/va-language-toggle.js +1 -1
  58. package/dist/components/va-link-action.js +1 -1
  59. package/dist/components/va-loading-indicator.js +1 -1
  60. package/dist/components/va-minimal-footer.js +1 -1
  61. package/dist/components/va-need-help.js +1 -1
  62. package/dist/components/va-official-gov-banner2.js +1 -1
  63. package/dist/components/va-omb-info.js +1 -1
  64. package/dist/components/va-privacy-agreement.js +1 -1
  65. package/dist/components/va-process-list-item.js +1 -1
  66. package/dist/components/va-process-list.js +1 -1
  67. package/dist/components/va-progress-bar2.js +1 -1
  68. package/dist/components/va-radio-option.js +1 -1
  69. package/dist/components/va-radio.js +1 -1
  70. package/dist/components/va-search-filter.js +1 -1
  71. package/dist/components/va-search-input.js +1 -1
  72. package/dist/components/va-select2.js +1 -1
  73. package/dist/components/va-statement-of-truth.js +1 -1
  74. package/dist/components/va-summary-box.js +1 -1
  75. package/dist/components/va-table-inner2.js +1 -1
  76. package/dist/components/va-table-row.js +1 -1
  77. package/dist/components/va-table.js +1 -1
  78. package/dist/components/{va-input-telephone.d.ts → va-telephone-input.d.ts} +4 -4
  79. package/dist/components/{va-input-telephone.js → va-telephone-input.js} +1 -1
  80. package/dist/components/va-telephone2.js +1 -1
  81. package/dist/components/va-textarea.js +1 -1
  82. package/dist/main.css +1 -1
  83. package/dist/react-bindings/index.d.ts +2 -1
  84. package/dist/react-bindings/index.js +1 -1
  85. package/dist/react-bindings/index.js.map +1 -1
  86. package/dist/react-bindings/index.ts +2 -1
  87. package/package.json +2 -2
  88. /package/dist/{4775.app.bundle.js.LICENSE.txt → 3305.app.bundle.js.LICENSE.txt} +0 -0
@@ -23,6 +23,8 @@ export { VaButtonIcon as VaButtonIcon } from '../types/components/va-button-icon
23
23
  export { defineCustomElement as defineCustomElementVaButtonIcon } from './va-button-icon';
24
24
  export { VaButtonPair as VaButtonPair } from '../types/components/va-button-pair/va-button-pair';
25
25
  export { defineCustomElement as defineCustomElementVaButtonPair } from './va-button-pair';
26
+ export { VaButtonSegmented as VaButtonSegmented } from '../types/components/va-button-segmented/va-button-segmented';
27
+ export { defineCustomElement as defineCustomElementVaButtonSegmented } from './va-button-segmented';
26
28
  export { VaCard as VaCard } from '../types/components/va-card/va-card';
27
29
  export { defineCustomElement as defineCustomElementVaCard } from './va-card';
28
30
  export { VaCheckbox as VaCheckbox } from '../types/components/va-checkbox/va-checkbox';
@@ -45,8 +47,6 @@ export { VaHeaderMinimal as VaHeaderMinimal } from '../types/components/va-heade
45
47
  export { defineCustomElement as defineCustomElementVaHeaderMinimal } from './va-header-minimal';
46
48
  export { VaIcon as VaIcon } from '../types/components/va-icon/va-icon';
47
49
  export { defineCustomElement as defineCustomElementVaIcon } from './va-icon';
48
- export { VaInputTelephone as VaInputTelephone } from '../types/components/va-input-telephone/va-input-telephone';
49
- export { defineCustomElement as defineCustomElementVaInputTelephone } from './va-input-telephone';
50
50
  export { VaLanguageToggle as VaLanguageToggle } from '../types/components/va-language-toggle/va-language-toggle';
51
51
  export { defineCustomElement as defineCustomElementVaLanguageToggle } from './va-language-toggle';
52
52
  export { VaLink as VaLink } from '../types/components/va-link/va-link';
@@ -111,6 +111,8 @@ export { VaTableRow as VaTableRow } from '../types/components/va-table/va-table-
111
111
  export { defineCustomElement as defineCustomElementVaTableRow } from './va-table-row';
112
112
  export { VaTelephone as VaTelephone } from '../types/components/va-telephone/va-telephone';
113
113
  export { defineCustomElement as defineCustomElementVaTelephone } from './va-telephone';
114
+ export { VaTelephoneInput as VaTelephoneInput } from '../types/components/va-telephone-input/va-telephone-input';
115
+ export { defineCustomElement as defineCustomElementVaTelephoneInput } from './va-telephone-input';
114
116
  export { VaTextInput as VaTextInput } from '../types/components/va-text-input/va-text-input';
115
117
  export { defineCustomElement as defineCustomElementVaTextInput } from './va-text-input';
116
118
  export { VaTextarea as VaTextarea } from '../types/components/va-textarea/va-textarea';
@@ -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{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{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{VaInputTelephone,defineCustomElement as defineCustomElementVaInputTelephone}from"./va-input-telephone.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{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{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{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{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";
@@ -6,15 +6,17 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Breadcrumb } from "./components/va-breadcrumbs/va-breadcrumbs";
9
+ import { ButtonItem } from "./components/va-button-segmented/va-button-segmented.types";
9
10
  import { UploadedFile } from "./components/va-file-input/uploadedFile";
10
- import { CountryCode } from "libphonenumber-js/min";
11
11
  import { Filter } from "./components/va-search-filter/va-search-filter";
12
12
  import { OptionalLink, ServiceAction, ServiceDetails } from "./components/va-service-list-item/va-service-list-item";
13
+ import { CountryCode } from "libphonenumber-js/min";
13
14
  export { Breadcrumb } from "./components/va-breadcrumbs/va-breadcrumbs";
15
+ export { ButtonItem } from "./components/va-button-segmented/va-button-segmented.types";
14
16
  export { UploadedFile } from "./components/va-file-input/uploadedFile";
15
- export { CountryCode } from "libphonenumber-js/min";
16
17
  export { Filter } from "./components/va-search-filter/va-search-filter";
17
18
  export { OptionalLink, ServiceAction, ServiceDetails } from "./components/va-service-list-item/va-service-list-item";
19
+ export { CountryCode } from "libphonenumber-js/min";
18
20
  export namespace Components {
19
21
  /**
20
22
  * @componentName Accordion
@@ -48,6 +50,10 @@ export namespace Components {
48
50
  * The accordion item header text
49
51
  */
50
52
  "header"?: string;
53
+ /**
54
+ * Optional text that will be read by screen readers in addition to the header text.
55
+ */
56
+ "headerSrOnly"?: string;
51
57
  /**
52
58
  * Header level for button wrapper. Must be between 1 and 6
53
59
  */
@@ -365,6 +371,30 @@ export namespace Components {
365
371
  */
366
372
  "update"?: boolean;
367
373
  }
374
+ /**
375
+ * @componentName Button Segmented
376
+ * @maturityCategory caution
377
+ * @maturityLevel candidate
378
+ * @guidanceHref button/button-segmented
379
+ */
380
+ interface VaButtonSegmented {
381
+ /**
382
+ * An array of objects defining the labels and values for each button. The recommended structure is: `{ label: string, value?: string }`, with the `label` property being required. The `value` property is optional and can be used to store additional information about the button. The maximum number of buttons allowed is four.
383
+ */
384
+ "buttons": Array<ButtonItem>;
385
+ /**
386
+ * If `true`, the component-library-analytics event is disabled.
387
+ */
388
+ "disableAnalytics"?: boolean;
389
+ /**
390
+ * The aria-label for the button group, used for accessibility. Not required, but recommended.
391
+ */
392
+ "label": string;
393
+ /**
394
+ * The index of the selected button.
395
+ */
396
+ "selected": number;
397
+ }
368
398
  /**
369
399
  * @componentName Card
370
400
  * @maturityCategory use
@@ -487,6 +517,10 @@ export namespace Components {
487
517
  * Insert a header with defined level inside the label (legend)
488
518
  */
489
519
  "labelHeaderLevel"?: string;
520
+ /**
521
+ * Optional text that will be read by screen readers in addition to the label text.
522
+ */
523
+ "labelSrOnly"?: string;
490
524
  /**
491
525
  * An optional message that will be read by screen readers when a checkbox is focused.
492
526
  */
@@ -790,43 +824,6 @@ export namespace Components {
790
824
  */
791
825
  "srtext"?: string;
792
826
  }
793
- /**
794
- * @componentName Input Telephone
795
- * @maturityCategory caution
796
- * @maturityLevel candidate
797
- * @guidanceHref form/telephone-input
798
- * @translations English
799
- */
800
- interface VaInputTelephone {
801
- /**
802
- * The telephone contact information
803
- */
804
- "contact"?: string;
805
- /**
806
- * The 2 letter ISO country code for a country
807
- */
808
- "country"?: CountryCode;
809
- /**
810
- * The error for the component
811
- */
812
- "error"?: string;
813
- /**
814
- * Hint string text
815
- */
816
- "hint"?: string;
817
- /**
818
- * Label text for the component
819
- */
820
- "label"?: string;
821
- /**
822
- * Whether the country select should be included. Set to true to exclude it.
823
- */
824
- "noCountry"?: boolean;
825
- /**
826
- * Render marker indicating field is required.
827
- */
828
- "required"?: boolean;
829
- }
830
827
  /**
831
828
  * @componentName Language Toggle
832
829
  * @maturityCategory caution
@@ -1880,6 +1877,47 @@ export namespace Components {
1880
1877
  */
1881
1878
  "vanity"?: string;
1882
1879
  }
1880
+ /**
1881
+ * @componentName Telephone Input
1882
+ * @maturityCategory caution
1883
+ * @maturityLevel candidate
1884
+ * @guidanceHref form/telephone-input
1885
+ * @translations English
1886
+ */
1887
+ interface VaTelephoneInput {
1888
+ /**
1889
+ * The telephone contact information
1890
+ */
1891
+ "contact"?: string;
1892
+ /**
1893
+ * The 2 letter ISO country code for a country
1894
+ */
1895
+ "country"?: CountryCode;
1896
+ /**
1897
+ * The error for the component
1898
+ */
1899
+ "error"?: string;
1900
+ /**
1901
+ * Hint string text
1902
+ */
1903
+ "hint"?: string;
1904
+ /**
1905
+ * Label text for the component
1906
+ */
1907
+ "label"?: string;
1908
+ /**
1909
+ * Whether the country select should be included. Set to true to exclude it.
1910
+ */
1911
+ "noCountry"?: boolean;
1912
+ /**
1913
+ * Render marker indicating field is required.
1914
+ */
1915
+ "required"?: boolean;
1916
+ /**
1917
+ * If true, this prop instructs the component to display error messages in response to the internal error state. If false, error messages must be passed in from consumer.
1918
+ */
1919
+ "showInternalErrors"?: boolean;
1920
+ }
1883
1921
  /**
1884
1922
  * @nativeHandler onInput
1885
1923
  * @nativeHandler onBlur
@@ -2140,6 +2178,10 @@ export interface VaButtonPairCustomEvent<T> extends CustomEvent<T> {
2140
2178
  detail: T;
2141
2179
  target: HTMLVaButtonPairElement;
2142
2180
  }
2181
+ export interface VaButtonSegmentedCustomEvent<T> extends CustomEvent<T> {
2182
+ detail: T;
2183
+ target: HTMLVaButtonSegmentedElement;
2184
+ }
2143
2185
  export interface VaCheckboxCustomEvent<T> extends CustomEvent<T> {
2144
2186
  detail: T;
2145
2187
  target: HTMLVaCheckboxElement;
@@ -2164,10 +2206,6 @@ export interface VaFileInputMultipleCustomEvent<T> extends CustomEvent<T> {
2164
2206
  detail: T;
2165
2207
  target: HTMLVaFileInputMultipleElement;
2166
2208
  }
2167
- export interface VaInputTelephoneCustomEvent<T> extends CustomEvent<T> {
2168
- detail: T;
2169
- target: HTMLVaInputTelephoneElement;
2170
- }
2171
2209
  export interface VaLanguageToggleCustomEvent<T> extends CustomEvent<T> {
2172
2210
  detail: T;
2173
2211
  target: HTMLVaLanguageToggleElement;
@@ -2260,6 +2298,10 @@ export interface VaTelephoneCustomEvent<T> extends CustomEvent<T> {
2260
2298
  detail: T;
2261
2299
  target: HTMLVaTelephoneElement;
2262
2300
  }
2301
+ export interface VaTelephoneInputCustomEvent<T> extends CustomEvent<T> {
2302
+ detail: T;
2303
+ target: HTMLVaTelephoneInputElement;
2304
+ }
2263
2305
  export interface VaTextInputCustomEvent<T> extends CustomEvent<T> {
2264
2306
  detail: T;
2265
2307
  target: HTMLVaTextInputElement;
@@ -2521,6 +2563,30 @@ declare global {
2521
2563
  prototype: HTMLVaButtonPairElement;
2522
2564
  new (): HTMLVaButtonPairElement;
2523
2565
  };
2566
+ interface HTMLVaButtonSegmentedElementEventMap {
2567
+ "vaButtonClick": any;
2568
+ "component-library-analytics": any;
2569
+ }
2570
+ /**
2571
+ * @componentName Button Segmented
2572
+ * @maturityCategory caution
2573
+ * @maturityLevel candidate
2574
+ * @guidanceHref button/button-segmented
2575
+ */
2576
+ interface HTMLVaButtonSegmentedElement extends Components.VaButtonSegmented, HTMLStencilElement {
2577
+ addEventListener<K extends keyof HTMLVaButtonSegmentedElementEventMap>(type: K, listener: (this: HTMLVaButtonSegmentedElement, ev: VaButtonSegmentedCustomEvent<HTMLVaButtonSegmentedElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2578
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2579
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2580
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2581
+ removeEventListener<K extends keyof HTMLVaButtonSegmentedElementEventMap>(type: K, listener: (this: HTMLVaButtonSegmentedElement, ev: VaButtonSegmentedCustomEvent<HTMLVaButtonSegmentedElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2582
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2583
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2584
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2585
+ }
2586
+ var HTMLVaButtonSegmentedElement: {
2587
+ prototype: HTMLVaButtonSegmentedElement;
2588
+ new (): HTMLVaButtonSegmentedElement;
2589
+ };
2524
2590
  /**
2525
2591
  * @componentName Card
2526
2592
  * @maturityCategory use
@@ -2732,30 +2798,6 @@ declare global {
2732
2798
  prototype: HTMLVaIconElement;
2733
2799
  new (): HTMLVaIconElement;
2734
2800
  };
2735
- interface HTMLVaInputTelephoneElementEventMap {
2736
- "vaContact": any;
2737
- }
2738
- /**
2739
- * @componentName Input Telephone
2740
- * @maturityCategory caution
2741
- * @maturityLevel candidate
2742
- * @guidanceHref form/telephone-input
2743
- * @translations English
2744
- */
2745
- interface HTMLVaInputTelephoneElement extends Components.VaInputTelephone, HTMLStencilElement {
2746
- addEventListener<K extends keyof HTMLVaInputTelephoneElementEventMap>(type: K, listener: (this: HTMLVaInputTelephoneElement, ev: VaInputTelephoneCustomEvent<HTMLVaInputTelephoneElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2747
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2748
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2749
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2750
- removeEventListener<K extends keyof HTMLVaInputTelephoneElementEventMap>(type: K, listener: (this: HTMLVaInputTelephoneElement, ev: VaInputTelephoneCustomEvent<HTMLVaInputTelephoneElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2751
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2752
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2753
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2754
- }
2755
- var HTMLVaInputTelephoneElement: {
2756
- prototype: HTMLVaInputTelephoneElement;
2757
- new (): HTMLVaInputTelephoneElement;
2758
- };
2759
2801
  interface HTMLVaLanguageToggleElementEventMap {
2760
2802
  "vaLanguageToggle": any;
2761
2803
  "component-library-analytics": any;
@@ -3388,6 +3430,30 @@ declare global {
3388
3430
  prototype: HTMLVaTelephoneElement;
3389
3431
  new (): HTMLVaTelephoneElement;
3390
3432
  };
3433
+ interface HTMLVaTelephoneInputElementEventMap {
3434
+ "vaContact": any;
3435
+ }
3436
+ /**
3437
+ * @componentName Telephone Input
3438
+ * @maturityCategory caution
3439
+ * @maturityLevel candidate
3440
+ * @guidanceHref form/telephone-input
3441
+ * @translations English
3442
+ */
3443
+ interface HTMLVaTelephoneInputElement extends Components.VaTelephoneInput, HTMLStencilElement {
3444
+ addEventListener<K extends keyof HTMLVaTelephoneInputElementEventMap>(type: K, listener: (this: HTMLVaTelephoneInputElement, ev: VaTelephoneInputCustomEvent<HTMLVaTelephoneInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
3445
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3446
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3447
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3448
+ removeEventListener<K extends keyof HTMLVaTelephoneInputElementEventMap>(type: K, listener: (this: HTMLVaTelephoneInputElement, ev: VaTelephoneInputCustomEvent<HTMLVaTelephoneInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
3449
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3450
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3451
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3452
+ }
3453
+ var HTMLVaTelephoneInputElement: {
3454
+ prototype: HTMLVaTelephoneInputElement;
3455
+ new (): HTMLVaTelephoneInputElement;
3456
+ };
3391
3457
  interface HTMLVaTextInputElementEventMap {
3392
3458
  "component-library-analytics": any;
3393
3459
  }
@@ -3456,6 +3522,7 @@ declare global {
3456
3522
  "va-button": HTMLVaButtonElement;
3457
3523
  "va-button-icon": HTMLVaButtonIconElement;
3458
3524
  "va-button-pair": HTMLVaButtonPairElement;
3525
+ "va-button-segmented": HTMLVaButtonSegmentedElement;
3459
3526
  "va-card": HTMLVaCardElement;
3460
3527
  "va-checkbox": HTMLVaCheckboxElement;
3461
3528
  "va-checkbox-group": HTMLVaCheckboxGroupElement;
@@ -3467,7 +3534,6 @@ declare global {
3467
3534
  "va-file-input-multiple": HTMLVaFileInputMultipleElement;
3468
3535
  "va-header-minimal": HTMLVaHeaderMinimalElement;
3469
3536
  "va-icon": HTMLVaIconElement;
3470
- "va-input-telephone": HTMLVaInputTelephoneElement;
3471
3537
  "va-language-toggle": HTMLVaLanguageToggleElement;
3472
3538
  "va-link": HTMLVaLinkElement;
3473
3539
  "va-link-action": HTMLVaLinkActionElement;
@@ -3500,6 +3566,7 @@ declare global {
3500
3566
  "va-table-inner": HTMLVaTableInnerElement;
3501
3567
  "va-table-row": HTMLVaTableRowElement;
3502
3568
  "va-telephone": HTMLVaTelephoneElement;
3569
+ "va-telephone-input": HTMLVaTelephoneInputElement;
3503
3570
  "va-text-input": HTMLVaTextInputElement;
3504
3571
  "va-textarea": HTMLVaTextareaElement;
3505
3572
  }
@@ -3545,6 +3612,10 @@ declare namespace LocalJSX {
3545
3612
  * The accordion item header text
3546
3613
  */
3547
3614
  "header"?: string;
3615
+ /**
3616
+ * Optional text that will be read by screen readers in addition to the header text.
3617
+ */
3618
+ "headerSrOnly"?: string;
3548
3619
  /**
3549
3620
  * Header level for button wrapper. Must be between 1 and 6
3550
3621
  */
@@ -3918,6 +3989,38 @@ declare namespace LocalJSX {
3918
3989
  */
3919
3990
  "update"?: boolean;
3920
3991
  }
3992
+ /**
3993
+ * @componentName Button Segmented
3994
+ * @maturityCategory caution
3995
+ * @maturityLevel candidate
3996
+ * @guidanceHref button/button-segmented
3997
+ */
3998
+ interface VaButtonSegmented {
3999
+ /**
4000
+ * An array of objects defining the labels and values for each button. The recommended structure is: `{ label: string, value?: string }`, with the `label` property being required. The `value` property is optional and can be used to store additional information about the button. The maximum number of buttons allowed is four.
4001
+ */
4002
+ "buttons": Array<ButtonItem>;
4003
+ /**
4004
+ * If `true`, the component-library-analytics event is disabled.
4005
+ */
4006
+ "disableAnalytics"?: boolean;
4007
+ /**
4008
+ * The aria-label for the button group, used for accessibility. Not required, but recommended.
4009
+ */
4010
+ "label"?: string;
4011
+ /**
4012
+ * The event used to track usage of the component.
4013
+ */
4014
+ "onComponent-library-analytics"?: (event: VaButtonSegmentedCustomEvent<any>) => void;
4015
+ /**
4016
+ * Event emitted when selected button changes (a button is clicked).
4017
+ */
4018
+ "onVaButtonClick"?: (event: VaButtonSegmentedCustomEvent<any>) => void;
4019
+ /**
4020
+ * The index of the selected button.
4021
+ */
4022
+ "selected"?: number;
4023
+ }
3921
4024
  /**
3922
4025
  * @componentName Card
3923
4026
  * @maturityCategory use
@@ -4048,6 +4151,10 @@ declare namespace LocalJSX {
4048
4151
  * Insert a header with defined level inside the label (legend)
4049
4152
  */
4050
4153
  "labelHeaderLevel"?: string;
4154
+ /**
4155
+ * Optional text that will be read by screen readers in addition to the label text.
4156
+ */
4157
+ "labelSrOnly"?: string;
4051
4158
  /**
4052
4159
  * An optional message that will be read by screen readers when a checkbox is focused.
4053
4160
  */
@@ -4387,47 +4494,6 @@ declare namespace LocalJSX {
4387
4494
  */
4388
4495
  "srtext"?: string;
4389
4496
  }
4390
- /**
4391
- * @componentName Input Telephone
4392
- * @maturityCategory caution
4393
- * @maturityLevel candidate
4394
- * @guidanceHref form/telephone-input
4395
- * @translations English
4396
- */
4397
- interface VaInputTelephone {
4398
- /**
4399
- * The telephone contact information
4400
- */
4401
- "contact"?: string;
4402
- /**
4403
- * The 2 letter ISO country code for a country
4404
- */
4405
- "country"?: CountryCode;
4406
- /**
4407
- * The error for the component
4408
- */
4409
- "error"?: string;
4410
- /**
4411
- * Hint string text
4412
- */
4413
- "hint"?: string;
4414
- /**
4415
- * Label text for the component
4416
- */
4417
- "label"?: string;
4418
- /**
4419
- * Whether the country select should be included. Set to true to exclude it.
4420
- */
4421
- "noCountry"?: boolean;
4422
- /**
4423
- * The event emitted when the contact changes
4424
- */
4425
- "onVaContact"?: (event: VaInputTelephoneCustomEvent<any>) => void;
4426
- /**
4427
- * Render marker indicating field is required.
4428
- */
4429
- "required"?: boolean;
4430
- }
4431
4497
  /**
4432
4498
  * @componentName Language Toggle
4433
4499
  * @maturityCategory caution
@@ -5649,6 +5715,51 @@ declare namespace LocalJSX {
5649
5715
  */
5650
5716
  "vanity"?: string;
5651
5717
  }
5718
+ /**
5719
+ * @componentName Telephone Input
5720
+ * @maturityCategory caution
5721
+ * @maturityLevel candidate
5722
+ * @guidanceHref form/telephone-input
5723
+ * @translations English
5724
+ */
5725
+ interface VaTelephoneInput {
5726
+ /**
5727
+ * The telephone contact information
5728
+ */
5729
+ "contact"?: string;
5730
+ /**
5731
+ * The 2 letter ISO country code for a country
5732
+ */
5733
+ "country"?: CountryCode;
5734
+ /**
5735
+ * The error for the component
5736
+ */
5737
+ "error"?: string;
5738
+ /**
5739
+ * Hint string text
5740
+ */
5741
+ "hint"?: string;
5742
+ /**
5743
+ * Label text for the component
5744
+ */
5745
+ "label"?: string;
5746
+ /**
5747
+ * Whether the country select should be included. Set to true to exclude it.
5748
+ */
5749
+ "noCountry"?: boolean;
5750
+ /**
5751
+ * The event emitted when the contact changes
5752
+ */
5753
+ "onVaContact"?: (event: VaTelephoneInputCustomEvent<any>) => void;
5754
+ /**
5755
+ * Render marker indicating field is required.
5756
+ */
5757
+ "required"?: boolean;
5758
+ /**
5759
+ * If true, this prop instructs the component to display error messages in response to the internal error state. If false, error messages must be passed in from consumer.
5760
+ */
5761
+ "showInternalErrors"?: boolean;
5762
+ }
5652
5763
  /**
5653
5764
  * @nativeHandler onInput
5654
5765
  * @nativeHandler onBlur
@@ -5889,6 +6000,7 @@ declare namespace LocalJSX {
5889
6000
  "va-button": VaButton;
5890
6001
  "va-button-icon": VaButtonIcon;
5891
6002
  "va-button-pair": VaButtonPair;
6003
+ "va-button-segmented": VaButtonSegmented;
5892
6004
  "va-card": VaCard;
5893
6005
  "va-checkbox": VaCheckbox;
5894
6006
  "va-checkbox-group": VaCheckboxGroup;
@@ -5900,7 +6012,6 @@ declare namespace LocalJSX {
5900
6012
  "va-file-input-multiple": VaFileInputMultiple;
5901
6013
  "va-header-minimal": VaHeaderMinimal;
5902
6014
  "va-icon": VaIcon;
5903
- "va-input-telephone": VaInputTelephone;
5904
6015
  "va-language-toggle": VaLanguageToggle;
5905
6016
  "va-link": VaLink;
5906
6017
  "va-link-action": VaLinkAction;
@@ -5933,6 +6044,7 @@ declare namespace LocalJSX {
5933
6044
  "va-table-inner": VaTableInner;
5934
6045
  "va-table-row": VaTableRow;
5935
6046
  "va-telephone": VaTelephone;
6047
+ "va-telephone-input": VaTelephoneInput;
5936
6048
  "va-text-input": VaTextInput;
5937
6049
  "va-textarea": VaTextarea;
5938
6050
  }
@@ -6017,6 +6129,13 @@ declare module "@stencil/core" {
6017
6129
  * @guidanceHref button/button-pair
6018
6130
  */
6019
6131
  "va-button-pair": LocalJSX.VaButtonPair & JSXBase.HTMLAttributes<HTMLVaButtonPairElement>;
6132
+ /**
6133
+ * @componentName Button Segmented
6134
+ * @maturityCategory caution
6135
+ * @maturityLevel candidate
6136
+ * @guidanceHref button/button-segmented
6137
+ */
6138
+ "va-button-segmented": LocalJSX.VaButtonSegmented & JSXBase.HTMLAttributes<HTMLVaButtonSegmentedElement>;
6020
6139
  /**
6021
6140
  * @componentName Card
6022
6141
  * @maturityCategory use
@@ -6102,14 +6221,6 @@ declare module "@stencil/core" {
6102
6221
  * @maturityLevel available
6103
6222
  */
6104
6223
  "va-icon": LocalJSX.VaIcon & JSXBase.HTMLAttributes<HTMLVaIconElement>;
6105
- /**
6106
- * @componentName Input Telephone
6107
- * @maturityCategory caution
6108
- * @maturityLevel candidate
6109
- * @guidanceHref form/telephone-input
6110
- * @translations English
6111
- */
6112
- "va-input-telephone": LocalJSX.VaInputTelephone & JSXBase.HTMLAttributes<HTMLVaInputTelephoneElement>;
6113
6224
  /**
6114
6225
  * @componentName Language Toggle
6115
6226
  * @maturityCategory caution
@@ -6310,6 +6421,14 @@ declare module "@stencil/core" {
6310
6421
  * @maturityLevel best_practice
6311
6422
  */
6312
6423
  "va-telephone": LocalJSX.VaTelephone & JSXBase.HTMLAttributes<HTMLVaTelephoneElement>;
6424
+ /**
6425
+ * @componentName Telephone Input
6426
+ * @maturityCategory caution
6427
+ * @maturityLevel candidate
6428
+ * @guidanceHref form/telephone-input
6429
+ * @translations English
6430
+ */
6431
+ "va-telephone-input": LocalJSX.VaTelephoneInput & JSXBase.HTMLAttributes<HTMLVaTelephoneInputElement>;
6313
6432
  /**
6314
6433
  * @nativeHandler onInput
6315
6434
  * @nativeHandler onBlur
@@ -1 +1 @@
1
- import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,r="slot"){const n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((e=>e.nodeName.toLowerCase()===t)):Array.from(n)}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 r;if(e.length<=t){const n=t-e.length;r=`${n} character${plurality(n)} left`}else{const n=e.length-t;r=`${n} character${plurality(n)} over limit`}return r}function makeArray(e,t){return Array.from({length:t-e+1},((t,r)=>e+r))}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 r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}function selectOrMatches(e,t){const r=select(e,t);return"string"!=typeof e||isElement(t)&&t.matches(e)&&r.push(t),r}const Sanitizer={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return Sanitizer._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=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 i=Array.prototype.slice;return deepEquals(i.call(e),i.call(t),r,n)}{if(e.constructor!==t.constructor)return!1;const i=Object.keys(e),o=Object.keys(t);if(0===i.length&&0===o.length)return!0;if(i.length!==o.length)return!1;let s,l=r.length;for(;l--;)if(r[l]===e)return n[l]===t;r.push(e),n.push(t),i.sort(),o.sort();for(let e=i.length-1;e>=0;e--)if(i[e]!==o[e])return!1;for(let o=i.length-1;o>=0;o--)if(s=i[o],!deepEquals(e[s],t[s],r,n))return!1;return r.pop(),n.pop(),!0}}function getArticle(e,t=!0){const r=["a","i","e","o"];t&&r.push("u");const n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}export{Sanitizer as S,getArticle as a,getSlottedNodes as b,consoleDevError as c,deepEquals as d,isNumeric as e,getCharacterMessage as f,getHeaderLevel as g,isInteractiveLinkOrButton as h,isMessageSet as i,makeArray as m,selectOrMatches as s};
1
+ import{Build}from"@stencil/core/internal/client";function isNumeric(e){return!Number.isNaN(parseFloat(e))}function getSlottedNodes(e,t,r="slot"){const n=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(n).filter((e=>e.nodeName.toLowerCase()===t)):Array.from(n)}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 r;if(e.length<=t){const n=t-e.length;r=`${n} character${plurality(n)} left`}else{const n=e.length-t;r=`${n} character${plurality(n)} over limit`}return r}function makeArray(e,t){return Array.from({length:t-e+1},((t,r)=>e+r))}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 r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}function selectOrMatches(e,t){const r=select(e,t);return"string"!=typeof e||isElement(t)&&t.matches(e)&&r.push(t),r}const Sanitizer={_entity:/[&<>"'/]/g,_entities:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;","/":"&#x2F;"},getEntity:function(e){return Sanitizer._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+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 r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=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 i=Array.prototype.slice;return deepEquals(i.call(e),i.call(t),r,n)}{if(e.constructor!==t.constructor)return!1;const i=Object.keys(e),o=Object.keys(t);if(0===i.length&&0===o.length)return!0;if(i.length!==o.length)return!1;let s,l=r.length;for(;l--;)if(r[l]===e)return n[l]===t;r.push(e),n.push(t),i.sort(),o.sort();for(let e=i.length-1;e>=0;e--)if(i[e]!==o[e])return!1;for(let o=i.length-1;o>=0;o--)if(s=i[o],!deepEquals(e[s],t[s],r,n))return!1;return r.pop(),n.pop(),!0}}function getArticle(e,t=!0){const r=["a","i","e","o"];t&&r.push("u");const n=e.charAt(0).toLowerCase();return r.includes(n)?"an":"a"}export{Sanitizer as S,getSlottedNodes as a,isNumeric as b,consoleDevError as c,deepEquals as d,getArticle as e,getCharacterMessage as f,getHeaderLevel as g,isInteractiveLinkOrButton as h,isMessageSet as i,makeArray as m,selectOrMatches as s};