@aurodesignsystem-dev/auro-formkit 0.0.0-pr1498.0 → 0.0.0-pr1499.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 (62) hide show
  1. package/components/checkbox/demo/customize.min.js +2 -2
  2. package/components/checkbox/demo/getting-started.min.js +2 -2
  3. package/components/checkbox/demo/index.min.js +2 -2
  4. package/components/checkbox/dist/index.js +2 -2
  5. package/components/checkbox/dist/registered.js +2 -2
  6. package/components/combobox/demo/customize.md +3 -7
  7. package/components/combobox/demo/customize.min.js +1705 -1459
  8. package/components/combobox/demo/getting-started.min.js +1705 -1459
  9. package/components/combobox/demo/index.min.js +1705 -1459
  10. package/components/combobox/dist/auro-combobox.d.ts +0 -5
  11. package/components/combobox/dist/index.js +162 -491
  12. package/components/combobox/dist/registered.js +162 -491
  13. package/components/counter/demo/customize.min.js +19 -18
  14. package/components/counter/demo/index.min.js +19 -18
  15. package/components/counter/dist/index.js +187 -5442
  16. package/components/counter/dist/registered.js +187 -5442
  17. package/components/datepicker/demo/customize.md +477 -384
  18. package/components/datepicker/demo/customize.min.js +96 -161
  19. package/components/datepicker/demo/index.md +0 -1
  20. package/components/datepicker/demo/index.min.js +96 -161
  21. package/components/datepicker/dist/index.js +96 -161
  22. package/components/datepicker/dist/registered.js +96 -161
  23. package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -2
  24. package/components/dropdown/demo/customize.min.js +17 -16
  25. package/components/dropdown/demo/getting-started.min.js +17 -16
  26. package/components/dropdown/demo/index.min.js +17 -16
  27. package/components/dropdown/dist/auro-dropdown.d.ts +2 -1
  28. package/components/dropdown/dist/index.js +17 -16
  29. package/components/dropdown/dist/registered.js +17 -16
  30. package/components/form/demo/customize.min.js +7965 -7884
  31. package/components/form/demo/getting-started.min.js +7965 -7884
  32. package/components/form/demo/index.min.js +7965 -7884
  33. package/components/form/demo/registerDemoDeps.min.js +7934 -7853
  34. package/components/input/demo/customize.md +539 -472
  35. package/components/input/demo/customize.min.js +61 -132
  36. package/components/input/demo/getting-started.min.js +61 -132
  37. package/components/input/demo/index.min.js +61 -132
  38. package/components/input/dist/base-input.d.ts +0 -16
  39. package/components/input/dist/index.js +61 -132
  40. package/components/input/dist/registered.js +61 -132
  41. package/components/menu/demo/api.md +45 -41
  42. package/components/menu/demo/customize.md +28 -0
  43. package/components/menu/demo/index.min.js +1358 -783
  44. package/components/menu/dist/auro-menu.context.d.ts +238 -0
  45. package/components/menu/dist/auro-menu.d.ts +110 -95
  46. package/components/menu/dist/auro-menuoption.d.ts +138 -32
  47. package/components/menu/dist/index.js +1312 -757
  48. package/components/menu/dist/registered.js +1312 -769
  49. package/components/radio/demo/customize.min.js +2 -2
  50. package/components/radio/demo/getting-started.min.js +2 -2
  51. package/components/radio/demo/index.min.js +2 -2
  52. package/components/radio/dist/index.js +2 -2
  53. package/components/radio/dist/registered.js +2 -2
  54. package/components/select/demo/customize.md +3 -7
  55. package/components/select/demo/customize.min.js +1634 -1089
  56. package/components/select/demo/getting-started.min.js +1634 -1089
  57. package/components/select/demo/index.min.js +1634 -1089
  58. package/components/select/dist/index.js +31 -61
  59. package/components/select/dist/registered.js +31 -61
  60. package/custom-elements.json +2085 -1439
  61. package/package.json +1 -1
  62. package/components/select/dist/selectUtils.d.ts +0 -12
@@ -3969,7 +3969,7 @@ class AuroHelpText extends i {
3969
3969
  }
3970
3970
  }
3971
3971
 
3972
- var formkitVersion = '202606100232';
3972
+ var formkitVersion = '202606101857';
3973
3973
 
