@aurodesignsystem-dev/auro-formkit 0.0.0-pr783.0 → 0.0.0-pr783.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 (46) hide show
  1. package/components/checkbox/demo/api.min.js +16 -5
  2. package/components/checkbox/demo/index.min.js +16 -5
  3. package/components/checkbox/dist/index.js +16 -5
  4. package/components/checkbox/dist/registered.js +16 -5
  5. package/components/combobox/demo/api.md +1 -0
  6. package/components/combobox/demo/api.min.js +95 -53
  7. package/components/combobox/demo/index.min.js +95 -53
  8. package/components/combobox/dist/auro-combobox.d.ts +5 -0
  9. package/components/combobox/dist/index.js +94 -52
  10. package/components/combobox/dist/registered.js +94 -52
  11. package/components/counter/demo/api.min.js +59 -31
  12. package/components/counter/demo/index.min.js +59 -31
  13. package/components/counter/dist/index.js +54 -26
  14. package/components/counter/dist/registered.js +54 -26
  15. package/components/datepicker/demo/api.md +1 -1
  16. package/components/datepicker/demo/api.min.js +152 -53
  17. package/components/datepicker/demo/index.min.js +152 -53
  18. package/components/datepicker/dist/auro-datepicker.d.ts +24 -1
  19. package/components/datepicker/dist/index.js +152 -53
  20. package/components/datepicker/dist/registered.js +152 -53
  21. package/components/dropdown/demo/api.min.js +33 -16
  22. package/components/dropdown/demo/index.min.js +33 -16
  23. package/components/dropdown/dist/auro-dropdown.d.ts +6 -0
  24. package/components/dropdown/dist/index.js +33 -16
  25. package/components/dropdown/dist/registered.js +33 -16
  26. package/components/input/demo/api.md +2 -1
  27. package/components/input/demo/api.min.js +34 -27
  28. package/components/input/demo/index.min.js +34 -27
  29. package/components/input/dist/auro-input.d.ts +0 -6
  30. package/components/input/dist/base-input.d.ts +5 -1
  31. package/components/input/dist/index.js +34 -27
  32. package/components/input/dist/registered.js +34 -27
  33. package/components/menu/demo/api.min.js +1 -1
  34. package/components/menu/demo/index.min.js +1 -1
  35. package/components/menu/dist/index.js +1 -1
  36. package/components/menu/dist/registered.js +1 -1
  37. package/components/radio/demo/api.min.js +16 -5
  38. package/components/radio/demo/index.min.js +16 -5
  39. package/components/radio/dist/index.js +16 -5
  40. package/components/radio/dist/registered.js +16 -5
  41. package/components/select/demo/api.min.js +51 -23
  42. package/components/select/demo/index.html +1 -0
  43. package/components/select/demo/index.min.js +51 -23
  44. package/components/select/dist/index.js +50 -22
  45. package/components/select/dist/registered.js +50 -22
  46. package/package.json +2 -2
