@aurodesignsystem-dev/auro-formkit 0.0.0-pr750.0 → 0.0.0-pr753.0

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 (87) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.min.js +9 -9
  4. package/components/checkbox/demo/index.min.js +9 -9
  5. package/components/checkbox/dist/index.js +9 -9
  6. package/components/checkbox/dist/registered.js +9 -9
  7. package/components/combobox/demo/api.html +10 -16
  8. package/components/combobox/demo/api.md +6 -12
  9. package/components/combobox/demo/api.min.js +101 -84
  10. package/components/combobox/demo/index.html +10 -16
  11. package/components/combobox/demo/index.min.js +101 -84
  12. package/components/combobox/demo/readme.html +9 -16
  13. package/components/combobox/dist/index.js +89 -47
  14. package/components/combobox/dist/registered.js +89 -47
  15. package/components/counter/demo/api.html +10 -16
  16. package/components/counter/demo/api.md +7 -140
  17. package/components/counter/demo/api.min.js +387 -557
  18. package/components/counter/demo/index.html +10 -16
  19. package/components/counter/demo/index.md +0 -82
  20. package/components/counter/demo/index.min.js +387 -557
  21. package/components/counter/demo/readme.html +9 -16
  22. package/components/counter/dist/auro-counter-group.d.ts +14 -71
  23. package/components/counter/dist/auro-counter.d.ts +0 -10
  24. package/components/counter/dist/index.js +387 -557
  25. package/components/counter/dist/registered.js +387 -557
  26. package/components/datepicker/demo/api.html +10 -16
  27. package/components/datepicker/demo/api.min.js +95 -68
  28. package/components/datepicker/demo/index.html +10 -16
  29. package/components/datepicker/demo/index.min.js +95 -68
  30. package/components/datepicker/demo/readme.html +9 -16
  31. package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
  32. package/components/datepicker/dist/index.js +95 -68
  33. package/components/datepicker/dist/registered.js +95 -68
  34. package/components/dropdown/demo/api.html +10 -16
  35. package/components/dropdown/demo/api.md +268 -76
  36. package/components/dropdown/demo/api.min.js +68 -26
  37. package/components/dropdown/demo/index.html +10 -16
  38. package/components/dropdown/demo/index.md +363 -45
  39. package/components/dropdown/demo/index.min.js +68 -26
  40. package/components/dropdown/demo/readme.html +9 -16
  41. package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
  42. package/components/dropdown/dist/index.js +68 -26
  43. package/components/dropdown/dist/registered.js +68 -26
  44. package/components/form/demo/api.html +9 -16
  45. package/components/form/demo/autocomplete.html +3 -19
  46. package/components/form/demo/index.html +9 -16
  47. package/components/form/demo/readme.html +9 -16
  48. package/components/form/demo/working.html +13 -19
  49. package/components/helptext/dist/index.js +1 -1
  50. package/components/helptext/dist/registered.js +1 -1
  51. package/components/input/demo/api.html +10 -16
  52. package/components/input/demo/api.md +1 -1
  53. package/components/input/demo/api.min.js +14 -14
  54. package/components/input/demo/index.html +10 -16
  55. package/components/input/demo/index.min.js +14 -14
  56. package/components/input/demo/readme.html +9 -16
  57. package/components/input/dist/base-input.d.ts +1 -1
  58. package/components/input/dist/index.js +14 -14
  59. package/components/input/dist/registered.js +14 -14
  60. package/components/menu/demo/api.html +32 -16
  61. package/components/menu/demo/api.md +1 -1
  62. package/components/menu/demo/api.min.js +12 -37
  63. package/components/menu/demo/index.html +10 -16
  64. package/components/menu/demo/index.min.js +12 -37
  65. package/components/menu/demo/readme.html +9 -16
  66. package/components/menu/dist/auro-menu.d.ts +2 -13
  67. package/components/menu/dist/index.js +12 -37
  68. package/components/menu/dist/registered.js +12 -37
  69. package/components/radio/demo/api.html +10 -16
  70. package/components/radio/demo/api.min.js +10 -10
  71. package/components/radio/demo/index.html +10 -16
  72. package/components/radio/demo/index.min.js +10 -10
  73. package/components/radio/demo/readme.html +9 -16
  74. package/components/radio/dist/auro-radio.d.ts +1 -1
  75. package/components/radio/dist/index.js +10 -10
  76. package/components/radio/dist/registered.js +10 -10
  77. package/components/select/demo/api.html +10 -16
  78. package/components/select/demo/api.md +16 -19
  79. package/components/select/demo/api.min.js +295 -136
  80. package/components/select/demo/index.html +11 -16
  81. package/components/select/demo/index.md +1 -1
  82. package/components/select/demo/index.min.js +295 -136
  83. package/components/select/demo/readme.html +9 -16
  84. package/components/select/dist/auro-select.d.ts +7 -32
  85. package/components/select/dist/index.js +283 -99
  86. package/components/select/dist/registered.js +283 -99
  87. package/package.json +25 -26
