@aurodesignsystem-dev/auro-formkit 0.0.0-pr1498.0 → 0.0.0-pr1499.1

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 +1703 -1461
  8. package/components/combobox/demo/getting-started.min.js +1703 -1461
  9. package/components/combobox/demo/index.min.js +1703 -1461
  10. package/components/combobox/dist/auro-combobox.d.ts +0 -5
  11. package/components/combobox/dist/index.js +162 -495
  12. package/components/combobox/dist/registered.js +162 -495
  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 +160 -5811
  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 +99 -171
  19. package/components/datepicker/demo/index.md +0 -1
  20. package/components/datepicker/demo/index.min.js +99 -171
  21. package/components/datepicker/dist/index.js +99 -171
  22. package/components/datepicker/dist/registered.js +99 -171
  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 +8494 -8428
  31. package/components/form/demo/getting-started.min.js +8494 -8428
  32. package/components/form/demo/index.min.js +8494 -8428
  33. package/components/form/demo/registerDemoDeps.min.js +8518 -8452
  34. package/components/input/demo/customize.md +539 -472
  35. package/components/input/demo/customize.min.js +61 -136
  36. package/components/input/demo/getting-started.min.js +61 -136
  37. package/components/input/demo/index.min.js +61 -136
  38. package/components/input/dist/base-input.d.ts +0 -16
  39. package/components/input/dist/index.js +61 -136
  40. package/components/input/dist/registered.js +61 -136
  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 +1024 -378
  61. package/package.json +1 -1
  62. package/components/select/dist/selectUtils.d.ts +0 -12
@@ -3942,7 +3942,7 @@ class AuroHelpText extends i {
3942
3942
  }
3943
3943
  }
3944
3944
 
3945
- var formkitVersion = '202606100232';
3945
+ var formkitVersion = '202606101934';
3946
3946
 
3947
3947
  class AuroElement extends i {
3948
3948
  static get properties() {
@@ -4800,18 +4800,27 @@ class AuroDropdown extends AuroElement {
4800
4800
  this.focusTrap = undefined;
4801
4801
  }
4802
4802
 
4803
- // Restore any focus-loss suppression we installed for a prior trap state.
4804
- // The desktopModal trap moves focus into the bib via RAF, which would
4805
- // otherwise trip AuroFloatingUI.handleFocusLoss (a popover-top-layer
4806
- // timing issue makes its :focus-within guard miss the focused button).
4807
- if (this._priorNoHideOnFocusLoss !== undefined) {
4808
- this.noHideOnThisFocusLoss = this._priorNoHideOnFocusLoss;
4809
- this._priorNoHideOnFocusLoss = undefined;
4803
+ // Restore the user-set noHideOnThisFocusLoss value, if we overrode it.
4804
+ if (this._noHideOverridden) {
4805
+ this.noHideOnThisFocusLoss = this._priorNoHide;
4806
+ this._noHideOverridden = false;
4807
+ this._priorNoHide = undefined;
4810
4808
  }
4811
4809
 
4812
4810
  if (this.isPopoverVisible) {
4813
4811
  if (!this.isBibFullscreen) {
4814
4812
  if (this.desktopModal) {
4813
+ // The floater's focus-loss check uses :focus-within, which does not
4814
+ // match the host when focus is on a slotted element projected through
4815
+ // multiple shadow roots. Without this override, focusing a button
4816
+ // inside the bib would be misread as focus leaving the dropdown and
4817
+ // close the bib immediately. desktopModal traps focus inside the
4818
+ // bib and inerts siblings, so suppressing focus-loss dismissal here
4819
+ // is safe — Escape and outside-click still close the bib.
4820
+ this._priorNoHide = this.noHideOnThisFocusLoss;
4821
+ this._noHideOverridden = true;
4822
+ this.noHideOnThisFocusLoss = true;
4823
+
4815
4824
  // Desktop modal: trap focus only within the bib content.
4816
4825
  // Can't use FocusTrap on the bib element because keydown events
4817
4826
  // from slotted content bubble through the dropdown host (light DOM),
@@ -4884,14 +4893,6 @@ class AuroDropdown extends AuroElement {
4884
4893
  };
4885
4894
  this.addEventListener('keydown', this._bibTabHandler);
4886
4895
 
4887
- // Suppress AuroFloatingUI's auto-hide-on-focus-loss while the
4888
- // desktopModal trap owns focus management. Without this, the very
4889
- // first focus move into the bib (from the RAF below) triggers
4890
- // handleFocusLoss → hideBib, tearing down the trap before the
4891
- // user can press Tab.
4892
- this._priorNoHideOnFocusLoss = this.noHideOnThisFocusLoss;
4893
- this.noHideOnThisFocusLoss = true;
4894
-
4895
4896
  // Move initial focus into the bib content, matching FocusTrap behavior
4896
4897
  requestAnimationFrame(() => {
4897
4898
  const focusables = getFocusableElements(this.bibContent);
@@ -3969,7 +3969,7 @@ class AuroHelpText extends i {
3969
3969
  }
3970
3970
  }
3971
3971
 
3972
- var formkitVersion = '202606100232';
3972
+ var formkitVersion = '202606101934';
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 = '202606101934';
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 = '202606101934';
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);