@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7

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 (59) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
  2. package/components/bibtemplate/dist/index.js +88 -6
  3. package/components/bibtemplate/dist/registered.js +88 -6
  4. package/components/checkbox/demo/api.min.js +4 -3
  5. package/components/checkbox/demo/index.min.js +4 -3
  6. package/components/checkbox/dist/index.js +4 -3
  7. package/components/checkbox/dist/registered.js +4 -3
  8. package/components/combobox/demo/api.min.js +514 -172
  9. package/components/combobox/demo/index.min.js +514 -172
  10. package/components/combobox/dist/auro-combobox.d.ts +0 -8
  11. package/components/combobox/dist/index.js +425 -153
  12. package/components/combobox/dist/registered.js +425 -153
  13. package/components/counter/demo/api.min.js +404 -106
  14. package/components/counter/demo/index.min.js +404 -106
  15. package/components/counter/dist/index.js +404 -106
  16. package/components/counter/dist/registered.js +404 -106
  17. package/components/datepicker/demo/api.md +13 -5
  18. package/components/datepicker/demo/api.min.js +876 -383
  19. package/components/datepicker/demo/index.md +13 -0
  20. package/components/datepicker/demo/index.min.js +876 -383
  21. package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
  22. package/components/datepicker/dist/index.js +679 -186
  23. package/components/datepicker/dist/registered.js +679 -186
  24. package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
  25. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  26. package/components/dropdown/demo/api.md +1 -1
  27. package/components/dropdown/demo/api.min.js +226 -81
  28. package/components/dropdown/demo/index.min.js +226 -81
  29. package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
  30. package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
  31. package/components/dropdown/dist/index.js +226 -81
  32. package/components/dropdown/dist/registered.js +226 -81
  33. package/components/input/demo/api.md +46 -48
  34. package/components/input/demo/api.min.js +96 -15
  35. package/components/input/demo/index.min.js +96 -15
  36. package/components/input/dist/auro-input.d.ts +17 -15
  37. package/components/input/dist/index.js +96 -15
  38. package/components/input/dist/registered.js +96 -15
  39. package/components/menu/demo/api.min.js +76 -6
  40. package/components/menu/demo/index.min.js +76 -6
  41. package/components/menu/dist/index.js +76 -6
  42. package/components/menu/dist/registered.js +76 -6
  43. package/components/radio/demo/api.min.js +4 -3
  44. package/components/radio/demo/index.min.js +4 -3
  45. package/components/radio/dist/index.js +4 -3
  46. package/components/radio/dist/registered.js +4 -3
  47. package/components/select/demo/api.md +12 -4
  48. package/components/select/demo/api.min.js +1178 -200
  49. package/components/select/demo/index.html +1 -0
  50. package/components/select/demo/index.md +298 -777
  51. package/components/select/demo/index.min.js +1178 -200
  52. package/components/select/dist/auro-select.d.ts +96 -4
  53. package/components/select/dist/helptextVersion.d.ts +2 -0
  54. package/components/select/dist/index.js +1106 -198
  55. package/components/select/dist/registered.js +1106 -198
  56. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  57. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  58. package/package.json +3 -3
  59. /package/components/{dropdown/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-css.d.ts} +0 -0
@@ -256,7 +256,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
256
256
 
257
257
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
258
258
 
259
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
259
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
260
260
 
261
261
  /* eslint-disable jsdoc/require-param */
262
262
 
