@aurodesignsystem-dev/auro-formkit 0.0.0-pr835.0 → 0.0.0-pr837.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 (55) hide show
  1. package/components/bibtemplate/dist/index.js +3 -2
  2. package/components/bibtemplate/dist/registered.js +3 -2
  3. package/components/combobox/README.md +2 -0
  4. package/components/combobox/demo/api.md +6 -0
  5. package/components/combobox/demo/api.min.js +26 -25
  6. package/components/combobox/demo/index.md +12 -0
  7. package/components/combobox/demo/index.min.js +26 -25
  8. package/components/combobox/demo/readme.md +2 -0
  9. package/components/combobox/dist/auro-combobox.d.ts +2 -0
  10. package/components/combobox/dist/index.js +26 -25
  11. package/components/combobox/dist/registered.js +26 -25
  12. package/components/counter/demo/api.md +9 -0
  13. package/components/counter/demo/api.min.js +6 -13
  14. package/components/counter/demo/index.md +6 -0
  15. package/components/counter/demo/index.min.js +6 -13
  16. package/components/counter/dist/auro-counter-group.d.ts +1 -0
  17. package/components/counter/dist/index.js +6 -13
  18. package/components/counter/dist/registered.js +6 -13
  19. package/components/datepicker/README.md +1 -0
  20. package/components/datepicker/demo/api.md +11 -0
  21. package/components/datepicker/demo/api.min.js +19 -17
  22. package/components/datepicker/demo/index.md +12 -0
  23. package/components/datepicker/demo/index.min.js +19 -17
  24. package/components/datepicker/demo/readme.md +1 -0
  25. package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
  26. package/components/datepicker/dist/index.js +19 -17
  27. package/components/datepicker/dist/registered.js +19 -17
  28. package/components/dropdown/demo/api.md +7 -6
  29. package/components/dropdown/demo/api.min.js +1 -11
  30. package/components/dropdown/demo/index.min.js +1 -11
  31. package/components/dropdown/dist/index.js +1 -11
  32. package/components/dropdown/dist/registered.js +1 -11
  33. package/components/input/README.md +1 -0
  34. package/components/input/demo/api.md +14 -6
  35. package/components/input/demo/api.min.js +12 -4
  36. package/components/input/demo/index.md +7 -0
  37. package/components/input/demo/index.min.js +12 -4
  38. package/components/input/demo/readme.md +1 -0
  39. package/components/input/dist/base-input.d.ts +3 -1
  40. package/components/input/dist/index.js +12 -4
  41. package/components/input/dist/registered.js +12 -4
  42. package/components/radio/demo/api.min.js +1 -1
  43. package/components/radio/demo/index.min.js +1 -1
  44. package/components/radio/dist/index.js +1 -1
  45. package/components/radio/dist/registered.js +1 -1
  46. package/components/select/README.md +1 -0
  47. package/components/select/demo/api.md +9 -3
  48. package/components/select/demo/api.min.js +12 -13
  49. package/components/select/demo/index.md +8 -0
  50. package/components/select/demo/index.min.js +12 -13
  51. package/components/select/demo/readme.md +1 -0
  52. package/components/select/dist/auro-select.d.ts +5 -0
  53. package/components/select/dist/index.js +12 -13
  54. package/components/select/dist/registered.js +12 -13
  55. package/package.json +2 -2
