@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
@@ -13106,7 +13106,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
13106
13106
 
13107
13107
  var iconVersion$1 = '6.1.2';
13108
13108
 
13109
- 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)}`;
13109
+ 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)}`;
13110
13110
 
13111
13111
  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)}`;
13112
13112
 
@@ -13130,9 +13130,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
13130
13130
  ];
13131
13131
 
13132
13132
  /**
13133
- * @attr { Boolean } common - If declared, will apply all styles for the common theme.
13134
- * @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
13135
- * @attr { Boolean } inset - If declared, will apply extra padding to bib content.
13136
13133
  * @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.
13137
13134
  * @csspart bibContainer - Apply css to the bib container.
13138
13135
  */
@@ -13158,14 +13155,26 @@ class AuroDropdownBib extends r$5 {
13158
13155
 
13159
13156
  static get properties() {
13160
13157
  return {
13158
+
13159
+ /**
13160
+ * If declared, will apply all styles for the common theme.
13161
+ */
13161
13162
  common: {
13162
13163
  type: Boolean,
13163
13164
  reflect: true
13164
13165
  },
13166
+
13167
+ /**
13168
+ * If declared, will apply extra padding to bib content.
13169
+ */
13165
13170
  inset: {
13166
13171
  type: Boolean,
13167
13172
  reflect: true
13168
13173
  },
13174
+
13175
+ /**
13176
+ * If declared, will apply border-radius to the bib.
13177
+ */
13169
13178
  rounded: {
13170
13179
  type: Boolean,
13171
13180
  reflect: true
@@ -13209,22 +13218,7 @@ if (!customElements.get("auro-dropdownbib")) {
13209
13218
 
13210
13219
 
13211
13220
  /**
13212
- * @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
13213
- * @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
13214
- * @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
13215
- * @attr { Boolean } disabled - If declared, the dropdown is not interactive.
13216
13221
  * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
13217
- * @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
13218
- * @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
13219
- * @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
13220
- * @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
13221
- * @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
13222
- * @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
13223
- * @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
13224
- * @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
13225
- * @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
13226
- * @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.
13227
- * @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
13228
13222
  * @slot - Default slot for the popover content.
13229
13223
  * @slot label - Defines the content of the label.
13230
13224
  * @slot helpText - Defines the content of the helpText.
@@ -13262,6 +13256,16 @@ class AuroDropdown extends r$5 {
13262
13256
  this.tabIndex = 0;
13263
13257
  this.noToggle = false;
13264
13258
 
13259
+ /**
13260
+ * @private
13261
+ */
13262
+ this.hasTriggerContent = false;
13263
+
13264
+ /**
13265
+ * @private
13266
+ */
13267
+ this.triggerContentSlot = undefined;
13268
+
13265
13269
  /**
13266
13270
  * @private
13267
13271
  */
@@ -13308,89 +13312,166 @@ class AuroDropdown extends r$5 {
13308
13312
  // function to define props used within the scope of this component
13309
13313
  static get properties() {
13310
13314
  return {
13315
+
13316
+ /**
13317
+ * If declared, applies a border around the trigger slot.
13318
+ */
13311
13319
  bordered: {
13312
13320
  type: Boolean,
13313
13321
  reflect: true
13314
13322
  },
13323
+
13324
+ /**
13325
+ * If declared, the dropdown displays a chevron on the right.
13326
+ * @attr {Boolean} chevron
13327
+ */
13315
13328
  chevron: {
13316
13329
  type: Boolean,
13317
13330
  reflect: true
13318
13331
  },
13319
- disabled: {
13332
+
13333
+ /**
13334
+ * If declared, the dropdown will be styled with the common theme.
13335
+ */
13336
+ common: {
13320
13337
  type: Boolean,
13321
13338
  reflect: true
13322
13339
  },
13323
- error: {
13340
+
13341
+ /**
13342
+ * If declared, the dropdown is not interactive.
13343
+ */
13344
+ disabled: {
13324
13345
  type: Boolean,
13325
13346
  reflect: true
13326
13347
  },
13327
- fluid: {
13348
+
13349
+ /**
13350
+ * @private
13351
+ */
13352
+ dropdownWidth: {
13353
+ type: Number
13354
+ },
13355
+
13356
+ /**
13357
+ * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
13358
+ */
13359
+ error: {
13328
13360
  type: Boolean,
13329
- reflect: true,
13361
+ reflect: true
13330
13362
  },
13363
+
13364
+ /**
13365
+ * If declared, the bib will display when focus is applied to the trigger.
13366
+ */
13331
13367
  focusShow: {
13332
13368
  type: Boolean,
13333
13369
  reflect: true
13334
13370
  },
13335
- hoverToggle: {
13371
+
13372
+ /**
13373
+ * Makes the trigger to be full width of its parent container.
13374
+ */
13375
+ fluid: {
13336
13376
  type: Boolean,
13337
13377
  reflect: true
13338
13378
  },
13379
+
13380
+ /**
13381
+ * If declared, will apply padding around trigger slot content.
13382
+ */
13339
13383
  inset: {
13340
13384
  type: Boolean,
13341
13385
  reflect: true
13342
13386
  },
13343
- matchWidth: {
13387
+
13388
+ /**
13389
+ * If true, the dropdown bib is displayed.
13390
+ */
13391
+ isPopoverVisible: {
13392
+ type: Boolean
13393
+ },
13394
+
13395
+ /**
13396
+ * If declared, the trigger will toggle the dropdown on mouseover/mouseout.
13397
+ */
13398
+ hoverToggle: {
13344
13399
  type: Boolean,
13345
13400
  reflect: true
13346
13401
  },
13347
- rounded: {
13348
- type: Boolean,
13402
+
13403
+ /**
13404
+ * @private
13405
+ */
13406
+ hasTriggerContent: {
13407
+ type: Boolean
13408
+ },
13409
+
13410
+ /**
13411
+ * 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.
13412
+ */
13413
+ mobileFullscreenBreakpoint: {
13414
+ type: String,
13349
13415
  reflect: true
13350
13416
  },
13351
- common: {
13417
+
13418
+ /**
13419
+ * If declared, the popover and trigger will be set to the same width.
13420
+ */
13421
+ matchWidth: {
13352
13422
  type: Boolean,
13353
13423
  reflect: true
13354
13424
  },
13355
- noToggle: {
13425
+
13426
+ /**
13427
+ * If declared, the dropdown will not hide when moving focus outside the element.
13428
+ */
13429
+ noHideOnThisFocusLoss: {
13356
13430
  type: Boolean,
13357
13431
  reflect: true
13358
13432
  },
13359
- noHideOnThisFocusLoss: {
13433
+
13434
+ /**
13435
+ * If declared, the trigger will only show the dropdown bib.
13436
+ */
13437
+ noToggle: {
13360
13438
  type: Boolean,
13361
13439
  reflect: true
13362
13440
  },
13363
- isPopoverVisible: { type: Boolean },
13441
+
13364
13442
  onSlotChange: {
13365
13443
  type: Function,
13366
13444
  reflect: false
13367
13445
  },
13368
- mobileFullscreenBreakpoint: {
13369
- type: String,
13370
- reflect: true,
13371
- },
13372
13446
 
13373
13447
  /**
13374
13448
  * @private
13375
13449
  */
13376
- dropdownWidth: { type: Number },
13450
+ placement: {
13451
+ type: String
13452
+ },
13377
13453
 
13378
13454
  /**
13379
- * @private
13455
+ * If declared, will apply border-radius to trigger and default slots.
13380
13456
  */
13381
- placement: { type: String },
13457
+ rounded: {
13458
+ type: Boolean,
13459
+ reflect: true
13460
+ },
13382
13461
 
13383
13462
  /**
13384
13463
  * @private
13385
13464
  */
13386
- tabIndex: { type: Number }
13465
+ tabIndex: {
13466
+ type: Number
13467
+ }
13387
13468
  };
13388
13469
  }
13389
13470
 
13390
13471
  static get styles() {
13391
13472
  return [
13392
- styleCss$1$1,
13393
13473
  colorCss$1$1,
13474
+ styleCss$1$1,
13394
13475
  tokensCss$4
13395
13476
  ];
13396
13477
  }
@@ -13421,6 +13502,12 @@ class AuroDropdown extends r$5 {
13421
13502
  if (changedProperties.has('mobileFullscreenBreakpoint')) {
13422
13503
  this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
13423
13504
  }
13505
+
13506
+ // when trigger's content is changed without any attribute or node change,
13507
+ // `requestUpdate` needs to be called to update hasTriggerContnet
13508
+ if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
13509
+ this.handleTriggerContentSlotChange();
13510
+ }
13424
13511
  }
13425
13512
 
13426
13513
  firstUpdated() {
@@ -13463,6 +13550,43 @@ class AuroDropdown extends r$5 {
13463
13550
  return inCustomSlot;
13464
13551
  }
13465
13552
 
13553
+ /**
13554
+ * Handles changes to the trigger content slot and updates related properties.
13555
+ *
13556
+ * It first updates the floater settings
13557
+ * Then, it retrieves the assigned nodes from the event target and checks if any of
13558
+ * the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
13559
+ *
13560
+ * @private
13561
+ * @method handleTriggerContentSlotChange
13562
+ * @param {Event} event - native slotchange event
13563
+ * @returns {void}
13564
+ */
13565
+ handleTriggerContentSlotChange(event) {
13566
+ this.floater.handleTriggerTabIndex();
13567
+
13568
+ if (event) {
13569
+ this.triggerNode = event.target;
13570
+ this.triggerContentSlot = event.target.assignedNodes();
13571
+ }
13572
+
13573
+ if (this.triggerContentSlot) {
13574
+ this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
13575
+ if (slot.textContent.trim()) {
13576
+ return true;
13577
+ }
13578
+ const slotInSlot = slot.querySelector('slot');
13579
+ if (!slotInSlot) {
13580
+ return false;
13581
+ }
13582
+ const slotsInSlotNodes = slotInSlot.assignedNodes();
13583
+ return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
13584
+ });
13585
+ } else {
13586
+ this.hasTriggerContent = false;
13587
+ }
13588
+ }
13589
+
13466
13590
  /**
13467
13591
  * Handles the default slot change event and updates the content.
13468
13592
  *
@@ -13497,13 +13621,13 @@ class AuroDropdown extends r$5 {
13497
13621
  tabindex="${this.tabIndex}"
13498
13622
  >
13499
13623
  <div class="triggerContentWrapper">
13500
- <label class="label" id="triggerLabel">
13624
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
13501
13625
  <slot name="label"></slot>
13502
13626
  </label>
13503
13627
  <div class="triggerContent">
13504
13628
  <slot
13505
13629
  name="trigger"
13506
- @slotchange="${() => {this.floater.handleTriggerTabIndex(); }}"></slot>
13630
+ @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
13507
13631
  </div>
13508
13632
  </div>
13509
13633
  ${this.chevron || this.common ? u$1$1`
