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

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 (190) 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/0cea4c1f34f3683b-meta.json +1 -1
  8. package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
  9. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  10. package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
  11. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  12. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  13. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
  14. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
  15. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  16. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  17. package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
  18. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  19. package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
  20. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  21. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  22. package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
  23. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  24. package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
  25. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  26. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  27. package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
  28. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  29. package/.turbo/cache/3e12285c614db539-meta.json +1 -1
  30. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  31. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
  32. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  33. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  34. package/.turbo/cache/68e5c7af799e011d-meta.json +1 -0
  35. package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → 68e5c7af799e011d.tar.zst} +0 -0
  36. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  37. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
  38. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  39. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  40. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  41. package/.turbo/cache/786a822763403879-meta.json +1 -1
  42. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
  43. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  44. package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
  45. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  46. package/.turbo/cache/80a13352066a9801-meta.json +1 -1
  47. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  48. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  49. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
  50. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
  51. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  52. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  53. package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
  54. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  55. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
  56. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  57. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  58. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  59. package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
  60. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  61. package/.turbo/cache/b4c851d4bebf3b47-meta.json +1 -0
  62. package/.turbo/cache/b4c851d4bebf3b47.tar.zst +0 -0
  63. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  64. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  65. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  66. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
  67. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  68. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  69. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  70. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
  71. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  72. package/.turbo/cache/d61543843c932504-meta.json +1 -1
  73. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  74. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  75. package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
  76. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  77. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
  78. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  79. package/.turbo/cache/dfe1f17e7fce890d-meta.json +1 -0
  80. package/.turbo/cache/dfe1f17e7fce890d.tar.zst +0 -0
  81. package/.turbo/cache/e3a224a17cf55bdb-meta.json +1 -0
  82. package/.turbo/cache/e3a224a17cf55bdb.tar.zst +0 -0
  83. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  84. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  85. package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
  86. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  87. package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
  88. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  89. package/CHANGELOG.md +25 -0
  90. package/components/checkbox/.turbo/turbo-build.log +3 -3
  91. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  92. package/components/combobox/.turbo/turbo-build.log +3 -3
  93. package/components/combobox/demo/api.min.js +407 -113
  94. package/components/combobox/demo/index.min.js +407 -113
  95. package/components/combobox/dist/index.js +407 -113
  96. package/components/counter/.turbo/turbo-build.log +3 -3
  97. package/components/counter/.turbo/turbo-bundler.log +3 -3
  98. package/components/datepicker/.turbo/turbo-build.log +3 -3
  99. package/components/datepicker/demo/api.md +20 -20
  100. package/components/datepicker/demo/api.min.js +521 -184
  101. package/components/datepicker/demo/index.min.js +521 -184
  102. package/components/datepicker/dist/auro-datepicker.d.ts +91 -73
  103. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  104. package/components/datepicker/dist/index.js +521 -184
  105. package/components/datepicker/src/auro-datepicker.js +113 -70
  106. package/components/datepicker/src/styles/color-cell-css.js +1 -1
  107. package/components/datepicker/src/styles/color-cell.css +1 -1
  108. package/components/datepicker/src/styles/color-cell.scss +1 -1
  109. package/components/dropdown/.turbo/turbo-build.log +3 -3
  110. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  111. package/components/dropdown/demo/api.md +4 -4
  112. package/components/dropdown/demo/api.min.js +166 -42
  113. package/components/dropdown/demo/index.min.js +166 -42
  114. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  115. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  116. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  117. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  118. package/components/dropdown/dist/index.js +166 -42
  119. package/components/dropdown/src/auro-dropdown.js +154 -39
  120. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  121. package/components/dropdown/src/styles/style-css.js +1 -1
  122. package/components/dropdown/src/styles/style.css +4 -0
  123. package/components/dropdown/src/styles/style.scss +5 -0
  124. package/components/form/.turbo/turbo-build.log +3 -3
  125. package/components/form/.turbo/turbo-bundler.log +3 -3
  126. package/components/input/.turbo/turbo-build.log +2 -2
  127. package/components/input/.turbo/turbo-bundler.log +3 -3
  128. package/components/input/demo/api.md +37 -35
  129. package/components/input/demo/api.min.js +241 -71
  130. package/components/input/demo/index.min.js +241 -71
  131. package/components/input/dist/base-input.d.ts +157 -79
  132. package/components/input/dist/base-input.d.ts.map +1 -1
  133. package/components/input/dist/index.js +241 -71
  134. package/components/input/src/base-input.js +241 -71
  135. package/components/menu/.turbo/turbo-build.log +3 -3
  136. package/components/menu/.turbo/turbo-bundler.log +3 -3
  137. package/components/radio/.turbo/turbo-build.log +3 -3
  138. package/components/radio/.turbo/turbo-bundler.log +3 -3
  139. package/components/select/.turbo/turbo-build.log +7 -9
  140. package/components/select/demo/api.md +39 -100
  141. package/components/select/demo/api.min.js +292 -169
  142. package/components/select/demo/index.md +100 -43
  143. package/components/select/demo/index.min.js +292 -169
  144. package/components/select/dist/auro-select.d.ts +63 -50
  145. package/components/select/dist/auro-select.d.ts.map +1 -1
  146. package/components/select/dist/index.js +287 -151
  147. package/components/select/src/auro-select.js +102 -102
  148. package/components/select/src/styles/style-css.js +1 -1
  149. package/components/select/src/styles/style.css +7 -0
  150. package/components/select/src/styles/style.scss +11 -1
  151. package/package.json +1 -1
  152. package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
  153. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  154. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  155. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  156. package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
  157. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  158. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  159. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  160. package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
  161. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  162. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  163. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  164. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  165. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  166. package/.turbo/cache/69aae513b7ec6c7d-meta.json +0 -1
  167. package/.turbo/cache/69aae513b7ec6c7d.tar.zst +0 -0
  168. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  169. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  170. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  171. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  172. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  173. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  174. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  175. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  176. package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
  177. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  178. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  179. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  180. package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
  181. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  182. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +0 -1
  183. package/.turbo/cache/b54fc4f664a7a5a0.tar.zst +0 -0
  184. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
  185. package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
  186. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  187. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +0 -1
  188. package/.turbo/cache/fa132b5b5f0e75f8.tar.zst +0 -0
  189. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  190. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