@@ -649,19 +649,19 @@ class AuroFormValidation {
649
649
  {
650
650
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
651
651
  validity: 'tooShort',
652
- message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
652
+ message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
653
653
  },
654
654
  {
655
655
  check: (e) => e.value?.length > e.maxLength,
656
656
  validity: 'tooLong',
657
- message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
657
+ message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
658
658
  }
659
659
  ],
660
660
  pattern: [
661
661
  {
662
662
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
663
663
  validity: 'patternMismatch',
664
- message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
664
+ message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
665
665
  }
666
666
  ]
667
667
  },
@@ -856,10 +856,10 @@ class AuroFormValidation {
856
856
  if (!hasValue && elem.required && elem.touched) {
857
857
  elem.validity = 'valueMissing';
858
858
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
859
- } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
859
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
860
860
  this.validateType(elem);
861
861
  this.validateElementAttributes(elem);
862
- } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
862
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
863
863
  this.validateElementAttributes(elem);
864
864
  }
865
865
  }
@@ -4127,11 +4127,11 @@ var dropdownVersion$1 = '3.0.0';
4127
4127
 
4128
4128
  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;box-shadow:none}.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;box-shadow:unset;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;box-shadow:none}.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;box-shadow:unset;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;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;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;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;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;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
4129
4129
 
4130
- var colorCss$1$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper: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([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);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
4130
+ var colorCss$1$1 = css`:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper: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([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);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
4131
4131
 
4132
4132
  var classicColorCss = css``;
4133
4133
 
4134
- 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]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}: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([matchwidth]) #bibSizer{width:100%}`;
4134
+ 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]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}: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]:not([simple])) .triggerContentWrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}`;
4135
4135
 
4136
4136
  var styleEmphasizedCss = 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:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{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)}`;
4137
4137
 
@@ -4139,7 +4139,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex:1;fle
4139
4139
 
4140
4140
  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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4141
4141
 
4142
- var styleCss$6 = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
4142
+ var styleCss$6 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
4143
4143
 
4144
4144
  var tokensCss$4 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
4145
4145
 
