@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.16 → 0.0.0-pr624.18

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 (32) hide show
  1. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +61 -10
  3. package/components/bibtemplate/dist/registered.js +61 -10
  4. package/components/combobox/demo/api.min.js +134 -20
  5. package/components/combobox/demo/index.min.js +134 -20
  6. package/components/combobox/dist/index.js +122 -20
  7. package/components/combobox/dist/registered.js +122 -20
  8. package/components/counter/demo/api.min.js +478 -93
  9. package/components/counter/demo/index.min.js +478 -93
  10. package/components/counter/dist/auro-counter-group.d.ts +16 -8
  11. package/components/counter/dist/auro-counter.d.ts +6 -0
  12. package/components/counter/dist/index.js +478 -93
  13. package/components/counter/dist/registered.js +478 -93
  14. package/components/datepicker/demo/api.min.js +181 -28
  15. package/components/datepicker/demo/index.min.js +181 -28
  16. package/components/datepicker/dist/index.js +181 -28
  17. package/components/datepicker/dist/registered.js +181 -28
  18. package/components/input/demo/api.min.js +60 -9
  19. package/components/input/demo/index.min.js +60 -9
  20. package/components/input/dist/index.js +60 -9
  21. package/components/input/dist/registered.js +60 -9
  22. package/components/menu/demo/api.min.js +12 -0
  23. package/components/menu/demo/index.min.js +12 -0
  24. package/components/menu/dist/auro-menu.d.ts +6 -0
  25. package/components/menu/dist/index.js +12 -0
  26. package/components/menu/dist/registered.js +12 -0
  27. package/components/select/demo/api.min.js +94 -17
  28. package/components/select/demo/index.min.js +94 -17
  29. package/components/select/dist/auro-select.d.ts +7 -0
  30. package/components/select/dist/index.js +82 -17
  31. package/components/select/dist/registered.js +82 -17
  32. package/package.json +3 -3
@@ -175,6 +175,12 @@ export class AuroCounterGroup extends LitElement {
175
175
  * @private
176
176
  */
177
177
  private validation;
178
+ /**
179
+ * Performs state updates that should happen when the dropdown is toggled.
180
+ * @returns {void}
181
+ * @private
182
+ */
183
+ private handleDropdownToggle;
178
184
  /**
179
185
  * Dynamically generated dropdown tag.
180
186
  * @private
@@ -193,13 +199,6 @@ export class AuroCounterGroup extends LitElement {
193
199
  * @type {string}
194
200
  */
195
201
  private helpTextTag;
196
- /**
197
- * Traps keyboard tab interactions within dropdown when open.
198
- * @private
199
- * @param {KeyboardEvent} event - The keyboard event.
200
- * @param {NodeList} counters - The list of counter elements.
201
- */
202
- private trapKeyboard;
203
202
  /**
204
203
  * Dynamically disables increment/decrement buttons on a counter based on group value.
205
204
  * This method checks the total aggregated value against the group's min and max properties.
@@ -216,6 +215,16 @@ export class AuroCounterGroup extends LitElement {
216
215
  * @private
217
216
  */
218
217
  private configureCounters;
218
+ /**
219
+ * Updates the focus trap based on whether the dropdown is open or closed.
220
+ * If the dropdown is open, it creates a new focus trap and focuses the first element
221
+ * If the dropdown is closed, it disconnects the focus trap if it exists to prevent memory leaks and disable focus trapping.
222
+ * @param {boolean} dropdownIsOpen - Indicates whether the dropdown is currently open.
223
+ * @returns {void}
224
+ * @private
225
+ */
226
+ private updateFocusTrap;
227
+ dropdownFocusTrap: any;
219
228
  /**
220
229
  * Configures the dropdown counters by selecting all `auro-counter` elements,
221
230
  * appending them to the `auro-counter-wrapper` element within the shadow DOM,
@@ -223,7 +232,6 @@ export class AuroCounterGroup extends LitElement {
223
232
  * @private
224
233
  */
225
234
  private configureDropdownCounters;
226
- keydownHandler: (keydownEvent: any) => void;
227
235
  /**
228
236
  * This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
229
237
  * @private
@@ -83,6 +83,12 @@ export class AuroCounter extends LitElement {
83
83
  */
84
84
  private handleKeyDown;
85
85
  firstUpdated(): void;
86
+ /**
87
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
88
+ * @param {string} tagName - The tag name to set as an attribute.
89
+ * @private
90
+ */
91
+ private setTagAttribute;
86
92
  /**
87
93
  * Handles the change event for the default slot.
88
94
  * Updates the defaultSlot property with the trimmed text content of the first assigned node.