@@ -2965,7 +2965,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
2965
2965
 
2966
2966
  var iconVersion$2 = '6.1.2';
2967
2967
 
2968
- var styleCss$1$2 = 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)}`;
2968
+ var styleCss$1$2 = 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)}`;
2969
2969
 
2970
2970
  var colorCss$1$2 = 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)}`;
2971
2971
 
@@ -2989,9 +2989,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2989
2989
  ];
2990
2990
 
2991
2991
  /**
2992
- * @attr { Boolean } common - If declared, will apply all styles for the common theme.
2993
- * @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
2994
- * @attr { Boolean } inset - If declared, will apply extra padding to bib content.
2995
2992
  * @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.
2996
2993
  * @csspart bibContainer - Apply css to the bib container.
2997
2994
  */
@@ -3017,14 +3014,26 @@ class AuroDropdownBib extends r$5 {
3017
3014
 
3018
3015
  static get properties() {
3019
3016
  return {
3017
+
3018
+ /**
3019
+ * If declared, will apply all styles for the common theme.
3020
+ */
3020
3021
  common: {
3021
3022
  type: Boolean,
3022
3023
  reflect: true
3023
3024
  },
3025
+
3026
+ /**
3027
+ * If declared, will apply extra padding to bib content.
3028
+ */
3024
3029
  inset: {
3025
3030
  type: Boolean,
3026
3031
  reflect: true
3027
3032
  },
3033
+
3034
+ /**
3035
+ * If declared, will apply border-radius to the bib.
3036
+ */
3028
3037
  rounded: {
3029
3038
  type: Boolean,
3030
3039
  reflect: true
@@ -3068,22 +3077,7 @@ if (!customElements.get("auro-dropdownbib")) {
3068
3077
 
3069
3078
 
3070
3079
  /**
3071
- * @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
3072
- * @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
3073
- * @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
3074
- * @attr { Boolean } disabled - If declared, the dropdown is not interactive.
3075
3080
  * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
3076
- * @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3077
- * @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
3078
- * @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
3079
- * @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
3080
- * @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
3081
- * @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
3082
- * @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
3083
- * @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
3084
- * @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
3085
- * @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.
3086
- * @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
3087
3081
  * @slot - Default slot for the popover content.
3088
3082
  * @slot label - Defines the content of the label.
3089
3083
  * @slot helpText - Defines the content of the helpText.
@@ -3121,6 +3115,16 @@ class AuroDropdown extends r$5 {
3121
3115
  this.tabIndex = 0;
3122
3116
  this.noToggle = false;
3123
3117
 
3118
+ /**
3119
+ * @private
3120
+ */
3121
+ this.hasTriggerContent = false;
3122
+
3123
+ /**
3124
+ * @private
3125
+ */
3126
+ this.triggerContentSlot = undefined;
3127
+
3124
3128
  /**
3125
3129
  * @private
3126
3130
  */
@@ -3167,89 +3171,166 @@ class AuroDropdown extends r$5 {
3167
3171
  // function to define props used within the scope of this component
3168
3172
  static get properties() {
3169
3173
  return {
3174
+
3175
+ /**
3176
+ * If declared, applies a border around the trigger slot.
3177
+ */
3170
3178
  bordered: {
3171
3179
  type: Boolean,
3172
3180
  reflect: true
3173
3181
  },
3182
+
3183
+ /**
3184
+ * If declared, the dropdown displays a chevron on the right.
3185
+ * @attr {Boolean} chevron
3186
+ */
3174
3187
  chevron: {
3175
3188
  type: Boolean,
3176
3189
  reflect: true
3177
3190
  },
3178
- disabled: {
3191
+
3192
+ /**
3193
+ * If declared, the dropdown will be styled with the common theme.
3194
+ */
3195
+ common: {
3179
3196
  type: Boolean,
3180
3197
  reflect: true
3181
3198
  },
3182
- error: {
3199
+
3200
+ /**
3201
+ * If declared, the dropdown is not interactive.
3202
+ */
3203
+ disabled: {
3183
3204
  type: Boolean,
3184
3205
  reflect: true
3185
3206
  },
3186
- fluid: {
3207
+
3208
+ /**
3209
+ * @private
3210
+ */
3211
+ dropdownWidth: {
3212
+ type: Number
3213
+ },
3214
+
3215
+ /**
3216
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
3217
+ */
3218
+ error: {
3187
3219
  type: Boolean,
3188
- reflect: true,
3220
+ reflect: true
3189
3221
  },
3222
+
3223
+ /**
3224
+ * If declared, the bib will display when focus is applied to the trigger.
3225
+ */
3190
3226
  focusShow: {
3191
3227
  type: Boolean,
3192
3228
  reflect: true
3193
3229
  },
3194
- hoverToggle: {
3230
+
3231
+ /**
3232
+ * Makes the trigger to be full width of its parent container.
3233
+ */
3234
+ fluid: {
3195
3235
  type: Boolean,
3196
3236
  reflect: true
3197
3237
  },
3238
+
3239
+ /**
3240
+ * If declared, will apply padding around trigger slot content.
3241
+ */
3198
3242
  inset: {
3199
3243
  type: Boolean,
3200
3244
  reflect: true
3201
3245
  },
3202
- matchWidth: {
3246
+
3247
+ /**
3248
+ * If true, the dropdown bib is displayed.
3249
+ */
3250
+ isPopoverVisible: {
3251
+ type: Boolean
3252
+ },
3253
+
3254
+ /**
3255
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
3256
+ */
3257
+ hoverToggle: {
3203
3258
  type: Boolean,
3204
3259
  reflect: true
3205
3260
  },
3206
- rounded: {
3207
- type: Boolean,
3261
+
3262
+ /**
3263
+ * @private
3264
+ */
3265
+ hasTriggerContent: {
3266
+ type: Boolean
3267
+ },
3268
+
3269
+ /**
3270
+ * 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.
3271
+ */
3272
+ mobileFullscreenBreakpoint: {
3273
+ type: String,
3208
3274
  reflect: true
3209
3275
  },
3210
- common: {
3276
+
3277
+ /**
3278
+ * If declared, the popover and trigger will be set to the same width.
3279
+ */
3280
+ matchWidth: {
3211
3281
  type: Boolean,
3212
3282
  reflect: true
3213
3283
  },
3214
- noToggle: {
3284
+
3285
+ /**
3286
+ * If declared, the dropdown will not hide when moving focus outside the element.
3287
+ */
3288
+ noHideOnThisFocusLoss: {
3215
3289
  type: Boolean,
3216
3290
  reflect: true
3217
3291
  },
3218
- noHideOnThisFocusLoss: {
3292
+
3293
+ /**
3294
+ * If declared, the trigger will only show the dropdown bib.
3295
+ */
3296
+ noToggle: {
3219
3297
  type: Boolean,
3220
3298
  reflect: true
3221
3299
  },
3222
- isPopoverVisible: { type: Boolean },
3300
+
3223
3301
  onSlotChange: {
3224
3302
  type: Function,
3225
3303
  reflect: false
3226
3304
  },
3227
- mobileFullscreenBreakpoint: {
3228
- type: String,
3229
- reflect: true,
3230
- },
3231
3305
 
3232
3306
  /**
3233
3307
  * @private
3234
3308
  */
3235
- dropdownWidth: { type: Number },
3309
+ placement: {
3310
+ type: String
3311
+ },
3236
3312
 
3237
3313
  /**
3238
- * @private
3314
+ * If declared, will apply border-radius to trigger and default slots.
3239
3315
  */
3240
- placement: { type: String },
3316
+ rounded: {
3317
+ type: Boolean,
3318
+ reflect: true
3319
+ },
3241
3320
 
3242
3321
  /**
3243
3322
  * @private
3244
3323
  */
3245
- tabIndex: { type: Number }
3324
+ tabIndex: {
3325
+ type: Number
3326
+ }
3246
3327
  };
3247
3328
  }
3248
3329
 
3249
3330
  static get styles() {
3250
3331
  return [
3251
- styleCss$1$2,
3252
3332
  colorCss$1$2,
3333
+ styleCss$1$2,
3253
3334
  tokensCss$5
3254
3335
  ];
3255
3336
  }
@@ -3280,6 +3361,12 @@ class AuroDropdown extends r$5 {
3280
3361
  if (changedProperties.has('mobileFullscreenBreakpoint')) {
3281
3362
  this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
3282
3363
  }
3364
+
3365
+ // when trigger's content is changed without any attribute or node change,
3366
+ // `requestUpdate` needs to be called to update hasTriggerContnet
3367
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3368
+ this.handleTriggerContentSlotChange();
3369
+ }
3283
3370
  }
3284
3371
 
3285
3372
  firstUpdated() {
@@ -3322,6 +3409,43 @@ class AuroDropdown extends r$5 {
3322
3409
  return inCustomSlot;
3323
3410
  }
3324
3411
 
3412
+ /**
3413
+ * Handles changes to the trigger content slot and updates related properties.
3414
+ *
3415
+ * It first updates the floater settings
3416
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
3417
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
3418
+ *
3419
+ * @private
3420
+ * @method handleTriggerContentSlotChange
3421
+ * @param {Event} event - native slotchange event
3422
+ * @returns {void}
3423
+ */
3424
+ handleTriggerContentSlotChange(event) {
3425
+ this.floater.handleTriggerTabIndex();
3426
+
3427
+ if (event) {
3428
+ this.triggerNode = event.target;
3429
+ this.triggerContentSlot = event.target.assignedNodes();
3430
+ }
3431
+
3432
+ if (this.triggerContentSlot) {
3433
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
3434
+ if (slot.textContent.trim()) {
3435
+ return true;
3436
+ }
3437
+ const slotInSlot = slot.querySelector('slot');
3438
+ if (!slotInSlot) {
3439
+ return false;
3440
+ }
3441
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
3442
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
3443
+ });
3444
+ } else {
3445
+ this.hasTriggerContent = false;
3446
+ }
3447
+ }
3448
+
3325
3449
  /**
3326
3450
  * Handles the default slot change event and updates the content.
3327
3451
  *
@@ -3356,13 +3480,13 @@ class AuroDropdown extends r$5 {
3356
3480
  tabindex="${this.tabIndex}"
3357
3481
  >
3358
3482
  <div class="triggerContentWrapper">
3359
- <label class="label" id="triggerLabel">
3483
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3360
3484
  <slot name="label"></slot>
3361
3485
  </label>
3362
3486
  <div class="triggerContent">
3363
3487
  <slot
3364
3488
  name="trigger"
3365
- @slotchange="${() => {this.floater.handleTriggerTabIndex(); }}"></slot>
3489
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
3366
3490
  </div>
3367
3491
  </div>
3368
3492
  ${this.chevron || this.common ? u$1$1`
