@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.1 → 0.0.0-pr754.2

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 (56) 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.md +12 -6
  8. package/components/combobox/demo/api.min.js +43 -84
  9. package/components/combobox/demo/index.min.js +43 -84
  10. package/components/combobox/dist/index.js +42 -84
  11. package/components/combobox/dist/registered.js +42 -84
  12. package/components/counter/demo/api.md +140 -7
  13. package/components/counter/demo/api.min.js +555 -385
  14. package/components/counter/demo/index.md +82 -0
  15. package/components/counter/demo/index.min.js +555 -385
  16. package/components/counter/dist/auro-counter-group.d.ts +71 -14
  17. package/components/counter/dist/auro-counter.d.ts +10 -0
  18. package/components/counter/dist/index.js +555 -385
  19. package/components/counter/dist/registered.js +555 -385
  20. package/components/datepicker/demo/api.min.js +42 -84
  21. package/components/datepicker/demo/index.min.js +42 -84
  22. package/components/datepicker/dist/index.js +42 -84
  23. package/components/datepicker/dist/registered.js +42 -84
  24. package/components/dropdown/demo/api.md +76 -268
  25. package/components/dropdown/demo/api.min.js +25 -67
  26. package/components/dropdown/demo/index.md +45 -363
  27. package/components/dropdown/demo/index.min.js +25 -67
  28. package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
  29. package/components/dropdown/dist/index.js +25 -67
  30. package/components/dropdown/dist/registered.js +25 -67
  31. package/components/helptext/dist/index.js +1 -1
  32. package/components/helptext/dist/registered.js +1 -1
  33. package/components/input/demo/api.md +1 -1
  34. package/components/input/demo/api.min.js +10 -10
  35. package/components/input/demo/index.min.js +10 -10
  36. package/components/input/dist/base-input.d.ts +1 -1
  37. package/components/input/dist/index.js +10 -10
  38. package/components/input/dist/registered.js +10 -10
  39. package/components/menu/demo/api.md +14 -15
  40. package/components/menu/demo/api.min.js +1 -0
  41. package/components/menu/demo/index.min.js +1 -0
  42. package/components/menu/dist/auro-menu.d.ts +2 -1
  43. package/components/menu/dist/index.js +1 -0
  44. package/components/menu/dist/registered.js +1 -0
  45. package/components/radio/demo/api.min.js +9 -9
  46. package/components/radio/demo/index.min.js +9 -9
  47. package/components/radio/dist/index.js +9 -9
  48. package/components/radio/dist/registered.js +9 -9
  49. package/components/select/demo/api.md +41 -36
  50. package/components/select/demo/api.min.js +60 -102
  51. package/components/select/demo/index.md +1 -1
  52. package/components/select/demo/index.min.js +60 -102
  53. package/components/select/dist/auro-select.d.ts +9 -2
  54. package/components/select/dist/index.js +59 -102
  55. package/components/select/dist/registered.js +59 -102
  56. package/package.json +2 -2
@@ -689,19 +689,19 @@ class AuroFormValidation {
689
689
  {
690
690
  check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
691
691
  validity: 'tooShort',
692
- message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
692
+ message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
693
693
  },
694
694
  {
695
695
  check: (e) => e.value?.length > e.maxLength,
696
696
  validity: 'tooLong',
697
- message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
697
+ message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
698
698
  }
699
699
  ],
700
700
  pattern: [
701
701
  {
702
702
  check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
703
703
  validity: 'patternMismatch',
704
- message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
704
+ message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
705
705
  }
706
706
  ]
707
707
  },
@@ -896,10 +896,10 @@ class AuroFormValidation {
896
896
  if (!hasValue && elem.required && elem.touched) {
897
897
  elem.validity = 'valueMissing';
898
898
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
899
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
899
+ } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
900
900
  this.validateType(elem);
901
901
  this.validateElementAttributes(elem);
902
- } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
902
+ } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
903
903
  this.validateElementAttributes(elem);
904
904
  }
905
905
  }
@@ -4173,7 +4173,7 @@ var dropdownVersion$1 = '3.0.0';
4173
4173
 
