@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.0 → 0.0.0-pr624.10

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 (80) 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.md +30 -29
  9. package/components/combobox/demo/api.min.js +609 -532
  10. package/components/combobox/demo/index.html +0 -1
  11. package/components/combobox/demo/index.md +43 -0
  12. package/components/combobox/demo/index.min.js +607 -530
  13. package/components/combobox/dist/auro-combobox.d.ts +13 -18
  14. package/components/combobox/dist/index.js +479 -387
  15. package/components/combobox/dist/registered.js +479 -387
  16. package/components/counter/demo/api.min.js +377 -62
  17. package/components/counter/demo/index.min.js +377 -62
  18. package/components/counter/dist/index.js +377 -62
  19. package/components/counter/dist/registered.js +377 -62
  20. package/components/datepicker/demo/api.md +13 -5
  21. package/components/datepicker/demo/api.min.js +868 -438
  22. package/components/datepicker/demo/index.md +13 -0
  23. package/components/datepicker/demo/index.min.js +868 -438
  24. package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
  25. package/components/datepicker/dist/index.js +710 -280
  26. package/components/datepicker/dist/registered.js +710 -280
  27. package/components/dropdown/demo/api.md +2 -2
  28. package/components/dropdown/demo/api.min.js +199 -37
  29. package/components/dropdown/demo/index.md +45 -0
  30. package/components/dropdown/demo/index.min.js +199 -37
  31. package/components/dropdown/dist/auro-dropdown.d.ts +10 -1
  32. package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
  33. package/components/dropdown/dist/index.js +199 -37
  34. package/components/dropdown/dist/registered.js +199 -37
  35. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  36. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  37. package/components/input/README.md +1 -1
  38. package/components/input/demo/api.md +57 -53
  39. package/components/input/demo/api.min.js +142 -141
  40. package/components/input/demo/index.md +4 -4
  41. package/components/input/demo/index.min.js +142 -141
  42. package/components/input/demo/readme.md +1 -1
  43. package/components/input/dist/auro-input.d.ts +22 -13
  44. package/components/input/dist/base-input.d.ts +1 -1
  45. package/components/input/dist/index.js +142 -141
  46. package/components/input/dist/registered.js +142 -141
  47. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  48. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  49. package/components/layoutElement/dist/index.d.ts +1 -0
  50. package/components/layoutElement/dist/index.js +95 -1
  51. package/components/menu/demo/api.md +11 -11
  52. package/components/menu/demo/api.min.js +115 -130
  53. package/components/menu/demo/index.min.js +115 -130
  54. package/components/menu/dist/auro-menu-utils.d.ts +0 -8
  55. package/components/menu/dist/auro-menu.d.ts +3 -8
  56. package/components/menu/dist/index.d.ts +1 -1
  57. package/components/menu/dist/index.js +116 -90
  58. package/components/menu/dist/registered.js +115 -130
  59. package/components/radio/demo/api.min.js +4 -3
  60. package/components/radio/demo/index.min.js +4 -3
  61. package/components/radio/dist/index.js +4 -3
  62. package/components/radio/dist/registered.js +4 -3
  63. package/components/select/demo/api.js +2 -0
  64. package/components/select/demo/api.md +108 -42
  65. package/components/select/demo/api.min.js +1264 -352
  66. package/components/select/demo/index.html +1 -0
  67. package/components/select/demo/index.md +298 -777
  68. package/components/select/demo/index.min.js +1251 -351
  69. package/components/select/dist/auro-select.d.ts +110 -18
  70. package/components/select/dist/helptextVersion.d.ts +2 -0
  71. package/components/select/dist/index.js +1105 -190
  72. package/components/select/dist/registered.js +1105 -190
  73. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  74. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  75. package/package.json +3 -3
  76. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  77. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/emphasized}/style-css.d.ts +0 -0
  78. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  79. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  80. /package/components/dropdown/dist/styles/{style-css.d.ts → classic/bibStyles-css.d.ts} +0 -0
