@fluid-topics/ft-combobox 1.3.59 → 1.3.61

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.
@@ -4,21 +4,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing } from "lit";
8
- import { property, query, state } from "lit/decorators.js";
7
+ import { html, nothing, } from "lit";
8
+ import { property, query, state, } from "lit/decorators.js";
9
9
  import { repeat } from "lit/directives/repeat.js";
10
10
  import { classMap } from "lit/directives/class-map.js";
11
11
  import { ifDefined } from "lit/directives/if-defined.js";
12
12
  import { when } from "lit/directives/when.js";
13
- import { Debouncer, FtLitElement, numberProperty, screenReaderStyles } from "@fluid-topics/ft-wc-utils";
13
+ import { Debouncer, FtLitElement, numberProperty, screenReaderStyles, } from "@fluid-topics/ft-wc-utils";
14
14
  import { styles } from "./ft-combobox.styles";
15
15
  import { FtInputLabel } from "@fluid-topics/ft-input-label";
16
16
  import { FtRipple } from "@fluid-topics/ft-ripple";
17
- import { FtTypography, FtTypographyBody1, FtTypographyVariants } from "@fluid-topics/ft-typography";
17
+ import { FtTypography, FtTypographyBody1, FtTypographyVariants, } from "@fluid-topics/ft-typography";
18
18
  import { FtIcon } from "@fluid-topics/ft-icon";
19
19
  import { FtChip } from "@fluid-topics/ft-chip";
20
20
  import { withI18n } from "@fluid-topics/ft-i18n";
21
- import { comboboxContext, defaultComboboxMessages } from "./ComboboxMessages";
21
+ import { comboboxContext, defaultComboboxMessages, } from "./ComboboxMessages";
22
22
  class FtCombobox extends withI18n(FtLitElement) {
23
23
  get value() {
24
24
  return this._value || "";
@@ -248,6 +248,8 @@ class FtCombobox extends withI18n(FtLitElement) {
248
248
  aria-controls="combobox-listbox"
249
249
  aria-activedescendant="${this.getActiveDescendantId()}"
250
250
  aria-label="${ifDefined(this.label)}"
251
+ aria-describedby="${ifDefined(this.helper ? "helper" : undefined)}"
252
+ aria-invalid="${this.error}"
251
253
  name="${ifDefined(this.name)}"
252
254
  maxlength="${ifDefined(this.maxLength)}"
253
255
  ?disabled=${this.disabled}
@@ -277,7 +279,7 @@ class FtCombobox extends withI18n(FtLitElement) {
277
279
 
278
280
  </div>
279
281
  ${this.helper ? html `
280
- <ft-typography class="ft-combobox--helper-text" variant="caption">
282
+ <ft-typography class="ft-combobox--helper-text" variant="caption" id="helper" role="alert">
281
283
  ${this.helper}
282
284
  </ft-typography>
283
285
  ` : nothing}