@@ -808,13 +808,24 @@ class AuroFormValidation {
808
808
  this.getInputElements(elem);
809
809
  this.getAuroInputs(elem);
810
810
 
811
- // Validate only if noValidate is not true and the input does not have focus
811
+ // Check if validation should run
812
812
  let validationShouldRun =
813
+
814
+ // If the validation was forced
813
815
  force ||
814
- (!elem.contains(document.activeElement) &&
815
- (elem.touched ||
816
- (!elem.touched && typeof elem.value !== "undefined"))) ||
817
- elem.validateOnInput;
816
+
817
+ // If the validation should run on input
818
+ elem.validateOnInput ||
819
+
820
+ // State-based checks
821
+ (
822
+ // Element is not currently focused
823
+ !elem.contains(document.activeElement) && // native input is not focused directly
824
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
825
+
826
+ // And element has been touched or is untouched but has a value
827
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
828
+ );
818
829
 
819
830
  if (elem.hasAttribute('error')) {
820
831
  elem.validity = 'customError';
@@ -2676,7 +2687,7 @@ class AuroFloatingUI {
2676
2687
  */
2677
2688
  mirrorSize() {
2678
2689
  // mirror the boxsize from bibSizer
2679
- if (this.element.bibSizer) {
2690
+ if (this.element.bibSizer && this.element.matchWidth) {
2680
2691
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2681
2692
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2682
2693
  if (sizerStyle.width !== '0px') {
@@ -2888,13 +2899,13 @@ class AuroFloatingUI {
2888
2899
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2889
2900
  return;
2890
2901
  }
2891
-
2902
+
2892
2903
  // if fullscreen bib is in fullscreen mode, do not close
2893
2904
  if (this.element.bib.hasAttribute('isfullscreen')) {
2894
2905
  return;
2895
2906
  }
2896
2907
 
2897
- this.hideBib();
2908
+ this.hideBib("keydown");
2898
2909
  }
2899
2910
 
2900
2911
  setupHideHandlers() {
@@ -2919,7 +2930,7 @@ class AuroFloatingUI {
2919
2930
  document.expandedAuroFormkitDropdown = null;
2920
2931
  document.expandedAuroFloater = this;
2921
2932
  } else {
2922
- this.hideBib();
2933
+ this.hideBib("click");
2923
2934
  }
2924
2935
  }
2925
2936
  };
@@ -2932,7 +2943,7 @@ class AuroFloatingUI {
2932
2943
  // if something else is open, let it handle itself
2933
2944
  return;
2934
2945
  }
2935
- this.hideBib();
2946
+ this.hideBib("keydown");
2936
2947
  }
2937
2948
  };
2938
2949
 
@@ -3015,7 +3026,11 @@ class AuroFloatingUI {
3015
3026
  }
3016
3027
  }
3017
3028
 
3018
- hideBib() {
3029
+ /**
3030
+ * Hides the floating UI element.
3031
+ * @param {String} eventType - The event type that triggered the hiding action.
3032
+ */
3033
+ hideBib(eventType = "unknown") {
3019
3034
  if (!this.element.disabled && !this.element.noToggle) {
3020
3035
  this.lockScroll(false);
3021
3036
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3026,7 +3041,7 @@ class AuroFloatingUI {
3026
3041
  if (this.showing) {
3027
3042
  this.cleanupHideHandlers();
3028
3043
  this.showing = false;
3029
- this.dispatchEventDropdownToggle();
3044
+ this.dispatchEventDropdownToggle(eventType);
3030
3045
  }
3031
3046
  }
3032
3047
  document.expandedAuroFloater = null;
@@ -3035,11 +3050,13 @@ class AuroFloatingUI {
3035
3050
  /**
3036
3051
  * @private
3037
3052
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3053
+ * @param {String} eventType - The event type that triggered the toggle action.
3038
3054
  */
3039
- dispatchEventDropdownToggle() {
3055
+ dispatchEventDropdownToggle(eventType) {
3040
3056
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3041
3057
  detail: {
3042
3058
  expanded: this.showing,
3059
+ eventType: eventType || "unknown",
3043
3060
  },
3044
3061
  composed: true
3045
3062
  });
@@ -3049,7 +3066,7 @@ class AuroFloatingUI {
3049
3066
 
3050
3067
  handleClick() {
3051
3068
  if (this.element.isPopoverVisible) {
3052
- this.hideBib();
3069
+ this.hideBib("click");
3053
3070
  } else {
3054
3071
  this.showBib();
3055
3072
  }
@@ -3076,7 +3093,7 @@ class AuroFloatingUI {
3076
3093
 
3077
3094
  event.preventDefault();
3078
3095
  this.handleClick();
3079
- }
3096
+ }
3080
3097
  break;
3081
3098
  case 'mouseenter':
3082
3099
  if (this.element.hoverToggle) {
@@ -3085,7 +3102,7 @@ class AuroFloatingUI {
3085
3102
  break;
3086
3103
  case 'mouseleave':
3087
3104
  if (this.element.hoverToggle) {
3088
- this.hideBib();
3105
+ this.hideBib("mouseleave");
3089
3106
  }
3090
3107
  break;
3091
3108
  case 'focus':
@@ -4473,6 +4490,9 @@ class AuroDropdown extends AuroElement$2 {
4473
4490
 
4474
4491
  this.parentBorder = false;
4475
4492
 
4493
+ /** @private */
4494
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4495
+
4476
4496
  this.privateDefaults();
4477
4497
  }
4478
4498
 
@@ -4906,12 +4926,19 @@ class AuroDropdown extends AuroElement$2 {
4906
4926
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4907
4927
  this.handleTriggerContentSlotChange();
4908
4928
  }
4929
+ }
4909
4930
 
4910
- if (changedProperties.has('isPopoverVisible')) {
4911
- this.updateFocusTrap();
4912
- if (!this.isPopoverVisible && this.hasFocus) {
4913
- this.trigger.focus();
4914
- }
4931
+ /**
4932
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4933
+ * @private
4934
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4935
+ */
4936
+ handleDropdownToggle(event) {
4937
+ this.updateFocusTrap();
4938
+ this.isPopoverVisible = event.detail.expanded;
4939
+ const eventType = event.detail.eventType || "unknown";
4940
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4941
+ this.trigger.focus();
4915
4942
  }
4916
4943
  }
4917
4944
 
@@ -4919,6 +4946,7 @@ class AuroDropdown extends AuroElement$2 {
4919
4946
 
4920
4947
  // Configure the floater to, this will generate the ID for the bib
4921
4948
  this.floater.configure(this, 'auroDropdown');
4949
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4922
4950
 
4923
4951
  /**
4924
4952
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -7499,7 +7527,7 @@ class AuroHelpText extends LitElement {
7499
7527
 
7500
7528
  var helpTextVersion = '1.0.0';
7501
7529
 
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}`;
7530
+ 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;overflow:hidden;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-100, 0.5rem)}.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-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}: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-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}: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}`;
7503
7531
 
7504
7532
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7505
7533
  // See LICENSE in the project root for license information.
@@ -808,13 +808,24 @@ class AuroFormValidation {
808
808
  this.getInputElements(elem);
809
809
  this.getAuroInputs(elem);
810
810
 
811
- // Validate only if noValidate is not true and the input does not have focus
811
+ // Check if validation should run
812
812
  let validationShouldRun =
813
+
814
+ // If the validation was forced
813
815
  force ||
814
- (!elem.contains(document.activeElement) &&
815
- (elem.touched ||
816
- (!elem.touched && typeof elem.value !== "undefined"))) ||
817
- elem.validateOnInput;
816
+
817
+ // If the validation should run on input
818
+ elem.validateOnInput ||
819
+
820
+ // State-based checks
821
+ (
822
+ // Element is not currently focused
823
+ !elem.contains(document.activeElement) && // native input is not focused directly
824
+ !document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
825
+
826
+ // And element has been touched or is untouched but has a value
827
+ ( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
828
+ );
818
829
 
819
830
  if (elem.hasAttribute('error')) {
820
831
  elem.validity = 'customError';
@@ -2676,7 +2687,7 @@ class AuroFloatingUI {
2676
2687
  */
2677
2688
  mirrorSize() {
2678
2689
  // mirror the boxsize from bibSizer
2679
- if (this.element.bibSizer) {
2690
+ if (this.element.bibSizer && this.element.matchWidth) {
2680
2691
  const sizerStyle = window.getComputedStyle(this.element.bibSizer);
2681
2692
  const bibContent = this.element.bib.shadowRoot.querySelector(".container");
2682
2693
  if (sizerStyle.width !== '0px') {
@@ -2888,13 +2899,13 @@ class AuroFloatingUI {
2888
2899
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
2889
2900
  return;
2890
2901
  }
2891
-
2902
+
2892
2903
  // if fullscreen bib is in fullscreen mode, do not close
2893
2904
  if (this.element.bib.hasAttribute('isfullscreen')) {
2894
2905
  return;
2895
2906
  }
2896
2907
 
2897
- this.hideBib();
2908
+ this.hideBib("keydown");
2898
2909
  }
2899
2910
 
2900
2911
  setupHideHandlers() {
@@ -2919,7 +2930,7 @@ class AuroFloatingUI {
2919
2930
  document.expandedAuroFormkitDropdown = null;
2920
2931
  document.expandedAuroFloater = this;
2921
2932
  } else {
2922
- this.hideBib();
2933
+ this.hideBib("click");
2923
2934
  }
2924
2935
  }
2925
2936
  };
@@ -2932,7 +2943,7 @@ class AuroFloatingUI {
2932
2943
  // if something else is open, let it handle itself
2933
2944
  return;
2934
2945
  }
2935
- this.hideBib();
2946
+ this.hideBib("keydown");
2936
2947
  }
2937
2948
  };
2938
2949
 
@@ -3015,7 +3026,11 @@ class AuroFloatingUI {
3015
3026
  }
3016
3027
  }
3017
3028
 
3018
- hideBib() {
3029
+ /**
3030
+ * Hides the floating UI element.
3031
+ * @param {String} eventType - The event type that triggered the hiding action.
3032
+ */
3033
+ hideBib(eventType = "unknown") {
3019
3034
  if (!this.element.disabled && !this.element.noToggle) {
3020
3035
  this.lockScroll(false);
3021
3036
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -3026,7 +3041,7 @@ class AuroFloatingUI {
3026
3041
  if (this.showing) {
3027
3042
  this.cleanupHideHandlers();
3028
3043
  this.showing = false;
3029
- this.dispatchEventDropdownToggle();
3044
+ this.dispatchEventDropdownToggle(eventType);
3030
3045
  }
3031
3046
  }
3032
3047
  document.expandedAuroFloater = null;
@@ -3035,11 +3050,13 @@ class AuroFloatingUI {
3035
3050
  /**
3036
3051
  * @private
3037
3052
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
3053
+ * @param {String} eventType - The event type that triggered the toggle action.
3038
3054
  */
3039
- dispatchEventDropdownToggle() {
3055
+ dispatchEventDropdownToggle(eventType) {
3040
3056
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
3041
3057
  detail: {
3042
3058
  expanded: this.showing,
3059
+ eventType: eventType || "unknown",
3043
3060
  },
3044
3061
  composed: true
3045
3062
  });
@@ -3049,7 +3066,7 @@ class AuroFloatingUI {
3049
3066
 
3050
3067
  handleClick() {
3051
3068
  if (this.element.isPopoverVisible) {
3052
- this.hideBib();
3069
+ this.hideBib("click");
3053
3070
  } else {
3054
3071
  this.showBib();
3055
3072
  }
@@ -3076,7 +3093,7 @@ class AuroFloatingUI {
3076
3093
 
3077
3094
  event.preventDefault();
3078
3095
  this.handleClick();
3079
- }
3096
+ }
3080
3097
  break;
3081
3098
  case 'mouseenter':
3082
3099
  if (this.element.hoverToggle) {
@@ -3085,7 +3102,7 @@ class AuroFloatingUI {
3085
3102
  break;
3086
3103
  case 'mouseleave':
3087
3104
  if (this.element.hoverToggle) {
3088
- this.hideBib();
3105
+ this.hideBib("mouseleave");
3089
3106
  }
3090
3107
  break;
3091
3108
  case 'focus':
@@ -4473,6 +4490,9 @@ class AuroDropdown extends AuroElement$2 {
4473
4490
 
4474
4491
  this.parentBorder = false;
4475
4492
 
4493
+ /** @private */
4494
+ this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4495
+
4476
4496
  this.privateDefaults();
4477
4497
  }
4478
4498
 
@@ -4906,12 +4926,19 @@ class AuroDropdown extends AuroElement$2 {
4906
4926
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4907
4927
  this.handleTriggerContentSlotChange();
4908
4928
  }
4929
+ }
4909
4930
 
4910
- if (changedProperties.has('isPopoverVisible')) {
4911
- this.updateFocusTrap();
4912
- if (!this.isPopoverVisible && this.hasFocus) {
4913
- this.trigger.focus();
4914
- }
4931
+ /**
4932
+ * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
4933
+ * @private
4934
+ * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
4935
+ */
4936
+ handleDropdownToggle(event) {
4937
+ this.updateFocusTrap();
4938
+ this.isPopoverVisible = event.detail.expanded;
4939
+ const eventType = event.detail.eventType || "unknown";
4940
+ if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
4941
+ this.trigger.focus();
4915
4942
  }
4916
4943
  }
4917
4944
 
@@ -4919,6 +4946,7 @@ class AuroDropdown extends AuroElement$2 {
4919
4946
 
4920
4947
  // Configure the floater to, this will generate the ID for the bib
4921
4948
  this.floater.configure(this, 'auroDropdown');
4949
+ this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
4922
4950
 
4923
4951
  /**
4924
4952
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -7499,7 +7527,7 @@ class AuroHelpText extends LitElement {
7499
7527
 
7500
7528
  var helpTextVersion = '1.0.0';
7501
7529
 
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}`;
7530
+ 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;overflow:hidden;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-100, 0.5rem)}.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-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}: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-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}: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}`;
7503
7531
 
7504
7532
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7505
7533
  // See LICENSE in the project root for license information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr783.0",
3
+ "version": "0.0.0-pr783.2",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {
@@ -53,7 +53,7 @@
53
53
  "local-demo": "npm run build && sh ./local-demo.sh --zip"
54
54
  },
55
55
  "dependencies": {
56
- "@aurodesignsystem/auro-library": "^5.2.2",
56
+ "@aurodesignsystem/auro-library": "^5.3.0",
57
57
  "@lit/reactive-element": "^2.1.0",
58
58
  "lit": "^3.2.1"
59
59
  },