@@ -51,7 +51,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
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$1 = class AuroLibraryRuntimeUtils {
54
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
55
55
 
56
56
  /* eslint-disable jsdoc/require-param */
57
57
 
@@ -634,10 +634,11 @@ const flip$1 = function (options) {
634
634
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
635
635
  const nextPlacement = placements[nextIndex];
636
636
  if (nextPlacement) {
637
- var _overflowsData$;
638
637
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
639
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
640
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
638
+ if (!ignoreCrossAxisOverflow ||
639
+ // We leave the current main axis only if every placement on that axis
640
+ // overflows the main axis.
641
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
641
642
  // Try next placement and re-run the lifecycle.
642
643
  return {
643
644
  data: {
@@ -1658,8 +1659,28 @@ class AuroFloatingUI {
1658
1659
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
1659
1660
  AuroFloatingUI.isMousePressHandlerInitialized = true;
1660
1661
 
1662
+ // Track timeout for isMousePressed reset to avoid race conditions
1663
+ if (!AuroFloatingUI._mousePressedTimeout) {
1664
+ AuroFloatingUI._mousePressedTimeout = null;
1665
+ }
1661
1666
  const mouseEventGlobalHandler = (event) => {
1662
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
1667
+ const isPressed = event.type === 'mousedown';
1668
+ if (isPressed) {
1669
+ // Clear any pending timeout to prevent race condition
1670
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
1671
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
1672
+ AuroFloatingUI._mousePressedTimeout = null;
1673
+ }
1674
+ if (!AuroFloatingUI.isMousePressed) {
1675
+ AuroFloatingUI.isMousePressed = true;
1676
+ }
1677
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
1678
+ // Schedule reset and track timeout ID
1679
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
1680
+ AuroFloatingUI.isMousePressed = false;
1681
+ AuroFloatingUI._mousePressedTimeout = null;
1682
+ }, 0);
1683
+ }
1663
1684
  };
1664
1685
 
1665
1686
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -1786,6 +1807,7 @@ class AuroFloatingUI {
1786
1807
 
1787
1808
  // Compute the position of the bib
1788
1809
  computePosition(this.element.trigger, this.element.bib, {
1810
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
1789
1811
  placement: this.element.floaterConfig?.placement,
1790
1812
  middleware: middleware || []
1791
1813
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -1920,8 +1942,9 @@ class AuroFloatingUI {
1920
1942
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1921
1943
  return;
1922
1944
  }
1923
- // if fullscreen bib is still open and the focus is missing, do not close
1924
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
1945
+
1946
+ // if fullscreen bib is in fullscreen mode, do not close
1947
+ if (this.element.bib.hasAttribute('isfullscreen')) {
1925
1948
  return;
1926
1949
  }
1927
1950
 
@@ -2222,8 +2245,6 @@ class AuroFloatingUI {
2222
2245
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
2223
2246
  }
2224
2247
 
2225
- document.body.append(this.element.bib);
2226
-
2227
2248
  this.regenerateBibId();
2228
2249
  this.handleTriggerTabIndex();
2229
2250
 
@@ -2372,7 +2393,7 @@ const cacheFetch = (uri, options = {}) => {
2372
2393
  return _fetchMap.get(uri);
2373
2394
  };
2374
2395
 
2375
- var styleCss$3 = i$2`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
2396
+ var styleCss$2 = i$2`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
2376
2397
 
2377
2398
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2378
2399
  // See LICENSE in the project root for license information.
@@ -2415,7 +2436,7 @@ class BaseIcon extends AuroElement$1 {
2415
2436
 
2416
2437
  static get styles() {
2417
2438
  return i$2`
2418
- ${styleCss$3}
2439
+ ${styleCss$2}
2419
2440
  `;
2420
2441
  }
2421
2442
 
@@ -2460,6 +2481,76 @@ var tokensCss$2 = i$2`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
2460
2481
 
2461
2482
  var colorCss$3 = i$2`: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)}`;
2462
2483
 
2484
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2485
+ // See LICENSE in the project root for license information.
2486
+
2487
+ // ---------------------------------------------------------------------
2488
+
2489
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
2490
+
2491
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
2492
+
2493
+ /* eslint-disable jsdoc/require-param */
2494
+
2495
+ /**
2496
+ * This will register a new custom element with the browser.
2497
+ * @param {String} name - The name of the custom element.
2498
+ * @param {Object} componentClass - The class to register as a custom element.
2499
+ * @returns {void}
2500
+ */
2501
+ registerComponent(name, componentClass) {
2502
+ if (!customElements.get(name)) {
2503
+ customElements.define(name, class extends componentClass {});
2504
+ }
2505
+ }
2506
+
2507
+ /**
2508
+ * Finds and returns the closest HTML Element based on a selector.
2509
+ * @returns {void}
2510
+ */
2511
+ closestElement(
2512
+ selector, // selector like in .closest()
2513
+ base = this, // extra functionality to skip a parent
2514
+ __Closest = (el, found = el && el.closest(selector)) =>
2515
+ !el || el === document || el === window
2516
+ ? null // standard .closest() returns null for non-found selectors also
2517
+ : found
2518
+ ? found // found a selector INside this element
2519
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
2520
+ ) {
2521
+ return __Closest(base);
2522
+ }
2523
+ /* eslint-enable jsdoc/require-param */
2524
+
2525
+ /**
2526
+ * 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.
2527
+ * @param {Object} elem - The element to check.
2528
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
2529
+ * @returns {void}
2530
+ */
2531
+ handleComponentTagRename(elem, tagName) {
2532
+ const tag = tagName.toLowerCase();
2533
+ const elemTag = elem.tagName.toLowerCase();
2534
+
2535
+ if (elemTag !== tag) {
2536
+ elem.setAttribute(tag, true);
2537
+ }
2538
+ }
2539
+
2540
+ /**
2541
+ * Validates if an element is a specific Auro component.
2542
+ * @param {Object} elem - The element to validate.
2543
+ * @param {String} tagName - The name of the Auro component to check against.
2544
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
2545
+ */
2546
+ elementMatch(elem, tagName) {
2547
+ const tag = tagName.toLowerCase();
2548
+ const elemTag = elem.tagName.toLowerCase();
2549
+
2550
+ return elemTag === tag || elem.hasAttribute(tag);
2551
+ }
2552
+ };
2553
+
2463
2554
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2464
2555
  // See LICENSE in the project root for license information.
2465
2556
 
@@ -2547,7 +2638,7 @@ class AuroIcon extends BaseIcon {
2547
2638
  return [
2548
2639
  super.styles,
2549
2640
  i$2`${tokensCss$2}`,
2550
- i$2`${styleCss$3}`,
2641
+ i$2`${styleCss$2}`,
2551
2642
  i$2`${colorCss$3}`
2552
2643
  ];
2553
2644
  }
@@ -2629,7 +2720,7 @@ class AuroIcon extends BaseIcon {
2629
2720
 
2630
2721
  var iconVersion = '6.1.2';
2631
2722
 
2632
- var styleCss$2 = i$2`: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}`;
2723
+ var styleCss$1 = i$2`: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}`;
2633
2724
 
2634
2725
  var colorCss$2 = i$2`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
2635
2726
 
@@ -2639,7 +2730,6 @@ var tokensCss$1 = i$2`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
2639
2730
  // See LICENSE in the project root for license information.
2640
2731
 
2641
2732
 
2642
-
2643
2733
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2644
2734
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2645
2735
  'xl',
@@ -2664,12 +2754,12 @@ class AuroDropdownBib extends i {
2664
2754
  */
2665
2755
  this._mobileBreakpointValue = undefined;
2666
2756
 
2667
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2757
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2668
2758
  }
2669
2759
 
2670
2760
  static get styles() {
2671
2761
  return [
2672
- styleCss$2,
2762
+ styleCss$1,
2673
2763
  colorCss$2,
2674
2764
  tokensCss$1
2675
2765
  ];
@@ -2709,6 +2799,13 @@ class AuroDropdownBib extends i {
2709
2799
  type: Boolean,
2710
2800
  reflect: true
2711
2801
  },
2802
+
2803
+ /**
2804
+ * A reference to the associated bib template element.
2805
+ */
2806
+ bibTemplate: {
2807
+ type: Object
2808
+ }
2712
2809
  };
2713
2810
  }
2714
2811
 
@@ -2741,9 +2838,50 @@ class AuroDropdownBib extends i {
2741
2838
  }
2742
2839
  }
2743
2840
  });
2841
+
2842
+ if (this.bibTemplate) {
2843
+ // If the bib template is found, set the fullscreen attribute
2844
+ if (this.isFullscreen) {
2845
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
2846
+ } else {
2847
+ this.bibTemplate.removeAttribute('isFullscreen');
2848
+ }
2849
+ }
2744
2850
  }
2745
2851
  }
2746
2852
 
2853
+ connectedCallback() {
2854
+ super.connectedCallback();
2855
+
2856
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
2857
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
2858
+ const bibTemplate = event.detail.element;
2859
+ this.bibTemplate = bibTemplate;
2860
+
2861
+ if (bibTemplate) {
2862
+ // If the bib template is found, set the fullscreen attribute
2863
+ if (this.isFullscreen) {
2864
+ bibTemplate.setAttribute('isFullscreen', 'true');
2865
+ } else {
2866
+ bibTemplate.removeAttribute('isFullscreen');
2867
+ }
2868
+ }
2869
+ });
2870
+ }
2871
+
2872
+ firstUpdated(changedProperties) {
2873
+ super.firstUpdated(changedProperties);
2874
+
2875
+ // Dispatch a custom event when the component is connected
2876
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
2877
+ bubbles: true,
2878
+ composed: true,
2879
+ detail: {
2880
+ element: this
2881
+ }
2882
+ }));
2883
+ }
2884
+
2747
2885
  // function that renders the HTML and CSS into the scope of the component
2748
2886
  render() {
2749
2887
  return u$1`
@@ -2756,15 +2894,17 @@ class AuroDropdownBib extends i {
2756
2894
 
2757
2895
  var dropdownVersion = '3.0.0';
2758
2896
 
2759
- var shapeSizeCss = i$2`.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:0;min-height:60px;max-height:60px;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:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
2760
-
2761
- var styleCss$1 = i$2`:host([layout*=classic]){position:relative;display:inline-block;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{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@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)}`;
2897
+ var shapeSizeCss = i$2`.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}`;
2762
2898
 
2763
2899
  var colorCss$1 = i$2`: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)}`;
2764
2900
 
2765
- var styleEmphasizedCss = i$2`: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)}`;
2901
+ var classicColorCss = i$2`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
2902
+
2903
+ var classicLayoutCss = i$2`: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)}`;
2766
2904
 