@@ -1913,8 +1913,9 @@ class AuroBibtemplate extends LitElement {
1913
1913
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
1914
1914
  <slot name="header"></slot>
1915
1915
  </${this.headerTag}>
1916
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
1917
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
1916
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
1917
+ <span><slot name="ariaLabel.close">Close</slot></span>
1918
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
1918
1919
  </${this.buttonTag}>
1919
1920
  </div>
1920
1921
  <span class="subheader">
@@ -1913,8 +1913,9 @@ class AuroBibtemplate extends LitElement {
1913
1913
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
1914
1914
  <slot name="header"></slot>
1915
1915
  </${this.headerTag}>
1916
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
1917
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
1916
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
1917
+ <span><slot name="ariaLabel.close">Close</slot></span>
1918
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
1918
1919
  </${this.buttonTag}>
1919
1920
  </div>
1920
1921
  <span class="subheader">
@@ -84,6 +84,8 @@ This configuration enables proper module resolution for the component's TypeScri
84
84
 
85
85
  ```html
86
86
  <auro-combobox>
87
+ <span slot="ariaLabel.bib.close">Close combobox</span>
88
+ <span slot="ariaLabel.input.clear">Clear All</span>
87
89
  <span slot="bib.fullscreen.headline">Bib Header</span>
88
90
  <span slot="label">Name</span>
89
91
  <auro-menu>
@@ -59,6 +59,8 @@
59
59
  | Name | Description |
60
60
  |---------------------------|--------------------------------------------------|
61
61
  | | Default slot for the menu content. |
62
+ | `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
63
+ | `ariaLabel.input.clear` | Sets aria-label on clear button |
62
64
  | `bib.fullscreen.headline` | Defines the headline to display above menu-options |
63
65
  | [displayValue](#displayValue) | Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts. |
64
66
  | [helpText](#helpText) | Defines the content of the helpText. |
@@ -74,6 +76,8 @@
74
76
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
75
77
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
76
78
  <auro-combobox>
79
+ <span slot="ariaLabel.bib.close">Close combobox</span>
80
+ <span slot="ariaLabel.input.clear">Clear All</span>
77
81
  <span slot="bib.fullscreen.headline">Bib Header</span>
78
82
  <span slot="label">Name</span>
79
83
  <auro-menu>
@@ -111,6 +115,8 @@
111
115
 
112
116
  ```html
113
117
  <auro-combobox>
118
+ <span slot="ariaLabel.bib.close">Close combobox</span>
119
+ <span slot="ariaLabel.input.clear">Clear All</span>
114
120
  <span slot="bib.fullscreen.headline">Bib Header</span>
115
121
  <span slot="label">Name</span>
116
122
  <auro-menu>
@@ -3023,12 +3023,6 @@ class AuroFloatingUI {
3023
3023
  }
3024
3024
 
3025
3025
  setupHideHandlers() {
3026
- this.preventFocusLoseOnBibClick = (event) => {
3027
- event.preventDefault();
3028
- event.stopPropagation();
3029
- };
3030
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
3031
-
3032
3026
  // Define handlers & store references
3033
3027
  this.focusHandler = () => this.handleFocusLoss();
3034
3028
 
@@ -3078,11 +3072,6 @@ class AuroFloatingUI {
3078
3072
  cleanupHideHandlers() {
3079
3073
  // Remove event listeners if they exist
3080
3074
 
3081
- if (this.preventFocusLoseOnBibClick) {
3082
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
3083
- delete this.preventFocusLoseOnBibClick;
3084
- }
3085
-
3086
3075
  if (this.focusHandler) {
3087
3076
  document.removeEventListener('focusin', this.focusHandler);
3088
3077
  this.focusHandler = null;
@@ -4582,6 +4571,7 @@ let AuroElement$4 = class AuroElement extends i$2 {
4582
4571
  * @slot trigger - Defines the content of the trigger.
4583
4572
  * @csspart trigger - The trigger content container.
4584
4573
  * @csspart chevron - The collapsed/expanded state icon container.
4574
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4585
4575
  * @csspart helpText - The helpText content container.
4586
4576
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4587
4577
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -10431,6 +10421,9 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
10431
10421
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10432
10422
  * @attr id
10433
10423
  *
10424
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
10425
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
10426
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10434
10427
  * @slot helpText - Sets the help text displayed below the input.
10435
10428
  * @slot label - Sets the label text for the input.
10436
10429
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -10858,8 +10851,7 @@ class BaseInput extends AuroElement$2$1 {
10858
10851
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
10859
10852
  */
10860
10853
  value: {
10861
- type: String,
10862
- reflect: true
10854
+ type: String
10863
10855
  },
10864
10856
 
10865
10857
  /**
@@ -13571,12 +13563,13 @@ class AuroInput extends BaseInput {
13571
13563
  <${this.buttonTag}
13572
13564
  @click="${this.handleClickClear}"
13573
13565
  ?onDark="${this.onDark}"
13574
- aria-label="${i18n(this.lang, 'clearInput')}"
13575
13566
  class="notificationBtn clearBtn"
13576
13567
  shape="circle"
13577
13568
  size="sm"
13578
13569
  variant="ghost">
13570
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
13579
13571
  <${this.iconTag}
13572
+ aria-hidden="true"
13580
13573
  ?customColor="${this.onDark}"
13581
13574
  category="interface"
13582
13575
  name="x-lg"
@@ -13599,18 +13592,23 @@ class AuroInput extends BaseInput {
13599
13592
  @click="${this.handleClickShowPassword}"
13600
13593
  ?onDark="${this.onDark}"
13601
13594
  class="notificationBtn passwordBtn"
13602
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
13603
13595
  shape="circle"
13604
13596
  size="sm"
13605
13597
  variant="ghost">
13598
+ <span>
13599
+ ${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
13600
+ : u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
13601
+ </span>
13606
13602
  <${this.iconTag}
13607
13603
  ?customColor="${this.onDark}"
13604
+ aria-hidden="true"
13608
13605
  ?hidden=${!this.showPassword}
13609
13606
  category="interface"
13610
13607
  name="hide-password-stroke">
13611
13608
  </${this.iconTag}>
13612
13609
  <${this.iconTag}
13613
13610
  ?customColor="${this.onDark}"
13611
+ aria-hidden="true"
13614
13612
  ?hidden=${this.showPassword}
13615
13613
  category="interface"
13616
13614
  name="view-password-stroke">
@@ -15732,8 +15730,9 @@ class AuroBibtemplate extends i$2 {
15732
15730
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
15733
15731
  <slot name="header"></slot>
15734
15732
  </${this.headerTag}>
15735
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15736
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
15733
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15734
+ <span><slot name="ariaLabel.close">Close</slot></span>
15735
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
15737
15736
  </${this.buttonTag}>
15738
15737
  </div>
15739
15738
  <span class="subheader">
@@ -16069,6 +16068,8 @@ class AuroHelpText extends i$2 {
16069
16068
  /**
16070
16069
  * @slot - Default slot for the menu content.
16071
16070
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
16071
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
16072
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
16072
16073
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
16073
16074
  * @slot label - Defines the content of the label.
16074
16075
  * @slot helpText - Defines the content of the helpText.
@@ -16888,9 +16889,7 @@ class AuroCombobox extends AuroElement$1 {
16888
16889
  if (this.dropdown.isBibFullscreen) {
16889
16890
 
16890
16891
  // when focus is on the input, move focus back to close button with Tab key
16891
- if (document.activeElement.shadowRoot.activeElement === this.inputInBib &&
16892
- this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
16893
- !evt.shiftKey) {
16892
+ if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
16894
16893
  evt.preventDefault();
16895
16894
  this.dropdown.focus();
16896
16895
  }
@@ -17069,13 +17068,13 @@ class AuroCombobox extends AuroElement$1 {
17069
17068
 
17070
17069
  this.handleMenuOptions();
17071
17070
  break;
17071
+
17072
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
17073
+ // It's because the bib is/will be separated from dropdown to body.
17072
17074
  case 'label':
17073
- // Programmatically inject as the slot cannot be carried over to bibtemplate.
17074
- // It's because the bib is/will be separated from dropdown to body.
17075
- this.transportAssignedNodes(event.target, this.inputInBib, "label");
17076
- break;
17075
+ case 'ariaLabel.input.clear':
17077
17076
  case 'optionalLabel':
17078
- this.transportAssignedNodes(event.target, this.inputInBib, "optionalLabel");
17077
+ this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
17079
17078
  break;
17080
17079
  case 'bib.fullscreen.headline':
17081
17080
  this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
@@ -17146,6 +17145,7 @@ class AuroCombobox extends AuroElement$1 {
17146
17145
  shape="${this.shape}"
17147
17146
  size="${this.size}"
17148
17147
  slot="trigger">
17148
+ <slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
17149
17149
  <slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
17150
17150
  <slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
17151
17151
  <slot name="displayValue" slot="displayValue"></slot>
@@ -17153,6 +17153,7 @@ class AuroCombobox extends AuroElement$1 {
17153
17153
 
17154
17154
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
17155
17155
  <slot name="bib.fullscreen.headline" slot="header"></slot>
17156
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
17156
17157
  <slot></slot>
17157
17158
  <${this.inputTag}
17158
17159
  id="inputInBib"
@@ -28,6 +28,8 @@ The `<auro-combobox>` element should be used in situations where users may:
28
28
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
29
29
  <!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
30
30
  <auro-combobox layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
31
+ <span slot="ariaLabel.bib.close">Close combobox</span>
32
+ <span slot="ariaLabel.input.clear">Clear All</span>
31
33
  <span slot="bib.fullscreen.headline">Bib Header</span>
32
34
  <span slot="label">Name</span>
33
35
  <auro-menu>
@@ -48,6 +50,8 @@ The `<auro-combobox>` element should be used in situations where users may:
48
50
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/onDark.html) -->
49
51
  <!-- The below content is automatically added from ./../apiExamples/classic/onDark.html -->
50
52
  <auro-combobox layout="classic" shape="classic" size="lg" placeholder="Placeholder content" ondark required style="width: 249px;">
53
+ <span slot="ariaLabel.bib.close">Close combobox</span>
54
+ <span slot="ariaLabel.input.clear">Clear All</span>
51
55
  <span slot="bib.fullscreen.headline">Bib Header</span>
52
56
  <span slot="label">Name</span>
53
57
  <auro-menu>
@@ -71,6 +75,8 @@ The `<auro-combobox>` element should be used in situations where users may:
71
75
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
72
76
  <!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
73
77
  <auro-combobox layout="emphasized" value="Oranges" shape="pill" size="xl" placeholder="Placeholder content" required ondark style="width: 249px;">
78
+ <span slot="ariaLabel.bib.close">Close combobox</span>
79
+ <span slot="ariaLabel.input.clear">Clear All</span>
74
80
  <span slot="bib.fullscreen.headline">Bib Header</span>
75
81
  <span slot="label">Name</span>
76
82
  <auro-menu>
@@ -100,6 +106,8 @@ The `<auro-combobox>` element should be used in situations where users may:
100
106
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
101
107
  <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
102
108
  <auro-combobox layout="snowflake" shape="snowflake" size="lg" placeholder="Placeholder content" required ondark style="width: 249px;">
109
+ <span slot="ariaLabel.bib.close">Close combobox</span>
110
+ <span slot="ariaLabel.input.clear">Clear All</span>
103
111
  <span slot="bib.fullscreen.headline">Bib Header</span>
104
112
  <span slot="label">Name</span>
105
113
  <auro-menu>
@@ -120,6 +128,8 @@ The `<auro-combobox>` element should be used in situations where users may:
120
128
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
121
129
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
122
130
  <auro-combobox>
131
+ <span slot="ariaLabel.bib.close">Close combobox</span>
132
+ <span slot="ariaLabel.input.clear">Clear All</span>
123
133
  <span slot="bib.fullscreen.headline">Bib Header</span>
124
134
  <span slot="label">Name</span>
125
135
  <auro-menu>
@@ -157,6 +167,8 @@ The `<auro-combobox>` element should be used in situations where users may:
157
167
 
158
168
  ```html
159
169
  <auro-combobox>
170
+ <span slot="ariaLabel.bib.close">Close combobox</span>
171
+ <span slot="ariaLabel.input.clear">Clear All</span>
160
172
  <span slot="bib.fullscreen.headline">Bib Header</span>
161
173
  <span slot="label">Name</span>
162
174
  <auro-menu>
@@ -2881,12 +2881,6 @@ class AuroFloatingUI {
2881
2881
  }
2882
2882
 
2883
2883
  setupHideHandlers() {
2884
- this.preventFocusLoseOnBibClick = (event) => {
2885
- event.preventDefault();
2886
- event.stopPropagation();
2887
- };
2888
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
2889
-
2890
2884
  // Define handlers & store references
2891
2885
  this.focusHandler = () => this.handleFocusLoss();
2892
2886
 
@@ -2936,11 +2930,6 @@ class AuroFloatingUI {
2936
2930
  cleanupHideHandlers() {
2937
2931
  // Remove event listeners if they exist
2938
2932
 
2939
- if (this.preventFocusLoseOnBibClick) {
2940
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
2941
- delete this.preventFocusLoseOnBibClick;
2942
- }
2943
-
2944
2933
  if (this.focusHandler) {
2945
2934
  document.removeEventListener('focusin', this.focusHandler);
2946
2935
  this.focusHandler = null;
@@ -4440,6 +4429,7 @@ let AuroElement$4 = class AuroElement extends i$2 {
4440
4429
  * @slot trigger - Defines the content of the trigger.
4441
4430
  * @csspart trigger - The trigger content container.
4442
4431
  * @csspart chevron - The collapsed/expanded state icon container.
4432
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4443
4433
  * @csspart helpText - The helpText content container.
4444
4434
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4445
4435
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -10289,6 +10279,9 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
10289
10279
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10290
10280
  * @attr id
10291
10281
  *
10282
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
10283
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
10284
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10292
10285
  * @slot helpText - Sets the help text displayed below the input.
10293
10286
  * @slot label - Sets the label text for the input.
10294
10287
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -10716,8 +10709,7 @@ class BaseInput extends AuroElement$2$1 {
10716
10709
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
10717
10710
  */
10718
10711
  value: {
10719
- type: String,
10720
- reflect: true
10712
+ type: String
10721
10713
  },
10722
10714
 
10723
10715
  /**
@@ -13429,12 +13421,13 @@ class AuroInput extends BaseInput {
13429
13421
  <${this.buttonTag}
13430
13422
  @click="${this.handleClickClear}"
13431
13423
  ?onDark="${this.onDark}"
13432
- aria-label="${i18n(this.lang, 'clearInput')}"
13433
13424
  class="notificationBtn clearBtn"
13434
13425
  shape="circle"
13435
13426
  size="sm"
13436
13427
  variant="ghost">
13428
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
13437
13429
  <${this.iconTag}
13430
+ aria-hidden="true"
13438
13431
  ?customColor="${this.onDark}"
13439
13432
  category="interface"
13440
13433
  name="x-lg"
@@ -13457,18 +13450,23 @@ class AuroInput extends BaseInput {
13457
13450
  @click="${this.handleClickShowPassword}"
13458
13451
  ?onDark="${this.onDark}"
13459
13452
  class="notificationBtn passwordBtn"
13460
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
13461
13453
  shape="circle"
13462
13454
  size="sm"
13463
13455
  variant="ghost">
13456
+ <span>
13457
+ ${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
13458
+ : u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
13459
+ </span>
13464
13460
  <${this.iconTag}
13465
13461
  ?customColor="${this.onDark}"
13462
+ aria-hidden="true"
13466
13463
  ?hidden=${!this.showPassword}
13467
13464
  category="interface"
13468
13465
  name="hide-password-stroke">
13469
13466
  </${this.iconTag}>
13470
13467
  <${this.iconTag}
13471
13468
  ?customColor="${this.onDark}"
13469
+ aria-hidden="true"
13472
13470
  ?hidden=${this.showPassword}
13473
13471
  category="interface"
13474
13472
  name="view-password-stroke">
@@ -15590,8 +15588,9 @@ class AuroBibtemplate extends i$2 {
15590
15588
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
15591
15589
  <slot name="header"></slot>
15592
15590
  </${this.headerTag}>
15593
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15594
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
15591
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15592
+ <span><slot name="ariaLabel.close">Close</slot></span>
15593
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
15595
15594
  </${this.buttonTag}>
15596
15595
  </div>
15597
15596
  <span class="subheader">
@@ -15927,6 +15926,8 @@ class AuroHelpText extends i$2 {
15927
15926
  /**
15928
15927
  * @slot - Default slot for the menu content.
15929
15928
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
15929
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
15930
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
15930
15931
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
15931
15932
  * @slot label - Defines the content of the label.
15932
15933
  * @slot helpText - Defines the content of the helpText.
@@ -16746,9 +16747,7 @@ class AuroCombobox extends AuroElement$1 {
16746
16747
  if (this.dropdown.isBibFullscreen) {
16747
16748
 
16748
16749
  // when focus is on the input, move focus back to close button with Tab key
16749
- if (document.activeElement.shadowRoot.activeElement === this.inputInBib &&
16750
- this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
16751
- !evt.shiftKey) {
16750
+ if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
16752
16751
  evt.preventDefault();
16753
16752
  this.dropdown.focus();
16754
16753
  }
@@ -16927,13 +16926,13 @@ class AuroCombobox extends AuroElement$1 {
16927
16926
 
16928
16927
  this.handleMenuOptions();
16929
16928
  break;
16929
+
16930
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
16931
+ // It's because the bib is/will be separated from dropdown to body.
16930
16932
  case 'label':
16931
- // Programmatically inject as the slot cannot be carried over to bibtemplate.
16932
- // It's because the bib is/will be separated from dropdown to body.
16933
- this.transportAssignedNodes(event.target, this.inputInBib, "label");
16934
- break;
16933
+ case 'ariaLabel.input.clear':
16935
16934
  case 'optionalLabel':
16936
- this.transportAssignedNodes(event.target, this.inputInBib, "optionalLabel");
16935
+ this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
16937
16936
  break;
16938
16937
  case 'bib.fullscreen.headline':
16939
16938
  this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
@@ -17004,6 +17003,7 @@ class AuroCombobox extends AuroElement$1 {
17004
17003
  shape="${this.shape}"
17005
17004
  size="${this.size}"
17006
17005
  slot="trigger">
17006
+ <slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
17007
17007
  <slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
17008
17008
  <slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
17009
17009
  <slot name="displayValue" slot="displayValue"></slot>
@@ -17011,6 +17011,7 @@ class AuroCombobox extends AuroElement$1 {
17011
17011
 
17012
17012
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
17013
17013
  <slot name="bib.fullscreen.headline" slot="header"></slot>
17014
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
17014
17015
  <slot></slot>
17015
17016
  <${this.inputTag}
17016
17017
  id="inputInBib"
@@ -84,6 +84,8 @@ This configuration enables proper module resolution for the component's TypeScri
84
84
 
85
85
  ```html
86
86
  <auro-combobox>
87
+ <span slot="ariaLabel.bib.close">Close combobox</span>
88
+ <span slot="ariaLabel.input.clear">Clear All</span>
87
89
  <span slot="bib.fullscreen.headline">Bib Header</span>
88
90
  <span slot="label">Name</span>
89
91
  <auro-menu>
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * @slot - Default slot for the menu content.
3
3
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
4
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
5
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
4
6
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
5
7
  * @slot label - Defines the content of the label.
6
8
  * @slot helpText - Defines the content of the helpText.
@@ -2812,12 +2812,6 @@ class AuroFloatingUI {
2812
2812
  }
2813
2813
 
2814
2814
  setupHideHandlers() {
2815
- this.preventFocusLoseOnBibClick = (event) => {
2816
- event.preventDefault();
2817
- event.stopPropagation();
2818
- };
2819
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
2820
-
2821
2815
  // Define handlers & store references
2822
2816
  this.focusHandler = () => this.handleFocusLoss();
2823
2817
 
@@ -2867,11 +2861,6 @@ class AuroFloatingUI {
2867
2861
  cleanupHideHandlers() {
2868
2862
  // Remove event listeners if they exist
2869
2863
 
2870
- if (this.preventFocusLoseOnBibClick) {
2871
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
2872
- delete this.preventFocusLoseOnBibClick;
2873
- }
2874
-
2875
2864
  if (this.focusHandler) {
2876
2865
  document.removeEventListener('focusin', this.focusHandler);
2877
2866
  this.focusHandler = null;
@@ -4371,6 +4360,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
4371
4360
  * @slot trigger - Defines the content of the trigger.
4372
4361
  * @csspart trigger - The trigger content container.
4373
4362
  * @csspart chevron - The collapsed/expanded state icon container.
4363
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4374
4364
  * @csspart helpText - The helpText content container.
4375
4365
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4376
4366
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -10207,6 +10197,9 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
10207
10197
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10208
10198
  * @attr id
10209
10199
  *
10200
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
10201
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
10202
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10210
10203
  * @slot helpText - Sets the help text displayed below the input.
10211
10204
  * @slot label - Sets the label text for the input.
10212
10205
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -10634,8 +10627,7 @@ class BaseInput extends AuroElement$2$1 {
10634
10627
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
10635
10628
  */
10636
10629
  value: {
10637
- type: String,
10638
- reflect: true
10630
+ type: String
10639
10631
  },
10640
10632
 
10641
10633
  /**
@@ -13347,12 +13339,13 @@ class AuroInput extends BaseInput {
13347
13339
  <${this.buttonTag}
13348
13340
  @click="${this.handleClickClear}"
13349
13341
  ?onDark="${this.onDark}"
13350
- aria-label="${i18n(this.lang, 'clearInput')}"
13351
13342
  class="notificationBtn clearBtn"
13352
13343
  shape="circle"
13353
13344
  size="sm"
13354
13345
  variant="ghost">
13346
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
13355
13347
  <${this.iconTag}
13348
+ aria-hidden="true"
13356
13349
  ?customColor="${this.onDark}"
13357
13350
  category="interface"
13358
13351
  name="x-lg"
@@ -13375,18 +13368,23 @@ class AuroInput extends BaseInput {
13375
13368
  @click="${this.handleClickShowPassword}"
13376
13369
  ?onDark="${this.onDark}"
13377
13370
  class="notificationBtn passwordBtn"
13378
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
13379
13371
  shape="circle"
13380
13372
  size="sm"
13381
13373
  variant="ghost">
13374
+ <span>
13375
+ ${this.showPassword ? html`<slot name="ariaLabel.password.hide">Hide Password</slot>`
13376
+ : html`<slot name="ariaLabel.password.show">Show Password</slot>`}
13377
+ </span>
13382
13378
  <${this.iconTag}
13383
13379
  ?customColor="${this.onDark}"
13380
+ aria-hidden="true"
13384
13381
  ?hidden=${!this.showPassword}
13385
13382
  category="interface"
13386
13383
  name="hide-password-stroke">
13387
13384
  </${this.iconTag}>
13388
13385
  <${this.iconTag}
13389
13386
  ?customColor="${this.onDark}"
13387
+ aria-hidden="true"
13390
13388
  ?hidden=${this.showPassword}
13391
13389
  category="interface"
13392
13390
  name="view-password-stroke">
@@ -15508,8 +15506,9 @@ class AuroBibtemplate extends LitElement {
15508
15506
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
15509
15507
  <slot name="header"></slot>
15510
15508
  </${this.headerTag}>
15511
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15512
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
15509
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15510
+ <span><slot name="ariaLabel.close">Close</slot></span>
15511
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
15513
15512
  </${this.buttonTag}>
15514
15513
  </div>
15515
15514
  <span class="subheader">
@@ -15845,6 +15844,8 @@ class AuroHelpText extends LitElement {
15845
15844
  /**
15846
15845
  * @slot - Default slot for the menu content.
15847
15846
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
15847
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
15848
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
15848
15849
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
15849
15850
  * @slot label - Defines the content of the label.
15850
15851
  * @slot helpText - Defines the content of the helpText.
@@ -16664,9 +16665,7 @@ class AuroCombobox extends AuroElement {
16664
16665
  if (this.dropdown.isBibFullscreen) {
16665
16666
 
16666
16667
  // when focus is on the input, move focus back to close button with Tab key
16667
- if (document.activeElement.shadowRoot.activeElement === this.inputInBib &&
16668
- this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
16669
- !evt.shiftKey) {
16668
+ if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
16670
16669
  evt.preventDefault();
16671
16670
  this.dropdown.focus();
16672
16671
  }
@@ -16845,13 +16844,13 @@ class AuroCombobox extends AuroElement {
16845
16844
 
16846
16845
  this.handleMenuOptions();
16847
16846
  break;
16847
+
16848
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
16849
+ // It's because the bib is/will be separated from dropdown to body.
16848
16850
  case 'label':
16849
- // Programmatically inject as the slot cannot be carried over to bibtemplate.
16850
- // It's because the bib is/will be separated from dropdown to body.
16851
- this.transportAssignedNodes(event.target, this.inputInBib, "label");
16852
- break;
16851
+ case 'ariaLabel.input.clear':
16853
16852
  case 'optionalLabel':
16854
- this.transportAssignedNodes(event.target, this.inputInBib, "optionalLabel");
16853
+ this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
16855
16854
  break;
16856
16855
  case 'bib.fullscreen.headline':
16857
16856
  this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
@@ -16922,6 +16921,7 @@ class AuroCombobox extends AuroElement {
16922
16921
  shape="${this.shape}"
16923
16922
  size="${this.size}"
16924
16923
  slot="trigger">
16924
+ <slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
16925
16925
  <slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
16926
16926
  <slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
16927
16927
  <slot name="displayValue" slot="displayValue"></slot>
@@ -16929,6 +16929,7 @@ class AuroCombobox extends AuroElement {
16929
16929
 
16930
16930
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
16931
16931
  <slot name="bib.fullscreen.headline" slot="header"></slot>
16932
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
16932
16933
  <slot></slot>
16933
16934
  <${this.inputTag}
16934
16935
  id="inputInBib"