@aurodesignsystem-dev/auro-formkit 0.0.0-pr1346.2 → 0.0.0-pr1346.4

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 (40) hide show
  1. package/components/checkbox/demo/api.min.js +1 -1
  2. package/components/checkbox/demo/index.min.js +1 -1
  3. package/components/checkbox/dist/index.js +1 -1
  4. package/components/checkbox/dist/registered.js +1 -1
  5. package/components/combobox/demo/api.min.js +252 -65
  6. package/components/combobox/demo/index.min.js +252 -65
  7. package/components/combobox/dist/auro-combobox.d.ts +2 -1
  8. package/components/combobox/dist/index.js +245 -62
  9. package/components/combobox/dist/registered.js +245 -62
  10. package/components/counter/demo/api.min.js +124 -12
  11. package/components/counter/demo/index.min.js +124 -12
  12. package/components/counter/dist/index.js +124 -12
  13. package/components/counter/dist/registered.js +124 -12
  14. package/components/datepicker/demo/api.min.js +161 -40
  15. package/components/datepicker/demo/index.min.js +161 -40
  16. package/components/datepicker/dist/index.js +161 -40
  17. package/components/datepicker/dist/registered.js +161 -40
  18. package/components/dropdown/demo/api.min.js +122 -10
  19. package/components/dropdown/demo/index.min.js +122 -10
  20. package/components/dropdown/dist/auro-dropdownBib.d.ts +18 -2
  21. package/components/dropdown/dist/index.js +122 -10
  22. package/components/dropdown/dist/registered.js +122 -10
  23. package/components/input/demo/api.min.js +38 -29
  24. package/components/input/demo/index.min.js +38 -29
  25. package/components/input/dist/index.js +38 -29
  26. package/components/input/dist/registered.js +38 -29
  27. package/components/menu/demo/api.min.js +7 -3
  28. package/components/menu/demo/index.min.js +7 -3
  29. package/components/menu/dist/index.js +7 -3
  30. package/components/menu/dist/registered.js +7 -3
  31. package/components/radio/demo/api.min.js +1 -1
  32. package/components/radio/demo/index.min.js +1 -1
  33. package/components/radio/dist/index.js +1 -1
  34. package/components/radio/dist/registered.js +1 -1
  35. package/components/select/demo/api.min.js +159 -17
  36. package/components/select/demo/index.min.js +159 -17
  37. package/components/select/dist/index.js +152 -14
  38. package/components/select/dist/registered.js +152 -14
  39. package/custom-elements.json +35 -10
  40. package/package.json +1 -1
@@ -1392,7 +1392,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
1392
1392
  }
1393
1393
  };
1394
1394
 
1395
- var formkitVersion$1 = '202602201708';
1395
+ var formkitVersion$1 = '202602260152';
1396
1396
 
1397
1397
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1398
1398
  // See LICENSE in the project root for license information.