2767
- var styleSnowflakeCss = i$2`: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)}`;
2905
+ var styleEmphasizedCss = i$2`: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{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
2906
+
2907
+ var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
2768
2908
 
2769
2909
  var colorCss = i$2`: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)}`;
2770
2910
 
@@ -3092,12 +3232,13 @@ class AuroDropdown extends AuroElement {
3092
3232
  this.matchWidth = false;
3093
3233
  this.noHideOnThisFocusLoss = false;
3094
3234
 
3095
- this.errorMessage = ''; // TODO!
3235
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
3096
3236
 
3097
3237
  // Layout Config
3098
- this.layout = 'default';
3238
+ this.layout = 'classic';
3099
3239
  this.shape = 'rounded';
3100
3240
  this.size = 'xl';
3241
+ this.parentBorder = false;
3101
3242
 
3102
3243
  this.privateDefaults();
3103
3244
  }
@@ -3113,7 +3254,8 @@ class AuroDropdown extends AuroElement {
3113
3254
  'trigger': true,
3114
3255
  'wrapper': true,
3115
3256
  'hasFocus': this.hasFocus,
3116
- 'simple': this.simple
3257
+ 'simple': this.simple,
3258
+ 'parentBorder': this.parentBorder
3117
3259
  };
3118
3260
  }
3119
3261
 
@@ -3165,7 +3307,7 @@ class AuroDropdown extends AuroElement {
3165
3307
  /**
3166
3308
  * @private
3167
3309
  */
3168
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3310
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3169
3311
 
3170
3312
  /**
3171
3313
  * @private
@@ -3380,6 +3522,15 @@ class AuroDropdown extends AuroElement {
3380
3522
  reflect: true
3381
3523
  },
3382
3524
 
3525
+ /**
3526
+ * Defines if the trigger should size based on the parent element providing the border UI.
3527
+ * @private
3528
+ */
3529
+ parentBorder: {
3530
+ type: Boolean,
3531
+ reflect: true
3532
+ },
3533
+
3383
3534
  /**
3384
3535
  * If declared, the popover and trigger will be set to the same width.
3385
3536
  */
@@ -3482,10 +3633,18 @@ class AuroDropdown extends AuroElement {
3482
3633
  static get styles() {
3483
3634
  return [
3484
3635
  colorCss$1,
3485
- styleCss$1,
3486
3636
  tokensCss$1,
3637
+
3638
+ // default layout
3639
+ classicColorCss,
3640
+ classicLayoutCss,
3641
+
3642
+ // emphasized layout
3487
3643
  styleEmphasizedCss,
3644
+
3645
+ // snowflake layout
3488
3646
  styleSnowflakeCss,
3647
+
3489
3648
  shapeSizeCss
3490
3649
  ];
3491
3650
  }
@@ -3499,7 +3658,7 @@ class AuroDropdown extends AuroElement {
3499
3658
  *
3500
3659
  */
3501
3660
  static register(name = "auro-dropdown") {
3502
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3661
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
3503
3662
  }
3504
3663
 
3505
3664
  /**
@@ -3832,11 +3991,9 @@ class AuroDropdown extends AuroElement {
3832
3991
  *
3833
3992
  * @private
3834
3993
  * @method handleDefaultSlot
3835
- * @param {Event} event - The event object representing the slot change.
3836
3994
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3837
3995
  */
3838
- handleDefaultSlot(event) {
3839
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
3996
+ handleDefaultSlot() {
3840
3997
 
3841
3998
  if (this.onSlotChange) {
3842
3999
  this.onSlotChange();
@@ -3879,7 +4036,6 @@ class AuroDropdown extends AuroElement {
3879
4036
  id="trigger"
3880
4037
  class="${e$2(this.commonWrapperClasses)}" part="wrapper"
3881
4038
  tabindex="${this.tabIndex}"
3882
- ?showBorder="${this.showTriggerBorders}"
3883
4039
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3884
4040
  aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3885
4041
  aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -3899,6 +4055,7 @@ class AuroDropdown extends AuroElement {
3899
4055
  ${this.chevron || this.common ? u$1`
