@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4

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 (172) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -1
  2. package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
  3. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  4. package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
  5. package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
  6. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
  7. package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
  8. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  9. package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
  10. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  11. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  12. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
  13. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
  14. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  15. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  16. package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
  17. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  18. package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
  19. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  20. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  21. package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
  22. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  23. package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
  24. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  25. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  26. package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
  27. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  28. package/.turbo/cache/3e12285c614db539-meta.json +1 -1
  29. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  30. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
  31. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  32. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  33. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  34. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
  35. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
  36. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  37. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  38. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  39. package/.turbo/cache/786a822763403879-meta.json +1 -1
  40. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
  41. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  42. package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
  43. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  44. package/.turbo/cache/80a13352066a9801-meta.json +1 -1
  45. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  46. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  47. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
  48. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
  49. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  50. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  51. package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
  52. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  53. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
  54. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  55. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  56. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  57. package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
  58. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  59. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
  60. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  61. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  62. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  63. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
  64. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  65. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  66. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  67. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
  68. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  69. package/.turbo/cache/d61543843c932504-meta.json +1 -1
  70. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  71. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  72. package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
  73. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  74. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
  75. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  76. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  77. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  78. package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
  79. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  80. package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
  81. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
  82. package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
  83. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  84. package/CHANGELOG.md +18 -0
  85. package/components/checkbox/.turbo/turbo-build.log +3 -3
  86. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  87. package/components/combobox/.turbo/turbo-build.log +3 -3
  88. package/components/combobox/demo/api.min.js +407 -113
  89. package/components/combobox/demo/index.min.js +407 -113
  90. package/components/combobox/dist/index.js +407 -113
  91. package/components/counter/.turbo/turbo-build.log +3 -3
  92. package/components/counter/.turbo/turbo-bundler.log +3 -3
  93. package/components/datepicker/demo/api.min.js +407 -113
  94. package/components/datepicker/demo/index.min.js +407 -113
  95. package/components/datepicker/dist/index.js +407 -113
  96. package/components/dropdown/.turbo/turbo-build.log +3 -3
  97. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  98. package/components/dropdown/demo/api.md +4 -4
  99. package/components/dropdown/demo/api.min.js +166 -42
  100. package/components/dropdown/demo/index.min.js +166 -42
  101. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  102. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  103. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  104. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  105. package/components/dropdown/dist/index.js +166 -42
  106. package/components/dropdown/src/auro-dropdown.js +154 -39
  107. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  108. package/components/dropdown/src/styles/style-css.js +1 -1
  109. package/components/dropdown/src/styles/style.css +4 -0
  110. package/components/dropdown/src/styles/style.scss +5 -0
  111. package/components/form/.turbo/turbo-build.log +3 -3
  112. package/components/form/.turbo/turbo-bundler.log +3 -3
  113. package/components/input/.turbo/turbo-build.log +3 -3
  114. package/components/input/.turbo/turbo-bundler.log +3 -3
  115. package/components/input/demo/api.md +37 -35
  116. package/components/input/demo/api.min.js +241 -71
  117. package/components/input/demo/index.min.js +241 -71
  118. package/components/input/dist/base-input.d.ts +157 -79
  119. package/components/input/dist/base-input.d.ts.map +1 -1
  120. package/components/input/dist/index.js +241 -71
  121. package/components/input/src/base-input.js +241 -71
  122. package/components/menu/.turbo/turbo-build.log +3 -3
  123. package/components/menu/.turbo/turbo-bundler.log +3 -3
  124. package/components/radio/.turbo/turbo-build.log +3 -3
  125. package/components/radio/.turbo/turbo-bundler.log +3 -3
  126. package/components/select/.turbo/turbo-build.log +7 -9
  127. package/components/select/demo/api.md +39 -100
  128. package/components/select/demo/api.min.js +292 -169
  129. package/components/select/demo/index.md +100 -43
  130. package/components/select/demo/index.min.js +292 -169
  131. package/components/select/dist/auro-select.d.ts +63 -50
  132. package/components/select/dist/auro-select.d.ts.map +1 -1
  133. package/components/select/dist/index.js +287 -151
  134. package/components/select/src/auro-select.js +102 -102
  135. package/components/select/src/styles/style-css.js +1 -1
  136. package/components/select/src/styles/style.css +7 -0
  137. package/components/select/src/styles/style.scss +11 -1
  138. package/package.json +1 -1
  139. package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
  140. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  141. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  142. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  143. package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
  144. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  145. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  146. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  147. package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
  148. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  149. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  150. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  151. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  152. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  153. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  154. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  155. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  156. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  157. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  158. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  159. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  160. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  161. package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
  162. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  163. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  164. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  165. package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
  166. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  167. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
  168. package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
  169. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  170. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  171. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  172. /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