4174
4174
  var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;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}`;
4175
4175
 
4176
- var colorCss$1$2 = i$5`: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)}`;
4176
+ var colorCss$1$2 = i$5`: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)}`;
4177
4177
 
4178
4178
  var classicColorCss = i$5``;
4179
4179
 
@@ -4185,7 +4185,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;fle
4185
4185
 
4186
4186
  var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
4187
4187
 
4188
- var styleCss$6 = i$5`.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}`;
4188
+ var styleCss$6 = i$5`: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}`;
4189
4189
 
4190
4190
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
4191
4191
 
@@ -4490,10 +4490,8 @@ let AuroElement$3 = class AuroElement extends i$2 {
4490
4490
  // See LICENSE in the project root for license information.
4491
4491
 
4492
4492
 
4493
- /**
4494
- * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
4493
+ /*
4495
4494
  * @slot - Default slot for the popover content.
4496
- * @slot label - Defines the content of the label.
4497
4495
  * @slot helpText - Defines the content of the helpText.
4498
4496
  * @slot trigger - Defines the content of the trigger.
4499
4497
  * @csspart trigger - The trigger content container.
@@ -4512,18 +4510,22 @@ class AuroDropdown extends AuroElement$3 {
4512
4510
  this.matchWidth = false;
4513
4511
  this.noHideOnThisFocusLoss = false;
4514
4512
 
4515
- this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
4513
+ this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
4516
4514
 
4517
4515
  // Layout Config
4518
- this.layout = 'classic';
4519
- this.shape = 'classic';
4520
- this.size = 'xl';
4516
+ this.layout = undefined;
4517
+ this.shape = undefined;
4518
+ this.size = undefined;
4521
4519
 
4522
4520
  this.parentBorder = false;
4523
4521
 
4524
4522
  this.privateDefaults();
4525
4523
  }
4526
4524
 
4525
+ /**
4526
+ * @private
4527
+ * @returns {object} Class definition for the wrapper element.
4528
+ */
4527
4529
  get commonWrapperClasses() {
4528
4530
  return {
4529
4531
  'trigger': true,
@@ -4543,12 +4545,8 @@ class AuroDropdown extends AuroElement$3 {
4543
4545
  this.disabled = false;
4544
4546
  this.disableFocusTrap = false;
4545
4547
  this.error = false;
4546
- this.inset = false;
4547
- this.rounded = false;
4548
4548
  this.tabIndex = 0;
4549
4549
  this.noToggle = false;
4550
- this.a11yAutocomplete = 'none';
4551
- this.labeled = true;
4552
4550
  this.a11yRole = 'button';
4553
4551
  this.onDark = false;
4554
4552
  this.showTriggerBorders = true;
@@ -4670,26 +4668,27 @@ class AuroDropdown extends AuroElement$3 {
4670
4668
  },
4671
4669
 
4672
4670
  /**
4673
- * If declared, applies a border around the trigger slot.
4671
+ * If declared, the dropdown will only show by calling the API .show() public method.
4672
+ * @default false
4674
4673
  */
4675
- simple: {
4674
+ disableEventShow: {
4676
4675
  type: Boolean,
4677
4676
  reflect: true
4678
4677
  },
4679
4678
 
4680
4679
  /**
4681
- * If declared, the dropdown displays a chevron on the right.
4682
- * @attr {Boolean} chevron
4680
+ * If declared, applies a border around the trigger slot.
4683
4681
  */
4684
- chevron: {
4682
+ simple: {
4685
4683
  type: Boolean,
4686
4684
  reflect: true
4687
4685
  },
4688
4686
 
4689
4687
  /**
4690
- * If declared, the dropdown will be styled with the common theme.
4688
+ * If declared, the dropdown displays a chevron on the right.
4689
+ * @attr {Boolean} chevron
4691
4690
  */
4692
- common: {
4691
+ chevron: {
4693
4692
  type: Boolean,
4694
4693
  reflect: true
4695
4694
  },
@@ -4703,7 +4702,7 @@ class AuroDropdown extends AuroElement$3 {
4703
4702
  },
4704
4703
 
4705
4704
  /**
4706
- * If declare, the focus trap inside of bib will be turned off.
4705
+ * If declared, the focus trap inside of bib will be turned off.
4707
4706
  */
4708
4707
  disableFocusTrap: {
4709
4708
  type: Boolean,
@@ -4750,22 +4749,6 @@ class AuroDropdown extends AuroElement$3 {
4750
4749
  reflect: true
4751
4750
  },
4752
4751
 
4753
- /**
4754
- * Makes the trigger to be full width of its parent container.
4755
- */
4756
- fluid: {
4757
- type: Boolean,
4758
- reflect: true
4759
- },
4760
-
4761
- /**
4762
- * If declared, will apply padding around trigger slot content.
4763
- */
4764
- inset: {
4765
- type: Boolean,
4766
- reflect: true
4767
- },
4768
-
4769
4752
  /**
4770
4753
  * If true, the dropdown bib is displayed.
4771
4754
  */
@@ -4809,15 +4792,6 @@ class AuroDropdown extends AuroElement$3 {
4809
4792
  reflect: true
4810
4793
  },
4811
4794
 
4812
- /**
4813
- * Defines if there is a label preset.
4814
- * @private
4815
- */
4816
- labeled: {
4817
- type: Boolean,
4818
- reflect: true
4819
- },
4820
-
4821
4795
  /**
4822
4796
  * Defines if the trigger should size based on the parent element providing the border UI.
4823
4797
  * @private
@@ -4878,6 +4852,9 @@ class AuroDropdown extends AuroElement$3 {
4878
4852
  reflect: true
4879
4853
  },
4880
4854
 
4855
+ /**
4856
+ * If declared, and a function is set, that function will execute when the slot content is updated.
4857
+ */
4881
4858
  onSlotChange: {
4882
4859
  type: Function,
4883
4860
  reflect: false
@@ -4892,14 +4869,6 @@ class AuroDropdown extends AuroElement$3 {
4892
4869
  reflect: true
4893
4870
  },
4894
4871
 
4895
- /**
4896
- * If declared, will apply border-radius to trigger and default slots.
4897
- */
4898
- rounded: {
4899
- type: Boolean,
4900
- reflect: true
4901
- },
4902
-
4903
4872
  /**
4904
4873
  * @private
4905
4874
  */
@@ -4914,22 +4883,14 @@ class AuroDropdown extends AuroElement$3 {
4914
4883
  type: String || undefined,
4915
4884
  attribute: false,
4916
4885
  reflect: false
4917
- },
4918
-
4919
- /**
4920
- * The value for the aria-autocomplete attribute of the trigger element.
4921
- */
4922
- a11yAutocomplete: {
4923
- type: String,
4924
- attribute: false,
4925
4886
  }
4926
4887
  };
4927
4888
  }
4928
4889
 
4929
4890
  static get styles() {
4930
4891
  return [
4931
- colorCss$1$2,
4932
4892
  tokensCss$1$2,
4893
+ colorCss$1$2,
4933
4894
 
4934
4895
  // default layout
4935
4896
  classicColorCss,
@@ -5369,10 +5330,7 @@ class AuroDropdown extends AuroElement$3 {
5369
5330
  id="bib"
5370
5331
  shape="${this.shape}"
5371
5332
  ?data-show="${this.isPopoverVisible}"
5372
- ?isfullscreen="${this.isBibFullscreen}"
5373
- ?common="${this.common}"
5374
- ?rounded="${this.common || this.rounded}"
5375
- ?inset="${this.common || this.inset}">
5333
+ ?isfullscreen="${this.isBibFullscreen}">
5376
5334
  <div class="slotContent">
5377
5335
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5378
5336
  </div>
@@ -7353,7 +7311,7 @@ class AuroBibtemplate extends i$2 {
7353
7311
  <div id="bibTemplate" part="bibtemplate">
7354
7312
  ${this.isFullscreen ? u`