3900
4056
  <div
3901
4057
  id="showStateIcon"
4058
+ class="chevron"
3902
4059
  part="chevron">
3903
4060
  <${this.iconTag}
3904
4061
  category="interface"
@@ -3913,9 +4070,6 @@ class AuroDropdown extends AuroElement {
3913
4070
  <div class="${e$2(helpTextClasses)}">
3914
4071
  <slot name="helpText"></slot>
3915
4072
  </div>
3916
- <div class="slotContent">
3917
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3918
- </div>
3919
4073
  <div id="bibSizer" part="size"></div>
3920
4074
  <${this.dropdownBibTag}
3921
4075
  id="bib"
@@ -3924,6 +4078,9 @@ class AuroDropdown extends AuroElement {
3924
4078
  ?common="${this.common}"
3925
4079
  ?rounded="${this.common || this.rounded}"
3926
4080
  ?inset="${this.common || this.inset}">
4081
+ <div class="slotContent">
4082
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4083
+ </div>
3927
4084
  </${this.dropdownBibTag}>
3928
4085
  </div>
3929
4086
  `;
@@ -3935,6 +4092,7 @@ class AuroDropdown extends AuroElement {
3935
4092
  * @returns {html} - Returns HTML for the classic layout.
3936
4093
  */
3937
4094
  renderLayoutClassic() {
4095
+
3938
4096
  return u$1`
3939
4097
  <div>
3940
4098
  <div
@@ -3972,9 +4130,10 @@ class AuroDropdown extends AuroElement {
3972
4130
  </div>
3973
4131
  ` : undefined }
3974
4132
  </div>
3975
- <div class="slotContent">
3976
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3977
- </div>
4133
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
4134
+ <slot name="helpText"></slot>
4135
+ </${this.helpTextTag}>
4136
+
3978
4137
  <div id="bibSizer" part="size"></div>
3979
4138
  <${this.dropdownBibTag}
3980
4139
  id="bib"
@@ -3984,6 +4143,9 @@ class AuroDropdown extends AuroElement {
3984
4143
  ?rounded="${this.common || this.rounded}"
3985
4144
  ?inset="${this.common || this.inset}"
3986
4145
  >
4146
+ <div class="slotContent">
4147
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4148
+ </div>
3987
4149
  </${this.dropdownBibTag}>
3988
4150
  </div>
3989
4151
  `;
@@ -145,6 +145,14 @@ export class AuroDropdown extends AuroElement {
145
145
  type: BooleanConstructor;
146
146
  reflect: boolean;
147
147
  };
148
+ /**
149
+ * Defines if the trigger should size based on the parent element providing the border UI.
150
+ * @private
151
+ */
152
+ parentBorder: {
153
+ type: BooleanConstructor;
154
+ reflect: boolean;
155
+ };
148
156
  /**
149
157
  * If declared, the popover and trigger will be set to the same width.
150
158
  */
@@ -248,12 +256,14 @@ export class AuroDropdown extends AuroElement {
248
256
  errorMessage: string;
249
257
  shape: string;
250
258
  size: string;
259
+ parentBorder: boolean;
251
260
  get commonLabelClasses(): {};
252
261
  get commonWrapperClasses(): {
253
262
  trigger: boolean;
254
263
  wrapper: boolean;
255
264
  hasFocus: boolean;
256
265
  simple: boolean;
266
+ parentBorder: boolean;
257
267
  };
258
268
  /**
259
269
  * @private
@@ -408,7 +418,6 @@ export class AuroDropdown extends AuroElement {
408
418
  *
409
419
  * @private
410
420
  * @method handleDefaultSlot
411
- * @param {Event} event - The event object representing the slot change.
412
421
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
413
422
  */
414
423
  private handleDefaultSlot;
@@ -33,6 +33,12 @@ export class AuroDropdownBib extends LitElement {
33
33
  type: BooleanConstructor;
34
34
  reflect: boolean;
35
35
  };
36
+ /**
37
+ * A reference to the associated bib template element.
38
+ */
39
+ bibTemplate: {
40
+ type: ObjectConstructor;
41
+ };
36
42
  };
37
43
  /**
38
44
  * @private
@@ -41,6 +47,8 @@ export class AuroDropdownBib extends LitElement {
41
47
  set mobileFullscreenBreakpoint(value: string);
42
48
  get mobileFullscreenBreakpoint(): string;
43
49
  updated(changedProperties: any): void;
50
+ bibTemplate: any;
51
+ firstUpdated(changedProperties: any): void;
44
52
  render(): import("lit-html").TemplateResult;
45
53
  }
46
54
  import { LitElement } from "lit";