@@ -1777,7 +1777,7 @@ class AuroCounter extends LitElement {
1777
1777
  aria-valuemax="${this.max}"
1778
1778
  aria-valuemin="${this.min}"
1779
1779
  aria-valuenow="${this.value}"
1780
- aria-valuetext="${this.value !== undefined ? this.value : this.min}"
1780
+ aria-valuetext="'${this.value !== undefined ? this.value : this.min}'"
1781
1781
  role="spinbutton"
1782
1782
  tabindex="${this.disabled ? '-1' : '0'}"
1783
1783
  >
@@ -4628,7 +4628,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
4628
4628
 
4629
4629
  var iconVersion$1 = '9.1.2';
4630
4630
 
4631
- var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{max-width:none;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:absolute;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
4631
+ var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{max-width:none;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:absolute;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([isfullscreen]) .container::backdrop{background:var(--ds-color-background-primary, #fff)}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
4632
4632
 
4633
4633
  var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
4634
4634
 
@@ -4636,6 +4636,8 @@ var tokensCss$1 = css`:host(:not([ondark])),:host(:not([appearance=inverse])){--
4636
4636
 
4637
4637
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4638
4638
  // See LICENSE in the project root for license information.
4639
+ /* eslint-disable max-lines */
4640
+ // ---------------------------------------------------------------------
4639
4641
 
4640
4642
 
4641
4643
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
@@ -4811,22 +4813,63 @@ class AuroDropdownBib extends LitElement {
4811
4813
  // Handle ESC key via dialog's cancel event
4812
4814
  const dialog = this.shadowRoot.querySelector('dialog');
4813
4815
  dialog.addEventListener('cancel', (event) => {
4814
- event.preventDefault(); // Let parent handle closing
4816
+ // Let parent handle closing
4817
+ event.preventDefault();
4815
4818
  this.dispatchEvent(new CustomEvent('auro-bib-cancel', {
4816
4819
  bubbles: true,
4817
4820
  composed: true
4818
4821
  }));
4819
4822
  });
4820
4823
 
4821
- // Re-dispatch navigation keyboard events so they cross the shadow DOM
4822
- // boundary and reach the combobox/select key handlers.
4823
- // Only intercept keys used for menu navigation let all other keys
4824
- // (characters, Backspace, etc.) through so typing in inputs works.
4825
- const navKeys = new Set(['ArrowUp', 'ArrowDown', 'Enter', 'Escape']);
4824
+ // showModal() creates a closed focus scope keyboard events inside
4825
+ // the dialog's shadow DOM do NOT bubble out to the combobox/select
4826
+ // keydown handlers in the parent shadow DOM. This handler bridges
4827
+ // that gap by re-dispatching navigation keys so they cross the
4828
+ // shadow boundary and reach the menu navigation logic in the parent
4829
+ // component.
4830
+ //
4831
+ // The trade-off: intercepting these keys means native keyboard
4832
+ // behaviors that would normally "just work" must be manually
4833
+ // re-implemented here:
4834
+ //
4835
+ // - Enter on buttons: Custom elements (auro-button) don't get the
4836
+ // native Enter→click that <button> provides, so we call .click()
4837
+ // directly when Enter is pressed on a button-like element.
4838
+ //
4839
+ // - Tab: NOT intercepted — left to the browser's native focus trap
4840
+ // provided by showModal(), which cycles Tab between focusable
4841
+ // elements inside the dialog (e.g. the input and close button).
4842
+ // Intercepting Tab would kill the native focus trap and break
4843
+ // focus management inside the dialog.
4844
+ //
4845
+ // - Escape: The native <dialog> fires a `cancel` event on ESC
4846
+ // (handled above), so the re-dispatched Escape is a secondary
4847
+ // path for parent components that also listen for Escape keydown.
4848
+ const navKeys = new Set([
4849
+ 'ArrowUp',
4850
+ 'ArrowDown',
4851
+ 'Enter',
4852
+ 'Escape'
4853
+ ]);
4826
4854
  dialog.addEventListener('keydown', (event) => {
4827
4855
  if (!navKeys.has(event.key)) {
4828
4856
  return;
4829
4857
  }
4858
+
4859
+ // Custom elements (auro-button) don't get the native Enter→click
4860
+ // behavior that <button> has. Find the button in the composed path
4861
+ // and click it directly.
4862
+ if (event.key === 'Enter') {
4863
+ const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
4864
+ const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
4865
+ if (btn) {
4866
+ event.preventDefault();
4867
+ event.stopPropagation();
4868
+ btn.click();
4869
+ return;
4870
+ }
4871
+ }
4872
+
4830
4873
  event.preventDefault();
4831
4874
  event.stopPropagation();
4832
4875
  const newEvent = new KeyboardEvent('keydown', {
@@ -4850,9 +4893,55 @@ class AuroDropdownBib extends LitElement {
4850
4893
  }
4851
4894
 
4852
4895
  /**
4853
- * Opens the dialog using showModal() for accessibility.
4854
- * @param {boolean} modal - If true, uses showModal() (default). If false, uses show().
4896
+ * Blocks touch-driven page scroll while a fullscreen modal dialog is open.
4897
+ *
4898
+ * The showModal() function places the dialog in the browser's **top layer**,
4899
+ * which is a separate rendering layer above the normal DOM. On mobile, the
4900
+ * compositor processes visual-viewport panning before top-layer touch
4901
+ * handling. This means the entire viewport — including the top-layer dialog
4902
+ * — can be panned by a touch gesture, causing the page behind the dialog to
4903
+ * scroll into view. To prevent this, we add a touchmove listener that cancels
4904
+ * the event if the touch started outside the dialog or any scrollable child within it.
4905
+ *
4906
+ * @private
4855
4907
  */
4908
+ _lockTouchScroll() {
4909
+ const dialog = this.shadowRoot.querySelector('dialog');
4910
+
4911
+ this._touchMoveHandler = (event) => {
4912
+ // Walk the composed path (which crosses shadow DOM boundaries) to
4913
+ // check whether the touch started inside a scrollable element that
4914
+ // lives within the dialog. If so, allow the scroll.
4915
+ for (const el of event.composedPath()) {
4916
+ if (el === dialog) {
4917
+ // Reached the dialog boundary without finding a scrollable child.
4918
+ break;
4919
+ }
4920
+ if (el instanceof HTMLElement && el.scrollHeight > el.clientHeight) {
4921
+ const { overflowY } = getComputedStyle(el);
4922
+ if (overflowY === 'auto' || overflowY === 'scroll') {
4923
+ return;
4924
+ }
4925
+ }
4926
+ }
4927
+
4928
+ event.preventDefault();
4929
+ };
4930
+
4931
+ document.addEventListener('touchmove', this._touchMoveHandler, { passive: false });
4932
+ }
4933
+
4934
+ /**
4935
+ * Removes the touchmove listener added by _lockTouchScroll().
4936
+ * @private
4937
+ */
4938
+ _unlockTouchScroll() {
4939
+ if (this._touchMoveHandler) {
4940
+ document.removeEventListener('touchmove', this._touchMoveHandler);
4941
+ this._touchMoveHandler = undefined;
4942
+ }
4943
+ }
4944
+
4856
4945
  open(modal = true) {
4857
4946
  const dialog = this.shadowRoot.querySelector('dialog');
4858
4947
  if (dialog && !dialog.open) {
@@ -4869,6 +4958,8 @@ class AuroDropdownBib extends LitElement {
4869
4958
 
4870
4959
  documentElement.style.overflow = prevOverflow;
4871
4960
 
4961
+ this._lockTouchScroll();
4962
+
4872
4963
  } else {
4873
4964
  // Use setAttribute instead of dialog.show() to avoid the dialog
4874
4965
  // focusing steps which steal focus from the trigger and cause
@@ -4884,6 +4975,7 @@ class AuroDropdownBib extends LitElement {
4884
4975
  close() {
4885
4976
  const dialog = this.shadowRoot.querySelector('dialog');
4886
4977
  if (dialog && dialog.open) {
4978
+ this._unlockTouchScroll();
4887
4979
  dialog.close();
4888
4980
  }
4889
4981
  }
@@ -5149,7 +5241,7 @@ class AuroHelpText extends LitElement {
5149
5241
  }
5150
5242
  }
5151
5243
 
5152
- var formkitVersion = '202602201708';
5244
+ var formkitVersion = '202602260152';
5153
5245
 
5154
5246
  let AuroElement$1 = class AuroElement extends LitElement {
5155
5247
  static get properties() {
@@ -5422,6 +5514,18 @@ class AuroDropdown extends AuroElement$1 {
5422
5514
  */
5423
5515
  show() {
5424
5516
  this.floater.showBib();
5517
+
5518
+ // Open dialog synchronously so callers remain in the user gesture
5519
+ // chain. This is critical for mobile browsers (iOS Safari) to keep
5520
+ // the virtual keyboard open when transitioning from the trigger
5521
+ // input to an input inside the fullscreen dialog. Without this,
5522
+ // showModal() fires asynchronously via Lit's update cycle, which
5523
+ // falls outside the user activation window and causes iOS to
5524
+ // dismiss the keyboard.
5525
+ if (this.isBibFullscreen && this.bibElement && this.bibElement.value) {
5526
+ const useModal = !this.disableFocusTrap;
5527
+ this.bibElement.value.open(useModal);
5528
+ }
5425
5529
  }
5426
5530
 
5427
5531
  /**
@@ -5808,6 +5912,14 @@ class AuroDropdown extends AuroElement$1 {
5808
5912
  this.bibElement.value.close();
5809
5913
  }
5810
5914
  }
5915
+
5916
+ // When fullscreen strategy changes while open, re-open dialog with correct mode
5917
+ // (e.g. resizing from desktop → mobile while dropdown is open)
5918
+ if (changedProperties.has('isBibFullscreen') && this.isPopoverVisible && this.bibElement.value) {
5919
+ const useModal = this.isBibFullscreen && !this.disableFocusTrap;
5920
+ this.bibElement.value.close();
5921
+ this.bibElement.value.open(useModal);
5922
+ }
5811
5923
  }
5812
5924
 
5813
5925
  /**
@@ -1392,7 +1392,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
1392
1392
  }
1393
1393
  };
1394
1394
 
1395
- var formkitVersion$1 = '202602201708';
1395
+ var formkitVersion$1 = '202602260152';
1396
1396
 
1397
1397
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1398
1398
  // See LICENSE in the project root for license information.
@@ -1777,7 +1777,7 @@ class AuroCounter extends LitElement {
1777
1777
  aria-valuemax="${this.max}"
1778
1778
  aria-valuemin="${this.min}"
1779
1779
  aria-valuenow="${this.value}"
1780
- aria-valuetext="${this.value !== undefined ? this.value : this.min}"
1780
+ aria-valuetext="'${this.value !== undefined ? this.value : this.min}'"
1781
1781
  role="spinbutton"
1782
1782
  tabindex="${this.disabled ? '-1' : '0'}"
1783
1783
  >
@@ -4628,7 +4628,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
4628
4628
 
4629
4629
  var iconVersion$1 = '9.1.2';
4630
4630
 
4631
- var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{max-width:none;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:absolute;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
4631
+ var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{max-width:none;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:absolute;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([isfullscreen]) .container::backdrop{background:var(--ds-color-background-primary, #fff)}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
4632
4632
 
4633
4633
  var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
4634
4634
 
@@ -4636,6 +4636,8 @@ var tokensCss$1 = css`:host(:not([ondark])),:host(:not([appearance=inverse])){--
4636
4636
 
4637
4637
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4638
4638
  // See LICENSE in the project root for license information.
4639
+ /* eslint-disable max-lines */
4640
+ // ---------------------------------------------------------------------
4639
4641
 
4640
4642
 
4641
4643
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
@@ -4811,22 +4813,63 @@ class AuroDropdownBib extends LitElement {
4811
4813
  // Handle ESC key via dialog's cancel event
4812
4814
  const dialog = this.shadowRoot.querySelector('dialog');
4813
4815
  dialog.addEventListener('cancel', (event) => {
4814
- event.preventDefault(); // Let parent handle closing
4816
+ // Let parent handle closing
4817
+ event.preventDefault();
4815
4818
  this.dispatchEvent(new CustomEvent('auro-bib-cancel', {
4816
4819
  bubbles: true,
4817
4820
  composed: true
4818
4821
  }));
4819
4822
  });
4820
4823
 
4821
- // Re-dispatch navigation keyboard events so they cross the shadow DOM
4822
- // boundary and reach the combobox/select key handlers.
4823
- // Only intercept keys used for menu navigation let all other keys
4824
- // (characters, Backspace, etc.) through so typing in inputs works.
4825
- const navKeys = new Set(['ArrowUp', 'ArrowDown', 'Enter', 'Escape']);
4824
+ // showModal() creates a closed focus scope keyboard events inside
4825
+ // the dialog's shadow DOM do NOT bubble out to the combobox/select
4826
+ // keydown handlers in the parent shadow DOM. This handler bridges
4827
+ // that gap by re-dispatching navigation keys so they cross the
4828
+ // shadow boundary and reach the menu navigation logic in the parent
4829
+ // component.
4830
+ //
4831
+ // The trade-off: intercepting these keys means native keyboard
4832
+ // behaviors that would normally "just work" must be manually
4833
+ // re-implemented here:
4834
+ //
4835
+ // - Enter on buttons: Custom elements (auro-button) don't get the
4836
+ // native Enter→click that <button> provides, so we call .click()
4837
+ // directly when Enter is pressed on a button-like element.
4838
+ //
4839
+ // - Tab: NOT intercepted — left to the browser's native focus trap
4840
+ // provided by showModal(), which cycles Tab between focusable
4841
+ // elements inside the dialog (e.g. the input and close button).
4842
+ // Intercepting Tab would kill the native focus trap and break
4843
+ // focus management inside the dialog.
4844
+ //
4845
+ // - Escape: The native <dialog> fires a `cancel` event on ESC
4846
+ // (handled above), so the re-dispatched Escape is a secondary
4847
+ // path for parent components that also listen for Escape keydown.
4848
+ const navKeys = new Set([
4849
+ 'ArrowUp',
4850
+ 'ArrowDown',
4851
+ 'Enter',
4852
+ 'Escape'
4853
+ ]);
4826
4854
  dialog.addEventListener('keydown', (event) => {
4827
4855
  if (!navKeys.has(event.key)) {
4828
4856
  return;
4829
4857
  }
4858
+
4859
+ // Custom elements (auro-button) don't get the native Enter→click
4860
+ // behavior that <button> has. Find the button in the composed path
4861
+ // and click it directly.
4862
+ if (event.key === 'Enter') {
4863
+ const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
4864
+ const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
4865
+ if (btn) {
4866
+ event.preventDefault();
4867
+ event.stopPropagation();
4868
+ btn.click();
4869
+ return;
4870
+ }
4871
+ }
4872
+
4830
4873
  event.preventDefault();
4831
4874
  event.stopPropagation();
4832
4875
  const newEvent = new KeyboardEvent('keydown', {
@@ -4850,9 +4893,55 @@ class AuroDropdownBib extends LitElement {
4850
4893
  }
4851
4894
 
4852
4895
  /**
4853
- * Opens the dialog using showModal() for accessibility.
4854
- * @param {boolean} modal - If true, uses showModal() (default). If false, uses show().
4896
+ * Blocks touch-driven page scroll while a fullscreen modal dialog is open.
4897
+ *
4898
+ * The showModal() function places the dialog in the browser's **top layer**,
4899
+ * which is a separate rendering layer above the normal DOM. On mobile, the
4900
+ * compositor processes visual-viewport panning before top-layer touch
4901
+ * handling. This means the entire viewport — including the top-layer dialog
4902
+ * — can be panned by a touch gesture, causing the page behind the dialog to
4903
+ * scroll into view. To prevent this, we add a touchmove listener that cancels
4904
+ * the event if the touch started outside the dialog or any scrollable child within it.
4905
+ *
4906
+ * @private
4855
4907
  */
4908
+ _lockTouchScroll() {
4909
+ const dialog = this.shadowRoot.querySelector('dialog');
4910
+
4911
+ this._touchMoveHandler = (event) => {
4912
+ // Walk the composed path (which crosses shadow DOM boundaries) to
4913
+ // check whether the touch started inside a scrollable element that
4914
+ // lives within the dialog. If so, allow the scroll.
4915
+ for (const el of event.composedPath()) {
4916
+ if (el === dialog) {
4917
+ // Reached the dialog boundary without finding a scrollable child.
4918
+ break;
4919
+ }
4920
+ if (el instanceof HTMLElement && el.scrollHeight > el.clientHeight) {
4921
+ const { overflowY } = getComputedStyle(el);
4922
+ if (overflowY === 'auto' || overflowY === 'scroll') {
4923
+ return;
4924
+ }
4925
+ }
4926
+ }
4927
+
4928
+ event.preventDefault();
4929
+ };
4930
+
4931
+ document.addEventListener('touchmove', this._touchMoveHandler, { passive: false });
4932
+ }
4933
+
4934
+ /**
4935
+ * Removes the touchmove listener added by _lockTouchScroll().
4936
+ * @private
4937
+ */
4938
+ _unlockTouchScroll() {
4939
+ if (this._touchMoveHandler) {
4940
+ document.removeEventListener('touchmove', this._touchMoveHandler);
4941
+ this._touchMoveHandler = undefined;
4942
+ }
4943
+ }
4944
+
4856
4945
  open(modal = true) {
4857
4946
  const dialog = this.shadowRoot.querySelector('dialog');
4858
4947
  if (dialog && !dialog.open) {
@@ -4869,6 +4958,8 @@ class AuroDropdownBib extends LitElement {
4869
4958
 
4870
4959
  documentElement.style.overflow = prevOverflow;
4871
4960
 
4961
+ this._lockTouchScroll();
4962
+
4872
4963
  } else {
4873
4964
  // Use setAttribute instead of dialog.show() to avoid the dialog
4874
4965
  // focusing steps which steal focus from the trigger and cause
@@ -4884,6 +4975,7 @@ class AuroDropdownBib extends LitElement {
4884
4975
  close() {
4885
4976
  const dialog = this.shadowRoot.querySelector('dialog');
4886
4977
  if (dialog && dialog.open) {
4978
+ this._unlockTouchScroll();
4887
4979
  dialog.close();
4888
4980
  }
4889
4981
  }
@@ -5149,7 +5241,7 @@ class AuroHelpText extends LitElement {
5149
5241
  }
5150
5242
  }
5151
5243
 
5152
- var formkitVersion = '202602201708';
5244
+ var formkitVersion = '202602260152';
5153
5245
 
5154
5246
  let AuroElement$1 = class AuroElement extends LitElement {
5155
5247
  static get properties() {
@@ -5422,6 +5514,18 @@ class AuroDropdown extends AuroElement$1 {
5422
5514
  */
5423
5515
  show() {
5424
5516
  this.floater.showBib();
5517
+
5518
+ // Open dialog synchronously so callers remain in the user gesture
5519
+ // chain. This is critical for mobile browsers (iOS Safari) to keep
5520
+ // the virtual keyboard open when transitioning from the trigger
5521
+ // input to an input inside the fullscreen dialog. Without this,
5522
+ // showModal() fires asynchronously via Lit's update cycle, which
5523
+ // falls outside the user activation window and causes iOS to
5524
+ // dismiss the keyboard.
5525
+ if (this.isBibFullscreen && this.bibElement && this.bibElement.value) {
5526
+ const useModal = !this.disableFocusTrap;
5527
+ this.bibElement.value.open(useModal);
5528
+ }
5425
5529
  }
5426
5530
 
5427
5531
  /**
@@ -5808,6 +5912,14 @@ class AuroDropdown extends AuroElement$1 {
5808
5912
  this.bibElement.value.close();
5809
5913
  }
5810
5914
  }
5915
+
5916
+ // When fullscreen strategy changes while open, re-open dialog with correct mode
5917
+ // (e.g. resizing from desktop → mobile while dropdown is open)
5918
+ if (changedProperties.has('isBibFullscreen') && this.isPopoverVisible && this.bibElement.value) {
5919
+ const useModal = this.isBibFullscreen && !this.disableFocusTrap;
5920
+ this.bibElement.value.close();
5921
+ this.bibElement.value.open(useModal);
5922
+ }
5811
5923
  }
5812
5924
 
5813
5925
  /**