@@ -5467,41 +5591,8 @@ class AuroFormValidation {
5467
5591
  /**
5468
5592
  * Auro-input provides users a way to enter data into a text field.
5469
5593
  *
5470
- * @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
5471
- * @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]
5472
- * @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
5473
- * @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
5474
5594
  * @attr {Boolean} bordered - Applies bordered UI variant.
5475
5595
  * @attr {Boolean} borderless - Applies borderless UI variant.
5476
- * @attr {Boolean} disabled - If set, disables the input.
5477
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
5478
- * @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.
5479
- * @attr {String} id - Sets the unique ID of the element.
5480
- * @attr {String} lang - defines the language of an element.
5481
- * @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
5482
- * @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.
5483
- * @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
5484
- * @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`.
5485
- * @attr {String} name - Populates the `name` attribute on the input.
5486
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
5487
- * @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
5488
- * @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
5489
- * @attr {String} pattern - Specifies a regular expression the form control's value should match.
5490
- * @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
5491
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
5492
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
5493
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
5494
- * @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
5495
- * @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
5496
- * @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
5497
- * @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
5498
- * @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
5499
- * @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
5500
- * @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`.
5501
- * @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`.
5502
- * @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
5503
- * @attr {String} validity - Specifies the `validityState` this element is in.
5504
- * @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5505
5596
  *
5506
5597
  * @slot helptext - Sets the help text displayed below the input.
5507
5598
  * @slot label - Sets the label text for the input.
@@ -5593,69 +5684,272 @@ class BaseInput extends r {
5593
5684
  .substring(idSubstrStart, idSubstrEnd);
5594
5685
  }
5595
5686
 
5596
- // function to define props used within the scope of this component
5687
+ // function to define props used within the scope of this componentstatic
5597
5688
  static get properties() {
5598
5689
  return {
5599
- id: { type: String },
5600
- name: { type: String },
5601
- type: { type: String,
5602
- reflect: true },
5603
- value: { type: String },
5604
- lang: { type: String },
5605
- pattern: {
5690
+
5691
+ /**
5692
+ * If set, the label will remain fixed in the active position.
5693
+ */
5694
+ activeLabel: {
5695
+ type: Boolean,
5696
+ reflect: true
5697
+ },
5698
+
5699
+ /**
5700
+ * 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]
5701
+ */
5702
+ autocapitalize: {
5703
+ type: String
5704
+ },
5705
+
5706
+ /**
5707
+ * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
5708
+ */
5709
+ autocomplete: {
5606
5710
  type: String,
5607
5711
  reflect: true
5608
5712
  },
5609
- icon: { type: Boolean },
5610
- disabled: { type: Boolean },
5611
- required: { type: Boolean },
5612
- noValidate: { type: Boolean },
5613
- spellcheck: { type: String },
5614
- autocorrect: { type: String },
5615
- autocapitalize: { type: String },
5616
- autocomplete: {
5713
+
5714
+ /**
5715
+ * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
5716
+ */
5717
+ autocorrect: {
5718
+ type: String
5719
+ },
5720
+
5721
+ /**
5722
+ * If set, disables the input.
5723
+ */
5724
+ disabled: {
5725
+ type: Boolean
5726
+ },
5727
+
5728
+ error: {
5617
5729
  type: String,
5618
5730
  reflect: true
5619
5731
  },
5620
- placeholder: { type: String },
5621
- activeLabel: {
5622
- type: Boolean,
5732
+
5733
+ /**
5734
+ * Contains the help text message for the current validity error.
5735
+ */
5736
+ errorMessage: {
5737
+ type: String
5738
+ },
5739
+
5740
+ /**
5741
+ * 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.
5742
+ */
5743
+ icon: {
5744
+ type: Boolean
5745
+ },
5746
+
5747
+ /**
5748
+ * Sets the unique ID of the element.
5749
+ */
5750
+ id: {
5751
+ type: String
5752
+ },
5753
+
5754
+ /**
5755
+ * Defines the language of an element.
5756
+ */
5757
+ lang: {
5758
+ type: String
5759
+ },
5760
+
5761
+ /**
5762
+ * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
5763
+ */
5764
+ max: {
5765
+ type: String
5766
+ },
5767
+
5768
+ /**
5769
+ * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
5770
+ */
5771
+ maxLength: {
5772
+ type: Number
5773
+ },
5774
+
5775
+ /**
5776
+ * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
5777
+ */
5778
+ min: {
5779
+ type: String
5780
+ },
5781
+
5782
+ /**
5783
+ * 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`.
5784
+ */
5785
+ minLength: {
5786
+ type: Number
5787
+ },
5788
+
5789
+ /**
5790
+ * Populates the `name` attribute on the input.
5791
+ */
5792
+ name: {
5793
+ type: String
5794
+ },
5795
+
5796
+ /**
5797
+ * If set, disables auto-validation on blur.
5798
+ */
5799
+ noValidate: {
5800
+ type: Boolean
5801
+ },
5802
+
5803
+ /**
5804
+ * Specifies a regular expression the form control's value should match.
5805
+ */
5806
+ pattern: {
5807
+ type: String,
5623
5808
  reflect: true
5624
5809
  },
5625
- max: { type: String },
5626
- min: { type: String },
5627
- maxLength: { type: Number },
5628
- minLength: { type: Number },
5810
+
5811
+ /**
5812
+ * Define custom placeholder text, only supported by date input formats.
5813
+ */
5814
+ placeholder: {
5815
+ type: String
5816
+ },
5817
+
5818
+ /**
5819
+ * Makes the input read-only, but can be set programmatically.
5820
+ */
5821
+ readonly: {
5822
+ type: Boolean
5823
+ },
5824
+
5825
+ /**
5826
+ * Populates the `required` attribute on the input. Used for client-side validation.
5827
+ */
5828
+ required: {
5829
+ type: Boolean
5830
+ },
5629
5831
 
5630
5832
  /**
5631
5833
  * @ignore
5632
5834
  */
5633
- showPassword: { state: true },
5634
- validateOnInput: { type: Boolean },
5635
- readonly: { type: Boolean },
5636
- error: {
5835
+ showPassword: {
5836
+ state: true
5837
+ },
5838
+
5839
+ /**
5840
+ * Sets a custom help text message to display for all validityStates.
5841
+ */
5842
+ setCustomValidity: {
5843
+ type: String
5844
+ },
5845
+
5846
+ /**
5847
+ * Custom help text message to display when validity = `badInput`.
5848
+ */
5849
+ setCustomValidityBadInput: {
5850
+ type: String
5851
+ },
5852
+
5853
+ /**
5854
+ * Custom help text message to display when validity = `customError`.
5855
+ */
5856
+ setCustomValidityCustomError: {
5857
+ type: String
5858
+ },
5859
+
5860
+ /**
5861
+ * Custom help text message to display for the declared element `type` and type validity fails.
5862
+ */
5863
+ setCustomValidityForType: {
5864
+ type: String
5865
+ },
5866
+
5867
+ /**
5868
+ * Custom help text message to display when validity = `rangeOverflow`.
5869
+ */
5870
+ setCustomValidityRangeOverflow: {
5871
+ type: String
5872
+ },
5873
+
5874
+ /**
5875
+ * Custom help text message to display when validity = `rangeUnderflow`.
5876
+ */
5877
+ setCustomValidityRangeUnderflow: {
5878
+ type: String
5879
+ },
5880
+
5881
+ /**
5882
+ * Custom help text message to display when validity = `tooLong`.
5883
+ */
5884
+ setCustomValidityTooLong: {
5885
+ type: String
5886
+ },
5887
+
5888
+ /**
5889
+ * Custom help text message to display when validity = `tooShort`.
5890
+ */
5891
+ setCustomValidityTooShort: {
5892
+ type: String
5893
+ },
5894
+
5895
+ /**
5896
+ * Custom help text message to display when validity = `valueMissing`.
5897
+ */
5898
+ setCustomValidityValueMissing: {
5899
+ type: String
5900
+ },
5901
+
5902
+ /**
5903
+ * Custom help text message for email type validity.
5904
+ */
5905
+ customValidityTypeEmail: {
5906
+ type: String
5907
+ },
5908
+
5909
+ /**
5910
+ * 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`.
5911
+ */
5912
+ spellcheck: {
5913
+ type: String
5914
+ },
5915
+
5916
+ /**
5917
+ * 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`.
5918
+ */
5919
+ type: {
5637
5920
  type: String,
5638
5921
  reflect: true
5639
5922
  },
5640
- validity: {
5923
+
5924
+ /**
5925
+ * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5926
+ */
5927
+ value: {
5928
+ type: String
5929
+ },
5930
+
5931
+ /**
5932
+ * Sets validation mode to re-eval with each input.
5933
+ */
5934
+ validateOnInput: {
5935
+ type: Boolean
5936
+ },
5937
+
5938
+ /**
5939
+ * Specifies the `validityState` this element is in.
5940
+ */
5941
+ validity: {
5641
5942
  type: String,
5642
5943
  reflect: true
5643
- },
5644
- setCustomValidity: { type: String },
5645
- setCustomValidityCustomError: { type: String },
5646
- setCustomValidityValueMissing: { type: String },
5647
- setCustomValidityPatternMismatch: { type: String },
5648
- setCustomValidityTooShort: { type: String },
5649
- setCustomValidityTooLong: { type: String },
5650
- setCustomValidityRangeOverflow: { type: String },
5651
- setCustomValidityRangeUnderflow: { type: String }
5944
+ }
5652
5945
  };
5653
5946
  }
5654
5947
 
5948
+
5655
5949
  static get styles() {
5656
5950
  return [
5657
- i$2`${styleCss$3$1}`,
5658
5951
  i$2`${colorCss$3}`,
5952
+ i$2`${styleCss$3$1}`,
5659
5953
  i$2`${tokensCss$3}`
5660
5954
  ];
5661
5955
  }