@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
@@ -51,7 +51,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
51
51
 
52
52
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
53
53
 
54
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
54
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
55
55
 
56
56
  /* eslint-disable jsdoc/require-param */
57
57
 
@@ -170,9 +170,10 @@ let DateFormatter$1 = class DateFormatter {
170
170
  /**
171
171
  * Convert a date object to string format.
172
172
  * @param {Object} date - Date to convert to string.
173
- * @returns {Object} Returns the date as a string.
173
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
174
+ * @returns {String} Returns the date as a string.
174
175
  */
175
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
176
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
176
177
  year: "numeric",
177
178
  month: "2-digit",
178
179
  day: "2-digit",
@@ -364,7 +365,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
364
365
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
365
366
 
366
367
  // Get the date string of the date object we created from the string date
367
- const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
368
+ const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
368
369
 
369
370
  // Guard Clause: Generated date matches date string input
370
371
  if (expectedDateStr !== actualDateStr) {
@@ -529,7 +530,7 @@ const {
529
530
  let AuroFormValidation$1 = class AuroFormValidation {
530
531
 
531
532
  constructor() {
532
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
533
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
533
534
  }
534
535
 
535
536
  /**
@@ -895,7 +896,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
895
896
 
896
897
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
897
898
 
898
- let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
899
+ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
899
900
 
900
901
  /* eslint-disable jsdoc/require-param */
901
902
 
@@ -1478,10 +1479,11 @@ const flip$1 = function (options) {
1478
1479
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1479
1480
  const nextPlacement = placements[nextIndex];
1480
1481
  if (nextPlacement) {
1481
- var _overflowsData$;
1482
1482
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
1483
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
1484
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
1483
+ if (!ignoreCrossAxisOverflow ||
1484
+ // We leave the current main axis only if every placement on that axis
1485
+ // overflows the main axis.
1486
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
1485
1487
  // Try next placement and re-run the lifecycle.
1486
1488
  return {
1487
1489
  data: {
@@ -2502,8 +2504,28 @@ class AuroFloatingUI {
2502
2504
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
2503
2505
  AuroFloatingUI.isMousePressHandlerInitialized = true;
2504
2506
 
2507
+ // Track timeout for isMousePressed reset to avoid race conditions
2508
+ if (!AuroFloatingUI._mousePressedTimeout) {
2509
+ AuroFloatingUI._mousePressedTimeout = null;
2510
+ }
2505
2511
  const mouseEventGlobalHandler = (event) => {
2506
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
2512
+ const isPressed = event.type === 'mousedown';
2513
+ if (isPressed) {
2514
+ // Clear any pending timeout to prevent race condition
2515
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
2516
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
2517
+ AuroFloatingUI._mousePressedTimeout = null;
2518
+ }
2519
+ if (!AuroFloatingUI.isMousePressed) {
2520
+ AuroFloatingUI.isMousePressed = true;
2521
+ }
2522
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
2523
+ // Schedule reset and track timeout ID
2524
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
2525
+ AuroFloatingUI.isMousePressed = false;
2526
+ AuroFloatingUI._mousePressedTimeout = null;
2527
+ }, 0);
2528
+ }
2507
2529
  };
2508
2530
 
2509
2531
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -2630,6 +2652,7 @@ class AuroFloatingUI {
2630
2652
 
2631
2653
  // Compute the position of the bib
2632
2654
  computePosition(this.element.trigger, this.element.bib, {
2655
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
2633
2656
  placement: this.element.floaterConfig?.placement,
2634
2657
  middleware: middleware || []
2635
2658
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -2764,8 +2787,9 @@ class AuroFloatingUI {
2764
2787
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2765
2788
  return;
2766
2789
  }
2767
- // if fullscreen bib is still open and the focus is missing, do not close
2768
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
2790
+
2791
+ // if fullscreen bib is in fullscreen mode, do not close
2792
+ if (this.element.bib.hasAttribute('isfullscreen')) {
2769
2793
  return;
2770
2794
  }
2771
2795
 
@@ -3066,8 +3090,6 @@ class AuroFloatingUI {
3066
3090
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
3067
3091
  }
3068
3092
 
3069
- document.body.append(this.element.bib);
3070
-
3071
3093
  this.regenerateBibId();
3072
3094
  this.handleTriggerTabIndex();
3073
3095
 
@@ -3298,6 +3320,76 @@ var tokensCss$2$1 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
3298
3320
 
3299
3321
  var colorCss$3$1 = css`: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)}`;
3300
3322
 
3323
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3324
+ // See LICENSE in the project root for license information.
3325
+
3326
+ // ---------------------------------------------------------------------
3327
+
3328
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3329
+
3330
+ let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
3331
+
3332
+ /* eslint-disable jsdoc/require-param */
3333
+
3334
+ /**
3335
+ * This will register a new custom element with the browser.
3336
+ * @param {String} name - The name of the custom element.
3337
+ * @param {Object} componentClass - The class to register as a custom element.
3338
+ * @returns {void}
3339
+ */
3340
+ registerComponent(name, componentClass) {
3341
+ if (!customElements.get(name)) {
3342
+ customElements.define(name, class extends componentClass {});
3343
+ }
3344
+ }
3345
+
3346
+ /**
3347
+ * Finds and returns the closest HTML Element based on a selector.
3348
+ * @returns {void}
3349
+ */
3350
+ closestElement(
3351
+ selector, // selector like in .closest()
3352
+ base = this, // extra functionality to skip a parent
3353
+ __Closest = (el, found = el && el.closest(selector)) =>
3354
+ !el || el === document || el === window
3355
+ ? null // standard .closest() returns null for non-found selectors also
3356
+ : found
3357
+ ? found // found a selector INside this element
3358
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
3359
+ ) {
3360
+ return __Closest(base);
3361
+ }
3362
+ /* eslint-enable jsdoc/require-param */
3363
+
3364
+ /**
3365
+ * 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.
3366
+ * @param {Object} elem - The element to check.
3367
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
3368
+ * @returns {void}
3369
+ */
3370
+ handleComponentTagRename(elem, tagName) {
3371
+ const tag = tagName.toLowerCase();
3372
+ const elemTag = elem.tagName.toLowerCase();
3373
+
3374
+ if (elemTag !== tag) {
3375
+ elem.setAttribute(tag, true);
3376
+ }
3377
+ }
3378
+
3379
+ /**
3380
+ * Validates if an element is a specific Auro component.
3381
+ * @param {Object} elem - The element to validate.
3382
+ * @param {String} tagName - The name of the Auro component to check against.
3383
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
3384
+ */
3385
+ elementMatch(elem, tagName) {
3386
+ const tag = tagName.toLowerCase();
3387
+ const elemTag = elem.tagName.toLowerCase();
3388
+
3389
+ return elemTag === tag || elem.hasAttribute(tag);
3390
+ }
3391
+ };
3392
+
3301
3393
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3302
3394
  // See LICENSE in the project root for license information.
3303
3395
 
@@ -3467,7 +3559,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3467
3559
 
3468
3560
  var iconVersion$2 = '6.1.2';
3469
3561
 
3470
- var styleCss$1$3 = css`: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}`;
3562
+ var styleCss$1$3 = css`: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}`;
3471
3563
 
3472
3564
  var colorCss$2$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3473
3565
 
@@ -3477,7 +3569,6 @@ var tokensCss$1$2 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-colo
3477
3569
  // See LICENSE in the project root for license information.
3478
3570
 
3479
3571
 
3480
-
3481
3572
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3482
3573
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3483
3574
  'xl',
@@ -3502,7 +3593,7 @@ class AuroDropdownBib extends LitElement {
3502
3593
  */
3503
3594
  this._mobileBreakpointValue = undefined;
3504
3595
 
3505
- AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3596
+ AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3506
3597
  }
3507
3598
 
3508
3599
  static get styles() {
@@ -3547,6 +3638,13 @@ class AuroDropdownBib extends LitElement {
3547
3638
  type: Boolean,
3548
3639
  reflect: true
3549
3640
  },
3641
+
3642
+ /**
3643
+ * A reference to the associated bib template element.
3644
+ */
3645
+ bibTemplate: {
3646
+ type: Object
3647
+ }
3550
3648
  };
3551
3649
  }
3552
3650
 
@@ -3579,9 +3677,50 @@ class AuroDropdownBib extends LitElement {
3579
3677
  }
3580
3678
  }
3581
3679
  });
3680
+
3681
+ if (this.bibTemplate) {
3682
+ // If the bib template is found, set the fullscreen attribute
3683
+ if (this.isFullscreen) {
3684
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
3685
+ } else {
3686
+ this.bibTemplate.removeAttribute('isFullscreen');
3687
+ }
3688
+ }
3582
3689
  }
3583
3690
  }
3584
3691
 
3692
+ connectedCallback() {
3693
+ super.connectedCallback();
3694
+
3695
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
3696
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
3697
+ const bibTemplate = event.detail.element;
3698
+ this.bibTemplate = bibTemplate;
3699
+
3700
+ if (bibTemplate) {
3701
+ // If the bib template is found, set the fullscreen attribute
3702
+ if (this.isFullscreen) {
3703
+ bibTemplate.setAttribute('isFullscreen', 'true');
3704
+ } else {
3705
+ bibTemplate.removeAttribute('isFullscreen');
3706
+ }
3707
+ }
3708
+ });
3709
+ }
3710
+
3711
+ firstUpdated(changedProperties) {
3712
+ super.firstUpdated(changedProperties);
3713
+
3714
+ // Dispatch a custom event when the component is connected
3715
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3716
+ bubbles: true,
3717
+ composed: true,
3718
+ detail: {
3719
+ element: this
3720
+ }
3721
+ }));
3722
+ }
3723
+
3585
3724
  // function that renders the HTML and CSS into the scope of the component
