@aurodesignsystem-dev/auro-formkit 0.0.0-pr1475.1 → 0.0.0-pr1475.3

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 (49) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +20 -8
  7. package/components/combobox/demo/getting-started.min.js +20 -8
  8. package/components/combobox/demo/index.min.js +20 -8
  9. package/components/combobox/dist/index.js +20 -8
  10. package/components/combobox/dist/registered.js +20 -8
  11. package/components/counter/demo/customize.min.js +19 -7
  12. package/components/counter/demo/index.min.js +19 -7
  13. package/components/counter/dist/index.js +1 -1
  14. package/components/counter/dist/registered.js +1 -1
  15. package/components/datepicker/demo/accessibility.md +1 -1
  16. package/components/datepicker/demo/customize.min.js +153 -44
  17. package/components/datepicker/demo/index.md +2 -2
  18. package/components/datepicker/demo/index.min.js +159 -46
  19. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  20. package/components/datepicker/dist/index.js +153 -42
  21. package/components/datepicker/dist/registered.js +153 -42
  22. package/components/datepicker/dist/src/auro-calendar-cell.d.ts +9 -0
  23. package/components/dropdown/demo/customize.min.js +18 -6
  24. package/components/dropdown/demo/getting-started.min.js +18 -6
  25. package/components/dropdown/demo/index.min.js +18 -6
  26. package/components/dropdown/dist/auro-dropdown.d.ts +2 -1
  27. package/components/dropdown/dist/index.js +18 -6
  28. package/components/dropdown/dist/registered.js +18 -6
  29. package/components/form/demo/customize.min.js +214 -67
  30. package/components/form/demo/getting-started.min.js +214 -67
  31. package/components/form/demo/index.min.js +214 -67
  32. package/components/form/demo/registerDemoDeps.min.js +214 -67
  33. package/components/input/demo/customize.min.js +1 -1
  34. package/components/input/demo/getting-started.min.js +1 -1
  35. package/components/input/demo/index.min.js +1 -1
  36. package/components/input/dist/index.js +1 -1
  37. package/components/input/dist/registered.js +1 -1
  38. package/components/radio/demo/customize.min.js +1 -1
  39. package/components/radio/demo/getting-started.min.js +1 -1
  40. package/components/radio/demo/index.min.js +1 -1
  41. package/components/radio/dist/index.js +1 -1
  42. package/components/radio/dist/registered.js +1 -1
  43. package/components/select/demo/customize.min.js +19 -7
  44. package/components/select/demo/getting-started.min.js +19 -7
  45. package/components/select/demo/index.min.js +19 -7
  46. package/components/select/dist/index.js +19 -7
  47. package/components/select/dist/registered.js +19 -7
  48. package/custom-elements.json +3949 -3938
  49. package/package.json +1 -1
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202605182202';
3877
+ var formkitVersion = '202605182353';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -4795,6 +4795,14 @@ class AuroDropdown extends AuroElement {
4795
4795
  }
4796
4796
  };
4797
4797
  this.addEventListener('keydown', this._bibTabHandler);
4798
+
4799
+ // Move initial focus into the bib content, matching FocusTrap behavior
4800
+ requestAnimationFrame(() => {
4801
+ const focusables = getFocusableElements(this.bibContent);
4802
+ if (focusables.length) {
4803
+ focusables[0].focus();
4804
+ }
4805
+ });
4798
4806
  } else {
4799
4807
  // Normal desktop: use FocusTrap on the bib element
4800
4808
  this.focusTrap = new FocusTrap(this.bibContent);
@@ -4826,7 +4834,8 @@ class AuroDropdown extends AuroElement {
4826
4834
  * Sets `inert` on sibling elements of the dropdown's top-level host
4827
4835
  * so that content outside the dropdown is not interactive while the modal is open.
4828
4836
  * Walks up through shadow DOM boundaries to find the outermost host element
4829
- * in the light DOM, then sets `inert` on that element's siblings.
4837
+ * in the light DOM, then sets `inert` on siblings at each ancestor level
4838
+ * to ensure all page content outside the host subtree is inert.
4830
4839
  * @private
4831
4840
  */
4832
4841
  _setPageInert() {
@@ -4845,15 +4854,18 @@ class AuroDropdown extends AuroElement {
4845
4854
  host = host.getRootNode().host;
4846
4855
  }
4847
4856
 
4848
- const parent = host.parentElement;
4849
-
4850
- if (parent) {
4857
+ // Walk up the ancestor chain, inerting siblings at each level
4858
+ // to ensure the entire page outside the host subtree is inert.
4859
+ let current = host;
4860
+ while (current.parentElement) {
4861
+ const parent = current.parentElement;
4851
4862
  for (const sibling of parent.children) {
4852
- if (sibling !== host && !sibling.inert) {
4863
+ if (sibling !== current && !sibling.inert) {
4853
4864
  sibling.inert = true;
4854
4865
  this._inertSiblings.push(sibling);
4855
4866
  }
4856
4867
  }
4868
+ current = parent;
4857
4869
  }
4858
4870
  }
4859
4871
 
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202605182202';
3877
+ var formkitVersion = '202605182353';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -4795,6 +4795,14 @@ class AuroDropdown extends AuroElement {
4795
4795
  }
4796
4796
  };
4797
4797
  this.addEventListener('keydown', this._bibTabHandler);
4798
+
4799
+ // Move initial focus into the bib content, matching FocusTrap behavior
4800
+ requestAnimationFrame(() => {
4801
+ const focusables = getFocusableElements(this.bibContent);
4802
+ if (focusables.length) {
4803
+ focusables[0].focus();
4804
+ }
4805
+ });
4798
4806
  } else {
4799
4807
  // Normal desktop: use FocusTrap on the bib element
4800
4808
  this.focusTrap = new FocusTrap(this.bibContent);
@@ -4826,7 +4834,8 @@ class AuroDropdown extends AuroElement {
4826
4834
  * Sets `inert` on sibling elements of the dropdown's top-level host
4827
4835
  * so that content outside the dropdown is not interactive while the modal is open.
4828
4836
  * Walks up through shadow DOM boundaries to find the outermost host element
4829
- * in the light DOM, then sets `inert` on that element's siblings.
4837
+ * in the light DOM, then sets `inert` on siblings at each ancestor level
4838
+ * to ensure all page content outside the host subtree is inert.
4830
4839
  * @private
4831
4840
  */
4832
4841
  _setPageInert() {
@@ -4845,15 +4854,18 @@ class AuroDropdown extends AuroElement {
4845
4854
  host = host.getRootNode().host;
4846
4855
  }
4847
4856
 
4848
- const parent = host.parentElement;
4849
-
4850
- if (parent) {
4857
+ // Walk up the ancestor chain, inerting siblings at each level
4858
+ // to ensure the entire page outside the host subtree is inert.
4859
+ let current = host;
4860
+ while (current.parentElement) {
4861
+ const parent = current.parentElement;
4851
4862
  for (const sibling of parent.children) {
4852
- if (sibling !== host && !sibling.inert) {
4863
+ if (sibling !== current && !sibling.inert) {
4853
4864
  sibling.inert = true;
4854
4865
  this._inertSiblings.push(sibling);
4855
4866
  }
4856
4867
  }
4868
+ current = parent;
4857
4869
  }
4858
4870
  }
4859
4871