@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
@@ -114,7 +114,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
114
114
 
115
115
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
116
116
 
117
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
117
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
118
118
 
119
119
  /* eslint-disable jsdoc/require-param */
120
120
 
@@ -233,9 +233,10 @@ let DateFormatter$1 = class DateFormatter {
233
233
  /**
234
234
  * Convert a date object to string format.
235
235
  * @param {Object} date - Date to convert to string.
236
- * @returns {Object} Returns the date as a string.
236
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
237
+ * @returns {String} Returns the date as a string.
237
238
  */
238
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
239
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
239
240
  year: "numeric",
240
241
  month: "2-digit",
241
242
  day: "2-digit",
@@ -427,7 +428,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
427
428
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
428
429
 
429
430
  // Get the date string of the date object we created from the string date
430
- const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
431
+ const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
431
432
 
432
433
  // Guard Clause: Generated date matches date string input
433
434
  if (expectedDateStr !== actualDateStr) {
@@ -592,7 +593,7 @@ const {
592
593
  let AuroFormValidation$1 = class AuroFormValidation {
593
594
 
594
595
  constructor() {
595
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
596
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
596
597
  }
597
598
 
598
599
  /**
@@ -964,7 +965,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
964
965
 
965
966
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
966
967
 
967
- let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
968
+ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
968
969
 
969
970
  /* eslint-disable jsdoc/require-param */
970
971
 
@@ -1547,10 +1548,11 @@ const flip$1 = function (options) {
1547
1548
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1548
1549
  const nextPlacement = placements[nextIndex];
1549
1550
  if (nextPlacement) {
1550
- var _overflowsData$;
1551
1551
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
1552
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
1553
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
1552
+ if (!ignoreCrossAxisOverflow ||
1553
+ // We leave the current main axis only if every placement on that axis
1554
+ // overflows the main axis.
1555
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
1554
1556
  // Try next placement and re-run the lifecycle.
1555
1557
  return {
1556
1558
  data: {
@@ -2571,8 +2573,28 @@ class AuroFloatingUI {
2571
2573
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
2572
2574
  AuroFloatingUI.isMousePressHandlerInitialized = true;
2573
2575
 
2576
+ // Track timeout for isMousePressed reset to avoid race conditions
2577
+ if (!AuroFloatingUI._mousePressedTimeout) {
2578
+ AuroFloatingUI._mousePressedTimeout = null;
2579
+ }
2574
2580
  const mouseEventGlobalHandler = (event) => {
2575
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
2581
+ const isPressed = event.type === 'mousedown';
2582
+ if (isPressed) {
2583
+ // Clear any pending timeout to prevent race condition
2584
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
2585
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
2586
+ AuroFloatingUI._mousePressedTimeout = null;
2587
+ }
2588
+ if (!AuroFloatingUI.isMousePressed) {
2589
+ AuroFloatingUI.isMousePressed = true;
2590
+ }
2591
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
2592
+ // Schedule reset and track timeout ID
2593
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
2594
+ AuroFloatingUI.isMousePressed = false;
2595
+ AuroFloatingUI._mousePressedTimeout = null;
2596
+ }, 0);
2597
+ }
2576
2598
  };
2577
2599
 
2578
2600
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -2699,6 +2721,7 @@ class AuroFloatingUI {
2699
2721
 
2700
2722
  // Compute the position of the bib
2701
2723
  computePosition(this.element.trigger, this.element.bib, {
2724
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
2702
2725
  placement: this.element.floaterConfig?.placement,
2703
2726
  middleware: middleware || []
2704
2727
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -2833,8 +2856,9 @@ class AuroFloatingUI {
2833
2856
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2834
2857
  return;
2835
2858
  }
2836
- // if fullscreen bib is still open and the focus is missing, do not close
2837
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
2859
+
2860
+ // if fullscreen bib is in fullscreen mode, do not close
2861
+ if (this.element.bib.hasAttribute('isfullscreen')) {
2838
2862
  return;
2839
2863
  }
2840
2864
 
@@ -3135,8 +3159,6 @@ class AuroFloatingUI {
3135
3159
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
3136
3160
  }
3137
3161
 
3138
- document.body.append(this.element.bib);
3139
-
3140
3162
  this.regenerateBibId();
3141
3163
  this.handleTriggerTabIndex();
3142
3164
 
@@ -3367,6 +3389,76 @@ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
3367
3389
 
3368
3390
  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)}`;
3369
3391
 
3392
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3393
+ // See LICENSE in the project root for license information.
3394
+
3395
+ // ---------------------------------------------------------------------
3396
+
3397
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3398
+
3399
+ let AuroLibraryRuntimeUtils$1$3 = class AuroLibraryRuntimeUtils {
3400
+
3401
+ /* eslint-disable jsdoc/require-param */
3402
+
3403
+ /**
3404
+ * This will register a new custom element with the browser.
3405
+ * @param {String} name - The name of the custom element.
3406
+ * @param {Object} componentClass - The class to register as a custom element.
3407
+ * @returns {void}
3408
+ */
3409
+ registerComponent(name, componentClass) {
3410
+ if (!customElements.get(name)) {
3411
+ customElements.define(name, class extends componentClass {});
3412
+ }
3413
+ }
3414
+
3415
+ /**
3416
+ * Finds and returns the closest HTML Element based on a selector.
3417
+ * @returns {void}
3418
+ */
3419
+ closestElement(
3420
+ selector, // selector like in .closest()
3421
+ base = this, // extra functionality to skip a parent
3422
+ __Closest = (el, found = el && el.closest(selector)) =>
3423
+ !el || el === document || el === window
3424
+ ? null // standard .closest() returns null for non-found selectors also
3425
+ : found
3426
+ ? found // found a selector INside this element
3427
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
3428
+ ) {
3429
+ return __Closest(base);
3430
+ }
3431
+ /* eslint-enable jsdoc/require-param */
3432
+
3433
+ /**
3434
+ * 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.
3435
+ * @param {Object} elem - The element to check.
3436
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
3437
+ * @returns {void}
3438
+ */
3439
+ handleComponentTagRename(elem, tagName) {
3440
+ const tag = tagName.toLowerCase();
3441
+ const elemTag = elem.tagName.toLowerCase();
3442
+
3443
+ if (elemTag !== tag) {
3444
+ elem.setAttribute(tag, true);
3445
+ }
3446
+ }
3447
+
3448
+ /**
3449
+ * Validates if an element is a specific Auro component.
3450
+ * @param {Object} elem - The element to validate.
3451
+ * @param {String} tagName - The name of the Auro component to check against.
3452
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
3453
+ */
3454
+ elementMatch(elem, tagName) {
3455
+ const tag = tagName.toLowerCase();
3456
+ const elemTag = elem.tagName.toLowerCase();
3457
+
3458
+ return elemTag === tag || elem.hasAttribute(tag);
3459
+ }
3460
+ };
3461
+
3370
3462
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3371
3463
  // See LICENSE in the project root for license information.
3372
3464
 
@@ -3386,7 +3478,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3386
3478
  */
3387
3479
  privateDefaults() {
3388
3480
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
3389
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
3481
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$3();
3390
3482
  }
3391
3483
 
3392
3484
  // function to define props used within the scope of this component
@@ -3468,7 +3560,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3468
3560
  *
3469
3561
  */
3470
3562
  static register(name = "auro-icon") {
3471
- AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
3563
+ AuroLibraryRuntimeUtils$1$3.prototype.registerComponent(name, AuroIcon);
3472
3564
  }
3473
3565
 
3474
3566
  connectedCallback() {
@@ -3536,7 +3628,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
3536
3628
 
3537
3629
  var iconVersion$3 = '6.1.2';
3538
3630
 
3539
- 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}`;
3631
+ 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}`;
3540
3632
 
3541
3633
  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)}`;
3542
3634
 
@@ -3546,7 +3638,6 @@ var tokensCss$1$2 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-colo
3546
3638
  // See LICENSE in the project root for license information.
3547
3639
 
3548
3640
 
3549
-
3550
3641
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3551
3642
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3552
3643
  'xl',
@@ -3571,7 +3662,7 @@ class AuroDropdownBib extends i$2 {
3571
3662
  */
3572
3663
  this._mobileBreakpointValue = undefined;
3573
3664
 
3574
- AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3665
+ AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3575
3666
  }
3576
3667
 
3577
3668
  static get styles() {
@@ -3616,6 +3707,13 @@ class AuroDropdownBib extends i$2 {
3616
3707
  type: Boolean,
3617
3708
  reflect: true
3618
3709
  },
3710
+
3711
+ /**
3712
+ * A reference to the associated bib template element.
3713
+ */
3714
+ bibTemplate: {
3715
+ type: Object
3716
+ }
3619
3717
  };
3620
3718
  }
3621
3719
 
@@ -3648,9 +3746,50 @@ class AuroDropdownBib extends i$2 {
3648
3746
  }
3649
3747
  }
3650
3748
  });
3749
+
3750
+ if (this.bibTemplate) {
3751
+ // If the bib template is found, set the fullscreen attribute
3752
+ if (this.isFullscreen) {
3753
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
3754
+ } else {
3755
+ this.bibTemplate.removeAttribute('isFullscreen');
3756
+ }
3757
+ }
3651
3758
  }
3652
3759
  }
3653
3760
 
3761
+ connectedCallback() {
3762
+ super.connectedCallback();
3763
+
3764
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
3765
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
3766
+ const bibTemplate = event.detail.element;
3767
+ this.bibTemplate = bibTemplate;
3768
+
3769
+ if (bibTemplate) {
3770
+ // If the bib template is found, set the fullscreen attribute
3771
+ if (this.isFullscreen) {
3772
+ bibTemplate.setAttribute('isFullscreen', 'true');
3773
+ } else {
3774
+ bibTemplate.removeAttribute('isFullscreen');
3775
+ }
3776
+ }
3777
+ });
3778
+ }
3779
+
3780
+ firstUpdated(changedProperties) {
3781
+ super.firstUpdated(changedProperties);
3782
+
3783
+ // Dispatch a custom event when the component is connected
3784
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3785
+ bubbles: true,
3786
+ composed: true,
3787
+ detail: {
3788
+ element: this
3789
+ }
3790
+ }));
3791
+ }
3792
+
3654
3793
  // function that renders the HTML and CSS into the scope of the component