7355
7313
  <div id="headerContainer">
7356
- <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7314
+ <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
7357
7315
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
7358
7316
  </${this.buttonTag}>
7359
7317
  <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
@@ -7381,7 +7339,7 @@ var bibTemplateVersion = '1.0.0';
7381
7339
 
7382
7340
  var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
7383
7341
 
7384
- var styleCss$4 = i$5`.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}`;
7342
+ var styleCss$4 = i$5`: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}`;
7385
7343
 
7386
7344
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
7387
7345
 
@@ -7587,7 +7545,7 @@ class AuroHelpText extends i$2 {
7587
7545
 
7588
7546
  var helpTextVersion = '1.0.0';
7589
7547
 
7590
- var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[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}`;
7548
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[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]){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}`;
7591
7549
 
7592
7550
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7593
7551
  // See LICENSE in the project root for license information.
@@ -7602,7 +7560,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
7602
7560
  * @slot label - Defines the content of the label.
7603
7561
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7604
7562
  * @slot helpText - Defines the content of the helpText.
7605
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
7606
7563
  * @slot valueText - Dropdown value text display.
7607
7564
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
7608
7565
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -7872,6 +7829,14 @@ class AuroSelect extends AuroElement$4 {
7872
7829
  reflect: true
7873
7830
  },
7874
7831
 
7832
+ /**
7833
+ * Define custom placeholder text.
7834
+ */
7835
+ placeholder: {
7836
+ type: String,
7837
+ reflect: true
7838
+ },
7839
+
7875
7840
  /**
7876
7841
  * Populates the `required` attribute on the element. Used for client-side validation.
7877
7842
  */
@@ -7978,6 +7943,7 @@ class AuroSelect extends AuroElement$4 {
7978
7943
  /**
7979
7944
  * Formatted value based on `multiSelect` state.
7980
7945
  * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
7946
+ * @private
7981
7947
  * @returns {String|Array<String>}
7982
7948
  */
7983
7949
  get formattedValue() {
@@ -8001,7 +7967,7 @@ class AuroSelect extends AuroElement$4 {
8001
7967
  get commonLabelClasses() {
8002
7968
  return {
8003
7969
  'is-disabled': this.disabled,
8004
- 'withValue': this.value && this.value.length > 0,
7970
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8005
7971
  'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8006
7972
  };
8007
7973
  }
@@ -8629,7 +8595,7 @@ class AuroSelect extends AuroElement$4 {
8629
8595
  : u`
8630
8596
  <${this.helpTextTag} error ?onDark="${this.onDark}">
8631
8597
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8632
- ERROR MESSAGE ${this.errorMessage}
8598
+ ${this.errorMessage}
8633
8599
  </p>
8634
8600
  </${this.helpTextTag}>
8635
8601
  `
@@ -8644,14 +8610,14 @@ class AuroSelect extends AuroElement$4 {
8644
8610
  */
8645
8611
  renderLayoutEmphasized() {
8646
8612
  const placeholderClass = {
8647
- hidden: this.value,
8613
+ 'util_displayHidden': this.value
8648
8614
  };
8649
8615
 
8650
8616
  const displayValueClasses = {
8651
8617
  'displayValue': true,
8652
8618
  'hasContent': this.hasDisplayValueContent,
8653
8619
  'hasFocus': this.isPopoverVisible,
8654
- 'withValue': this.value && this.value.length > 0,
8620
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8655
8621
  'force': this.forceDisplayValue,
8656
8622
  };
8657
8623
 
@@ -8678,7 +8644,6 @@ class AuroSelect extends AuroElement$4 {
8678
8644
  .offset="${this.offset}"
8679
8645
  .placement="${this.placement}"
8680
8646
  chevron
8681
- fluid
8682
8647
  for="selectMenu"
8683
8648
  layout="${this.layout}"
8684
8649
  part="dropdown"
@@ -8695,11 +8660,9 @@ class AuroSelect extends AuroElement$4 {
8695
8660
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8696
8661
  </label>
8697
8662
  <div class="value" id="value"></div>
8698
- ${this.value ? undefined : u`
8699
- <div id="placeholder" class="${e(placeholderClass)}">
8700
- <slot name="placeholder"></slot>
8701
- </div>
8702
- `}
8663
+ <div id="placeholder" class="${e(placeholderClass)}">
8664
+ ${this.placeholder}
8665
+ </div>
8703
8666
  </div>
8704
8667
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8705
8668
  <slot name="displayValue"></slot>
@@ -8726,14 +8689,14 @@ class AuroSelect extends AuroElement$4 {
8726
8689
  */
8727
8690
  renderLayoutSnowflake() {
8728
8691
  const placeholderClass = {
8729
- hidden: this.value,
8692
+ 'util_displayHidden': this.value
8730
8693
  };
8731
8694
 
8732
8695
  const displayValueClasses = {
8733
8696
  'displayValue': true,
8734
8697
  'hasContent': this.hasDisplayValueContent,
8735
8698
  'hasFocus': this.isPopoverVisible,
8736
- 'withValue': this.value && this.value.length > 0,
8699
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8737
8700
  'force': this.forceDisplayValue,
8738
8701
  };
8739
8702
 
@@ -8759,7 +8722,6 @@ class AuroSelect extends AuroElement$4 {
8759
8722
  .offset="${this.offset}"
8760
8723
  .placement="${this.placement}"
8761
8724
  chevron
8762
- fluid
8763
8725
  for="selectMenu"
8764
8726
  layout="${this.layout}"
8765
8727
  part="dropdown"
@@ -8776,11 +8738,9 @@ class AuroSelect extends AuroElement$4 {
8776
8738
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8777
8739
  </label>
8778
8740
  <div class="value" id="value"></div>
8779
- ${this.value ? undefined : u`
8780
- <div id="placeholder" class="${e(placeholderClass)}">
8781
- <slot name="placeholder"></slot>
8782
- </div>
8783
- `}
8741
+ <div id="placeholder" class="${e(placeholderClass)}">
8742
+ ${this.placeholder}
8743
+ </div>
8784
8744
  </div>
8785
8745
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8786
8746
  <slot name="displayValue"></slot>
@@ -8808,14 +8768,14 @@ class AuroSelect extends AuroElement$4 {
8808
8768
  */
8809
8769
  renderLayoutClassic() {
8810
8770
  const placeholderClass = {
8811
- hidden: this.value,
8771
+ 'util_displayHidden': this.value
8812
8772
  };
8813
8773
 
8814
8774
  const displayValueClasses = {
8815
8775
  'displayValue': true,
8816
8776
  'hasContent': this.hasDisplayValueContent,
8817
8777
  'hasFocus': this.isPopoverVisible,
8818
- 'withValue': this.value && this.value.length > 0,
8778
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8819
8779
  'force': this.forceDisplayValue,
8820
8780
  };
8821
8781
 
@@ -8841,7 +8801,6 @@ class AuroSelect extends AuroElement$4 {
8841
8801
  .offset="${this.offset}"
8842
8802
  .placement="${this.placement}"
8843
8803
  chevron
8844
- fluid
8845
8804
  for="selectMenu"
8846
8805
  layout="${this.layout}"
8847
8806
  part="dropdown"
@@ -8858,11 +8817,9 @@ class AuroSelect extends AuroElement$4 {
8858
8817
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8859
8818
  </label>
8860
8819
  <div class="value" id="value"></div>
8861
- ${this.value ? undefined : u`
8862
- <div id="placeholder" class="${e(placeholderClass)}">
8863
- <slot name="placeholder"></slot>
8864
- </div>
8865
- `}
8820
+ <div id="placeholder" class="${e(placeholderClass)}">
8821
+ ${this.placeholder}
8822
+ </div>
8866
8823
  </div>
8867
8824
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8868
8825
  <slot name="displayValue"></slot>
@@ -9128,6 +9085,7 @@ class AuroMenu extends AuroElement$4 {
9128
9085
  /**
9129
9086
  * Formatted value based on `multiSelect` state.
9130
9087
  * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
9088
+ * @private
9131
9089
  * @returns {String|Array<String>}
9132
9090
  */
9133
9091
  get formattedValue() {
@@ -6,7 +6,6 @@
6
6
  * @slot label - Defines the content of the label.
7
7
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
8
8
  * @slot helpText - Defines the content of the helpText.
9
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
10
9
  * @slot valueText - Dropdown value text display.
11
10
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
12
11
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -154,6 +153,13 @@ export class AuroSelect extends AuroElement {
154
153
  type: StringConstructor;
155
154
  reflect: boolean;
156
155
  };
156
+ /**
157
+ * Define custom placeholder text.
158
+ */
159
+ placeholder: {
160
+ type: StringConstructor;
161
+ reflect: boolean;
162
+ };
157
163
  /**
158
164
  * Populates the `required` attribute on the element. Used for client-side validation.
159
165
  */
@@ -302,9 +308,10 @@ export class AuroSelect extends AuroElement {
302
308
  /**
303
309
  * Formatted value based on `multiSelect` state.
304
310
  * Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
311
+ * @private
305
312
  * @returns {String|Array<String>}
306
313
  */
307
- get formattedValue(): string | Array<string>;
314
+ private get formattedValue();
308
315
  /**
309
316
  * Returns classmap configuration for html5 input labels in all layouts.
310
317
  * @private