@@ -15608,41 +15732,8 @@ class AuroFormValidation {
15608
15732
  /**
15609
15733
  * Auro-input provides users a way to enter data into a text field.
15610
15734
  *
15611
- * @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
15612
- * @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]
15613
- * @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
15614
- * @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
15615
15735
  * @attr {Boolean} bordered - Applies bordered UI variant.
15616
15736
  * @attr {Boolean} borderless - Applies borderless UI variant.
15617
- * @attr {Boolean} disabled - If set, disables the input.
15618
- * @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
15619
- * @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.
15620
- * @attr {String} id - Sets the unique ID of the element.
15621
- * @attr {String} lang - defines the language of an element.
15622
- * @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
15623
- * @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.
15624
- * @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
15625
- * @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`.
15626
- * @attr {String} name - Populates the `name` attribute on the input.
15627
- * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
15628
- * @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
15629
- * @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
15630
- * @attr {String} pattern - Specifies a regular expression the form control's value should match.
15631
- * @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
15632
- * @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
15633
- * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
15634
- * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
15635
- * @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
15636
- * @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
15637
- * @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
15638
- * @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
15639
- * @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
15640
- * @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
15641
- * @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`.
15642
- * @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`.
15643
- * @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
15644
- * @attr {String} validity - Specifies the `validityState` this element is in.
15645
- * @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
15646
15737
  *
15647
15738
  * @slot helptext - Sets the help text displayed below the input.
15648
15739
  * @slot label - Sets the label text for the input.
@@ -15734,69 +15825,272 @@ class BaseInput extends r {
15734
15825
  .substring(idSubstrStart, idSubstrEnd);
15735
15826
  }
15736
15827
 
15737
- // function to define props used within the scope of this component
15828
+ // function to define props used within the scope of this componentstatic
15738
15829
  static get properties() {
15739
15830
  return {
15740
- id: { type: String },
15741
- name: { type: String },
15742
- type: { type: String,
15743
- reflect: true },
15744
- value: { type: String },
15745
- lang: { type: String },
15746
- pattern: {
15831
+
15832
+ /**
15833
+ * If set, the label will remain fixed in the active position.
15834
+ */
15835
+ activeLabel: {
15836
+ type: Boolean,
15837
+ reflect: true
15838
+ },
15839
+
15840
+ /**
15841
+ * 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]
15842
+ */
15843
+ autocapitalize: {
15844
+ type: String
15845
+ },
15846
+
15847
+ /**
15848
+ * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
15849
+ */
15850
+ autocomplete: {
15747
15851
  type: String,
15748
15852
  reflect: true
15749
15853
  },
15750
- icon: { type: Boolean },
15751
- disabled: { type: Boolean },
15752
- required: { type: Boolean },
15753
- noValidate: { type: Boolean },
15754
- spellcheck: { type: String },
15755
- autocorrect: { type: String },
15756
- autocapitalize: { type: String },
15757
- autocomplete: {
15854
+
15855
+ /**
15856
+ * When set to `off`, stops iOS from auto-correcting words when typed into a text box.
15857
+ */
15858
+ autocorrect: {
15859
+ type: String
15860
+ },
15861
+
15862
+ /**
15863
+ * If set, disables the input.
15864
+ */
15865
+ disabled: {
15866
+ type: Boolean
15867
+ },
15868
+
15869
+ error: {
15758
15870
  type: String,
15759
15871
  reflect: true
15760
15872
  },
15761
- placeholder: { type: String },
15762
- activeLabel: {
15763
- type: Boolean,
15873
+
15874
+ /**
15875
+ * Contains the help text message for the current validity error.
15876
+ */
15877
+ errorMessage: {
15878
+ type: String
15879
+ },
15880
+
15881
+ /**
15882
+ * 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.
15883
+ */
15884
+ icon: {
15885
+ type: Boolean
15886
+ },
15887
+
15888
+ /**
15889
+ * Sets the unique ID of the element.
15890
+ */
15891
+ id: {
15892
+ type: String
15893
+ },
15894
+
15895
+ /**
15896
+ * Defines the language of an element.
15897
+ */
15898
+ lang: {
15899
+ type: String
15900
+ },
15901
+
15902
+ /**
15903
+ * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
15904
+ */
15905
+ max: {
15906
+ type: String
15907
+ },
15908
+
15909
+ /**
15910
+ * The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
15911
+ */
15912
+ maxLength: {
15913
+ type: Number
15914
+ },
15915
+
15916
+ /**
15917
+ * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
15918
+ */
15919
+ min: {
15920
+ type: String
15921
+ },
15922
+
15923
+ /**
15924
+ * 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`.
15925
+ */
15926
+ minLength: {
15927
+ type: Number
15928
+ },
15929
+
15930
+ /**
15931
+ * Populates the `name` attribute on the input.
15932
+ */
15933
+ name: {
15934
+ type: String
15935
+ },
15936
+
15937
+ /**
15938
+ * If set, disables auto-validation on blur.
15939
+ */
15940
+ noValidate: {
15941
+ type: Boolean
15942
+ },
15943
+
15944
+ /**
15945
+ * Specifies a regular expression the form control's value should match.
15946
+ */
15947
+ pattern: {
15948
+ type: String,
15764
15949
  reflect: true
15765
15950
  },
15766
- max: { type: String },
15767
- min: { type: String },
15768
- maxLength: { type: Number },
15769
- minLength: { type: Number },
15951
+
15952
+ /**
15953
+ * Define custom placeholder text, only supported by date input formats.
15954
+ */
15955
+ placeholder: {
15956
+ type: String
15957
+ },
15958
+
15959
+ /**
15960
+ * Makes the input read-only, but can be set programmatically.
15961
+ */
15962
+ readonly: {
15963
+ type: Boolean
15964
+ },
15965
+
15966
+ /**
15967
+ * Populates the `required` attribute on the input. Used for client-side validation.
15968
+ */
15969
+ required: {
15970
+ type: Boolean
15971
+ },
15770
15972
 
15771
15973
  /**
15772
15974
  * @ignore
15773
15975
  */
15774
- showPassword: { state: true },
15775
- validateOnInput: { type: Boolean },
15776
- readonly: { type: Boolean },
15777
- error: {
15976
+ showPassword: {
15977
+ state: true
15978
+ },
15979
+
15980
+ /**
15981
+ * Sets a custom help text message to display for all validityStates.
15982
+ */
15983
+ setCustomValidity: {
15984
+ type: String
15985
+ },
15986
+
15987
+ /**
15988
+ * Custom help text message to display when validity = `badInput`.
15989
+ */
15990
+ setCustomValidityBadInput: {
15991
+ type: String
15992
+ },
15993
+
15994
+ /**
15995
+ * Custom help text message to display when validity = `customError`.
15996
+ */
15997
+ setCustomValidityCustomError: {
15998
+ type: String
15999
+ },
16000
+
16001
+ /**
16002
+ * Custom help text message to display for the declared element `type` and type validity fails.
16003
+ */
16004
+ setCustomValidityForType: {
16005
+ type: String
16006
+ },
16007
+
16008
+ /**
16009
+ * Custom help text message to display when validity = `rangeOverflow`.
16010
+ */
16011
+ setCustomValidityRangeOverflow: {
16012
+ type: String
16013
+ },
16014
+
16015
+ /**
16016
+ * Custom help text message to display when validity = `rangeUnderflow`.
16017
+ */
16018
+ setCustomValidityRangeUnderflow: {
16019
+ type: String
16020
+ },
16021
+
16022
+ /**
16023
+ * Custom help text message to display when validity = `tooLong`.
16024
+ */
16025
+ setCustomValidityTooLong: {
16026
+ type: String
16027
+ },
16028
+
16029
+ /**
16030
+ * Custom help text message to display when validity = `tooShort`.
16031
+ */
16032
+ setCustomValidityTooShort: {
16033
+ type: String
16034
+ },
16035
+
16036
+ /**
16037
+ * Custom help text message to display when validity = `valueMissing`.
16038
+ */
16039
+ setCustomValidityValueMissing: {
16040
+ type: String
16041
+ },
16042
+
16043
+ /**
16044
+ * Custom help text message for email type validity.
16045
+ */
16046
+ customValidityTypeEmail: {
16047
+ type: String
16048
+ },
16049
+
16050
+ /**
16051
+ * 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`.
16052
+ */
16053
+ spellcheck: {
16054
+ type: String
16055
+ },
16056
+
16057
+ /**
16058
+ * 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`.
16059
+ */
16060
+ type: {
15778
16061
  type: String,
15779
16062
  reflect: true
15780
16063
  },
15781
- validity: {
16064
+
16065
+ /**
16066
+ * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
16067
+ */
16068
+ value: {
16069
+ type: String
16070
+ },
16071
+
16072
+ /**
16073
+ * Sets validation mode to re-eval with each input.
16074
+ */
16075
+ validateOnInput: {
16076
+ type: Boolean
16077
+ },
16078
+
16079
+ /**
16080
+ * Specifies the `validityState` this element is in.
16081
+ */
16082
+ validity: {
15782
16083
  type: String,
15783
16084
  reflect: true
15784
- },
15785
- setCustomValidity: { type: String },
15786
- setCustomValidityCustomError: { type: String },
15787
- setCustomValidityValueMissing: { type: String },
15788
- setCustomValidityPatternMismatch: { type: String },
15789
- setCustomValidityTooShort: { type: String },
15790
- setCustomValidityTooLong: { type: String },
15791
- setCustomValidityRangeOverflow: { type: String },
15792
- setCustomValidityRangeUnderflow: { type: String }
16085
+ }
15793
16086
  };
15794
16087
  }
15795
16088
 
16089
+
15796
16090
  static get styles() {
15797
16091
  return [
15798
- i$2`${styleCss$3}`,
15799
16092
  i$2`${colorCss$3}`,
16093
+ i$2`${styleCss$3}`,
15800
16094
  i$2`${tokensCss$3}`
15801
16095
  ];
15802
16096
  }