3655
3794
  render() {
3656
3795
  return u$2`
@@ -3663,7 +3802,7 @@ class AuroDropdownBib extends i$2 {
3663
3802
 
3664
3803
  var dropdownVersion$1 = '3.0.0';
3665
3804
 
3666
- 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}`;
3805
+ 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}`;
3667
3806
 
3668
3807
  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)}`;
3669
3808
 
@@ -3671,9 +3810,9 @@ var classicColorCss$1 = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-
3671
3810
 
3672
3811
  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)}`;
3673
3812
 
3674
- 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)}`;
3813
+ 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))}`;
3675
3814
 
3676
- 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)}`;
3815
+ 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)}`;
3677
3816
 
3678
3817
  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)}`;
3679
3818
 
@@ -3688,7 +3827,7 @@ var tokensCss$6 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3688
3827
 
3689
3828
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3690
3829
 
3691
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3830
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3692
3831
 
3693
3832
  /* eslint-disable jsdoc/require-param */
3694
3833
 
@@ -3769,7 +3908,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$2 {
3769
3908
  this.onDark = false;
3770
3909
  this.hasTextContent = false;
3771
3910
 
3772
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
3911
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3773
3912
  }
3774
3913
 
3775
3914
  static get styles() {
@@ -3825,7 +3964,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$2 {
3825
3964
  *
3826
3965
  */
3827
3966
  static register(name = "auro-helptext") {
3828
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
3967
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3829
3968
  }
3830
3969
 
3831
3970
  updated() {
@@ -4007,6 +4146,7 @@ class AuroDropdown extends AuroElement$4 {
4007
4146
  this.layout = 'classic';
4008
4147
  this.shape = 'rounded';
4009
4148
  this.size = 'xl';
4149
+ this.parentBorder = false;
4010
4150
 
4011
4151
  this.privateDefaults();
4012
4152
  }
@@ -4022,7 +4162,8 @@ class AuroDropdown extends AuroElement$4 {
4022
4162
  'trigger': true,
4023
4163
  'wrapper': true,
4024
4164
  'hasFocus': this.hasFocus,
4025
- 'simple': this.simple
4165
+ 'simple': this.simple,
4166
+ 'parentBorder': this.parentBorder
4026
4167
  };
4027
4168
  }
4028
4169
 
@@ -4074,7 +4215,7 @@ class AuroDropdown extends AuroElement$4 {
4074
4215
  /**
4075
4216
  * @private
4076
4217
  */
4077
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
4218
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$2();
4078
4219
 
4079
4220
  /**
4080
4221
  * @private
@@ -4289,6 +4430,15 @@ class AuroDropdown extends AuroElement$4 {
4289
4430
  reflect: true
4290
4431
  },
4291
4432
 
4433
+ /**
4434
+ * Defines if the trigger should size based on the parent element providing the border UI.
4435
+ * @private
4436
+ */
4437
+ parentBorder: {
4438
+ type: Boolean,
4439
+ reflect: true
4440
+ },
4441
+
4292
4442
  /**
4293
4443
  * If declared, the popover and trigger will be set to the same width.
4294
4444
  */
@@ -4416,7 +4566,7 @@ class AuroDropdown extends AuroElement$4 {
4416
4566
  *
4417
4567
  */
4418
4568
  static register(name = "auro-dropdown") {
4419
- AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
4569
+ AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroDropdown);
4420
4570
  }
4421
4571
 
4422
4572
  /**
@@ -4752,8 +4902,7 @@ class AuroDropdown extends AuroElement$4 {
4752
4902
  * @param {Event} event - The event object representing the slot change.
4753
4903
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
4754
4904
  */
4755
- handleDefaultSlot(event) {
4756
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
4905
+ handleDefaultSlot() {
4757
4906
 
4758
4907
  if (this.onSlotChange) {
4759
4908
  this.onSlotChange();
@@ -4815,6 +4964,7 @@ class AuroDropdown extends AuroElement$4 {
4815
4964
  ${this.chevron || this.common ? u$2`
4816
4965
  <div
4817
4966
  id="showStateIcon"
4967
+ class="chevron"
4818
4968
  part="chevron">
4819
4969
  <${this.iconTag}
4820
4970
  category="interface"
@@ -4829,9 +4979,6 @@ class AuroDropdown extends AuroElement$4 {
4829
4979
  <div class="${e(helpTextClasses)}">
4830
4980
  <slot name="helpText"></slot>
4831
4981
  </div>
4832
- <div class="slotContent">
4833
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
4834
- </div>
4835
4982
  <div id="bibSizer" part="size"></div>
4836
4983
  <${this.dropdownBibTag}
4837
4984
  id="bib"
@@ -4840,6 +4987,9 @@ class AuroDropdown extends AuroElement$4 {
4840
4987
  ?common="${this.common}"
4841
4988
  ?rounded="${this.common || this.rounded}"
4842
4989
  ?inset="${this.common || this.inset}">
4990
+ <div class="slotContent">
4991
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4992
+ </div>
4843
4993
  </${this.dropdownBibTag}>
4844
4994
  </div>
4845
4995
  `;
@@ -4851,67 +5001,63 @@ class AuroDropdown extends AuroElement$4 {
4851
5001
  * @returns {html} - Returns HTML for the classic layout.
4852
5002
  */
4853
5003
  renderLayoutClassic() {
4854
- const helpTextClasses = {
4855
- 'helpText': true,
4856
- 'leftIndent': false,
4857
- 'rightIndent': false
4858
- };
4859
5004
 
4860
5005
  return u$2`
4861
- ${this.renderBasicHtml(helpTextClasses)}
5006
+ <div>
5007
+ <div
5008
+ id="trigger"
5009
+ class="trigger"
5010
+ part="trigger"
5011
+ tabindex="${this.tabIndex}"
5012
+ ?showBorder="${this.showTriggerBorders}"
5013
+ role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5014
+ aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5015
+ aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
5016
+ aria-labelledby="${o(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 ? u$2`
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
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
5043
+ <slot name="helpText"></slot>
5044
+ </${this.helpTextTag}>
5045
+
5046
+ <div id="bibSizer" part="size"></div>
5047
+ <${this.dropdownBibTag}
5048
+ id="bib"
5049
+ ?data-show="${this.isPopoverVisible}"
5050
+ ?isfullscreen="${this.isBibFullscreen}"
5051
+ ?common="${this.common}"
5052
+ ?rounded="${this.common || this.rounded}"
5053
+ ?inset="${this.common || this.inset}"
5054
+ >
5055
+ <div class="slotContent">
5056
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
5057
+ </div>
5058
+ </${this.dropdownBibTag}>
5059
+ </div>
4862
5060
  `;
4863
- // return html`
4864
- // <div>
4865
- // <div
4866
- // id="trigger"
4867
- // class="trigger"
4868
- // part="trigger"
4869
- // tabindex="${this.tabIndex}"
4870
- // ?showBorder="${this.showTriggerBorders}"
4871
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4872
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4873
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4874
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4875
- // >
4876
- // <div class="triggerContentWrapper">
4877
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4878
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4879
- // </label>
4880
- // <div class="triggerContent">
4881
- // <slot
4882
- // name="trigger"
4883
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4884
- // </div>
4885
- // </div>
4886
- // ${this.chevron || this.common ? html`
4887
- // <div
4888
- // id="showStateIcon"
4889
- // part="chevron">
4890
- // <${this.iconTag}
4891
- // category="interface"
4892
- // name="chevron-down"
4893
- // ?onDark="${this.onDark}"
4894
- // variant="${this.disabled ? 'disabled' : 'muted'}">
4895
- // >
4896
- // </${this.iconTag}>
4897
- // </div>
4898
- // ` : undefined }
4899
- // </div>
4900
- // <div class="slotContent">
4901
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
4902
- // </div>
4903
- // <div id="bibSizer" part="size"></div>
4904
- // <${this.dropdownBibTag}
4905
- // id="bib"
4906
- // ?data-show="${this.isPopoverVisible}"
4907
- // ?isfullscreen="${this.isBibFullscreen}"
4908
- // ?common="${this.common}"
4909
- // ?rounded="${this.common || this.rounded}"
4910
- // ?inset="${this.common || this.inset}"
4911
- // >
4912
- // </${this.dropdownBibTag}>
4913
- // </div>
4914
- // `;
4915
5061
  }
4916
5062
 
4917
5063
  /**
@@ -4991,7 +5137,7 @@ var dropdownVersion = '3.0.0';
4991
5137
  */
4992
5138
  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}});
4993
5139
 
4994
- 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}`;
5140
+ 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}`;
4995
5141
 
4996
5142
  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}`;
4997
5143
 
@@ -9030,9 +9176,10 @@ class DateFormatter {
9030
9176
  /**
9031
9177
  * Convert a date object to string format.
9032
9178
  * @param {Object} date - Date to convert to string.
9033
- * @returns {Object} Returns the date as a string.
9179
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
9180
+ * @returns {String} Returns the date as a string.
9034
9181
  */
9035
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
9182
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
9036
9183
  year: "numeric",
9037
9184
  month: "2-digit",
9038
9185
  day: "2-digit",
@@ -9224,7 +9371,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
9224
9371
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
9225
9372
 
9226
9373
  // Get the date string of the date object we created from the string date
9227
- const actualDateStr = dateFormatter.getDateAsString(dateObj);
9374
+ const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
9228
9375
 
9229
9376
  // Guard Clause: Generated date matches date string input
9230
9377
  if (expectedDateStr !== actualDateStr) {
@@ -9389,7 +9536,7 @@ const {
9389
9536
 
9390
9537
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
9391
9538
 
9392
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9539
+ let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
9393
9540
 
9394
9541
  /* eslint-disable jsdoc/require-param */
9395
9542
 
@@ -9459,7 +9606,7 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9459
9606
  class AuroFormValidation {
9460
9607
 
9461
9608
  constructor() {
9462
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
9609
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
9463
9610
  }
9464
9611
 
9465
9612
  /**
@@ -11164,6 +11311,76 @@ var tokensCss$3$1 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
11164
11311
 
11165
11312
  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)}`;
11166
11313
 
11314
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
11315
+ // See LICENSE in the project root for license information.
11316
+
11317
+ // ---------------------------------------------------------------------
11318
+
11319
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11320
+
11321
+ let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
11322
+
11323
+ /* eslint-disable jsdoc/require-param */
11324
+
11325
+ /**
11326
+ * This will register a new custom element with the browser.
11327
+ * @param {String} name - The name of the custom element.
11328
+ * @param {Object} componentClass - The class to register as a custom element.
11329
+ * @returns {void}
11330
+ */
11331
+ registerComponent(name, componentClass) {
11332
+ if (!customElements.get(name)) {
11333
+ customElements.define(name, class extends componentClass {});
11334
+ }
11335
+ }
11336
+
11337
+ /**
11338
+ * Finds and returns the closest HTML Element based on a selector.
11339
+ * @returns {void}
11340
+ */
11341
+ closestElement(
11342
+ selector, // selector like in .closest()
11343
+ base = this, // extra functionality to skip a parent
11344
+ __Closest = (el, found = el && el.closest(selector)) =>
11345
+ !el || el === document || el === window
11346
+ ? null // standard .closest() returns null for non-found selectors also
11347
+ : found
11348
+ ? found // found a selector INside this element
11349
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
11350
+ ) {
11351
+ return __Closest(base);
11352
+ }
11353
+ /* eslint-enable jsdoc/require-param */
11354
+
11355
+ /**
11356
+ * 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.
11357
+ * @param {Object} elem - The element to check.
11358
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
11359
+ * @returns {void}
11360
+ */
11361
+ handleComponentTagRename(elem, tagName) {
11362
+ const tag = tagName.toLowerCase();
11363
+ const elemTag = elem.tagName.toLowerCase();
11364
+
11365
+ if (elemTag !== tag) {
11366
+ elem.setAttribute(tag, true);
11367
+ }
11368
+ }
11369
+
11370
+ /**
11371
+ * Validates if an element is a specific Auro component.
11372
+ * @param {Object} elem - The element to validate.
11373
+ * @param {String} tagName - The name of the Auro component to check against.
11374
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
11375
+ */
11376
+ elementMatch(elem, tagName) {
11377
+ const tag = tagName.toLowerCase();
11378
+ const elemTag = elem.tagName.toLowerCase();
11379
+
11380
+ return elemTag === tag || elem.hasAttribute(tag);
11381
+ }
11382
+ };
11383
+
11167
11384
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
11168
11385
  // See LICENSE in the project root for license information.
11169
11386
 
@@ -11183,7 +11400,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
11183
11400
  */
11184
11401
  privateDefaults() {
11185
11402
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
11186
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
11403
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
11187
11404
  }
11188
11405
 
11189
11406
  // function to define props used within the scope of this component
@@ -11265,7 +11482,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
11265
11482
  *
11266
11483
  */
11267
11484
  static register(name = "auro-icon") {
11268
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
11485
+ AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
11269
11486
  }
11270
11487
 
11271
11488
  connectedCallback() {
@@ -11371,7 +11588,7 @@ class AuroLoader extends i$2 {
11371
11588
  /**
11372
11589
  * @private
11373
11590
  */
11374
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
11591
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
11375
11592
 
11376
11593
  this.orbit = false;
11377
11594
  this.ringworm = false;
@@ -11434,7 +11651,7 @@ class AuroLoader extends i$2 {
11434
11651
  *
11435
11652
  */
11436
11653
  static register(name = "auro-loader") {
11437
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
11654
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroLoader);
11438
11655
  }
11439
11656
 
11440
11657
  firstUpdated() {
@@ -11738,7 +11955,7 @@ class AuroButton extends i$2 {
11738
11955
  *
11739
11956
  */
11740
11957
  static register(name = "auro-button") {
11741
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroButton);
11958
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroButton);
11742
11959
  }
11743
11960
 
11744
11961
  /**
@@ -11843,7 +12060,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
11843
12060
 
11844
12061
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11845
12062
 
11846
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
12063
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
11847
12064
 
11848
12065
  /* eslint-disable jsdoc/require-param */
11849
12066
 
@@ -11924,7 +12141,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
11924
12141
  this.onDark = false;
11925
12142
  this.hasTextContent = false;
11926
12143
 
11927
- AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
12144
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
11928
12145
  }
11929
12146
 
11930
12147
  static get styles() {
@@ -11980,7 +12197,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
11980
12197
  *
11981
12198
  */
11982
12199
  static register(name = "auro-helptext") {
11983
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
12200
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
11984
12201
  }
11985
12202
 
11986
12203
  updated() {
@@ -12104,7 +12321,7 @@ class AuroInput extends BaseInput {
12104
12321
  /**
12105
12322
  * Returns classmap configuration for html5 inputs in all layouts.
12106
12323
  * @private
12107
- * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12324
+ * @returns {object} - Returns classmap.
12108
12325
  */
12109
12326
  get commonInputClasses() {
12110
12327
  return {
@@ -12113,9 +12330,9 @@ class AuroInput extends BaseInput {
12113
12330
  }
12114
12331
 
12115
12332
  /**
12116
- * Returns classmap configuration for html5 inputs in all layouts.
12333
+ * Returns classmap configuration for html5 inputs in each layout.
12117
12334
  * @private
12118
- * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12335
+ * @return {object} - Returns classmap.
12119
12336
  */
12120
12337
  get legacyInputClasses() {
12121
12338
  return {
@@ -12124,6 +12341,11 @@ class AuroInput extends BaseInput {
12124
12341
  };
12125
12342
  }
12126
12343
 
12344
+ /**
12345
+ * Returns classmap configuration for wrapper elements in each layout.
12346
+ * @private
12347
+ * @return {object} - Returns classmap.
12348
+ */
12127
12349
  get commonWrapperClasses() {
12128
12350
  return {
12129
12351
  'wrapper': true,
@@ -12132,6 +12354,11 @@ class AuroInput extends BaseInput {
12132
12354
  };
12133
12355
  }
12134
12356
 
12357
+ /**
12358
+ * Returns classmap configuration for helpText elements in each layout.
12359
+ * @private
12360
+ * @return {object} - Returns classmap.
12361
+ */
12135
12362
  get helpTextClasses() {
12136
12363
  return {
12137
12364
  'helpTextWrapper': true,
@@ -12149,7 +12376,7 @@ class AuroInput extends BaseInput {
12149
12376
  *
12150
12377
  */
12151
12378
  static register(name = "auro-input") {
12152
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroInput);
12379
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroInput);
12153
12380
  }
12154
12381
 
12155
12382
  /**
@@ -12385,9 +12612,9 @@ class AuroInput extends BaseInput {
12385
12612
  }
12386
12613
 
12387
12614
  /**
12388
- * Returns HTML for the default layout.
12615
+ * Returns HTML for the classic layout.
12389
12616
  * @private
12390
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
12617
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
12391
12618
  */
12392
12619
  renderLayoutClassic() {
12393
12620
  return u$2`
@@ -12527,7 +12754,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
12527
12754
 
12528
12755
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
12529
12756
 
12530
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
12757
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
12531
12758
 
12532
12759
  /* eslint-disable jsdoc/require-param */
12533
12760
 
@@ -12784,6 +13011,76 @@ var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
12784
13011
 
12785
13012
  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)}`;
12786
13013
 
13014
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
13015
+ // See LICENSE in the project root for license information.
13016
+
13017
+ // ---------------------------------------------------------------------
13018
+
13019
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
13020
+
13021
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
13022
+
13023
+ /* eslint-disable jsdoc/require-param */
13024
+
13025
+ /**
13026
+ * This will register a new custom element with the browser.
13027
+ * @param {String} name - The name of the custom element.
13028
+ * @param {Object} componentClass - The class to register as a custom element.
13029
+ * @returns {void}
13030
+ */
13031
+ registerComponent(name, componentClass) {
13032
+ if (!customElements.get(name)) {
13033
+ customElements.define(name, class extends componentClass {});
13034
+ }
13035
+ }
13036
+
13037
+ /**
13038
+ * Finds and returns the closest HTML Element based on a selector.
13039
+ * @returns {void}
13040
+ */
13041
+ closestElement(
13042
+ selector, // selector like in .closest()
13043
+ base = this, // extra functionality to skip a parent
13044
+ __Closest = (el, found = el && el.closest(selector)) =>
13045
+ !el || el === document || el === window
13046
+ ? null // standard .closest() returns null for non-found selectors also
13047
+ : found
13048
+ ? found // found a selector INside this element
13049
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
13050
+ ) {
13051
+ return __Closest(base);
13052
+ }
13053
+ /* eslint-enable jsdoc/require-param */
13054
+
13055
+ /**
13056
+ * 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.
13057
+ * @param {Object} elem - The element to check.
13058
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
13059
+ * @returns {void}
13060
+ */
13061
+ handleComponentTagRename(elem, tagName) {
13062
+ const tag = tagName.toLowerCase();
13063
+ const elemTag = elem.tagName.toLowerCase();
13064
+
13065
+ if (elemTag !== tag) {
13066
+ elem.setAttribute(tag, true);
13067
+ }
13068
+ }
13069
+
13070
+ /**
13071
+ * Validates if an element is a specific Auro component.
13072
+ * @param {Object} elem - The element to validate.
13073
+ * @param {String} tagName - The name of the Auro component to check against.
13074
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
13075
+ */
13076
+ elementMatch(elem, tagName) {
13077
+ const tag = tagName.toLowerCase();
13078
+ const elemTag = elem.tagName.toLowerCase();
13079
+
13080
+ return elemTag === tag || elem.hasAttribute(tag);
13081
+ }
13082
+ };
13083
+
12787
13084
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12788
13085
  // See LICENSE in the project root for license information.
12789
13086
 
@@ -12803,7 +13100,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
12803
13100
  */
12804
13101
  privateDefaults() {
12805
13102
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
12806
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
13103
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
12807
13104
  }
12808
13105
 
12809
13106
  // function to define props used within the scope of this component
@@ -12885,7 +13182,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
12885
13182
  *
12886
13183
  */
12887
13184
  static register(name = "auro-icon") {
12888
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
13185
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
12889
13186
  }
12890
13187
 
12891
13188
  connectedCallback() {
@@ -12982,7 +13279,7 @@ class AuroHeader extends i$2 {
12982
13279
  /**
12983
13280
  * @private
12984
13281
  */
12985
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
13282
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
12986
13283
  }
12987
13284
 
12988
13285
  // function to define props used within the scope of this component
@@ -13012,7 +13309,7 @@ class AuroHeader extends i$2 {
13012
13309
  *
13013
13310
  */
13014
13311
  static register(name = "auro-header") {
13015
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
13312
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
13016
13313
  }
13017
13314
 
13018
13315
  firstUpdated() {
@@ -13108,7 +13405,7 @@ class AuroBibtemplate extends i$2 {
13108
13405
 
13109
13406
  this.large = false;
13110
13407
 
13111
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
13408
+ AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
13112
13409
 
13113
13410
  const versioning = new AuroDependencyVersioning();
13114
13411
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
@@ -13147,7 +13444,7 @@ class AuroBibtemplate extends i$2 {
13147
13444
  *
13148
13445
  */
13149
13446
  static register(name = "auro-bibtemplate") {
13150
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
13447
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
13151
13448
  }
13152
13449
 
13153
13450
  /**
@@ -13187,6 +13484,18 @@ class AuroBibtemplate extends i$2 {
13187
13484
  this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
13188
13485
  }
13189
13486
 
13487
+ firstUpdated(changedProperties) {
13488
+ super.firstUpdated(changedProperties);
13489
+
13490
+ this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
13491
+ bubbles: true,
13492
+ composed: true,
13493
+ detail: {
13494
+ element: this
13495
+ }
13496
+ }));
13497
+ }
13498
+
13190
13499
  // function that renders the HTML and CSS into the scope of the component
13191
13500
  render() {
13192
13501
  return u$2`
@@ -13330,7 +13639,7 @@ var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
13330
13639
 
13331
13640
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
13332
13641
 
13333
- class AuroLibraryRuntimeUtils {
13642
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
13334
13643
 
13335
13644
  /* eslint-disable jsdoc/require-param */
13336
13645
 
@@ -13391,7 +13700,7 @@ class AuroLibraryRuntimeUtils {
13391
13700
 
13392
13701
  return elemTag === tag || elem.hasAttribute(tag);
13393
13702
  }
13394
- }
13703
+ };
13395
13704
 
13396
13705
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
13397
13706
  // See LICENSE in the project root for license information.
@@ -13411,7 +13720,7 @@ class AuroHelpText extends i$2 {
13411
13720
  this.onDark = false;
13412
13721
  this.hasTextContent = false;
13413
13722
 
13414
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
13723
+ AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-helptext');
13415
13724
  }
13416
13725
 
13417
13726
  static get styles() {
@@ -13467,7 +13776,7 @@ class AuroHelpText extends i$2 {
13467
13776
  *
13468
13777
  */
13469
13778
  static register(name = "auro-helptext") {
13470
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
13779
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHelpText);
13471
13780
  }
13472
13781
 
13473
13782
  updated() {
@@ -13577,7 +13886,7 @@ class AuroCombobox extends AuroElement$1 {
13577
13886
 
13578
13887
  this.validation = new AuroFormValidation$1();
13579
13888
 
13580
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
13889
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
13581
13890
 
13582
13891
  this.isHiddenWhileLoading = false;
13583
13892
 
@@ -13885,7 +14194,7 @@ class AuroCombobox extends AuroElement$1 {
13885
14194
  *
13886
14195
  */
13887
14196
  static register(name = 'auro-combobox') {
13888
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCombobox);
14197
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCombobox);
13889
14198
  }
13890
14199
 
13891
14200
  /**
@@ -14042,15 +14351,8 @@ class AuroCombobox extends AuroElement$1 {
14042
14351
  this.showBib();
14043
14352
  });
14044
14353
 
14045
- // this.dropdown.addEventListener('auroDropdown-show', () => {
14046
- this.menuWrapper = this.dropdown.querySelector('.menuWrapper');
14047
- if (this.menu) {
14048
- this.menuWrapper.append(this.menu);
14049
- }
14050
-
14051
14354
  // setting up bibtemplate
14052
14355
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
14053
- this.bibtemplate.append(this.menuWrapper);
14054
14356
 
14055
14357
  // Exposes the CSS parts from the bibtemplate for styling
14056
14358
  this.bibtemplate.exposeCssParts();
@@ -14075,10 +14377,9 @@ class AuroCombobox extends AuroElement$1 {
14075
14377
  this.menu = this.querySelector('auro-menu, [auro-menu]');
14076
14378
 
14077
14379
  // a racing condition on custom-combobox with custom-menu
14078
- if (!this.menu) {
14380
+ if (!this.menu || this.menuShadowRoot === null) {
14079
14381
  setTimeout(() => {
14080
14382
  this.configureMenu();
14081
- this.menuWrapper.append(this.menu);
14082
14383
  }, 0);
14083
14384
  return;
14084
14385
  }
@@ -14153,41 +14454,12 @@ class AuroCombobox extends AuroElement$1 {
14153
14454
  });
14154
14455
  }
14155
14456
 
14156
- /**
14157
- * Dispatches input's keyboard events from host
14158
- * This allows key events from the input to be handled by the parent.
14159
- * @private
14160
- * @param {KeyboardEvent} event - The keyboard event.
14161
- */
14162
- bubbleUpInputEvent(event) {
14163
- // Do not need to bubble events if the input is not in bib.
14164
- if (event.currentTarget.parentNode !== this.dropdown) {
14165
- // prevents browsers to move cursor in input element.
14166
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
14167
- event.preventDefault();
14168
- }
14169
- const dupEvent = new event.constructor(event.type, event);
14170
- this.dispatchEvent(dupEvent);
14171
- }
14172
- }
14173
-
14174
14457
  /**
14175
14458
  * Binds all behavior needed to the input after rendering.
14176
14459
  * @private
14177
14460
  * @returns {void}
14178
14461
  */
14179
14462
  configureInput() {
14180
- // When input is in bibtemplate, make the event to be fired at combobox element
14181
- this.bubbleUpInputEvent = this.bubbleUpInputEvent.bind(this);
14182
-
14183
- const events = [
14184
- 'input',
14185
- 'keydown',
14186
- 'keyup'
14187
- ];
14188
- events.forEach((eventType) => {
14189
- this.input.addEventListener(eventType, this.bubbleUpInputEvent);
14190
- });
14191
14463
 
14192
14464
  this.addEventListener('keyup', (evt) => {
14193
14465
  if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
@@ -14250,6 +14522,7 @@ class AuroCombobox extends AuroElement$1 {
14250
14522
  const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
14251
14523
 
14252
14524
  if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
14525
+
14253
14526
  if (this.input.parentNode === this.dropdown) {
14254
14527
  // keep the trigger size the same even after input gets removed
14255
14528
  const parentSize = window.getComputedStyle(this.dropdown.trigger);
@@ -14267,7 +14540,7 @@ class AuroCombobox extends AuroElement$1 {
14267
14540
  inputAlertIcon.style.display = 'none';
14268
14541
  }
14269
14542
 
14270
- this.bibtemplate.append(this.input);
14543
+ this.bibtemplate.prepend(this.input);
14271
14544
  this.input.focus();
14272
14545
  }
14273
14546
  } else if (this.input.parentNode !== this.dropdown) {
@@ -14281,7 +14554,7 @@ class AuroCombobox extends AuroElement$1 {
14281
14554
  inputAlertIcon.style.display = '';
14282
14555
  }
14283
14556
 
14284
- this.dropdown.append(this.input);
14557
+ this.dropdown.prepend(this.input);
14285
14558
  this.input.focus();
14286
14559
  }
14287
14560
  }
@@ -14602,9 +14875,8 @@ class AuroCombobox extends AuroElement$1 {
14602
14875
  slot="trigger">
14603
14876
  </${this.inputTag}>
14604
14877
 
14605
- <div class="menuWrapper"></div>
14606
-
14607
14878
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
14879
+ <slot></slot>
14608
14880
  </${this.bibtemplateTag}>
14609
14881
 
14610
14882
  <span slot="helpText">
@@ -14821,7 +15093,7 @@ class AuroMenu extends i$2 {
14821
15093
  *
14822
15094
  */
14823
15095
  static register(name = "auro-menu") {
14824
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
15096
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
14825
15097
  }
14826
15098
 
14827
15099
  // Lifecycle Methods
@@ -14845,7 +15117,7 @@ class AuroMenu extends i$2 {
14845
15117
  }
14846
15118
 
14847
15119
  firstUpdated() {
14848
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
15120
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
14849
15121
 
14850
15122
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
14851
15123
  this.initializeMenu();
@@ -15554,6 +15826,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
15554
15826
 
15555
15827
  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)}`;
15556
15828
 
15829
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
15830
+ // See LICENSE in the project root for license information.
15831
+
15832
+ // ---------------------------------------------------------------------
15833
+
15834
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
15835
+
15836
+ class AuroLibraryRuntimeUtils {
15837
+
15838
+ /* eslint-disable jsdoc/require-param */
15839
+
15840
+ /**
15841
+ * This will register a new custom element with the browser.
15842
+ * @param {String} name - The name of the custom element.
15843
+ * @param {Object} componentClass - The class to register as a custom element.
15844
+ * @returns {void}
15845
+ */
15846
+ registerComponent(name, componentClass) {
15847
+ if (!customElements.get(name)) {
15848
+ customElements.define(name, class extends componentClass {});
15849
+ }
15850
+ }
15851
+
15852
+ /**
15853
+ * Finds and returns the closest HTML Element based on a selector.
15854
+ * @returns {void}
15855
+ */
15856
+ closestElement(
15857
+ selector, // selector like in .closest()
15858
+ base = this, // extra functionality to skip a parent
15859
+ __Closest = (el, found = el && el.closest(selector)) =>
15860
+ !el || el === document || el === window
15861
+ ? null // standard .closest() returns null for non-found selectors also
15862
+ : found
15863
+ ? found // found a selector INside this element
15864
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
15865
+ ) {
15866
+ return __Closest(base);
15867
+ }
15868
+ /* eslint-enable jsdoc/require-param */
15869
+
15870
+ /**
15871
+ * 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.
15872
+ * @param {Object} elem - The element to check.
15873
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
15874
+ * @returns {void}
15875
+ */
15876
+ handleComponentTagRename(elem, tagName) {
15877
+ const tag = tagName.toLowerCase();
15878
+ const elemTag = elem.tagName.toLowerCase();
15879
+
15880
+ if (elemTag !== tag) {
15881
+ elem.setAttribute(tag, true);
15882
+ }
15883
+ }
15884
+
15885
+ /**
15886
+ * Validates if an element is a specific Auro component.
15887
+ * @param {Object} elem - The element to validate.
15888
+ * @param {String} tagName - The name of the Auro component to check against.
15889
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
15890
+ */
15891
+ elementMatch(elem, tagName) {
15892
+ const tag = tagName.toLowerCase();
15893
+ const elemTag = elem.tagName.toLowerCase();
15894
+
15895
+ return elemTag === tag || elem.hasAttribute(tag);
15896
+ }
15897
+ }
15898
+
15557
15899
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
15558
15900
  // See LICENSE in the project root for license information.
15559
15901
 
@@ -15573,7 +15915,7 @@ class AuroIcon extends BaseIcon {
15573
15915
  */
15574
15916
  privateDefaults() {
15575
15917
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
15576
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
15918
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
15577
15919
  }
15578
15920
 
15579
15921
  // function to define props used within the scope of this component
@@ -15655,7 +15997,7 @@ class AuroIcon extends BaseIcon {
15655
15997
  *
15656
15998
  */
15657
15999
  static register(name = "auro-icon") {
15658
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
16000
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
15659
16001
  }
15660
16002
 
15661
16003
  connectedCallback() {
@@ -15761,7 +16103,7 @@ class AuroMenuOption extends i$2 {
15761
16103
  /**
15762
16104
  * @private
15763
16105
  */
15764
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
16106
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
15765
16107
  }
15766
16108
 
15767
16109
  static get properties() {
@@ -15805,7 +16147,7 @@ class AuroMenuOption extends i$2 {
15805
16147
  *
15806
16148
  */
15807
16149
  static register(name = "auro-menuoption") {
15808
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
16150
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
15809
16151
  }
15810
16152
 
15811
16153
  firstUpdated() {