3586
3725
  render() {
3587
3726
  return html`
@@ -3594,7 +3733,7 @@ class AuroDropdownBib extends LitElement {
3594
3733
 
3595
3734
  var dropdownVersion$1 = '3.0.0';
3596
3735
 
3597
- var shapeSizeCss$1 = css`.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}`;
3736
+ var shapeSizeCss$1 = css`.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}`;
3598
3737
 
3599
3738
  var colorCss$1$2 = css`: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)}`;
3600
3739
 
@@ -3602,9 +3741,9 @@ var classicColorCss$1 = css`:host([layout*=classic]) .label{color:var(--ds-auro-
3602
3741
 
3603
3742
  var classicLayoutCss = css`: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)}`;
3604
3743
 
3605
- var styleEmphasizedCss$1 = css`: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)}`;
3744
+ var styleEmphasizedCss$1 = css`: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))}`;
3606
3745
 
3607
- var styleSnowflakeCss$1 = css`: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)}`;
3746
+ var styleSnowflakeCss$1 = css`: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)}`;
3608
3747
 
3609
3748
  var colorCss$5 = css`: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)}`;
3610
3749
 
@@ -3619,7 +3758,7 @@ var tokensCss$6 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3619
3758
 
3620
3759
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3621
3760
 
3622
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3761
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3623
3762
 
3624
3763
  /* eslint-disable jsdoc/require-param */
3625
3764
 
@@ -3700,7 +3839,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
3700
3839
  this.onDark = false;
3701
3840
  this.hasTextContent = false;
3702
3841
 
3703
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
3842
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3704
3843
  }
3705
3844
 
3706
3845
  static get styles() {
@@ -3756,7 +3895,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
3756
3895
  *
3757
3896
  */
3758
3897
  static register(name = "auro-helptext") {
3759
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
3898
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3760
3899
  }
3761
3900
 
3762
3901
  updated() {
@@ -3938,6 +4077,7 @@ class AuroDropdown extends AuroElement$3 {
3938
4077
  this.layout = 'classic';
3939
4078
  this.shape = 'rounded';
3940
4079
  this.size = 'xl';
4080
+ this.parentBorder = false;
3941
4081
 
3942
4082
  this.privateDefaults();
3943
4083
  }
@@ -3953,7 +4093,8 @@ class AuroDropdown extends AuroElement$3 {
3953
4093
  'trigger': true,
3954
4094
  'wrapper': true,
3955
4095
  'hasFocus': this.hasFocus,
3956
- 'simple': this.simple
4096
+ 'simple': this.simple,
4097
+ 'parentBorder': this.parentBorder
3957
4098
  };
3958
4099
  }
3959
4100
 
@@ -4005,7 +4146,7 @@ class AuroDropdown extends AuroElement$3 {
4005
4146
  /**
4006
4147
  * @private
4007
4148
  */
4008
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
4149
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$2();
4009
4150
 
4010
4151
  /**
4011
4152
  * @private
@@ -4220,6 +4361,15 @@ class AuroDropdown extends AuroElement$3 {
4220
4361
  reflect: true
4221
4362
  },
4222
4363
 
4364
+ /**
4365
+ * Defines if the trigger should size based on the parent element providing the border UI.
4366
+ * @private
4367
+ */
4368
+ parentBorder: {
4369
+ type: Boolean,
4370
+ reflect: true
4371
+ },
4372
+
4223
4373
  /**
4224
4374
  * If declared, the popover and trigger will be set to the same width.
4225
4375
  */
@@ -4347,7 +4497,7 @@ class AuroDropdown extends AuroElement$3 {
4347
4497
  *
4348
4498
  */
4349
4499
  static register(name = "auro-dropdown") {
4350
- AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
4500
+ AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroDropdown);
4351
4501
  }
4352
4502
 
4353
4503
  /**
@@ -4683,8 +4833,7 @@ class AuroDropdown extends AuroElement$3 {
4683
4833
  * @param {Event} event - The event object representing the slot change.
4684
4834
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
4685
4835
  */
4686
- handleDefaultSlot(event) {
4687
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
4836
+ handleDefaultSlot() {
4688
4837
 
4689
4838
  if (this.onSlotChange) {
4690
4839
  this.onSlotChange();
@@ -4746,6 +4895,7 @@ class AuroDropdown extends AuroElement$3 {
4746
4895
  ${this.chevron || this.common ? html`
4747
4896
  <div
4748
4897
  id="showStateIcon"
4898
+ class="chevron"
4749
4899
  part="chevron">
4750
4900
  <${this.iconTag}
4751
4901
  category="interface"
@@ -4760,9 +4910,6 @@ class AuroDropdown extends AuroElement$3 {
4760
4910
  <div class="${classMap(helpTextClasses)}">
4761
4911
  <slot name="helpText"></slot>
4762
4912
  </div>
4763
- <div class="slotContent">
4764
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
4765
- </div>
4766
4913
  <div id="bibSizer" part="size"></div>
4767
4914
  <${this.dropdownBibTag}
4768
4915
  id="bib"
@@ -4771,6 +4918,9 @@ class AuroDropdown extends AuroElement$3 {
4771
4918
  ?common="${this.common}"
4772
4919
  ?rounded="${this.common || this.rounded}"
4773
4920
  ?inset="${this.common || this.inset}">
4921
+ <div class="slotContent">
4922
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4923
+ </div>
4774
4924
  </${this.dropdownBibTag}>
4775
4925
  </div>
4776
4926
  `;
@@ -4782,67 +4932,63 @@ class AuroDropdown extends AuroElement$3 {
4782
4932
  * @returns {html} - Returns HTML for the classic layout.
4783
4933
  */
4784
4934
  renderLayoutClassic() {
4785
- const helpTextClasses = {
4786
- 'helpText': true,
4787
- 'leftIndent': false,
4788
- 'rightIndent': false
4789
- };
4790
4935
 
4791
4936
  return html`
4792
- ${this.renderBasicHtml(helpTextClasses)}
4937
+ <div>
4938
+ <div
4939
+ id="trigger"
4940
+ class="trigger"
4941
+ part="trigger"
4942
+ tabindex="${this.tabIndex}"
4943
+ ?showBorder="${this.showTriggerBorders}"
4944
+ role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4945
+ aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4946
+ aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4947
+ aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4948
+ >
4949
+ <div class="triggerContentWrapper">
4950
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4951
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4952
+ </label>
4953
+ <div class="triggerContent">
4954
+ <slot
4955
+ name="trigger"
4956
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4957
+ </div>
4958
+ </div>
4959
+ ${this.chevron || this.common ? html`
4960
+ <div
4961
+ id="showStateIcon"
4962
+ part="chevron">
4963
+ <${this.iconTag}
4964
+ category="interface"
4965
+ name="chevron-down"
4966
+ ?onDark="${this.onDark}"
4967
+ variant="${this.disabled ? 'disabled' : 'muted'}">
4968
+ >
4969
+ </${this.iconTag}>
4970
+ </div>
4971
+ ` : undefined }
4972
+ </div>
4973
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
4974
+ <slot name="helpText"></slot>
4975
+ </${this.helpTextTag}>
4976
+
4977
+ <div id="bibSizer" part="size"></div>
4978
+ <${this.dropdownBibTag}
4979
+ id="bib"
4980
+ ?data-show="${this.isPopoverVisible}"
4981
+ ?isfullscreen="${this.isBibFullscreen}"
4982
+ ?common="${this.common}"
4983
+ ?rounded="${this.common || this.rounded}"
4984
+ ?inset="${this.common || this.inset}"
4985
+ >
4986
+ <div class="slotContent">
4987
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4988
+ </div>
4989
+ </${this.dropdownBibTag}>
4990
+ </div>
4793
4991
  `;
4794
- // return html`
4795
- // <div>
4796
- // <div
4797
- // id="trigger"
4798
- // class="trigger"
4799
- // part="trigger"
4800
- // tabindex="${this.tabIndex}"
4801
- // ?showBorder="${this.showTriggerBorders}"
4802
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4803
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4804
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4805
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4806
- // >
4807
- // <div class="triggerContentWrapper">
4808
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4809
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4810
- // </label>
4811
- // <div class="triggerContent">
4812
- // <slot
4813
- // name="trigger"
4814
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4815
- // </div>
4816
- // </div>
4817
- // ${this.chevron || this.common ? html`
4818
- // <div
4819
- // id="showStateIcon"
4820
- // part="chevron">
4821
- // <${this.iconTag}
4822
- // category="interface"
4823
- // name="chevron-down"
4824
- // ?onDark="${this.onDark}"
4825
- // variant="${this.disabled ? 'disabled' : 'muted'}">
4826
- // >
4827
- // </${this.iconTag}>
4828
- // </div>
4829
- // ` : undefined }
4830
- // </div>
4831
- // <div class="slotContent">
4832
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
4833
- // </div>
4834
- // <div id="bibSizer" part="size"></div>
4835
- // <${this.dropdownBibTag}
4836
- // id="bib"
4837
- // ?data-show="${this.isPopoverVisible}"
4838
- // ?isfullscreen="${this.isBibFullscreen}"
4839
- // ?common="${this.common}"
4840
- // ?rounded="${this.common || this.rounded}"
4841
- // ?inset="${this.common || this.inset}"
4842
- // >
4843
- // </${this.dropdownBibTag}>
4844
- // </div>
4845
- // `;
4846
4992
  }
4847
4993
 
4848
4994
  /**
@@ -4909,7 +5055,7 @@ class AuroDropdown extends AuroElement$3 {
4909
5055
 
4910
5056
  var dropdownVersion = '3.0.0';
4911
5057
 
4912
- var shapeSizeCss = css`.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}`;
5058
+ var shapeSizeCss = css`.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}`;
4913
5059
 
4914
5060
  var styleCss$4 = css`.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}`;
4915
5061
 
@@ -8948,9 +9094,10 @@ class DateFormatter {
8948
9094
  /**
8949
9095
  * Convert a date object to string format.
8950
9096
  * @param {Object} date - Date to convert to string.
8951
- * @returns {Object} Returns the date as a string.
9097
+ * @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
9098
+ * @returns {String} Returns the date as a string.
8952
9099
  */
8953
- this.getDateAsString = (date) => date.toLocaleDateString(undefined, {
9100
+ this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
8954
9101
  year: "numeric",
8955
9102
  month: "2-digit",
8956
9103
  day: "2-digit",
@@ -9142,7 +9289,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
9142
9289
  const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
9143
9290
 
9144
9291
  // Get the date string of the date object we created from the string date
9145
- const actualDateStr = dateFormatter.getDateAsString(dateObj);
9292
+ const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
9146
9293
 
9147
9294
  // Guard Clause: Generated date matches date string input
9148
9295
  if (expectedDateStr !== actualDateStr) {
@@ -9307,7 +9454,7 @@ const {
9307
9454
 
9308
9455
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
9309
9456
 
9310
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9457
+ let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
9311
9458
 
9312
9459
  /* eslint-disable jsdoc/require-param */
9313
9460
 
@@ -9377,7 +9524,7 @@ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9377
9524
  class AuroFormValidation {
9378
9525
 
9379
9526
  constructor() {
9380
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
9527
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
9381
9528
  }
9382
9529
 
9383
9530
  /**
@@ -11082,6 +11229,76 @@ var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
11082
11229
 
11083
11230
  var colorCss$3 = css`: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)}`;
11084
11231
 
11232
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
11233
+ // See LICENSE in the project root for license information.
11234
+
11235
+ // ---------------------------------------------------------------------
11236
+
11237
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11238
+
11239
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
11240
+
11241
+ /* eslint-disable jsdoc/require-param */
11242
+
11243
+ /**
11244
+ * This will register a new custom element with the browser.
11245
+ * @param {String} name - The name of the custom element.
11246
+ * @param {Object} componentClass - The class to register as a custom element.
11247
+ * @returns {void}
11248
+ */
11249
+ registerComponent(name, componentClass) {
11250
+ if (!customElements.get(name)) {
11251
+ customElements.define(name, class extends componentClass {});
11252
+ }
11253
+ }
11254
+
11255
+ /**
11256
+ * Finds and returns the closest HTML Element based on a selector.
11257
+ * @returns {void}
11258
+ */
11259
+ closestElement(
11260
+ selector, // selector like in .closest()
11261
+ base = this, // extra functionality to skip a parent
11262
+ __Closest = (el, found = el && el.closest(selector)) =>
11263
+ !el || el === document || el === window
11264
+ ? null // standard .closest() returns null for non-found selectors also
11265
+ : found
11266
+ ? found // found a selector INside this element
11267
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
11268
+ ) {
11269
+ return __Closest(base);
11270
+ }
11271
+ /* eslint-enable jsdoc/require-param */
11272
+
11273
+ /**
11274
+ * 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.
11275
+ * @param {Object} elem - The element to check.
11276
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
11277
+ * @returns {void}
11278
+ */
11279
+ handleComponentTagRename(elem, tagName) {
11280
+ const tag = tagName.toLowerCase();
11281
+ const elemTag = elem.tagName.toLowerCase();
11282
+
11283
+ if (elemTag !== tag) {
11284
+ elem.setAttribute(tag, true);
11285
+ }
11286
+ }
11287
+
11288
+ /**
11289
+ * Validates if an element is a specific Auro component.
11290
+ * @param {Object} elem - The element to validate.
11291
+ * @param {String} tagName - The name of the Auro component to check against.
11292
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
11293
+ */
11294
+ elementMatch(elem, tagName) {
11295
+ const tag = tagName.toLowerCase();
11296
+ const elemTag = elem.tagName.toLowerCase();
11297
+
11298
+ return elemTag === tag || elem.hasAttribute(tag);
11299
+ }
11300
+ };
11301
+
11085
11302
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
11086
11303
  // See LICENSE in the project root for license information.
11087
11304
 
@@ -11289,7 +11506,7 @@ class AuroLoader extends LitElement {
11289
11506
  /**
11290
11507
  * @private
11291
11508
  */
11292
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
11509
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
11293
11510
 
11294
11511
  this.orbit = false;
11295
11512
  this.ringworm = false;
@@ -11352,7 +11569,7 @@ class AuroLoader extends LitElement {
11352
11569
  *
11353
11570
  */
11354
11571
  static register(name = "auro-loader") {
11355
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
11572
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroLoader);
11356
11573
  }
11357
11574
 
11358
11575
  firstUpdated() {
@@ -11656,7 +11873,7 @@ class AuroButton extends LitElement {
11656
11873
  *
11657
11874
  */
11658
11875
  static register(name = "auro-button") {
11659
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroButton);
11876
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroButton);
11660
11877
  }
11661
11878
 
11662
11879
  /**
@@ -11761,7 +11978,7 @@ var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
11761
11978
 
11762
11979
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11763
11980
 
11764
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
11981
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
11765
11982
 
11766
11983
  /* eslint-disable jsdoc/require-param */
11767
11984
 
@@ -11842,7 +12059,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
11842
12059
  this.onDark = false;
11843
12060
  this.hasTextContent = false;
11844
12061
 
11845
- AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
12062
+ AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
11846
12063
  }
11847
12064
 
11848
12065
  static get styles() {
@@ -11898,7 +12115,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
11898
12115
  *
11899
12116
  */
11900
12117
  static register(name = "auro-helptext") {
11901
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
12118
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
11902
12119
  }
11903
12120
 
11904
12121
  updated() {
@@ -12022,7 +12239,7 @@ class AuroInput extends BaseInput {
12022
12239
  /**
12023
12240
  * Returns classmap configuration for html5 inputs in all layouts.
12024
12241
  * @private
12025
- * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
12242
+ * @returns {object} - Returns classmap.
12026
12243
  */
12027
12244
  get commonInputClasses() {
12028
12245
  return {
@@ -12031,9 +12248,9 @@ class AuroInput extends BaseInput {
12031
12248
  }
12032
12249
 
12033
12250
  /**
12034
- * Returns classmap configuration for html5 inputs in all layouts.
12251
+ * Returns classmap configuration for html5 inputs in each layout.
12035
12252
  * @private
12036
- * @return {object} - Returns classmap configuration for "classic" html5 inputs.
12253
+ * @return {object} - Returns classmap.
12037
12254
  */
12038
12255
  get legacyInputClasses() {
12039
12256
  return {
@@ -12042,6 +12259,11 @@ class AuroInput extends BaseInput {
12042
12259
  };
12043
12260
  }
12044
12261
 
12262
+ /**
12263
+ * Returns classmap configuration for wrapper elements in each layout.
12264
+ * @private
12265
+ * @return {object} - Returns classmap.
12266
+ */
12045
12267
  get commonWrapperClasses() {
12046
12268
  return {
12047
12269
  'wrapper': true,
@@ -12050,6 +12272,11 @@ class AuroInput extends BaseInput {
12050
12272
  };
12051
12273
  }
12052
12274
 
12275
+ /**
12276
+ * Returns classmap configuration for helpText elements in each layout.
12277
+ * @private
12278
+ * @return {object} - Returns classmap.
12279
+ */
12053
12280
  get helpTextClasses() {
12054
12281
  return {
12055
12282
  'helpTextWrapper': true,
@@ -12067,7 +12294,7 @@ class AuroInput extends BaseInput {
12067
12294
  *
12068
12295
  */
12069
12296
  static register(name = "auro-input") {
12070
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroInput);
12297
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroInput);
12071
12298
  }
12072
12299
 
12073
12300
  /**
@@ -12303,9 +12530,9 @@ class AuroInput extends BaseInput {
12303
12530
  }
12304
12531
 
12305
12532
  /**
12306
- * Returns HTML for the default layout.
12533
+ * Returns HTML for the classic layout.
12307
12534
  * @private
12308
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
12535
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
12309
12536
  */
12310
12537
  renderLayoutClassic() {
12311
12538
  return html`
@@ -12702,6 +12929,76 @@ var tokensCss$1 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
12702
12929
 
12703
12930
  var colorCss$2 = css`: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)}`;
12704
12931
 
12932
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
12933
+ // See LICENSE in the project root for license information.
12934
+
12935
+ // ---------------------------------------------------------------------
12936
+
12937
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
12938
+
12939
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
12940
+
12941
+ /* eslint-disable jsdoc/require-param */
12942
+
12943
+ /**
12944
+ * This will register a new custom element with the browser.
12945
+ * @param {String} name - The name of the custom element.
12946
+ * @param {Object} componentClass - The class to register as a custom element.
12947
+ * @returns {void}
12948
+ */
12949
+ registerComponent(name, componentClass) {
12950
+ if (!customElements.get(name)) {
12951
+ customElements.define(name, class extends componentClass {});
12952
+ }
12953
+ }
12954
+
12955
+ /**
12956
+ * Finds and returns the closest HTML Element based on a selector.
12957
+ * @returns {void}
12958
+ */
12959
+ closestElement(
12960
+ selector, // selector like in .closest()
12961
+ base = this, // extra functionality to skip a parent
12962
+ __Closest = (el, found = el && el.closest(selector)) =>
12963
+ !el || el === document || el === window
12964
+ ? null // standard .closest() returns null for non-found selectors also
12965
+ : found
12966
+ ? found // found a selector INside this element
12967
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
12968
+ ) {
12969
+ return __Closest(base);
12970
+ }
12971
+ /* eslint-enable jsdoc/require-param */
12972
+
12973
+ /**
12974
+ * 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.
12975
+ * @param {Object} elem - The element to check.
12976
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
12977
+ * @returns {void}
12978
+ */
12979
+ handleComponentTagRename(elem, tagName) {
12980
+ const tag = tagName.toLowerCase();
12981
+ const elemTag = elem.tagName.toLowerCase();
12982
+
12983
+ if (elemTag !== tag) {
12984
+ elem.setAttribute(tag, true);
12985
+ }
12986
+ }
12987
+
12988
+ /**
12989
+ * Validates if an element is a specific Auro component.
12990
+ * @param {Object} elem - The element to validate.
12991
+ * @param {String} tagName - The name of the Auro component to check against.
12992
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
12993
+ */
12994
+ elementMatch(elem, tagName) {
12995
+ const tag = tagName.toLowerCase();
12996
+ const elemTag = elem.tagName.toLowerCase();
12997
+
12998
+ return elemTag === tag || elem.hasAttribute(tag);
12999
+ }
13000
+ };
13001
+
12705
13002
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12706
13003
  // See LICENSE in the project root for license information.
12707
13004
 
@@ -12721,7 +13018,7 @@ class AuroIcon extends BaseIcon {
12721
13018
  */
12722
13019
  privateDefaults() {
12723
13020
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
12724
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
13021
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
12725
13022
  }
12726
13023
 
12727
13024
  // function to define props used within the scope of this component
@@ -12803,7 +13100,7 @@ class AuroIcon extends BaseIcon {
12803
13100
  *
12804
13101
  */
12805
13102
  static register(name = "auro-icon") {
12806
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
13103
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
12807
13104
  }
12808
13105
 
12809
13106
  connectedCallback() {
@@ -13105,6 +13402,18 @@ class AuroBibtemplate extends LitElement {
13105
13402
  this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
13106
13403
  }
13107
13404
 
13405
+ firstUpdated(changedProperties) {
13406
+ super.firstUpdated(changedProperties);
13407
+
13408
+ this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
13409
+ bubbles: true,
13410
+ composed: true,
13411
+ detail: {
13412
+ element: this
13413
+ }
13414
+ }));
13415
+ }
13416
+
13108
13417
  // function that renders the HTML and CSS into the scope of the component
13109
13418
  render() {
13110
13419
  return html`
@@ -13495,7 +13804,7 @@ class AuroCombobox extends AuroElement {
13495
13804
 
13496
13805
  this.validation = new AuroFormValidation$1();
13497
13806
 
13498
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
13807
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
13499
13808
 
13500
13809
  this.isHiddenWhileLoading = false;
13501
13810
 
@@ -13803,7 +14112,7 @@ class AuroCombobox extends AuroElement {
13803
14112
  *
13804
14113
  */
13805
14114
  static register(name = 'auro-combobox') {
13806
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCombobox);
14115
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCombobox);
13807
14116
  }
13808
14117
 
13809
14118
  /**
@@ -13960,15 +14269,8 @@ class AuroCombobox extends AuroElement {
13960
14269
  this.showBib();
13961
14270
  });
13962
14271
 
13963
- // this.dropdown.addEventListener('auroDropdown-show', () => {
13964
- this.menuWrapper = this.dropdown.querySelector('.menuWrapper');
13965
- if (this.menu) {
13966
- this.menuWrapper.append(this.menu);
13967
- }
13968
-
13969
14272
  // setting up bibtemplate
13970
14273
  this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
13971
- this.bibtemplate.append(this.menuWrapper);
13972
14274
 
13973
14275
  // Exposes the CSS parts from the bibtemplate for styling
13974
14276
  this.bibtemplate.exposeCssParts();
@@ -13993,10 +14295,9 @@ class AuroCombobox extends AuroElement {
13993
14295
  this.menu = this.querySelector('auro-menu, [auro-menu]');
13994
14296
 
13995
14297
  // a racing condition on custom-combobox with custom-menu
13996
- if (!this.menu) {
14298
+ if (!this.menu || this.menuShadowRoot === null) {
13997
14299
  setTimeout(() => {
13998
14300
  this.configureMenu();
13999
- this.menuWrapper.append(this.menu);
14000
14301
  }, 0);
14001
14302
  return;
14002
14303
  }
@@ -14071,41 +14372,12 @@ class AuroCombobox extends AuroElement {
14071
14372
  });
14072
14373
  }
14073
14374
 
14074
- /**
14075
- * Dispatches input's keyboard events from host
14076
- * This allows key events from the input to be handled by the parent.
14077
- * @private
14078
- * @param {KeyboardEvent} event - The keyboard event.
14079
- */
14080
- bubbleUpInputEvent(event) {
14081
- // Do not need to bubble events if the input is not in bib.
14082
- if (event.currentTarget.parentNode !== this.dropdown) {
14083
- // prevents browsers to move cursor in input element.
14084
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
14085
- event.preventDefault();
14086
- }
14087
- const dupEvent = new event.constructor(event.type, event);
14088
- this.dispatchEvent(dupEvent);
14089
- }
14090
- }
14091
-
14092
14375
  /**
14093
14376
  * Binds all behavior needed to the input after rendering.
14094
14377
  * @private
14095
14378
  * @returns {void}
14096
14379
  */
14097
14380
  configureInput() {
14098
- // When input is in bibtemplate, make the event to be fired at combobox element
14099
- this.bubbleUpInputEvent = this.bubbleUpInputEvent.bind(this);
14100
-
14101
- const events = [
14102
- 'input',
14103
- 'keydown',
14104
- 'keyup'
14105
- ];
14106
- events.forEach((eventType) => {
14107
- this.input.addEventListener(eventType, this.bubbleUpInputEvent);
14108
- });
14109
14381
 
14110
14382
  this.addEventListener('keyup', (evt) => {
14111
14383
  if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
@@ -14168,6 +14440,7 @@ class AuroCombobox extends AuroElement {
14168
14440
  const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
14169
14441
 
14170
14442
  if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
14443
+
14171
14444
  if (this.input.parentNode === this.dropdown) {
14172
14445
  // keep the trigger size the same even after input gets removed
14173
14446
  const parentSize = window.getComputedStyle(this.dropdown.trigger);
@@ -14185,7 +14458,7 @@ class AuroCombobox extends AuroElement {
14185
14458
  inputAlertIcon.style.display = 'none';
14186
14459
  }
14187
14460
 
14188
- this.bibtemplate.append(this.input);
14461
+ this.bibtemplate.prepend(this.input);
14189
14462
  this.input.focus();
14190
14463
  }
14191
14464
  } else if (this.input.parentNode !== this.dropdown) {
@@ -14199,7 +14472,7 @@ class AuroCombobox extends AuroElement {
14199
14472
  inputAlertIcon.style.display = '';
14200
14473
  }
14201
14474
 
14202
- this.dropdown.append(this.input);
14475
+ this.dropdown.prepend(this.input);
14203
14476
  this.input.focus();
14204
14477
  }
14205
14478
  }
@@ -14520,9 +14793,8 @@ class AuroCombobox extends AuroElement {
14520
14793
  slot="trigger">
14521
14794
  </${this.inputTag}>
14522
14795
 
14523
- <div class="menuWrapper"></div>
14524
-
14525
14796
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
14797
+ <slot></slot>
14526
14798
  </${this.bibtemplateTag}>
14527
14799
 
14528
14800
  <span slot="helpText">