3974
3974
  class AuroElement extends i {
3975
3975
  static get properties() {
@@ -4827,18 +4827,27 @@ class AuroDropdown extends AuroElement {
4827
4827
  this.focusTrap = undefined;
4828
4828
  }
4829
4829
 
4830
- // Restore any focus-loss suppression we installed for a prior trap state.
4831
- // The desktopModal trap moves focus into the bib via RAF, which would
4832
- // otherwise trip AuroFloatingUI.handleFocusLoss (a popover-top-layer
4833
- // timing issue makes its :focus-within guard miss the focused button).
4834
- if (this._priorNoHideOnFocusLoss !== undefined) {
4835
- this.noHideOnThisFocusLoss = this._priorNoHideOnFocusLoss;
4836
- this._priorNoHideOnFocusLoss = undefined;
4830
+ // Restore the user-set noHideOnThisFocusLoss value, if we overrode it.
4831
+ if (this._noHideOverridden) {
4832
+ this.noHideOnThisFocusLoss = this._priorNoHide;
4833
+ this._noHideOverridden = false;
4834
+ this._priorNoHide = undefined;
4837
4835
  }
4838
4836
 
4839
4837
  if (this.isPopoverVisible) {
4840
4838
  if (!this.isBibFullscreen) {
4841
4839
  if (this.desktopModal) {
4840
+ // The floater's focus-loss check uses :focus-within, which does not
4841
+ // match the host when focus is on a slotted element projected through
4842
+ // multiple shadow roots. Without this override, focusing a button
4843
+ // inside the bib would be misread as focus leaving the dropdown and
4844
+ // close the bib immediately. desktopModal traps focus inside the
4845
+ // bib and inerts siblings, so suppressing focus-loss dismissal here
4846
+ // is safe — Escape and outside-click still close the bib.
4847
+ this._priorNoHide = this.noHideOnThisFocusLoss;
4848
+ this._noHideOverridden = true;
4849
+ this.noHideOnThisFocusLoss = true;
4850
+
4842
4851
  // Desktop modal: trap focus only within the bib content.
4843
4852
  // Can't use FocusTrap on the bib element because keydown events
4844
4853
  // from slotted content bubble through the dropdown host (light DOM),
@@ -4911,14 +4920,6 @@ class AuroDropdown extends AuroElement {
4911
4920
  };
4912
4921
  this.addEventListener('keydown', this._bibTabHandler);
4913
4922
 
4914
- // Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
4915
- // desktopModal trap owns focus management. Without this, the very
4916
- // first focus move into the bib (from the RAF below) triggers
4917
- // handleFocusLoss → hideBib, tearing down the trap before the
4918
- // user can press Tab.
4919
- this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
4920
- this.noHideOnThisFocusLoss = true;
4921
-
4922
4923
  // Move initial focus into the bib content, matching FocusTrap behavior
4923
4924
  requestAnimationFrame(() => {
4924
4925
  const focusables = getFocusableElements(this.bibContent);
@@ -410,7 +410,8 @@ export class AuroDropdown extends AuroElement {
410
410
  * @private
411
411
  */
412
412
  private updateFocusTrap;
413
- _priorNoHideOnFocusLoss: any;
413
+ _noHideOverridden: boolean | undefined;
414
+ _priorNoHide: any;
414
415
  /**
415
416
  * Returns the chain of active (focused) elements through shadow roots.
416
417
  * @private
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202606100232';
3877
+ var formkitVersion = '202606101857';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -4732,18 +4732,27 @@ class AuroDropdown extends AuroElement {
4732
4732
  this.focusTrap = undefined;
4733
4733
  }
4734
4734
 
4735
- // Restore any focus-loss suppression we installed for a prior trap state.
4736
- // The desktopModal trap moves focus into the bib via RAF, which would
4737
- // otherwise trip AuroFloatingUI.handleFocusLoss (a popover-top-layer
4738
- // timing issue makes its :focus-within guard miss the focused button).
4739
- if (this._priorNoHideOnFocusLoss !== undefined) {
4740
- this.noHideOnThisFocusLoss = this._priorNoHideOnFocusLoss;
4741
- this._priorNoHideOnFocusLoss = undefined;
4735
+ // Restore the user-set noHideOnThisFocusLoss value, if we overrode it.
4736
+ if (this._noHideOverridden) {
4737
+ this.noHideOnThisFocusLoss = this._priorNoHide;
4738
+ this._noHideOverridden = false;
4739
+ this._priorNoHide = undefined;
4742
4740
  }
4743
4741
 
4744
4742
  if (this.isPopoverVisible) {
4745
4743
  if (!this.isBibFullscreen) {
4746
4744
  if (this.desktopModal) {
4745
+ // The floater's focus-loss check uses :focus-within, which does not
4746
+ // match the host when focus is on a slotted element projected through
4747
+ // multiple shadow roots. Without this override, focusing a button
4748
+ // inside the bib would be misread as focus leaving the dropdown and
4749
+ // close the bib immediately. desktopModal traps focus inside the
4750
+ // bib and inerts siblings, so suppressing focus-loss dismissal here
4751
+ // is safe — Escape and outside-click still close the bib.
4752
+ this._priorNoHide = this.noHideOnThisFocusLoss;
4753
+ this._noHideOverridden = true;
4754
+ this.noHideOnThisFocusLoss = true;
4755
+
4747
4756
  // Desktop modal: trap focus only within the bib content.
4748
4757
  // Can't use FocusTrap on the bib element because keydown events
4749
4758
  // from slotted content bubble through the dropdown host (light DOM),
@@ -4816,14 +4825,6 @@ class AuroDropdown extends AuroElement {
4816
4825
  };
4817
4826
  this.addEventListener('keydown', this._bibTabHandler);
4818
4827
 
4819
- // Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
4820
- // desktopModal trap owns focus management. Without this, the very
4821
- // first focus move into the bib (from the RAF below) triggers
4822
- // handleFocusLoss → hideBib, tearing down the trap before the
4823
- // user can press Tab.
4824
- this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
4825
- this.noHideOnThisFocusLoss = true;
4826
-
4827
4828
  // Move initial focus into the bib content, matching FocusTrap behavior
4828
4829
  requestAnimationFrame(() => {
4829
4830
  const focusables = getFocusableElements(this.bibContent);
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202606100232';
3877
+ var formkitVersion = '202606101857';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -4732,18 +4732,27 @@ class AuroDropdown extends AuroElement {
4732
4732
  this.focusTrap = undefined;
4733
4733
  }
4734
4734
 
4735
- // Restore any focus-loss suppression we installed for a prior trap state.
4736
- // The desktopModal trap moves focus into the bib via RAF, which would
4737
- // otherwise trip AuroFloatingUI.handleFocusLoss (a popover-top-layer
4738
- // timing issue makes its :focus-within guard miss the focused button).
4739
- if (this._priorNoHideOnFocusLoss !== undefined) {
4740
- this.noHideOnThisFocusLoss = this._priorNoHideOnFocusLoss;
4741
- this._priorNoHideOnFocusLoss = undefined;
4735
+ // Restore the user-set noHideOnThisFocusLoss value, if we overrode it.
4736
+ if (this._noHideOverridden) {
4737
+ this.noHideOnThisFocusLoss = this._priorNoHide;
4738
+ this._noHideOverridden = false;
4739
+ this._priorNoHide = undefined;
4742
4740
  }
4743
4741
 
4744
4742
  if (this.isPopoverVisible) {
4745
4743
  if (!this.isBibFullscreen) {
4746
4744
  if (this.desktopModal) {
4745
+ // The floater's focus-loss check uses :focus-within, which does not
4746
+ // match the host when focus is on a slotted element projected through
4747
+ // multiple shadow roots. Without this override, focusing a button
4748
+ // inside the bib would be misread as focus leaving the dropdown and
4749
+ // close the bib immediately. desktopModal traps focus inside the
4750
+ // bib and inerts siblings, so suppressing focus-loss dismissal here
4751
+ // is safe — Escape and outside-click still close the bib.
4752
+ this._priorNoHide = this.noHideOnThisFocusLoss;
4753
+ this._noHideOverridden = true;
4754
+ this.noHideOnThisFocusLoss = true;
4755
+
4747
4756
  // Desktop modal: trap focus only within the bib content.
4748
4757
  // Can't use FocusTrap on the bib element because keydown events
4749
4758
  // from slotted content bubble through the dropdown host (light DOM),
@@ -4816,14 +4825,6 @@ class AuroDropdown extends AuroElement {
4816
4825
  };
4817
4826
  this.addEventListener('keydown', this._bibTabHandler);
4818
4827
 
4819
- // Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
4820
- // desktopModal trap owns focus management. Without this, the very
4821
- // first focus move into the bib (from the RAF below) triggers
4822
- // handleFocusLoss → hideBib, tearing down the trap before the
4823
- // user can press Tab.
4824
- this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
4825
- this.noHideOnThisFocusLoss = true;
4826
-
4827
4828
  // Move initial focus into the bib content, matching FocusTrap behavior
4828
4829
  requestAnimationFrame(() => {
4829
4830
  const focusables = getFocusableElements(this.bibContent);