@@ -2800,7 +2800,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
2800
2800
 
2801
2801
  var iconVersion$1 = '6.1.2';
2802
2802
 
2803
- var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
2803
+ var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.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}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
2804
2804
 
2805
2805
  var colorCss$1$1 = i$3$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
2806
2806
 
@@ -2824,9 +2824,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2824
2824
  ];
2825
2825
 
2826
2826
  /**
2827
- * @attr { Boolean } common - If declared, will apply all styles for the common theme.
2828
- * @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
2829
- * @attr { Boolean } inset - If declared, will apply extra padding to bib content.
2830
2827
  * @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
2831
2828
  * @csspart bibContainer - Apply css to the bib container.
2832
2829
  */
@@ -2852,14 +2849,26 @@ class AuroDropdownBib extends r$5 {
2852
2849
 
2853
2850
  static get properties() {
2854
2851
  return {
2852
+
2853
+ /**
2854
+ * If declared, will apply all styles for the common theme.
2855
+ */
2855
2856
  common: {
2856
2857
  type: Boolean,
2857
2858
  reflect: true
2858
2859
  },
2860
+
2861
+ /**
2862
+ * If declared, will apply extra padding to bib content.
2863
+ */
2859
2864
  inset: {
2860
2865
  type: Boolean,
2861
2866
  reflect: true
2862
2867
  },
2868
+
2869
+ /**
2870
+ * If declared, will apply border-radius to the bib.
2871
+ */
2863
2872
  rounded: {
2864
2873
  type: Boolean,
2865
2874
  reflect: true
@@ -2903,22 +2912,7 @@ if (!customElements.get("auro-dropdownbib")) {
2903
2912
 
2904
2913
 
2905
2914
  /**
2906
- * @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
2907
- * @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
2908
- * @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
2909
- * @attr { Boolean } disabled - If declared, the dropdown is not interactive.
2910
2915
  * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
2911
- * @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
2912
- * @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
2913
- * @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
2914
- * @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
2915
- * @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
2916
- * @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
2917
- * @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
2918
- * @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
2919
- * @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
2920
- * @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
2921
- * @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
2922
2916
  * @slot - Default slot for the popover content.
2923
2917
  * @slot label - Defines the content of the label.
2924
2918
  * @slot helpText - Defines the content of the helpText.
@@ -2956,6 +2950,16 @@ class AuroDropdown extends r$5 {
2956
2950
  this.tabIndex = 0;
2957
2951
  this.noToggle = false;
2958
2952
 
2953
+ /**
2954
+ * @private
2955
+ */
2956
+ this.hasTriggerContent = false;
2957
+
2958
+ /**
2959
+ * @private
2960
+ */
2961
+ this.triggerContentSlot = undefined;
2962
+
2959
2963
  /**
2960
2964
  * @private
2961
2965
  */
@@ -3002,89 +3006,166 @@ class AuroDropdown extends r$5 {
3002
3006
  // function to define props used within the scope of this component
3003
3007
  static get properties() {
3004
3008
  return {
3009
+
3010
+ /**
3011
+ * If declared, applies a border around the trigger slot.
3012
+ */
3005
3013
  bordered: {
3006
3014
  type: Boolean,
3007
3015
  reflect: true
3008
3016
  },
3017
+
3018
+ /**
3019
+ * If declared, the dropdown displays a chevron on the right.
3020
+ * @attr {Boolean} chevron
3021
+ */
3009
3022
  chevron: {
3010
3023
  type: Boolean,
3011
3024
  reflect: true
3012
3025
  },
3013
- disabled: {
3026
+
3027
+ /**
3028
+ * If declared, the dropdown will be styled with the common theme.
3029
+ */
3030
+ common: {
3014
3031
  type: Boolean,
3015
3032
  reflect: true
3016
3033
  },
3017
- error: {
3034
+
3035
+ /**
3036
+ * If declared, the dropdown is not interactive.
3037
+ */
3038
+ disabled: {
3018
3039
  type: Boolean,
3019
3040
  reflect: true
3020
3041
  },
3021
- fluid: {
3042
+
3043
+ /**
3044
+ * @private
3045
+ */
3046
+ dropdownWidth: {
3047
+ type: Number
3048
+ },
3049
+
3050
+ /**
3051
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3052
+ */
3053
+ error: {
3022
3054
  type: Boolean,
3023
- reflect: true,
3055
+ reflect: true
3024
3056
  },
3057
+
3058
+ /**
3059
+ * If declared, the bib will display when focus is applied to the trigger.
3060
+ */
3025
3061
  focusShow: {
3026
3062
  type: Boolean,
3027
3063
  reflect: true
3028
3064
  },
3029
- hoverToggle: {
3065
+
3066
+ /**
3067
+ * Makes the trigger to be full width of its parent container.
3068
+ */
3069
+ fluid: {
3030
3070
  type: Boolean,
3031
3071
  reflect: true
3032
3072
  },
3073
+
3074
+ /**
3075
+ * If declared, will apply padding around trigger slot content.
3076
+ */
3033
3077
  inset: {
3034
3078
  type: Boolean,
3035
3079
  reflect: true
3036
3080
  },
3037
- matchWidth: {
3081
+
3082
+ /**
3083
+ * If true, the dropdown bib is displayed.
3084
+ */
3085
+ isPopoverVisible: {
3086
+ type: Boolean
3087
+ },
3088
+
3089
+ /**
3090
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
3091
+ */
3092
+ hoverToggle: {
3038
3093
  type: Boolean,
3039
3094
  reflect: true
3040
3095
  },
3041
- rounded: {
3042
- type: Boolean,
3096
+
3097
+ /**
3098
+ * @private
3099
+ */
3100
+ hasTriggerContent: {
3101
+ type: Boolean
3102
+ },
3103
+
3104
+ /**
3105
+ * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
3106
+ */
3107
+ mobileFullscreenBreakpoint: {
3108
+ type: String,
3043
3109
  reflect: true
3044
3110
  },
3045
- common: {
3111
+
3112
+ /**
3113
+ * If declared, the popover and trigger will be set to the same width.
3114
+ */
3115
+ matchWidth: {
3046
3116
  type: Boolean,
3047
3117
  reflect: true
3048
3118
  },
3049
- noToggle: {
3119
+
3120
+ /**
3121
+ * If declared, the dropdown will not hide when moving focus outside the element.
3122
+ */
3123
+ noHideOnThisFocusLoss: {
3050
3124
  type: Boolean,
3051
3125
  reflect: true
3052
3126
  },
3053
- noHideOnThisFocusLoss: {
3127
+
3128
+ /**
3129
+ * If declared, the trigger will only show the dropdown bib.
3130
+ */
3131
+ noToggle: {
3054
3132
  type: Boolean,
3055
3133
  reflect: true
3056
3134
  },
3057
- isPopoverVisible: { type: Boolean },
3135
+
3058
3136
  onSlotChange: {
3059
3137
  type: Function,
3060
3138
  reflect: false
3061
3139
  },
3062
- mobileFullscreenBreakpoint: {
3063
- type: String,
3064
- reflect: true,
3065
- },
3066
3140
 
3067
3141
  /**
3068
3142
  * @private
3069
3143
  */
3070
- dropdownWidth: { type: Number },
3144
+ placement: {
3145
+ type: String
3146
+ },
3071
3147
 
3072
3148
  /**
3073
- * @private
3149
+ * If declared, will apply border-radius to trigger and default slots.
3074
3150
  */
3075
- placement: { type: String },
3151
+ rounded: {
3152
+ type: Boolean,
3153
+ reflect: true
3154
+ },
3076
3155
 
3077
3156
  /**
3078
3157
  * @private
3079
3158
  */
3080
- tabIndex: { type: Number }
3159
+ tabIndex: {
3160
+ type: Number
3161
+ }
3081
3162
  };
3082
3163
  }
3083
3164
 
3084
3165
  static get styles() {
3085
3166
  return [
3086
- styleCss$1$1,
3087
3167
  colorCss$1$1,
3168
+ styleCss$1$1,
3088
3169
  tokensCss$4
3089
3170
  ];
3090
3171
  }
@@ -3115,6 +3196,12 @@ class AuroDropdown extends r$5 {
3115
3196
  if (changedProperties.has('mobileFullscreenBreakpoint')) {
3116
3197
  this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
3117
3198
  }
3199
+
3200
+ // when trigger's content is changed without any attribute or node change,
3201
+ // `requestUpdate` needs to be called to update hasTriggerContnet
3202
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3203
+ this.handleTriggerContentSlotChange();
3204
+ }
3118
3205
  }
3119
3206
 
3120
3207
  firstUpdated() {
@@ -3157,6 +3244,43 @@ class AuroDropdown extends r$5 {
3157
3244
  return inCustomSlot;
3158
3245
  }
3159
3246
 
3247
+ /**
3248
+ * Handles changes to the trigger content slot and updates related properties.
3249
+ *
3250
+ * It first updates the floater settings
3251
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
3252
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
3253
+ *
3254
+ * @private
3255
+ * @method handleTriggerContentSlotChange
3256
+ * @param {Event} event - native slotchange event
3257
+ * @returns {void}
3258
+ */
3259
+ handleTriggerContentSlotChange(event) {
3260
+ this.floater.handleTriggerTabIndex();
3261
+
3262
+ if (event) {
3263
+ this.triggerNode = event.target;
3264
+ this.triggerContentSlot = event.target.assignedNodes();
3265
+ }
3266
+
3267
+ if (this.triggerContentSlot) {
3268
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
3269
+ if (slot.textContent.trim()) {
3270
+ return true;
3271
+ }
3272
+ const slotInSlot = slot.querySelector('slot');
3273
+ if (!slotInSlot) {
3274
+ return false;
3275
+ }
3276
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
3277
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3278
+ });
3279
+ } else {
3280
+ this.hasTriggerContent = false;
3281
+ }
3282
+ }
3283
+
3160
3284
  /**
3161
3285
  * Handles the default slot change event and updates the content.
3162
3286
  *
@@ -3191,13 +3315,13 @@ class AuroDropdown extends r$5 {
3191
3315
  tabindex="${this.tabIndex}"
3192
3316
  >
3193
3317
  <div class="triggerContentWrapper">
3194
- <label class="label" id="triggerLabel">
3318
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3195
3319
  <slot name="label"></slot>
3196
3320
  </label>
3197
3321
  <div class="triggerContent">
3198
3322
  <slot
3199
3323
  name="trigger"
3200
- @slotchange="${() => {this.floater.handleTriggerTabIndex(); }}"></slot>
3324
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
3201
3325
  </div>
3202
3326
  </div>
3203
3327
  ${this.chevron || this.common ? u$1$1`
@@ -5302,41 +5426,8 @@ class AuroFormValidation {
5302
5426
  /**
5303
5427
  * Auro-input provides users a way to enter data into a text field.
5304
5428
  *
5305
- * @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
5306
- * @attr {String} autocapitalize - An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
5307
- * @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
5308
- * @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
5309
5429
  * @attr {Boolean} bordered - Applies bordered UI variant.
5310
5430
  * @attr {Boolean} borderless - Applies borderless UI variant.
5311
- * @attr {Boolean} disabled - If set, disables the input.
5312
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
5313
- * @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
5314
- * @attr {String} id - Sets the unique ID of the element.
5315
- * @attr {String} lang - defines the language of an element.
5316
- * @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
5317
- * @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
5318
- * @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
5319
- * @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
5320
- * @attr {String} name - Populates the `name` attribute on the input.
5321
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
5322
- * @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
5323
- * @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
5324
- * @attr {String} pattern - Specifies a regular expression the form control's value should match.
5325
- * @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
5326
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
5327
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
5328
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
5329
- * @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
5330
- * @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
5331
- * @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
5332
- * @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
5333
- * @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
5334
- * @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
5335
- * @attr {String} spellcheck - An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
5336
- * @attr {String} type - Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
5337
- * @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
5338
- * @attr {String} validity - Specifies the `validityState` this element is in.
5339
- * @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5340
5431
  *
5341
5432
  * @slot helptext - Sets the help text displayed below the input.
5342
5433
  * @slot label - Sets the label text for the input.
@@ -5428,69 +5519,272 @@ class BaseInput extends r {
5428
5519
  .substring(idSubstrStart, idSubstrEnd);
5429
5520
  }
5430
5521
 
5431
- // function to define props used within the scope of this component
5522
+ // function to define props used within the scope of this componentstatic
5432
5523
  static get properties() {
5433
5524
  return {
5434
- id: { type: String },
5435
- name: { type: String },
5436
- type: { type: String,
5437
- reflect: true },
5438
- value: { type: String },
5439
- lang: { type: String },
5440
- pattern: {
5525
+
5526
+ /**
5527
+ * If set, the label will remain fixed in the active position.
5528
+ */
5529
+ activeLabel: {
5530
+ type: Boolean,
5531
+ reflect: true
5532
+ },
5533
+
5534
+ /**
5535
+ * An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
5536
+ */
5537
+ autocapitalize: {
5538
+ type: String
5539
+ },
5540
+
5541
+ /**
5542
+ * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
5543
+ */
5544
+ autocomplete: {
5441
5545
  type: String,
5442
5546
  reflect: true
5443
5547
  },
5444
- icon: { type: Boolean },
5445
- disabled: { type: Boolean },
5446
- required: { type: Boolean },
5447
- noValidate: { type: Boolean },
5448
- spellcheck: { type: String },
5449
- autocorrect: { type: String },
5450
- autocapitalize: { type: String },
5451
- autocomplete: {
5548
+
5549
+ /**
5550
+ * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
5551
+ */
5552
+ autocorrect: {
5553
+ type: String
5554
+ },
5555
+
5556
+ /**
5557
+ * If set, disables the input.
5558
+ */
5559
+ disabled: {
5560
+ type: Boolean
5561
+ },
5562
+
5563
+ error: {
5452
5564
  type: String,
5453
5565
  reflect: true
5454
5566
  },
5455
- placeholder: { type: String },
5456
- activeLabel: {
5457
- type: Boolean,
5567
+
5568
+ /**
5569
+ * Contains the help text message for the current validity error.
5570
+ */
5571
+ errorMessage: {
5572
+ type: String
5573
+ },
5574
+
5575
+ /**
5576
+ * If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
5577
+ */
5578
+ icon: {
5579
+ type: Boolean
5580
+ },
5581
+
5582
+ /**
5583
+ * Sets the unique ID of the element.
5584
+ */
5585
+ id: {
5586
+ type: String
5587
+ },
5588
+
5589
+ /**
5590
+ * Defines the language of an element.
5591
+ */
5592
+ lang: {
5593
+ type: String
5594
+ },
5595
+
5596
+ /**
5597
+ * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
5598
+ */
5599
+ max: {
5600
+ type: String
5601
+ },
5602
+
5603
+ /**
5604
+ * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
5605
+ */
5606
+ maxLength: {
5607
+ type: Number
5608
+ },
5609
+
5610
+ /**
5611
+ * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
5612
+ */
5613
+ min: {
5614
+ type: String
5615
+ },
5616
+
5617
+ /**
5618
+ * The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
5619
+ */
5620
+ minLength: {
5621
+ type: Number
5622
+ },
5623
+
5624
+ /**
5625
+ * Populates the `name` attribute on the input.
5626
+ */
5627
+ name: {
5628
+ type: String
5629
+ },
5630
+
5631
+ /**
5632
+ * If set, disables auto-validation on blur.
5633
+ */
5634
+ noValidate: {
5635
+ type: Boolean
5636
+ },
5637
+
5638
+ /**
5639
+ * Specifies a regular expression the form control's value should match.
5640
+ */
5641
+ pattern: {
5642
+ type: String,
5458
5643
  reflect: true
5459
5644
  },
5460
- max: { type: String },
5461
- min: { type: String },
5462
- maxLength: { type: Number },
5463
- minLength: { type: Number },
5645
+
5646
+ /**
5647
+ * Define custom placeholder text, only supported by date input formats.
5648
+ */
5649
+ placeholder: {
5650
+ type: String
5651
+ },
5652
+
5653
+ /**
5654
+ * Makes the input read-only, but can be set programmatically.
5655
+ */
5656
+ readonly: {
5657
+ type: Boolean
5658
+ },
5659
+
5660
+ /**
5661
+ * Populates the `required` attribute on the input. Used for client-side validation.
5662
+ */
5663
+ required: {
5664
+ type: Boolean
5665
+ },
5464
5666
 
5465
5667
  /**
5466
5668
  * @ignore
5467
5669
  */
5468
- showPassword: { state: true },
5469
- validateOnInput: { type: Boolean },
5470
- readonly: { type: Boolean },
5471
- error: {
5670
+ showPassword: {
5671
+ state: true
5672
+ },
5673
+
5674
+ /**
5675
+ * Sets a custom help text message to display for all validityStates.
5676
+ */
5677
+ setCustomValidity: {
5678
+ type: String
5679
+ },
5680
+
5681
+ /**
5682
+ * Custom help text message to display when validity = `badInput`.
5683
+ */
5684
+ setCustomValidityBadInput: {
5685
+ type: String
5686
+ },
5687
+
5688
+ /**
5689
+ * Custom help text message to display when validity = `customError`.
5690
+ */
5691
+ setCustomValidityCustomError: {
5692
+ type: String
5693
+ },
5694
+
5695
+ /**
5696
+ * Custom help text message to display for the declared element `type` and type validity fails.
5697
+ */
5698
+ setCustomValidityForType: {
5699
+ type: String
5700
+ },
5701
+
5702
+ /**
5703
+ * Custom help text message to display when validity = `rangeOverflow`.
5704
+ */
5705
+ setCustomValidityRangeOverflow: {
5706
+ type: String
5707
+ },
5708
+
5709
+ /**
5710
+ * Custom help text message to display when validity = `rangeUnderflow`.
5711
+ */
5712
+ setCustomValidityRangeUnderflow: {
5713
+ type: String
5714
+ },
5715
+
5716
+ /**
5717
+ * Custom help text message to display when validity = `tooLong`.
5718
+ */
5719
+ setCustomValidityTooLong: {
5720
+ type: String
5721
+ },
5722
+
5723
+ /**
5724
+ * Custom help text message to display when validity = `tooShort`.
5725
+ */
5726
+ setCustomValidityTooShort: {
5727
+ type: String
5728
+ },
5729
+
5730
+ /**
5731
+ * Custom help text message to display when validity = `valueMissing`.
5732
+ */
5733
+ setCustomValidityValueMissing: {
5734
+ type: String
5735
+ },
5736
+
5737
+ /**
5738
+ * Custom help text message for email type validity.
5739
+ */
5740
+ customValidityTypeEmail: {
5741
+ type: String
5742
+ },
5743
+
5744
+ /**
5745
+ * An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
5746
+ */
5747
+ spellcheck: {
5748
+ type: String
5749
+ },
5750
+
5751
+ /**
5752
+ * Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
5753
+ */
5754
+ type: {
5472
5755
  type: String,
5473
5756
  reflect: true
5474
5757
  },
5475
- validity: {
5758
+
5759
+ /**
5760
+ * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5761
+ */
5762
+ value: {
5763
+ type: String
5764
+ },
5765
+
5766
+ /**
5767
+ * Sets validation mode to re-eval with each input.
5768
+ */
5769
+ validateOnInput: {
5770
+ type: Boolean
5771
+ },
5772
+
5773
+ /**
5774
+ * Specifies the `validityState` this element is in.
5775
+ */
5776
+ validity: {
5476
5777
  type: String,
5477
5778
  reflect: true
5478
- },
5479
- setCustomValidity: { type: String },
5480
- setCustomValidityCustomError: { type: String },
5481
- setCustomValidityValueMissing: { type: String },
5482
- setCustomValidityPatternMismatch: { type: String },
5483
- setCustomValidityTooShort: { type: String },
5484
- setCustomValidityTooLong: { type: String },
5485
- setCustomValidityRangeOverflow: { type: String },
5486
- setCustomValidityRangeUnderflow: { type: String }
5779
+ }
5487
5780
  };
5488
5781
  }
5489
5782
 
5783
+
5490
5784
  static get styles() {
5491
5785
  return [
5492
- i$2`${styleCss$3}`,
5493
5786
  i$2`${colorCss$3}`,
5787
+ i$2`${styleCss$3}`,
5494
5788
  i$2`${tokensCss$3}`
5495
5789
  ];
5496
5790
  }