@@ -4444,8 +4444,10 @@ let AuroElement$2 = class AuroElement extends LitElement {
4444
4444
  // See LICENSE in the project root for license information.
4445
4445
 
4446
4446
 
4447
- /*
4447
+ /**
4448
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4448
4449
  * @slot - Default slot for the popover content.
4450
+ * @slot label - Defines the content of the label.
4449
4451
  * @slot helpText - Defines the content of the helpText.
4450
4452
  * @slot trigger - Defines the content of the trigger.
4451
4453
  * @csspart trigger - The trigger content container.
@@ -4464,22 +4466,18 @@ class AuroDropdown extends AuroElement$2 {
4464
4466
  this.matchWidth = false;
4465
4467
  this.noHideOnThisFocusLoss = false;
4466
4468
 
4467
- this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4469
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
4468
4470
 
4469
4471
  // Layout Config
4470
- this.layout = undefined;
4471
- this.shape = undefined;
4472
- this.size = undefined;
4472
+ this.layout = 'classic';
4473
+ this.shape = 'classic';
4474
+ this.size = 'xl';
4473
4475
 
4474
4476
  this.parentBorder = false;
4475
4477
 
4476
4478
  this.privateDefaults();
4477
4479
  }
4478
4480
 
4479
- /**
4480
- * @private
4481
- * @returns {object} Class definition for the wrapper element.
4482
- */
4483
4481
  get commonWrapperClasses() {
4484
4482
  return {
4485
4483
  'trigger': true,
@@ -4499,8 +4497,12 @@ class AuroDropdown extends AuroElement$2 {
4499
4497
  this.disabled = false;
4500
4498
  this.disableFocusTrap = false;
4501
4499
  this.error = false;
4500
+ this.inset = false;
4501
+ this.rounded = false;
4502
4502
  this.tabIndex = 0;
4503
4503
  this.noToggle = false;
4504
+ this.a11yAutocomplete = 'none';
4505
+ this.labeled = true;
4504
4506
  this.a11yRole = 'button';
4505
4507
  this.onDark = false;
4506
4508
  this.showTriggerBorders = true;
@@ -4622,27 +4624,26 @@ class AuroDropdown extends AuroElement$2 {
4622
4624
  },
4623
4625
 
4624
4626
  /**
4625
- * If declared, the dropdown will only show by calling the API .show() public method.
4626
- * @default false
4627
+ * If declared, applies a border around the trigger slot.
4627
4628
  */
4628
- disableEventShow: {
4629
+ simple: {
4629
4630
  type: Boolean,
4630
4631
  reflect: true
4631
4632
  },
4632
4633
 
4633
4634
  /**
4634
- * If declared, applies a border around the trigger slot.
4635
+ * If declared, the dropdown displays a chevron on the right.
4636
+ * @attr {Boolean} chevron
4635
4637
  */
4636
- simple: {
4638
+ chevron: {
4637
4639
  type: Boolean,
4638
4640
  reflect: true
4639
4641
  },
4640
4642
 
4641
4643
  /**
4642
- * If declared, the dropdown displays a chevron on the right.
4643
- * @attr {Boolean} chevron
4644
+ * If declared, the dropdown will be styled with the common theme.
4644
4645
  */
4645
- chevron: {
4646
+ common: {
4646
4647
  type: Boolean,
4647
4648
  reflect: true
4648
4649
  },
@@ -4656,7 +4657,7 @@ class AuroDropdown extends AuroElement$2 {
4656
4657
  },
4657
4658
 
4658
4659
  /**
4659
- * If declared, the focus trap inside of bib will be turned off.
4660
+ * If declare, the focus trap inside of bib will be turned off.
4660
4661
  */
4661
4662
  disableFocusTrap: {
4662
4663
  type: Boolean,
@@ -4703,6 +4704,22 @@ class AuroDropdown extends AuroElement$2 {
4703
4704
  reflect: true
4704
4705
  },
4705
4706
 
4707
+ /**
4708
+ * Makes the trigger to be full width of its parent container.
4709
+ */
4710
+ fluid: {
4711
+ type: Boolean,
4712
+ reflect: true
4713
+ },
4714
+
4715
+ /**
4716
+ * If declared, will apply padding around trigger slot content.
4717
+ */
4718
+ inset: {
4719
+ type: Boolean,
4720
+ reflect: true
4721
+ },
4722
+
4706
4723
  /**
4707
4724
  * If true, the dropdown bib is displayed.
4708
4725
  */
@@ -4746,6 +4763,15 @@ class AuroDropdown extends AuroElement$2 {
4746
4763
  reflect: true
4747
4764
  },
4748
4765
 
4766
+ /**
4767
+ * Defines if there is a label preset.
4768
+ * @private
4769
+ */
4770
+ labeled: {
4771
+ type: Boolean,
4772
+ reflect: true
4773
+ },
4774
+
4749
4775
  /**
4750
4776
  * Defines if the trigger should size based on the parent element providing the border UI.
4751
4777
  * @private
@@ -4806,9 +4832,6 @@ class AuroDropdown extends AuroElement$2 {
4806
4832
  reflect: true
4807
4833
  },
4808
4834
 
4809
- /**
4810
- * If declared, and a function is set, that function will execute when the slot content is updated.
4811
- */
4812
4835
  onSlotChange: {
4813
4836
  type: Function,
4814
4837
  reflect: false
@@ -4823,6 +4846,14 @@ class AuroDropdown extends AuroElement$2 {
4823
4846
  reflect: true
4824
4847
  },
4825
4848
 
4849
+ /**
4850
+ * If declared, will apply border-radius to trigger and default slots.
4851
+ */
4852
+ rounded: {
4853
+ type: Boolean,
4854
+ reflect: true
4855
+ },
4856
+
4826
4857
  /**
4827
4858
  * @private
4828
4859
  */
@@ -4837,14 +4868,22 @@ class AuroDropdown extends AuroElement$2 {
4837
4868
  type: String || undefined,
4838
4869
  attribute: false,
4839
4870
  reflect: false
4871
+ },
4872
+
4873
+ /**
4874
+ * The value for the aria-autocomplete attribute of the trigger element.
4875
+ */
4876
+ a11yAutocomplete: {
4877
+ type: String,
4878
+ attribute: false,
4840
4879
  }
4841
4880
  };
4842
4881
  }
4843
4882
 
4844
4883
  static get styles() {
4845
4884
  return [
4846
- tokensCss$1$1,
4847
4885
  colorCss$1$1,
4886
+ tokensCss$1$1,
4848
4887
 
4849
4888
  // default layout
4850
4889
  classicColorCss,
@@ -5284,7 +5323,10 @@ class AuroDropdown extends AuroElement$2 {
5284
5323
  id="bib"
5285
5324
  shape="${this.shape}"
5286
5325
  ?data-show="${this.isPopoverVisible}"
5287
- ?isfullscreen="${this.isBibFullscreen}">
5326
+ ?isfullscreen="${this.isBibFullscreen}"
5327
+ ?common="${this.common}"
5328
+ ?rounded="${this.common || this.rounded}"
5329
+ ?inset="${this.common || this.inset}">
5288
5330
  <div class="slotContent">
5289
5331
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5290
5332
  </div>
@@ -7265,7 +7307,7 @@ class AuroBibtemplate extends LitElement {
7265
7307
  <div id="bibTemplate" part="bibtemplate">
7266
7308
  ${this.isFullscreen ? html`
7267
7309
  <div id="headerContainer">
7268
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7310
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7269
7311
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7270
7312
  </${this.buttonTag}>
7271
7313
  <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
@@ -7293,7 +7335,7 @@ var bibTemplateVersion = '1.0.0';
7293
7335
 
7294
7336
  var colorCss = 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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
7295
7337
 
7296
- var styleCss$1 = css`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
7338
+ var styleCss$1 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
7297
7339
 
7298
7340
  var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
7299
7341
 
@@ -7499,7 +7541,68 @@ class AuroHelpText extends LitElement {
7499
7541
 
7500
7542
  var helpTextVersion = '1.0.0';
7501
7543
 
7502
- var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-50, 0.25rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-50, 0.25rem) 0 var(--ds-size-150, 0.75rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-50, 0.25rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7544
+ css`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:block;vertical-align:middle}:host .wrapper{box-sizing:border-box;display:inline-block;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .wrapper[class*=-lg]{padding:var(--ds-size-150, 0.75rem)}:host([root]) .wrapper[class*=-xl]{padding:var(--ds-size-200, 1rem)}`;
7545
+
7546
+ css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
7547
+
7548
+ css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
7549
+
7550
+ // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7551
+ // See LICENSE in the project root for license information.
7552
+
7553
+ // ---------------------------------------------------------------------
7554
+
7555
+ /**
7556
+ * Converts value to an array.
7557
+ * If the value is a JSON string representing an array, it will be parsed.
7558
+ * If the value is already an array, it is returned.
7559
+ * If the value is undefined, it returns undefined.
7560
+ * @private
7561
+ * @param {any} value - The value to be converted. Can be a string, array, or undefined.
7562
+ * @returns {Array|undefined} - The converted array or undefined.
7563
+ * @throws {Error} - Throws an error if the value is not an array, undefined,
7564
+ * or if the value cannot be parsed into an array from a JSON string.
7565
+ */
7566
+ function arrayConverter(value) {
7567
+ // Allow undefined
7568
+ if (value === undefined) {
7569
+ return undefined;
7570
+ }
7571
+
7572
+ // Return the value if it is already an array
7573
+ if (Array.isArray(value)) {
7574
+ return value;
7575
+ }
7576
+
7577
+ try {
7578
+ // If value is a JSON string, parse it
7579
+ const parsed = typeof value === 'string' ? JSON.parse(value) : value;
7580
+
7581
+ // Check if the parsed value is an array
7582
+ if (Array.isArray(parsed)) {
7583
+ return parsed;
7584
+ }
7585
+ } catch (error) {
7586
+ // If JSON parsing fails, continue to throw an error below
7587
+ /* eslint-disable no-console */
7588
+ console.error('JSON parsing failed:', error);
7589
+ }
7590
+
7591
+ // Throw error if the input is not an array or undefined
7592
+ throw new Error('Invalid value: Input must be an array or undefined');
7593
+ }
7594
+
7595
+ css`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
7596
+
7597
+ css`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
7598
+
7599
+ css`: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}`;
7600
+
7601
+ css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
7602
+
7603
+ 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)}`;
7604
+
7605
+ var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7503
7606
 
7504
7607
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7505
7608
  // See LICENSE in the project root for license information.
@@ -7514,6 +7617,7 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
7514
7617
  * @slot label - Defines the content of the label.
7515
7618
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7516
7619
  * @slot helpText - Defines the content of the helpText.
7620
+ * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
7517
7621
  * @slot valueText - Dropdown value text display.
7518
7622
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
7519
7623
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -7783,14 +7887,6 @@ class AuroSelect extends AuroElement$3 {
7783
7887
  reflect: true
7784
7888
  },
7785
7889
 
7786
- /**
7787
- * Define custom placeholder text.
7788
- */
7789
- placeholder: {
7790
- type: String,
7791
- reflect: true
7792
- },
7793
-
7794
7890
  /**
7795
7891
  * Populates the `required` attribute on the element. Used for client-side validation.
7796
7892
  */
@@ -7837,12 +7933,11 @@ class AuroSelect extends AuroElement$3 {
7837
7933
  },
7838
7934
 
7839
7935
  /**
7840
- * Value selected for the component.
7936
+ * Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
7937
+ * @type {String|Array<String>}
7841
7938
  */
7842
7939
  value: {
7843
- type: String,
7844
- reflect: true,
7845
- attribute: 'value'
7940
+ type: Object
7846
7941
  },
7847
7942
 
7848
7943
  /**
@@ -7894,25 +7989,6 @@ class AuroSelect extends AuroElement$3 {
7894
7989
  ];
7895
7990
  }
7896
7991
 
7897
- /**
7898
- * Formatted value based on `multiSelect` state.
7899
- * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
7900
- * @private
7901
- * @returns {String|Array<String>}
7902
- */
7903
- get formattedValue() {
7904
- if (this.multiSelect) {
7905
- if (!this.value) {
7906
- return undefined;
7907
- }
7908
- if (this.value.startsWith("[")) {
7909
- return JSON.parse(this.value);
7910
- }
7911
- return [this.value];
7912
- }
7913
- return this.value;
7914
- }
7915
-
7916
7992
  /**
7917
7993
  * Returns classmap configuration for html5 input labels in all layouts.
7918
7994
  * @private
@@ -7921,7 +7997,7 @@ class AuroSelect extends AuroElement$3 {
7921
7997
  get commonLabelClasses() {
7922
7998
  return {
7923
7999
  'is-disabled': this.disabled,
7924
- 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8000
+ 'withValue': this.value && this.value.length > 0,
7925
8001
  'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7926
8002
  };
7927
8003
  }
@@ -8331,6 +8407,14 @@ class AuroSelect extends AuroElement$3 {
8331
8407
  this.configureDropdown();
8332
8408
  this.configureMenu();
8333
8409
  this.configureSelect();
8410
+
8411
+ // Set the initial value in auro-menu if defined
8412
+ if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
8413
+ this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
8414
+ if (this.menu) {
8415
+ this.menu.value = this.value;
8416
+ }
8417
+ }
8334
8418
  }
8335
8419
 
8336
8420
  /**
@@ -8342,18 +8426,19 @@ class AuroSelect extends AuroElement$3 {
8342
8426
  async updateMenuValue(value) {
8343
8427
  if (!this.menu) return;
8344
8428
 
8345
- this.menu.setAttribute('value', value);
8346
8429
  this.menu.value = value;
8347
8430
  await this.menu.updateComplete;
8348
8431
  }
8349
8432
 
8350
8433
  async updated(changedProperties) {
8351
- if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
8434
+ if (changedProperties.has('multiSelect')) {
8352
8435
  this.clearSelection();
8353
8436
  }
8354
8437
 
8355
8438
  if (changedProperties.has('value')) {
8356
8439
  if (this.value) {
8440
+ this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
8441
+
8357
8442
  await this.updateMenuValue(this.value);
8358
8443
 
8359
8444
  if (this.menu) {
@@ -8379,7 +8464,7 @@ class AuroSelect extends AuroElement$3 {
8379
8464
  composed: true,
8380
8465
  detail: {
8381
8466
  optionSelected: this.optionSelected,
8382
- value: this.formattedValue
8467
+ value: this.value
8383
8468
  }
8384
8469
  }));
8385
8470
  }
@@ -8438,13 +8523,13 @@ class AuroSelect extends AuroElement$3 {
8438
8523
  const selectedValue = selectedOption.value;
8439
8524
 
8440
8525
  if (this.multiSelect) {
8441
- const currentArray = this.formattedValue;
8526
+ const currentArray = Array.isArray(this.value) ? this.value : [];
8442
8527
 
8443
8528
  if (!currentArray.includes(selectedValue)) {
8444
- this.value = JSON.stringify([
8529
+ this.value = [
8445
8530
  ...currentArray,
8446
8531
  selectedValue
8447
- ]);
8532
+ ];
8448
8533
  }
8449
8534
  } else {
8450
8535
  const currentValue = this.value;
@@ -8467,17 +8552,12 @@ class AuroSelect extends AuroElement$3 {
8467
8552
  }
8468
8553
 
8469
8554
  if (this.multiSelect) {
8470
- nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
8555
+ nativeSelect.value = this.value ? this.value[0] : '';
8471
8556
  } else {
8472
8557
  nativeSelect.value = this.value || '';
8473
8558
  }
8474
8559
  }
8475
8560
 
8476
- /**
8477
- * Returns HTML for the hidden a11y screen reader content.
8478
- * @private
8479
- * @returns {html} - Returns HTML for the hidden a11y screen reader content.
8480
- */
8481
8561
  renderAriaHtml() {
8482
8562
  return html`
8483
8563
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -8498,11 +8578,6 @@ class AuroSelect extends AuroElement$3 {
8498
8578
  `;
8499
8579
  }
8500
8580
 
8501
- /**
8502
- * Returns HTML for the hidden HTML5 select.
8503
- * @private
8504
- * @returns {html} - Returns HTML for the hidden HTML5 select.
8505
- */
8506
8581
  renderNativeSelect() {
8507
8582
  return html`
8508
8583
  <div class="nativeSelectWrapper util_displayHidden">
@@ -8549,7 +8624,7 @@ class AuroSelect extends AuroElement$3 {
8549
8624
  : html`
8550
8625
  <${this.helpTextTag} error ?onDark="${this.onDark}">
8551
8626
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8552
- ${this.errorMessage}
8627
+ ERROR MESSAGE ${this.errorMessage}
8553
8628
  </p>
8554
8629
  </${this.helpTextTag}>
8555
8630
  `
@@ -8564,14 +8639,14 @@ class AuroSelect extends AuroElement$3 {
8564
8639
  */
8565
8640
  renderLayoutEmphasized() {
8566
8641
  const placeholderClass = {
8567
- 'util_displayHidden': this.value
8642
+ hidden: this.value,
8568
8643
  };
8569
8644
 
8570
8645
  const displayValueClasses = {
8571
8646
  'displayValue': true,
8572
8647
  'hasContent': this.hasDisplayValueContent,
8573
8648
  'hasFocus': this.isPopoverVisible,
8574
- 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8649
+ 'withValue': this.value && this.value.length > 0,
8575
8650
  'force': this.forceDisplayValue,
8576
8651
  };
8577
8652
 
@@ -8598,6 +8673,7 @@ class AuroSelect extends AuroElement$3 {
8598
8673
  .offset="${this.offset}"
8599
8674
  .placement="${this.placement}"
8600
8675
  chevron
8676
+ fluid
8601
8677
  for="selectMenu"
8602
8678
  layout="${this.layout}"
8603
8679
  part="dropdown"
@@ -8614,9 +8690,11 @@ class AuroSelect extends AuroElement$3 {
8614
8690
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8615
8691
  </label>
8616
8692
  <div class="value" id="value"></div>
8617
- <div id="placeholder" class="${classMap(placeholderClass)}">
8618
- ${this.placeholder}
8619
- </div>
8693
+ ${this.value ? undefined : html`
8694
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8695
+ <slot name="placeholder"></slot>
8696
+ </div>
8697
+ `}
8620
8698
  </div>
8621
8699
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8622
8700
  <slot name="displayValue"></slot>
@@ -8643,14 +8721,14 @@ class AuroSelect extends AuroElement$3 {
8643
8721
  */
8644
8722
  renderLayoutSnowflake() {
8645
8723
  const placeholderClass = {
8646
- 'util_displayHidden': this.value
8724
+ hidden: this.value,
8647
8725
  };
8648
8726
 
8649
8727
  const displayValueClasses = {
8650
8728
  'displayValue': true,
8651
8729
  'hasContent': this.hasDisplayValueContent,
8652
8730
  'hasFocus': this.isPopoverVisible,
8653
- 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8731
+ 'withValue': this.value && this.value.length > 0,
8654
8732
  'force': this.forceDisplayValue,
8655
8733
  };
8656
8734
 
@@ -8676,6 +8754,7 @@ class AuroSelect extends AuroElement$3 {
8676
8754
  .offset="${this.offset}"
8677
8755
  .placement="${this.placement}"
8678
8756
  chevron
8757
+ fluid
8679
8758
  for="selectMenu"
8680
8759
  layout="${this.layout}"
8681
8760
  part="dropdown"
@@ -8692,9 +8771,11 @@ class AuroSelect extends AuroElement$3 {
8692
8771
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8693
8772
  </label>
8694
8773
  <div class="value" id="value"></div>
8695
- <div id="placeholder" class="${classMap(placeholderClass)}">
8696
- ${this.placeholder}
8697
- </div>
8774
+ ${this.value ? undefined : html`
8775
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8776
+ <slot name="placeholder"></slot>
8777
+ </div>
8778
+ `}
8698
8779
  </div>
8699
8780
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8700
8781
  <slot name="displayValue"></slot>
@@ -8722,14 +8803,14 @@ class AuroSelect extends AuroElement$3 {
8722
8803
  */
8723
8804
  renderLayoutClassic() {
8724
8805
  const placeholderClass = {
8725
- 'util_displayHidden': this.value
8806
+ hidden: this.value,
8726
8807
  };
8727
8808
 
8728
8809
  const displayValueClasses = {
8729
8810
  'displayValue': true,
8730
8811
  'hasContent': this.hasDisplayValueContent,
8731
8812
  'hasFocus': this.isPopoverVisible,
8732
- 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8813
+ 'withValue': this.value && this.value.length > 0,
8733
8814
  'force': this.forceDisplayValue,
8734
8815
  };
8735
8816
 
@@ -8755,6 +8836,7 @@ class AuroSelect extends AuroElement$3 {
8755
8836
  .offset="${this.offset}"
8756
8837
  .placement="${this.placement}"
8757
8838
  chevron
8839
+ fluid
8758
8840
  for="selectMenu"
8759
8841
  layout="${this.layout}"
8760
8842
  part="dropdown"
@@ -8771,9 +8853,11 @@ class AuroSelect extends AuroElement$3 {
8771
8853
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8772
8854
  </label>
8773
8855
  <div class="value" id="value"></div>
8774
- <div id="placeholder" class="${classMap(placeholderClass)}">
8775
- ${this.placeholder}
8776
- </div>
8856
+ ${this.value ? undefined : html`
8857
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8858
+ <slot name="placeholder"></slot>
8859
+ </div>
8860
+ `}
8777
8861
  </div>
8778
8862
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8779
8863
  <slot name="displayValue"></slot>
@@ -8823,6 +8907,106 @@ class AuroSelect extends AuroElement$3 {
8823
8907
 
8824
8908
  // When using auroElement, use the following attribute and function when hiding content from screen readers.
8825
8909
  // aria-hidden="${this.hideAudible(this.hiddenAudible)}"
8910
+
8911
+ // function that renders the HTML and CSS into the scope of the component
8912
+ renderBACKUP() {
8913
+ const placeholderClass = {
8914
+ hidden: this.value,
8915
+ };
8916
+
8917
+ return html`
8918
+ <div class="outerWrapper">
8919
+ <div aria-live="polite" class="util_displayHiddenVisually">
8920
+ ${this.optionActive && this.options.length > 0
8921
+ ? html`
8922
+ ${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
8923
+ `
8924
+ : undefined
8925
+ };
8926
+
8927
+ ${this.optionSelected && this.options.length > 0
8928
+ ? html`
8929
+ ${`${this.optionSelected.innerText} selected`}
8930
+ `
8931
+ : undefined
8932
+ };
8933
+ </div>
8934
+ <div id="slotHolder" aria-hidden="true">
8935
+ <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
8936
+ </div>
8937
+ <${this.dropdownTag}
8938
+ ?autoPlacement="${this.autoPlacement}"
8939
+ ?disabled="${this.disabled}"
8940
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
8941
+ ?matchWidth="${this.matchWidth}"
8942
+ ?noFlip="${this.noFlip}"
8943
+ ?onDark="${this.onDark}"
8944
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
8945
+ .offset="${this.offset}"
8946
+ .placement="${this.placement}"
8947
+ chevron
8948
+ fluid
8949
+ for="selectMenu"
8950
+ layout="${this.layout}"
8951
+ part="dropdown"
8952
+ shape="${this.shape}"
8953
+ size="${this.size}">
8954
+ <span slot="trigger" aria-haspopup="true" id="triggerFocus">
8955
+ <span id="placeholder"
8956
+ class="${classMap(placeholderClass)}"
8957
+ ?aria-hidden="${this.optionSelected && this.optionSelected.length ? 'true' : false}"
8958
+ >
8959
+ <slot name="placeholder"></slot>
8960
+ </span>
8961
+ <slot name="valueText" id="valueText"></slot>
8962
+ </span>
8963
+
8964
+ <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}" @close-click="${this.hideBib}">
8965
+ <slot></slot>
8966
+ </${this.bibtemplateTag}>
8967
+ <slot name="label" slot="label"></slot>
8968
+ ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8969
+ <p slot="helpText">
8970
+ ${!this.validity || this.validity === undefined || this.validity === 'valid'
8971
+ ? html`
8972
+ <span id="${this.uniqueId}" part="helpText">
8973
+ <slot name="helpText"></slot>
8974
+ </span>`
8975
+ : html`
8976
+ <span id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8977
+ ${this.errorMessage}
8978
+ </span>`
8979
+ }
8980
+ </p>
8981
+ </${this.dropdownTag}>
8982
+ <div class="nativeSelectWrapper">
8983
+ <select
8984
+ tabindex="-1"
8985
+ id="${`native-select-${this.id || this.uniqueId}`}"
8986
+ name="${this.name || ''}"
8987
+ ?disabled="${this.disabled}"
8988
+ ?required="${this.required}"
8989
+ aria-hidden="true"
8990
+ autocomplete="${ifDefined$1(this.autocomplete)}"
8991
+ @change="${this._handleNativeSelectChange}">
8992
+ <option value="" ?selected="${!this.value}"></option>
8993
+ ${this.options.map((option) => {
8994
+ const optionValue = option.value || option.textContent;
8995
+ return html`
8996
+ <option
8997
+ value="${optionValue}"
8998
+ ?selected="${this.value === optionValue}">
8999
+ ${option.textContent}
9000
+ </option>
9001
+ `;
9002
+ })}
9003
+ </select>
9004
+ </div>
9005
+ <!-- Help text and error message template -->
9006
+ ${this.renderHtmlHelpText()}
9007
+ </div>
9008
+ `;
9009
+ }
8826
9010
  }
8827
9011
 
8828
9012
  export { AuroSelect };