@@ -375,9 +375,10 @@ let DateFormatter$1 = class DateFormatter {
375
375
  /**
376
376
  * Convert a date object to string format.
377
377
  * @param {Object} date - Date to convert to string.
378
- * @returns {Object} Returns the date as a string.
378
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
379
+ * @returns {String} Returns the date as a string.
379
380
  */
380
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
381
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
381
382
  year: "numeric",
382
383
  month: "2-digit",
383
384
  day: "2-digit",
@@ -569,7 +570,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
569
570
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
570
571
 
571
572
  // Get the date string of the date object we created from the string date
572
- const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
573
+ const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
573
574
 
574
575
  // Guard Clause: Generated date matches date string input
575
576
  if (expectedDateStr !== actualDateStr) {
@@ -734,7 +735,7 @@ const {
734
735
  let AuroFormValidation$1 = class AuroFormValidation {
735
736
 
736
737
  constructor() {
737
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
738
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
738
739
  }
739
740
 
740
741
  /**
@@ -1106,7 +1107,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
1106
1107
 
1107
1108
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
1108
1109
 
1109
- let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
1110
+ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
1110
1111
 
1111
1112
  /* eslint-disable jsdoc/require-param */
1112
1113
 
@@ -1689,10 +1690,11 @@ const flip$1 = function (options) {
1689
1690
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1690
1691
  const nextPlacement = placements[nextIndex];
1691
1692
  if (nextPlacement) {
1692
- var _overflowsData$;
1693
1693
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
1694
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
1695
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
1694
+ if (!ignoreCrossAxisOverflow ||
1695
+ // We leave the current main axis only if every placement on that axis
1696
+ // overflows the main axis.
1697
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
1696
1698
  // Try next placement and re-run the lifecycle.
1697
1699
  return {
1698
1700
  data: {
@@ -2713,8 +2715,28 @@ class AuroFloatingUI {
2713
2715
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
2714
2716
  AuroFloatingUI.isMousePressHandlerInitialized = true;
2715
2717
 
2718
+ // Track timeout for isMousePressed reset to avoid race conditions
2719
+ if (!AuroFloatingUI._mousePressedTimeout) {
2720
+ AuroFloatingUI._mousePressedTimeout = null;
2721
+ }
2716
2722
  const mouseEventGlobalHandler = (event) => {
2717
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
2723
+ const isPressed = event.type === 'mousedown';
2724
+ if (isPressed) {
2725
+ // Clear any pending timeout to prevent race condition
2726
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
2727
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
2728
+ AuroFloatingUI._mousePressedTimeout = null;
2729
+ }
2730
+ if (!AuroFloatingUI.isMousePressed) {
2731
+ AuroFloatingUI.isMousePressed = true;
2732
+ }
2733
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
2734
+ // Schedule reset and track timeout ID
2735
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
2736
+ AuroFloatingUI.isMousePressed = false;
2737
+ AuroFloatingUI._mousePressedTimeout = null;
2738
+ }, 0);
2739
+ }
2718
2740
  };
2719
2741
 
2720
2742
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -2841,6 +2863,7 @@ class AuroFloatingUI {
2841
2863
 
2842
2864
  // Compute the position of the bib
2843
2865
  computePosition(this.element.trigger, this.element.bib, {
2866
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
2844
2867
  placement: this.element.floaterConfig?.placement,
2845
2868
  middleware: middleware || []
2846
2869
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -2975,8 +2998,9 @@ class AuroFloatingUI {
2975
2998
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2976
2999
  return;
2977
3000
  }
2978
- // if fullscreen bib is still open and the focus is missing, do not close
2979
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
3001
+
3002
+ // if fullscreen bib is in fullscreen mode, do not close
3003
+ if (this.element.bib.hasAttribute('isfullscreen')) {
2980
3004
  return;
2981
3005
  }
2982
3006
 
@@ -3277,8 +3301,6 @@ class AuroFloatingUI {
3277
3301
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
3278
3302
  }
3279
3303
 
3280
- document.body.append(this.element.bib);
3281
-
3282
3304
  this.regenerateBibId();
3283
3305
  this.handleTriggerTabIndex();
3284
3306
 
@@ -3509,6 +3531,76 @@ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
3509
3531
 
3510
3532
  var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3511
3533
 
3534
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3535
+ // See LICENSE in the project root for license information.
3536
+
3537
+ // ---------------------------------------------------------------------
3538
+
3539
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3540
+
3541
+ let AuroLibraryRuntimeUtils$1$3 = class AuroLibraryRuntimeUtils {
3542
+
3543
+ /* eslint-disable jsdoc/require-param */
3544
+
3545
+ /**
3546
+ * This will register a new custom element with the browser.
3547
+ * @param {String} name - The name of the custom element.
3548
+ * @param {Object} componentClass - The class to register as a custom element.
3549
+ * @returns {void}
3550
+ */
3551
+ registerComponent(name, componentClass) {
3552
+ if (!customElements.get(name)) {
3553
+ customElements.define(name, class extends componentClass {});
3554
+ }
3555
+ }
3556
+
3557
+ /**
3558
+ * Finds and returns the closest HTML Element based on a selector.
3559
+ * @returns {void}
3560
+ */
3561
+ closestElement(
3562
+ selector, // selector like in .closest()
3563
+ base = this, // extra functionality to skip a parent
3564
+ __Closest = (el, found = el && el.closest(selector)) =>
3565
+ !el || el === document || el === window
3566
+ ? null // standard .closest() returns null for non-found selectors also
3567
+ : found
3568
+ ? found // found a selector INside this element
3569
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
3570
+ ) {
3571
+ return __Closest(base);
3572
+ }
3573
+ /* eslint-enable jsdoc/require-param */
3574
+
3575
+ /**
3576
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
3577
+ * @param {Object} elem - The element to check.
3578
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
3579
+ * @returns {void}
3580
+ */
3581
+ handleComponentTagRename(elem, tagName) {
3582
+ const tag = tagName.toLowerCase();
3583
+ const elemTag = elem.tagName.toLowerCase();
3584
+
3585
+ if (elemTag !== tag) {
3586
+ elem.setAttribute(tag, true);
3587
+ }
3588
+ }
3589
+
3590
+ /**
3591
+ * Validates if an element is a specific Auro component.
3592
+ * @param {Object} elem - The element to validate.
3593
+ * @param {String} tagName - The name of the Auro component to check against.
3594
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
3595
+ */
3596
+ elementMatch(elem, tagName) {
3597
+ const tag = tagName.toLowerCase();
3598
+ const elemTag = elem.tagName.toLowerCase();
3599
+
3600
+ return elemTag === tag || elem.hasAttribute(tag);
3601
+ }
3602
+ };
3603
+
3512
3604
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3513
3605
  // See LICENSE in the project root for license information.
3514
3606
 
@@ -3528,7 +3620,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3528
3620
  */
3529
3621
  privateDefaults() {
3530
3622
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
3531
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
3623
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$3();
3532
3624
  }
3533
3625
 
3534
3626
  // function to define props used within the scope of this component
@@ -3610,7 +3702,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3610
3702
  *
3611
3703
  */
3612
3704
  static register(name = "auro-icon") {
3613
- AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
3705
+ AuroLibraryRuntimeUtils$1$3.prototype.registerComponent(name, AuroIcon);
3614
3706
  }
3615
3707
 
3616
3708
  connectedCallback() {
@@ -3678,7 +3770,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3678
3770
 
3679
3771
  var iconVersion$3 = '6.1.2';
3680
3772
 
3681
- var styleCss$1$3 = i$5`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}: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}`;
3773
+ var styleCss$1$3 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}: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}`;
3682
3774
 
3683
3775
  var colorCss$2$2 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3684
3776
 
@@ -3688,7 +3780,6 @@ var tokensCss$1$2 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-colo
3688
3780
  // See LICENSE in the project root for license information.
3689
3781
 
3690
3782
 
3691
-
3692
3783
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3693
3784
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3694
3785
  'xl',
@@ -3713,7 +3804,7 @@ class AuroDropdownBib extends i$2 {
3713
3804
  */
3714
3805
  this._mobileBreakpointValue = undefined;
3715
3806
 
3716
- AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3807
+ AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3717
3808
  }
3718
3809
 
3719
3810
  static get styles() {
@@ -3758,6 +3849,13 @@ class AuroDropdownBib extends i$2 {
3758
3849
  type: Boolean,
3759
3850
  reflect: true
3760
3851
  },
3852
+
3853
+ /**
3854
+ * A reference to the associated bib template element.
3855
+ */
3856
+ bibTemplate: {
3857
+ type: Object
3858
+ }
3761
3859
  };
3762
3860
  }
3763
3861
 
@@ -3790,9 +3888,50 @@ class AuroDropdownBib extends i$2 {
3790
3888
  }
3791
3889
  }
3792
3890
  });
3891
+
3892
+ if (this.bibTemplate) {
3893
+ // If the bib template is found, set the fullscreen attribute
3894
+ if (this.isFullscreen) {
3895
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
3896
+ } else {
3897
+ this.bibTemplate.removeAttribute('isFullscreen');
3898
+ }
3899
+ }
3793
3900
  }
3794
3901
  }
3795
3902
 
3903
+ connectedCallback() {
3904
+ super.connectedCallback();
3905
+
3906
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
3907
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
3908
+ const bibTemplate = event.detail.element;
3909
+ this.bibTemplate = bibTemplate;
3910
+
3911
+ if (bibTemplate) {
3912
+ // If the bib template is found, set the fullscreen attribute
3913
+ if (this.isFullscreen) {
3914
+ bibTemplate.setAttribute('isFullscreen', 'true');
3915
+ } else {
3916
+ bibTemplate.removeAttribute('isFullscreen');
3917
+ }
3918
+ }
3919
+ });
3920
+ }
3921
+
3922
+ firstUpdated(changedProperties) {
3923
+ super.firstUpdated(changedProperties);
3924
+
3925
+ // Dispatch a custom event when the component is connected
3926
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3927
+ bubbles: true,
3928
+ composed: true,
3929
+ detail: {
3930
+ element: this
3931
+ }
3932
+ }));
3933
+ }
3934
+
3796
3935
  // function that renders the HTML and CSS into the scope of the component
3797
3936
  render() {
3798
3937
  return u$2`
@@ -3805,7 +3944,7 @@ class AuroDropdownBib extends i$2 {
3805
3944
 
3806
3945
  var dropdownVersion$1 = '3.0.0';
3807
3946
 
3808
- var shapeSizeCss$1 = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
3947
+ var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
3809
3948
 
3810
3949
  var colorCss$1$3 = i$5`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
3811
3950
 
@@ -3813,9 +3952,9 @@ var classicColorCss$1 = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-
3813
3952
 
3814
3953
  var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3815
3954
 
3816
- var styleEmphasizedCss$1 = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
3955
+ var styleEmphasizedCss$1 = i$5`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
3817
3956
 
3818
- var styleSnowflakeCss$1 = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
3957
+ var styleSnowflakeCss$1 = i$5`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
3819
3958
 
3820
3959
  var colorCss$6 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3821
3960
 
@@ -3830,7 +3969,7 @@ var tokensCss$6 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3830
3969
 
3831
3970
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3832
3971
 
3833
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3972
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3834
3973
 
3835
3974
  /* eslint-disable jsdoc/require-param */
3836
3975
 
@@ -3911,7 +4050,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$2 {
3911
4050
  this.onDark = false;
3912
4051
  this.hasTextContent = false;
3913
4052
 
3914
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4053
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3915
4054
  }
3916
4055
 
3917
4056
  static get styles() {
@@ -3967,7 +4106,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$2 {
3967
4106
  *
3968
4107
  */
3969
4108
  static register(name = "auro-helptext") {
3970
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4109
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3971
4110
  }
3972
4111
 
3973
4112
  updated() {
@@ -4149,6 +4288,7 @@ class AuroDropdown extends AuroElement$4 {
4149
4288
  this.layout = 'classic';
4150
4289
  this.shape = 'rounded';
4151
4290
  this.size = 'xl';
4291
+ this.parentBorder = false;
4152
4292
 
4153
4293
  this.privateDefaults();
4154
4294
  }
@@ -4164,7 +4304,8 @@ class AuroDropdown extends AuroElement$4 {
4164
4304
  'trigger': true,
4165
4305
  'wrapper': true,
4166
4306
  'hasFocus': this.hasFocus,
4167
- 'simple': this.simple
4307
+ 'simple': this.simple,
4308
+ 'parentBorder': this.parentBorder
4168
4309
  };
4169
4310
  }
4170
4311
 
@@ -4216,7 +4357,7 @@ class AuroDropdown extends AuroElement$4 {
4216
4357
  /**
4217
4358
  * @private
4218
4359
  */
4219
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
4360
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$2();
4220
4361
 
4221
4362
  /**
4222
4363
  * @private
@@ -4431,6 +4572,15 @@ class AuroDropdown extends AuroElement$4 {
4431
4572
  reflect: true
4432
4573
  },
4433
4574
 
4575
+ /**
4576
+ * Defines if the trigger should size based on the parent element providing the border UI.
4577
+ * @private
4578
+ */
4579
+ parentBorder: {
4580
+ type: Boolean,
4581
+ reflect: true
4582
+ },
4583
+
4434
4584
  /**
4435
4585
  * If declared, the popover and trigger will be set to the same width.
4436
4586
  */
@@ -4558,7 +4708,7 @@ class AuroDropdown extends AuroElement$4 {
4558
4708
  *
4559
4709
  */
4560
4710
  static register(name = "auro-dropdown") {
4561
- AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
4711
+ AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroDropdown);
4562
4712
  }
4563
4713
 
4564
4714
  /**
@@ -4894,8 +5044,7 @@ class AuroDropdown extends AuroElement$4 {
4894
5044
  * @param {Event} event - The event object representing the slot change.
4895
5045
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
4896
5046
  */
4897
- handleDefaultSlot(event) {
4898
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
5047
+ handleDefaultSlot() {
4899
5048
 
4900
5049
  if (this.onSlotChange) {
4901
5050
  this.onSlotChange();
@@ -4957,6 +5106,7 @@ class AuroDropdown extends AuroElement$4 {
4957
5106
  ${this.chevron || this.common ? u$2`
4958
5107
  <div
4959
5108
  id="showStateIcon"
5109
+ class="chevron"
4960
5110
  part="chevron">
4961
5111
  <${this.iconTag}
4962
5112
  category="interface"
@@ -4971,9 +5121,6 @@ class AuroDropdown extends AuroElement$4 {
4971
5121
  <div class="${e(helpTextClasses)}">
4972
5122
  <slot name="helpText"></slot>
4973
5123
  </div>
4974
- <div class="slotContent">
4975
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
4976
- </div>
4977
5124
  <div id="bibSizer" part="size"></div>
4978
5125
  <${this.dropdownBibTag}
4979
5126
  id="bib"
@@ -4982,6 +5129,9 @@ class AuroDropdown extends AuroElement$4 {
4982
5129
  ?common="${this.common}"
4983
5130
  ?rounded="${this.common || this.rounded}"
4984
5131
  ?inset="${this.common || this.inset}">
5132
+ <div class="slotContent">
5133
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
5134
+ </div>
4985
5135
  </${this.dropdownBibTag}>
4986
5136
  </div>
4987
5137
  `;
@@ -4993,67 +5143,63 @@ class AuroDropdown extends AuroElement$4 {
4993
5143
  * @returns {html} - Returns HTML for the classic layout.
4994
5144
  */
4995
5145
  renderLayoutClassic() {
4996
- const helpTextClasses = {
4997
- 'helpText': true,
4998
- 'leftIndent': false,
4999
- 'rightIndent': false
5000
- };
5001
5146
 
5002
5147
  return u$2`
5003
- ${this.renderBasicHtml(helpTextClasses)}
5148
+ <div>
5149
+ <div
5150
+ id="trigger"
5151
+ class="trigger"
5152
+ part="trigger"
5153
+ tabindex="${this.tabIndex}"
5154
+ ?showBorder="${this.showTriggerBorders}"
5155
+ role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5156
+ aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5157
+ aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5158
+ aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5159
+ >
5160
+ <div class="triggerContentWrapper">
5161
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5162
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5163
+ </label>
5164
+ <div class="triggerContent">
5165
+ <slot
5166
+ name="trigger"
5167
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5168
+ </div>
5169
+ </div>
5170
+ ${this.chevron || this.common ? u$2`
5171
+ <div
5172
+ id="showStateIcon"
5173
+ part="chevron">
5174
+ <${this.iconTag}
5175
+ category="interface"
5176
+ name="chevron-down"
5177
+ ?onDark="${this.onDark}"
5178
+ variant="${this.disabled ? 'disabled' : 'muted'}">
5179
+ >
5180
+ </${this.iconTag}>
5181
+ </div>
5182
+ ` : undefined }
5183
+ </div>
5184
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5185
+ <slot name="helpText"></slot>
5186
+ </${this.helpTextTag}>
5187
+
5188
+ <div id="bibSizer" part="size"></div>
5189
+ <${this.dropdownBibTag}
5190
+ id="bib"
5191
+ ?data-show="${this.isPopoverVisible}"
5192
+ ?isfullscreen="${this.isBibFullscreen}"
5193
+ ?common="${this.common}"
5194
+ ?rounded="${this.common || this.rounded}"
5195
+ ?inset="${this.common || this.inset}"
5196
+ >
5197
+ <div class="slotContent">
5198
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
5199
+ </div>
5200
+ </${this.dropdownBibTag}>
5201
+ </div>
5004
5202
  `;
5005
- // return html`
5006
- // <div>
5007
- // <div
5008
- // id="trigger"
5009
- // class="trigger"
5010
- // part="trigger"
5011
- // tabindex="${this.tabIndex}"
5012
- // ?showBorder="${this.showTriggerBorders}"
5013
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5014
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5015
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5016
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5017
- // >
5018
- // <div class="triggerContentWrapper">
5019
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
5020
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
5021
- // </label>
5022
- // <div class="triggerContent">
5023
- // <slot
5024
- // name="trigger"
5025
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
5026
- // </div>
5027
- // </div>
5028
- // ${this.chevron || this.common ? html`
5029
- // <div
5030
- // id="showStateIcon"
5031
- // part="chevron">
5032
- // <${this.iconTag}
5033
- // category="interface"
5034
- // name="chevron-down"
5035
- // ?onDark="${this.onDark}"
5036
- // variant="${this.disabled ? 'disabled' : 'muted'}">
5037
- // >
5038
- // </${this.iconTag}>
5039
- // </div>
5040
- // ` : undefined }
5041
- // </div>
5042
- // <div class="slotContent">
5043
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
5044
- // </div>
5045
- // <div id="bibSizer" part="size"></div>
5046
- // <${this.dropdownBibTag}
5047
- // id="bib"
5048
- // ?data-show="${this.isPopoverVisible}"
5049
- // ?isfullscreen="${this.isBibFullscreen}"
5050
- // ?common="${this.common}"
5051
- // ?rounded="${this.common || this.rounded}"
5052
- // ?inset="${this.common || this.inset}"
5053
- // >
5054
- // </${this.dropdownBibTag}>
5055
- // </div>
5056
- // `;
5057
5203
  }
5058
5204
 
5059
5205
  /**
@@ -5133,7 +5279,7 @@ var dropdownVersion = '3.0.0';
5133
5279
  */
5134
5280
  const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
5135
5281
 
5136
- var shapeSizeCss = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
5282
+ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
5137
5283
 
5138
5284
  var styleCss$4$1 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
5139
5285
 
@@ -9172,9 +9318,10 @@ class DateFormatter {
9172
9318
  /**
9173
9319
  * Convert a date object to string format.
9174
9320
  * @param {Object} date - Date to convert to string.
9175
- * @returns {Object} Returns the date as a string.
9321
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
9322
+ * @returns {String} Returns the date as a string.
9176
9323
  */
9177
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
9324
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
9178
9325
  year: "numeric",
9179
9326
  month: "2-digit",
9180
9327
  day: "2-digit",
@@ -9366,7 +9513,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
9366
9513
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
9367
9514
 
9368
9515
  // Get the date string of the date object we created from the string date
9369
- const actualDateStr = dateFormatter.getDateAsString(dateObj);
9516
+ const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
9370
9517
 
9371
9518
  // Guard Clause: Generated date matches date string input
9372
9519
  if (expectedDateStr !== actualDateStr) {
@@ -9531,7 +9678,7 @@ const {
9531
9678
 
9532
9679
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
9533
9680
 
9534
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9681
+ let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
9535
9682
 
9536
9683
  /* eslint-disable jsdoc/require-param */
9537
9684
 
@@ -9601,7 +9748,7 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9601
9748
  class AuroFormValidation {
9602
9749
 
9603
9750
  constructor() {
9604
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
9751
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
9605
9752
  }
9606
9753
 
9607
9754
  /**
@@ -11306,6 +11453,76 @@ var tokensCss$3$1 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
11306
11453
 
11307
11454
  var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
11308
11455
 
11456
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
11457
+ // See LICENSE in the project root for license information.
11458
+
11459
+ // ---------------------------------------------------------------------
11460
+
11461
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11462
+
11463
+ let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
11464
+
11465
+ /* eslint-disable jsdoc/require-param */
11466
+
11467
+ /**
11468
+ * This will register a new custom element with the browser.
11469
+ * @param {String} name - The name of the custom element.
11470
+ * @param {Object} componentClass - The class to register as a custom element.
11471
+ * @returns {void}
11472
+ */
11473
+ registerComponent(name, componentClass) {
11474
+ if (!customElements.get(name)) {
11475
+ customElements.define(name, class extends componentClass {});
11476
+ }
11477
+ }
11478
+
11479
+ /**
11480
+ * Finds and returns the closest HTML Element based on a selector.
11481
+ * @returns {void}
11482
+ */
11483
+ closestElement(
11484
+ selector, // selector like in .closest()
11485
+ base = this, // extra functionality to skip a parent
11486
+ __Closest = (el, found = el && el.closest(selector)) =>
11487
+ !el || el === document || el === window
11488
+ ? null // standard .closest() returns null for non-found selectors also
11489
+ : found
11490
+ ? found // found a selector INside this element
11491
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
11492
+ ) {
11493
+ return __Closest(base);
11494
+ }
11495
+ /* eslint-enable jsdoc/require-param */
11496
+
11497
+ /**
11498
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
11499
+ * @param {Object} elem - The element to check.
11500
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
11501
+ * @returns {void}
11502
+ */
11503
+ handleComponentTagRename(elem, tagName) {
11504
+ const tag = tagName.toLowerCase();
11505
+ const elemTag = elem.tagName.toLowerCase();
11506
+
11507
+ if (elemTag !== tag) {
11508
+ elem.setAttribute(tag, true);
11509
+ }
11510
+ }
11511
+
11512
+ /**
11513
+ * Validates if an element is a specific Auro component.
11514
+ * @param {Object} elem - The element to validate.
11515
+ * @param {String} tagName - The name of the Auro component to check against.
11516
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
11517
+ */
11518
+ elementMatch(elem, tagName) {
11519
+ const tag = tagName.toLowerCase();
11520
+ const elemTag = elem.tagName.toLowerCase();
11521
+
11522
+ return elemTag === tag || elem.hasAttribute(tag);
11523
+ }
11524
+ };
11525
+
11309
11526
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
11310
11527
  // See LICENSE in the project root for license information.
11311
11528
 
@@ -11325,7 +11542,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
11325
11542
  */
11326
11543
  privateDefaults() {
11327
11544
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
11328
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
11545
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
11329
11546
  }
11330
11547
 
11331
11548
  // function to define props used within the scope of this component
@@ -11407,7 +11624,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
11407
11624
  *
11408
11625
  */
11409
11626
  static register(name = "auro-icon") {
11410
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
11627
+ AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
11411
11628
  }
11412
11629
 
11413
11630
  connectedCallback() {
@@ -11513,7 +11730,7 @@ class AuroLoader extends i$2 {
11513
11730
  /**
11514
11731
  * @private
11515
11732
  */
11516
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
11733
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
11517
11734
 
11518
11735
  this.orbit = false;
11519
11736
  this.ringworm = false;
@@ -11576,7 +11793,7 @@ class AuroLoader extends i$2 {
11576
11793
  *
11577
11794
  */
11578
11795
  static register(name = "auro-loader") {
11579
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
11796
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroLoader);
11580
11797
  }
11581
11798
 
11582
11799
  firstUpdated() {
@@ -11880,7 +12097,7 @@ class AuroButton extends i$2 {
11880
12097
  *
11881
12098
  */
11882
12099
  static register(name = "auro-button") {
11883
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroButton);
12100
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroButton);
11884
12101
  }
11885
12102
 
11886
12103
  /**
@@ -11985,7 +12202,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
11985
12202
 
11986
12203
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11987
12204
 
11988
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
12205
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
11989
12206
 
11990
12207
  /* eslint-disable jsdoc/require-param */
11991
12208
 
@@ -12066,7 +12283,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
12066
12283
  this.onDark = false;
12067
12284
  this.hasTextContent = false;
12068
12285
 
12069
- AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
12286
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
12070
12287
  }
12071
12288
 
12072
12289
  static get styles() {
@@ -12122,7 +12339,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
12122
12339
  *
12123
12340
  */
12124
12341
  static register(name = "auro-helptext") {
12125
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
12342
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
12126
12343
  }
12127
12344
 
12128
12345
  updated() {
@@ -12246,7 +12463,7 @@ class AuroInput extends BaseInput {
12246
12463
  /**
12247
12464
  * Returns classmap configuration for html5 inputs in all layouts.
12248
12465
  * @private
12249
- * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12466
+ * @returns {object} - Returns classmap.
12250
12467
  */
12251
12468
  get commonInputClasses() {
12252
12469
  return {
@@ -12255,9 +12472,9 @@ class AuroInput extends BaseInput {
12255
12472
  }
12256
12473
 
12257
12474
  /**
12258
- * Returns classmap configuration for html5 inputs in all layouts.
12475
+ * Returns classmap configuration for html5 inputs in each layout.
12259
12476
  * @private
12260
- * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12477
+ * @return {object} - Returns classmap.
12261
12478
  */
12262
12479
  get legacyInputClasses() {
12263
12480
  return {
@@ -12266,6 +12483,11 @@ class AuroInput extends BaseInput {
12266
12483
  };
12267
12484
  }
12268
12485
 
12486
+ /**
12487
+ * Returns classmap configuration for wrapper elements in each layout.
12488
+ * @private
12489
+ * @return {object} - Returns classmap.
12490
+ */
12269
12491
  get commonWrapperClasses() {
12270
12492
  return {
12271
12493
  'wrapper': true,
@@ -12274,6 +12496,11 @@ class AuroInput extends BaseInput {
12274
12496
  };
12275
12497
  }
12276
12498
 
12499
+ /**
12500
+ * Returns classmap configuration for helpText elements in each layout.
12501
+ * @private
12502
+ * @return {object} - Returns classmap.
12503
+ */
12277
12504
  get helpTextClasses() {
12278
12505
  return {
12279
12506
  'helpTextWrapper': true,
@@ -12291,7 +12518,7 @@ class AuroInput extends BaseInput {
12291
12518
  *
12292
12519
  */
12293
12520
  static register(name = "auro-input") {
12294
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroInput);
12521
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroInput);
12295
12522
  }
12296
12523
 
12297
12524
  /**
@@ -12527,9 +12754,9 @@ class AuroInput extends BaseInput {
12527
12754
  }
12528
12755
 
12529
12756
  /**
12530
- * Returns HTML for the default layout.
12757
+ * Returns HTML for the classic layout.
12531
12758
  * @private
12532
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
12759
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
12533
12760
  */
12534
12761
  renderLayoutClassic() {
12535
12762
  return u$2`
@@ -12669,7 +12896,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
12669
12896
 
12670
12897
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
12671
12898
 
12672
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
12899
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
12673
12900
 
12674
12901
  /* eslint-disable jsdoc/require-param */
12675
12902
 
@@ -12926,6 +13153,76 @@ var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
12926
13153
 
12927
13154
  var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
12928
13155
 
13156
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
13157
+ // See LICENSE in the project root for license information.
13158
+
13159
+ // ---------------------------------------------------------------------
13160
+
13161
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
13162
+
13163
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
13164
+
13165
+ /* eslint-disable jsdoc/require-param */
13166
+
13167
+ /**
13168
+ * This will register a new custom element with the browser.
13169
+ * @param {String} name - The name of the custom element.
13170
+ * @param {Object} componentClass - The class to register as a custom element.
13171
+ * @returns {void}
13172
+ */
13173
+ registerComponent(name, componentClass) {
13174
+ if (!customElements.get(name)) {
13175
+ customElements.define(name, class extends componentClass {});
13176
+ }
13177
+ }
13178
+
13179
+ /**
13180
+ * Finds and returns the closest HTML Element based on a selector.
13181
+ * @returns {void}
13182
+ */
13183
+ closestElement(
13184
+ selector, // selector like in .closest()
13185
+ base = this, // extra functionality to skip a parent
13186
+ __Closest = (el, found = el && el.closest(selector)) =>
13187
+ !el || el === document || el === window
13188
+ ? null // standard .closest() returns null for non-found selectors also
13189
+ : found
13190
+ ? found // found a selector INside this element
13191
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
13192
+ ) {
13193
+ return __Closest(base);
13194
+ }
13195
+ /* eslint-enable jsdoc/require-param */
13196
+
13197
+ /**
13198
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
13199
+ * @param {Object} elem - The element to check.
13200
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
13201
+ * @returns {void}
13202
+ */
13203
+ handleComponentTagRename(elem, tagName) {
13204
+ const tag = tagName.toLowerCase();
13205
+ const elemTag = elem.tagName.toLowerCase();
13206
+
13207
+ if (elemTag !== tag) {
13208
+ elem.setAttribute(tag, true);
13209
+ }
13210
+ }
13211
+
13212
+ /**
13213
+ * Validates if an element is a specific Auro component.
13214
+ * @param {Object} elem - The element to validate.
13215
+ * @param {String} tagName - The name of the Auro component to check against.
13216
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
13217
+ */
13218
+ elementMatch(elem, tagName) {
13219
+ const tag = tagName.toLowerCase();
13220
+ const elemTag = elem.tagName.toLowerCase();
13221
+
13222
+ return elemTag === tag || elem.hasAttribute(tag);
13223
+ }
13224
+ };
13225
+
12929
13226
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12930
13227
  // See LICENSE in the project root for license information.
12931
13228
 
@@ -12945,7 +13242,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
12945
13242
  */
12946
13243
  privateDefaults() {
12947
13244
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
12948
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
13245
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
12949
13246
  }
12950
13247
 
12951
13248
  // function to define props used within the scope of this component
@@ -13027,7 +13324,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
13027
13324
  *
13028
13325
  */
13029
13326
  static register(name = "auro-icon") {
13030
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
13327
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
13031
13328
  }
13032
13329
 
13033
13330
  connectedCallback() {
@@ -13124,7 +13421,7 @@ class AuroHeader extends i$2 {
13124
13421
  /**
13125
13422
  * @private
13126
13423
  */
13127
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
13424
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
13128
13425
  }
13129
13426
 
13130
13427
  // function to define props used within the scope of this component
@@ -13154,7 +13451,7 @@ class AuroHeader extends i$2 {
13154
13451
  *
13155
13452
  */
13156
13453
  static register(name = "auro-header") {
13157
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
13454
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
13158
13455
  }
13159
13456
 
13160
13457
  firstUpdated() {
@@ -13250,7 +13547,7 @@ class AuroBibtemplate extends i$2 {
13250
13547
 
13251
13548
  this.large = false;
13252
13549
 
13253
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
13550
+ AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
13254
13551
 
13255
13552
  const versioning = new AuroDependencyVersioning();
13256
13553
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
@@ -13289,7 +13586,7 @@ class AuroBibtemplate extends i$2 {
13289
13586
  *
13290
13587
  */
13291
13588
  static register(name = "auro-bibtemplate") {
13292
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
13589
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
13293
13590
  }
13294
13591
 
13295
13592
  /**
@@ -13329,6 +13626,18 @@ class AuroBibtemplate extends i$2 {
13329
13626
  this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
13330
13627
  }
13331
13628
 
13629
+ firstUpdated(changedProperties) {
13630
+ super.firstUpdated(changedProperties);
13631
+
13632
+ this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
13633
+ bubbles: true,
13634
+ composed: true,
13635
+ detail: {
13636
+ element: this
13637
+ }
13638
+ }));
13639
+ }
13640
+
13332
13641
  // function that renders the HTML and CSS into the scope of the component
13333
13642
  render() {
13334
13643
  return u$2`
@@ -13472,7 +13781,7 @@ var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
13472
13781
 
13473
13782
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
13474
13783
 
13475
- class AuroLibraryRuntimeUtils {
13784
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
13476
13785
 
13477
13786
  /* eslint-disable jsdoc/require-param */
13478
13787
 
@@ -13533,7 +13842,7 @@ class AuroLibraryRuntimeUtils {
13533
13842
 
13534
13843
  return elemTag === tag || elem.hasAttribute(tag);
13535
13844
  }
13536
- }
13845
+ };
13537
13846
 
13538
13847
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
13539
13848
  // See LICENSE in the project root for license information.
@@ -13553,7 +13862,7 @@ class AuroHelpText extends i$2 {
13553
13862
  this.onDark = false;
13554
13863
  this.hasTextContent = false;
13555
13864
 
13556
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
13865
+ AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-helptext');
13557
13866
  }
13558
13867
 
13559
13868
  static get styles() {
@@ -13609,7 +13918,7 @@ class AuroHelpText extends i$2 {
13609
13918
  *
13610
13919
  */
13611
13920
  static register(name = "auro-helptext") {
13612
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
13921
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHelpText);
13613
13922
  }
13614
13923
 
13615
13924
  updated() {
@@ -13719,7 +14028,7 @@ class AuroCombobox extends AuroElement$1 {
13719
14028
 
13720
14029
  this.validation = new AuroFormValidation$1();
13721
14030
 
13722
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
14031
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
13723
14032
 
13724
14033
  this.isHiddenWhileLoading = false;
13725
14034
 
@@ -14027,7 +14336,7 @@ class AuroCombobox extends AuroElement$1 {
14027
14336
  *
14028
14337
  */
14029
14338
  static register(name = 'auro-combobox') {
14030
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCombobox);
14339
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCombobox);
14031
14340
  }
14032
14341
 
14033
14342
  /**
@@ -14184,15 +14493,8 @@ class AuroCombobox extends AuroElement$1 {
14184
14493
  this.showBib();
14185
14494
  });
14186
14495
 
14187
- // this.dropdown.addEventListener('auroDropdown-show', () => {
14188
- this.menuWrapper = this.dropdown.querySelector('.menuWrapper');
14189
- if (this.menu) {
14190
- this.menuWrapper.append(this.menu);
14191
- }
14192
-
14193
14496
  // setting up bibtemplate
14194
14497
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
14195
- this.bibtemplate.append(this.menuWrapper);
14196
14498
 
14197
14499
  // Exposes the CSS parts from the bibtemplate for styling
14198
14500
  this.bibtemplate.exposeCssParts();
@@ -14217,10 +14519,9 @@ class AuroCombobox extends AuroElement$1 {
14217
14519
  this.menu = this.querySelector('auro-menu, [auro-menu]');
14218
14520
 
14219
14521
  // a racing condition on custom-combobox with custom-menu
14220
- if (!this.menu) {
14522
+ if (!this.menu || this.menuShadowRoot === null) {
14221
14523
  setTimeout(() => {
14222
14524
  this.configureMenu();
14223
- this.menuWrapper.append(this.menu);
14224
14525
  }, 0);
14225
14526
  return;
14226
14527
  }
@@ -14295,41 +14596,12 @@ class AuroCombobox extends AuroElement$1 {
14295
14596
  });
14296
14597
  }
14297
14598
 
14298
- /**
14299
- * Dispatches input's keyboard events from host
14300
- * This allows key events from the input to be handled by the parent.
14301
- * @private
14302
- * @param {KeyboardEvent} event - The keyboard event.
14303
- */
14304
- bubbleUpInputEvent(event) {
14305
- // Do not need to bubble events if the input is not in bib.
14306
- if (event.currentTarget.parentNode !== this.dropdown) {
14307
- // prevents browsers to move cursor in input element.
14308
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
14309
- event.preventDefault();
14310
- }
14311
- const dupEvent = new event.constructor(event.type, event);
14312
- this.dispatchEvent(dupEvent);
14313
- }
14314
- }
14315
-
14316
14599
  /**
14317
14600
  * Binds all behavior needed to the input after rendering.
14318
14601
  * @private
14319
14602
  * @returns {void}
14320
14603
  */
14321
14604
  configureInput() {
14322
- // When input is in bibtemplate, make the event to be fired at combobox element
14323
- this.bubbleUpInputEvent = this.bubbleUpInputEvent.bind(this);
14324
-
14325
- const events = [
14326
- 'input',
14327
- 'keydown',
14328
- 'keyup'
14329
- ];
14330
- events.forEach((eventType) => {
14331
- this.input.addEventListener(eventType, this.bubbleUpInputEvent);
14332
- });
14333
14605
 
14334
14606
  this.addEventListener('keyup', (evt) => {
14335
14607
  if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
@@ -14392,6 +14664,7 @@ class AuroCombobox extends AuroElement$1 {
14392
14664
  const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
14393
14665
 
14394
14666
  if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
14667
+
14395
14668
  if (this.input.parentNode === this.dropdown) {
14396
14669
  // keep the trigger size the same even after input gets removed
14397
14670
  const parentSize = window.getComputedStyle(this.dropdown.trigger);
@@ -14409,7 +14682,7 @@ class AuroCombobox extends AuroElement$1 {
14409
14682
  inputAlertIcon.style.display = 'none';
14410
14683
  }
14411
14684
 
14412
- this.bibtemplate.append(this.input);
14685
+ this.bibtemplate.prepend(this.input);
14413
14686
  this.input.focus();
14414
14687
  }
14415
14688
  } else if (this.input.parentNode !== this.dropdown) {
@@ -14423,7 +14696,7 @@ class AuroCombobox extends AuroElement$1 {
14423
14696
  inputAlertIcon.style.display = '';
14424
14697
  }
14425
14698
 
14426
- this.dropdown.append(this.input);
14699
+ this.dropdown.prepend(this.input);
14427
14700
  this.input.focus();
14428
14701
  }
14429
14702
  }
@@ -14744,9 +15017,8 @@ class AuroCombobox extends AuroElement$1 {
14744
15017
  slot="trigger">
14745
15018
  </${this.inputTag}>
14746
15019
 
14747
- <div class="menuWrapper"></div>
14748
-
14749
15020
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
15021
+ <slot></slot>
14750
15022
  </${this.bibtemplateTag}>
14751
15023
 
14752
15024
  <span slot="helpText">
@@ -14963,7 +15235,7 @@ class AuroMenu extends i$2 {
14963
15235
  *
14964
15236
  */
14965
15237
  static register(name = "auro-menu") {
14966
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
15238
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
14967
15239
  }
14968
15240
 
14969
15241
  // Lifecycle Methods
@@ -14987,7 +15259,7 @@ class AuroMenu extends i$2 {
14987
15259
  }
14988
15260
 
14989
15261
  firstUpdated() {
14990
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
15262
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
14991
15263
 
14992
15264
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
14993
15265
  this.initializeMenu();
@@ -15696,6 +15968,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
15696
15968
 
15697
15969
  var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
15698
15970
 
15971
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
15972
+ // See LICENSE in the project root for license information.
15973
+
15974
+ // ---------------------------------------------------------------------
15975
+
15976
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
15977
+
15978
+ class AuroLibraryRuntimeUtils {
15979
+
15980
+ /* eslint-disable jsdoc/require-param */
15981
+
15982
+ /**
15983
+ * This will register a new custom element with the browser.
15984
+ * @param {String} name - The name of the custom element.
15985
+ * @param {Object} componentClass - The class to register as a custom element.
15986
+ * @returns {void}
15987
+ */
15988
+ registerComponent(name, componentClass) {
15989
+ if (!customElements.get(name)) {
15990
+ customElements.define(name, class extends componentClass {});
15991
+ }
15992
+ }
15993
+
15994
+ /**
15995
+ * Finds and returns the closest HTML Element based on a selector.
15996
+ * @returns {void}
15997
+ */
15998
+ closestElement(
15999
+ selector, // selector like in .closest()
16000
+ base = this, // extra functionality to skip a parent
16001
+ __Closest = (el, found = el && el.closest(selector)) =>
16002
+ !el || el === document || el === window
16003
+ ? null // standard .closest() returns null for non-found selectors also
16004
+ : found
16005
+ ? found // found a selector INside this element
16006
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
16007
+ ) {
16008
+ return __Closest(base);
16009
+ }
16010
+ /* eslint-enable jsdoc/require-param */
16011
+
16012
+ /**
16013
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
16014
+ * @param {Object} elem - The element to check.
16015
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
16016
+ * @returns {void}
16017
+ */
16018
+ handleComponentTagRename(elem, tagName) {
16019
+ const tag = tagName.toLowerCase();
16020
+ const elemTag = elem.tagName.toLowerCase();
16021
+
16022
+ if (elemTag !== tag) {
16023
+ elem.setAttribute(tag, true);
16024
+ }
16025
+ }
16026
+
16027
+ /**
16028
+ * Validates if an element is a specific Auro component.
16029
+ * @param {Object} elem - The element to validate.
16030
+ * @param {String} tagName - The name of the Auro component to check against.
16031
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
16032
+ */
16033
+ elementMatch(elem, tagName) {
16034
+ const tag = tagName.toLowerCase();
16035
+ const elemTag = elem.tagName.toLowerCase();
16036
+
16037
+ return elemTag === tag || elem.hasAttribute(tag);
16038
+ }
16039
+ }
16040
+
15699
16041
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
15700
16042
  // See LICENSE in the project root for license information.
15701
16043
 
@@ -15715,7 +16057,7 @@ class AuroIcon extends BaseIcon {
15715
16057
  */
15716
16058
  privateDefaults() {
15717
16059
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
15718
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
16060
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
15719
16061
  }
15720
16062
 
15721
16063
  // function to define props used within the scope of this component
@@ -15797,7 +16139,7 @@ class AuroIcon extends BaseIcon {
15797
16139
  *
15798
16140
  */
15799
16141
  static register(name = "auro-icon") {
15800
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
16142
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
15801
16143
  }
15802
16144
 
15803
16145
  connectedCallback() {
@@ -15903,7 +16245,7 @@ class AuroMenuOption extends i$2 {
15903
16245
  /**
15904
16246
  * @private
15905
16247
  */
15906
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
16248
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
15907
16249
  }
15908
16250
 
15909
16251
  static get properties() {
@@ -15947,7 +16289,7 @@ class AuroMenuOption extends i$2 {
15947
16289
  *
15948
16290
  */
15949
16291
  static register(name = "auro-menuoption") {
15950
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
16292
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
15951
16293
  }
15952
16294
 
15953
16295
  firstUpdated() {