@beeq/core 1.8.0-beta.9 → 1.8.1

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 (780) hide show
  1. package/README.md +5 -3
  2. package/dist/beeq/beeq.css +1 -1
  3. package/dist/beeq/beeq.esm.js +1 -43
  4. package/dist/beeq/beeq.esm.js.map +1 -1
  5. package/dist/beeq/index.esm.js +1 -66
  6. package/dist/beeq/index.esm.js.map +1 -1
  7. package/dist/beeq/p-00702295.entry.js +6 -0
  8. package/dist/beeq/p-00702295.entry.js.map +1 -0
  9. package/dist/beeq/p-01de6133.js +6 -0
  10. package/dist/beeq/p-01de6133.js.map +1 -0
  11. package/dist/beeq/p-026fad0d.entry.js +6 -0
  12. package/dist/beeq/p-026fad0d.entry.js.map +1 -0
  13. package/dist/beeq/p-07b82e50.js +6 -0
  14. package/dist/beeq/p-07b82e50.js.map +1 -0
  15. package/dist/beeq/{p-cfb8829b.entry.js → p-0c0bd129.entry.js} +2 -96
  16. package/dist/beeq/p-0c0bd129.entry.js.map +1 -0
  17. package/dist/beeq/p-0c12aa01.entry.js +6 -0
  18. package/dist/beeq/p-0c12aa01.entry.js.map +1 -0
  19. package/dist/beeq/p-0cab9a82.entry.js +6 -0
  20. package/dist/beeq/p-0cab9a82.entry.js.map +1 -0
  21. package/dist/beeq/p-0f72dbb6.entry.js +6 -0
  22. package/dist/beeq/p-0f72dbb6.entry.js.map +1 -0
  23. package/dist/beeq/p-115ed5b2.js +1 -25
  24. package/dist/beeq/p-115ed5b2.js.map +1 -1
  25. package/dist/beeq/p-19b7bbe0.entry.js +6 -0
  26. package/dist/beeq/p-19b7bbe0.entry.js.map +1 -0
  27. package/dist/beeq/p-19c94c6d.entry.js +6 -0
  28. package/dist/beeq/p-19c94c6d.entry.js.map +1 -0
  29. package/dist/beeq/p-1b0cfcd6.entry.js +6 -0
  30. package/dist/beeq/p-1b0cfcd6.entry.js.map +1 -0
  31. package/dist/beeq/p-1c8b6eb4.js +1 -12
  32. package/dist/beeq/p-1c8b6eb4.js.map +1 -1
  33. package/dist/beeq/p-1cdea079.entry.js +6 -0
  34. package/dist/beeq/p-1cdea079.entry.js.map +1 -0
  35. package/dist/beeq/p-1defeea3.js +1 -64
  36. package/dist/beeq/p-1defeea3.js.map +1 -1
  37. package/dist/beeq/p-1f3a4359.js +1 -11
  38. package/dist/beeq/p-1f3a4359.js.map +1 -1
  39. package/dist/beeq/p-20d91acf.entry.js +6 -0
  40. package/dist/beeq/p-20d91acf.entry.js.map +1 -0
  41. package/dist/beeq/p-29d9487c.entry.js +6 -0
  42. package/dist/beeq/p-29d9487c.entry.js.map +1 -0
  43. package/dist/beeq/p-2c566eb0.entry.js +6 -0
  44. package/dist/beeq/p-2c566eb0.entry.js.map +1 -0
  45. package/dist/beeq/p-2e0e325b.entry.js +6 -0
  46. package/dist/beeq/p-2e0e325b.entry.js.map +1 -0
  47. package/dist/beeq/p-2eab5223.entry.js +6 -0
  48. package/dist/beeq/p-2eab5223.entry.js.map +1 -0
  49. package/dist/beeq/p-2ef4ed54.entry.js +6 -0
  50. package/dist/beeq/p-2ef4ed54.entry.js.map +1 -0
  51. package/dist/beeq/p-36b653f6.entry.js +6 -0
  52. package/dist/beeq/p-36b653f6.entry.js.map +1 -0
  53. package/dist/beeq/p-3c472097.js +6 -0
  54. package/dist/beeq/{p-c6cbb8e2.js.map → p-3c472097.js.map} +1 -1
  55. package/dist/beeq/p-43dc9906.entry.js +6 -0
  56. package/dist/beeq/p-43dc9906.entry.js.map +1 -0
  57. package/dist/{collection/global/scripts/global.js → beeq/p-45800965.js} +2 -2
  58. package/dist/beeq/p-45800965.js.map +1 -0
  59. package/dist/beeq/p-4c1f6afc.entry.js +6 -0
  60. package/dist/beeq/p-4c1f6afc.entry.js.map +1 -0
  61. package/dist/beeq/p-4c66663c.entry.js +6 -0
  62. package/dist/beeq/p-4c66663c.entry.js.map +1 -0
  63. package/dist/beeq/p-4d6a9646.entry.js +6 -0
  64. package/dist/beeq/p-4d6a9646.entry.js.map +1 -0
  65. package/dist/beeq/p-55b0aea8.js +6 -0
  66. package/dist/beeq/p-55b0aea8.js.map +1 -0
  67. package/dist/beeq/p-57621be1.js +1 -9
  68. package/dist/beeq/p-57621be1.js.map +1 -1
  69. package/dist/beeq/p-5c7a719c.entry.js +6 -0
  70. package/dist/beeq/p-5c7a719c.entry.js.map +1 -0
  71. package/dist/beeq/p-60094726.js +7 -0
  72. package/dist/beeq/p-60094726.js.map +1 -0
  73. package/dist/beeq/p-6079f9b2.entry.js +6 -0
  74. package/dist/beeq/p-6079f9b2.entry.js.map +1 -0
  75. package/dist/beeq/p-687da041.js +1 -20
  76. package/dist/beeq/p-687da041.js.map +1 -1
  77. package/dist/beeq/p-75cc6789.entry.js +6 -0
  78. package/dist/beeq/p-75cc6789.entry.js.map +1 -0
  79. package/dist/beeq/p-7636aff3.entry.js +6 -0
  80. package/dist/beeq/p-7636aff3.entry.js.map +1 -0
  81. package/dist/beeq/p-7f124d61.entry.js +6 -0
  82. package/dist/beeq/p-7f124d61.entry.js.map +1 -0
  83. package/dist/beeq/p-921fa1ea.entry.js +6 -0
  84. package/dist/beeq/p-921fa1ea.entry.js.map +1 -0
  85. package/dist/beeq/p-99829fc7.js +1 -8
  86. package/dist/beeq/p-99829fc7.js.map +1 -1
  87. package/dist/beeq/p-a5dc1c94.js +1 -118
  88. package/dist/beeq/p-a5dc1c94.js.map +1 -1
  89. package/dist/beeq/p-a7fb6ffd.entry.js +6 -0
  90. package/dist/beeq/p-a7fb6ffd.entry.js.map +1 -0
  91. package/dist/beeq/p-a8cad5ab.js +1 -5
  92. package/dist/beeq/p-a8cad5ab.js.map +1 -1
  93. package/dist/beeq/p-af062402.js +1 -7
  94. package/dist/beeq/p-af062402.js.map +1 -1
  95. package/dist/beeq/p-b83f174c.entry.js +6 -0
  96. package/dist/beeq/p-b83f174c.entry.js.map +1 -0
  97. package/dist/beeq/p-c09dac58.entry.js +6 -0
  98. package/dist/beeq/p-c09dac58.entry.js.map +1 -0
  99. package/dist/beeq/p-c3a0bd23.js +6 -0
  100. package/dist/beeq/p-c3a0bd23.js.map +1 -0
  101. package/dist/beeq/p-c70c6b00.entry.js +6 -0
  102. package/dist/beeq/p-c70c6b00.entry.js.map +1 -0
  103. package/dist/beeq/p-c78ae3c2.js +1 -1978
  104. package/dist/beeq/p-c78ae3c2.js.map +1 -1
  105. package/dist/beeq/p-cb3b24e6.entry.js +6 -0
  106. package/dist/beeq/p-cb3b24e6.entry.js.map +1 -0
  107. package/dist/beeq/{p-16c6ece5.entry.js → p-cf523684.entry.js} +2 -108
  108. package/dist/beeq/p-cf523684.entry.js.map +1 -0
  109. package/dist/beeq/p-d7ce7165.js +1 -86
  110. package/dist/beeq/p-d7ce7165.js.map +1 -1
  111. package/dist/beeq/p-d8221b88.entry.js +6 -0
  112. package/dist/beeq/p-d8221b88.entry.js.map +1 -0
  113. package/dist/beeq/p-d8a257b7.entry.js +6 -0
  114. package/dist/beeq/p-d8a257b7.entry.js.map +1 -0
  115. package/dist/beeq/{p-3043c826.entry.js → p-dc544089.entry.js} +2 -129
  116. package/dist/beeq/p-dc544089.entry.js.map +1 -0
  117. package/dist/beeq/p-e056c02a.entry.js +6 -0
  118. package/dist/beeq/p-e056c02a.entry.js.map +1 -0
  119. package/dist/beeq/p-eb662058.entry.js +6 -0
  120. package/dist/beeq/p-eb662058.entry.js.map +1 -0
  121. package/dist/beeq/p-ecd27cf2.js +1 -11
  122. package/dist/beeq/p-ecd27cf2.js.map +1 -1
  123. package/dist/beeq/p-f84ae6a1.entry.js +6 -0
  124. package/dist/beeq/p-f84ae6a1.entry.js.map +1 -0
  125. package/dist/beeq.html-custom-data.json +2034 -0
  126. package/dist/cjs/app-globals-42eaedec.js +11 -0
  127. package/dist/cjs/app-globals-42eaedec.js.map +1 -0
  128. package/dist/cjs/{assetsPath-2885c838.js → assetsPath-5e03c40e.js} +6 -5
  129. package/dist/cjs/assetsPath-5e03c40e.js.map +1 -0
  130. package/dist/cjs/beeq.cjs.js +4 -4
  131. package/dist/cjs/beeq.cjs.js.map +1 -1
  132. package/dist/cjs/bq-accordion-group.cjs.entry.js +3 -3
  133. package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
  134. package/dist/cjs/bq-accordion.cjs.entry.js +6 -6
  135. package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
  136. package/dist/cjs/bq-alert.cjs.entry.js +7 -7
  137. package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
  138. package/dist/cjs/bq-avatar.cjs.entry.js +5 -5
  139. package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
  140. package/dist/cjs/bq-badge.cjs.entry.js +5 -4
  141. package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
  142. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +4 -11
  143. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
  144. package/dist/cjs/bq-breadcrumb.cjs.entry.js +20 -38
  145. package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
  146. package/dist/cjs/bq-button_2.cjs.entry.js +10 -9
  147. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  148. package/dist/cjs/bq-card.cjs.entry.js +4 -4
  149. package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
  150. package/dist/cjs/bq-checkbox.cjs.entry.js +9 -11
  151. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  152. package/dist/cjs/bq-date-picker.cjs.entry.js +59 -15
  153. package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
  154. package/dist/cjs/bq-dialog.cjs.entry.js +6 -6
  155. package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
  156. package/dist/cjs/bq-divider.cjs.entry.js +8 -7
  157. package/dist/cjs/bq-divider.cjs.entry.js.map +1 -1
  158. package/dist/cjs/bq-drawer.cjs.entry.js +6 -6
  159. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  160. package/dist/cjs/bq-dropdown_2.cjs.entry.js +5 -5
  161. package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
  162. package/dist/cjs/bq-empty-state.cjs.entry.js +7 -7
  163. package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
  164. package/dist/cjs/bq-input.cjs.entry.js +42 -17
  165. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bq-notification.cjs.entry.js +11 -6
  167. package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
  168. package/dist/cjs/bq-option-group.cjs.entry.js +2 -2
  169. package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
  170. package/dist/cjs/bq-option-list_2.cjs.entry.js +9 -8
  171. package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
  172. package/dist/cjs/bq-option.cjs.entry.js +5 -5
  173. package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
  174. package/dist/cjs/bq-page-title.cjs.entry.js +3 -3
  175. package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
  176. package/dist/cjs/bq-progress.cjs.entry.js +13 -12
  177. package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
  178. package/dist/cjs/bq-radio-group.cjs.entry.js +68 -25
  179. package/dist/cjs/bq-radio-group.cjs.entry.js.map +1 -1
  180. package/dist/cjs/bq-radio.cjs.entry.js +10 -4
  181. package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
  182. package/dist/cjs/bq-select.cjs.entry.js +7 -7
  183. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  184. package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
  185. package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
  186. package/dist/cjs/bq-side-menu.cjs.entry.js +7 -4
  187. package/dist/cjs/bq-side-menu.cjs.entry.js.map +1 -1
  188. package/dist/cjs/bq-slider.cjs.entry.js +23 -9
  189. package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
  190. package/dist/cjs/bq-spinner.cjs.entry.js +9 -8
  191. package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
  192. package/dist/cjs/bq-status.cjs.entry.js +3 -3
  193. package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
  194. package/dist/cjs/bq-step-item.cjs.entry.js +8 -8
  195. package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
  196. package/dist/cjs/bq-steps.cjs.entry.js +2 -2
  197. package/dist/cjs/bq-steps.cjs.entry.js.map +1 -1
  198. package/dist/cjs/bq-switch.cjs.entry.js +57 -5
  199. package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
  200. package/dist/cjs/bq-tab-group.cjs.entry.js +9 -9
  201. package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
  202. package/dist/cjs/bq-tab.cjs.entry.js +9 -9
  203. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  204. package/dist/cjs/bq-textarea.cjs.entry.js +62 -13
  205. package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
  206. package/dist/cjs/bq-toast.cjs.entry.js +9 -4
  207. package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
  208. package/dist/cjs/bq-tooltip.cjs.entry.js +2 -2
  209. package/dist/cjs/bq-tooltip.cjs.entry.js.map +1 -1
  210. package/dist/cjs/{app-globals-b11284b9.js → cally-9297cdd8.js} +5 -6
  211. package/dist/cjs/cally-9297cdd8.js.map +1 -0
  212. package/dist/cjs/{cssVariables-dd190bc2.js → cssVariables-55ad4942.js} +4 -2
  213. package/dist/cjs/cssVariables-55ad4942.js.map +1 -0
  214. package/dist/cjs/{index-34edf639.js → index-c4edfa07.js} +787 -565
  215. package/dist/cjs/index-c4edfa07.js.map +1 -0
  216. package/dist/cjs/index.cjs.js +6 -4
  217. package/dist/cjs/index.cjs.js.map +1 -1
  218. package/dist/cjs/isClient-c22372aa.js +17 -0
  219. package/dist/cjs/isClient-c22372aa.js.map +1 -0
  220. package/dist/cjs/{isDefined-869f6a26.js → isDefined-e538d669.js} +2 -2
  221. package/dist/cjs/{isDefined-869f6a26.js.map → isDefined-e538d669.js.map} +1 -1
  222. package/dist/cjs/loader.cjs.js +3 -3
  223. package/dist/collection/collection-manifest.json +2 -3
  224. package/dist/collection/components/accordion/bq-accordion.js +117 -18
  225. package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
  226. package/dist/collection/components/accordion/scss/bq-accordion.css +1 -1
  227. package/dist/collection/components/accordion-group/bq-accordion-group.js +36 -1
  228. package/dist/collection/components/accordion-group/bq-accordion-group.js.map +1 -1
  229. package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
  230. package/dist/collection/components/alert/bq-alert.js +92 -10
  231. package/dist/collection/components/alert/bq-alert.js.map +1 -1
  232. package/dist/collection/components/alert/scss/bq-alert.css +1 -1
  233. package/dist/collection/components/avatar/bq-avatar.js +66 -4
  234. package/dist/collection/components/avatar/bq-avatar.js.map +1 -1
  235. package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
  236. package/dist/collection/components/badge/bq-badge.js +36 -2
  237. package/dist/collection/components/badge/bq-badge.js.map +1 -1
  238. package/dist/collection/components/breadcrumb/bq-breadcrumb.js +43 -119
  239. package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
  240. package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
  241. package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js +50 -46
  242. package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js.map +1 -1
  243. package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
  244. package/dist/collection/components/button/bq-button.js +79 -4
  245. package/dist/collection/components/button/bq-button.js.map +1 -1
  246. package/dist/collection/components/button/scss/bq-button.css +1 -1
  247. package/dist/collection/components/card/bq-card.js +37 -3
  248. package/dist/collection/components/card/bq-card.js.map +1 -1
  249. package/dist/collection/components/card/scss/bq-card.css +1 -1
  250. package/dist/collection/components/checkbox/bq-checkbox.js +62 -9
  251. package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
  252. package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
  253. package/dist/collection/components/date-picker/bq-date-picker.js +233 -42
  254. package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
  255. package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
  256. package/dist/collection/components/dialog/bq-dialog.js +96 -12
  257. package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
  258. package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
  259. package/dist/collection/components/divider/bq-divider.js +53 -8
  260. package/dist/collection/components/divider/bq-divider.js.map +1 -1
  261. package/dist/collection/components/divider/scss/bq-divider.css +1 -1
  262. package/dist/collection/components/drawer/bq-drawer.js +75 -13
  263. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  264. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  265. package/dist/collection/components/dropdown/bq-dropdown.js +70 -4
  266. package/dist/collection/components/dropdown/bq-dropdown.js.map +1 -1
  267. package/dist/collection/components/dropdown/scss/bq-dropdown.css +1 -1
  268. package/dist/collection/components/empty-state/bq-empty-state.js +25 -5
  269. package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
  270. package/dist/collection/components/empty-state/scss/bq-empty-state.css +1 -1
  271. package/dist/collection/components/icon/bq-icon.js +34 -2
  272. package/dist/collection/components/icon/bq-icon.js.map +1 -1
  273. package/dist/collection/components/input/bq-input.js +176 -14
  274. package/dist/collection/components/input/bq-input.js.map +1 -1
  275. package/dist/collection/components/input/scss/bq-input.css +1 -1
  276. package/dist/collection/components/notification/bq-notification.js +80 -10
  277. package/dist/collection/components/notification/bq-notification.js.map +1 -1
  278. package/dist/collection/components/notification/scss/bq-notification.css +1 -1
  279. package/dist/collection/components/option/bq-option.js +52 -4
  280. package/dist/collection/components/option/bq-option.js.map +1 -1
  281. package/dist/collection/components/option-group/bq-option-group.js +32 -1
  282. package/dist/collection/components/option-group/bq-option-group.js.map +1 -1
  283. package/dist/collection/components/option-list/bq-option-list.js +24 -1
  284. package/dist/collection/components/option-list/bq-option-list.js.map +1 -1
  285. package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
  286. package/dist/collection/components/page-title/bq-page-title.js +39 -2
  287. package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
  288. package/dist/collection/components/panel/bq-panel.js +44 -1
  289. package/dist/collection/components/panel/bq-panel.js.map +1 -1
  290. package/dist/collection/components/panel/scss/bq-panel.css +1 -1
  291. package/dist/collection/components/progress/bq-progress.js +108 -69
  292. package/dist/collection/components/progress/bq-progress.js.map +1 -1
  293. package/dist/collection/components/progress/scss/bq-progress.css +1 -1
  294. package/dist/collection/components/radio/bq-radio.js +76 -2
  295. package/dist/collection/components/radio/bq-radio.js.map +1 -1
  296. package/dist/collection/components/radio/scss/bq-radio.css +1 -1
  297. package/dist/collection/components/radio-group/bq-radio-group.js +187 -57
  298. package/dist/collection/components/radio-group/bq-radio-group.js.map +1 -1
  299. package/dist/collection/components/radio-group/scss/bq-radio-group.css +1 -1
  300. package/dist/collection/components/select/bq-select.js +134 -5
  301. package/dist/collection/components/select/bq-select.js.map +1 -1
  302. package/dist/collection/components/select/scss/bq-select.css +1 -1
  303. package/dist/collection/components/side-menu/bq-side-menu.js +56 -3
  304. package/dist/collection/components/side-menu/bq-side-menu.js.map +1 -1
  305. package/dist/collection/components/side-menu/scss/bq-side-menu.css +1 -1
  306. package/dist/collection/components/side-menu-item/bq-side-menu-item.js +43 -0
  307. package/dist/collection/components/side-menu-item/bq-side-menu-item.js.map +1 -1
  308. package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
  309. package/dist/collection/components/slider/bq-slider.js +89 -7
  310. package/dist/collection/components/slider/bq-slider.js.map +1 -1
  311. package/dist/collection/components/slider/scss/bq-slider.css +1 -1
  312. package/dist/collection/components/spinner/bq-spinner.js +37 -5
  313. package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
  314. package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
  315. package/dist/collection/components/status/bq-status.js +24 -4
  316. package/dist/collection/components/status/bq-status.js.map +1 -1
  317. package/dist/collection/components/status/scss/bq-status.css +1 -1
  318. package/dist/collection/components/step-item/bq-step-item.js +44 -6
  319. package/dist/collection/components/step-item/bq-step-item.js.map +1 -1
  320. package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
  321. package/dist/collection/components/steps/bq-steps.js +34 -1
  322. package/dist/collection/components/steps/bq-steps.js.map +1 -1
  323. package/dist/collection/components/switch/bq-switch.js +125 -4
  324. package/dist/collection/components/switch/bq-switch.js.map +1 -1
  325. package/dist/collection/components/switch/scss/bq-switch.css +1 -1
  326. package/dist/collection/components/tab/bq-tab.js +102 -43
  327. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  328. package/dist/collection/components/tab/scss/bq-tab.css +1 -1
  329. package/dist/collection/components/tab-group/bq-tab-group.js +84 -46
  330. package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
  331. package/dist/collection/components/tab-group/scss/bq-tab-group.css +1 -1
  332. package/dist/collection/components/tag/bq-tag.js +70 -3
  333. package/dist/collection/components/tag/bq-tag.js.map +1 -1
  334. package/dist/collection/components/tag/scss/bq-tag.css +1 -1
  335. package/dist/collection/components/textarea/bq-textarea.js +176 -11
  336. package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
  337. package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
  338. package/dist/collection/components/toast/bq-toast.js +67 -6
  339. package/dist/collection/components/toast/bq-toast.js.map +1 -1
  340. package/dist/collection/components/tooltip/bq-tooltip.js +55 -1
  341. package/dist/collection/components/tooltip/bq-tooltip.js.map +1 -1
  342. package/dist/collection/shared/utils/assetsPath.js +4 -3
  343. package/dist/collection/shared/utils/assetsPath.js.map +1 -1
  344. package/dist/collection/shared/utils/cssVariables.js +2 -1
  345. package/dist/collection/shared/utils/cssVariables.js.map +1 -1
  346. package/dist/collection/shared/utils/index.js +1 -0
  347. package/dist/collection/shared/utils/index.js.map +1 -1
  348. package/dist/collection/shared/utils/isClient.js +12 -0
  349. package/dist/collection/shared/utils/isClient.js.map +1 -0
  350. package/dist/collection/tools/generate-custom-elements-json.js +8 -7
  351. package/dist/collection/tools/generate-custom-elements-json.js.map +1 -1
  352. package/dist/components/bq-accordion-group.js +1 -114
  353. package/dist/components/bq-accordion-group.js.map +1 -1
  354. package/dist/components/bq-accordion.js +1 -311
  355. package/dist/components/bq-accordion.js.map +1 -1
  356. package/dist/components/bq-alert.js +1 -220
  357. package/dist/components/bq-alert.js.map +1 -1
  358. package/dist/components/bq-avatar.js +1 -139
  359. package/dist/components/bq-avatar.js.map +1 -1
  360. package/dist/components/bq-badge.js +1 -7
  361. package/dist/components/bq-badge.js.map +1 -1
  362. package/dist/components/bq-breadcrumb-item.js +1 -96
  363. package/dist/components/bq-breadcrumb-item.js.map +1 -1
  364. package/dist/components/bq-breadcrumb.js +1 -112
  365. package/dist/components/bq-breadcrumb.js.map +1 -1
  366. package/dist/components/bq-button.js +1 -7
  367. package/dist/components/bq-button.js.map +1 -1
  368. package/dist/components/bq-card.js +1 -86
  369. package/dist/components/bq-card.js.map +1 -1
  370. package/dist/components/bq-checkbox.js +1 -207
  371. package/dist/components/bq-checkbox.js.map +1 -1
  372. package/dist/components/bq-date-picker.js +1 -390
  373. package/dist/components/bq-date-picker.js.map +1 -1
  374. package/dist/components/bq-dialog.js +1 -252
  375. package/dist/components/bq-dialog.js.map +1 -1
  376. package/dist/components/bq-divider.js +1 -7
  377. package/dist/components/bq-divider.js.map +1 -1
  378. package/dist/components/bq-drawer.js +1 -249
  379. package/dist/components/bq-drawer.js.map +1 -1
  380. package/dist/components/bq-dropdown.js +1 -7
  381. package/dist/components/bq-dropdown.js.map +1 -1
  382. package/dist/components/bq-empty-state.js +1 -125
  383. package/dist/components/bq-empty-state.js.map +1 -1
  384. package/dist/components/bq-icon.js +1 -7
  385. package/dist/components/bq-icon.js.map +1 -1
  386. package/dist/components/bq-input.js +1 -266
  387. package/dist/components/bq-input.js.map +1 -1
  388. package/dist/components/bq-notification.js +1 -245
  389. package/dist/components/bq-notification.js.map +1 -1
  390. package/dist/components/bq-option-group.js +1 -64
  391. package/dist/components/bq-option-group.js.map +1 -1
  392. package/dist/components/bq-option-list.js +1 -7
  393. package/dist/components/bq-option-list.js.map +1 -1
  394. package/dist/components/bq-option.js +1 -137
  395. package/dist/components/bq-option.js.map +1 -1
  396. package/dist/components/bq-page-title.js +1 -82
  397. package/dist/components/bq-page-title.js.map +1 -1
  398. package/dist/components/bq-panel.js +1 -7
  399. package/dist/components/bq-panel.js.map +1 -1
  400. package/dist/components/bq-progress.js +1 -129
  401. package/dist/components/bq-progress.js.map +1 -1
  402. package/dist/components/bq-radio-group.js +1 -207
  403. package/dist/components/bq-radio-group.js.map +1 -1
  404. package/dist/components/bq-radio.js +1 -136
  405. package/dist/components/bq-radio.js.map +1 -1
  406. package/dist/components/bq-select.js +1 -452
  407. package/dist/components/bq-select.js.map +1 -1
  408. package/dist/components/bq-side-menu-item.js +1 -125
  409. package/dist/components/bq-side-menu-item.js.map +1 -1
  410. package/dist/components/bq-side-menu.js +1 -144
  411. package/dist/components/bq-side-menu.js.map +1 -1
  412. package/dist/components/bq-slider.js +1 -307
  413. package/dist/components/bq-slider.js.map +1 -1
  414. package/dist/components/bq-spinner.js +1 -167
  415. package/dist/components/bq-spinner.js.map +1 -1
  416. package/dist/components/bq-status.js +1 -82
  417. package/dist/components/bq-status.js.map +1 -1
  418. package/dist/components/bq-step-item.js +1 -119
  419. package/dist/components/bq-step-item.js.map +1 -1
  420. package/dist/components/bq-steps.js +1 -108
  421. package/dist/components/bq-steps.js.map +1 -1
  422. package/dist/components/bq-switch.js +1 -175
  423. package/dist/components/bq-switch.js.map +1 -1
  424. package/dist/components/bq-tab-group.js +1 -232
  425. package/dist/components/bq-tab-group.js.map +1 -1
  426. package/dist/components/bq-tab.js +1 -170
  427. package/dist/components/bq-tab.js.map +1 -1
  428. package/dist/components/bq-tag.js +1 -7
  429. package/dist/components/bq-tag.js.map +1 -1
  430. package/dist/components/bq-textarea.js +1 -210
  431. package/dist/components/bq-textarea.js.map +1 -1
  432. package/dist/components/bq-toast.js +1 -213
  433. package/dist/components/bq-toast.js.map +1 -1
  434. package/dist/components/bq-tooltip.js +1 -7
  435. package/dist/components/bq-tooltip.js.map +1 -1
  436. package/dist/components/index.js +1 -1246
  437. package/dist/components/index.js.map +1 -1
  438. package/dist/components/p-07b82e50.js +6 -0
  439. package/dist/components/p-07b82e50.js.map +1 -0
  440. package/dist/components/p-1566efe3.js +6 -0
  441. package/dist/components/p-1566efe3.js.map +1 -0
  442. package/dist/components/p-1c8b6eb4.js +6 -0
  443. package/dist/components/p-1c8b6eb4.js.map +1 -0
  444. package/dist/components/p-1defeea3.js +6 -0
  445. package/dist/components/p-1defeea3.js.map +1 -0
  446. package/dist/components/p-27c1b08e.js +6 -0
  447. package/dist/components/p-27c1b08e.js.map +1 -0
  448. package/dist/components/p-28da2321.js +6 -0
  449. package/dist/components/p-28da2321.js.map +1 -0
  450. package/dist/components/p-33371480.js +6 -0
  451. package/dist/components/p-33371480.js.map +1 -0
  452. package/dist/components/p-55b0aea8.js +6 -0
  453. package/dist/components/p-55b0aea8.js.map +1 -0
  454. package/dist/components/p-57621be1.js +6 -0
  455. package/dist/components/p-57621be1.js.map +1 -0
  456. package/dist/components/p-5940b410.js +7 -0
  457. package/dist/components/p-5940b410.js.map +1 -0
  458. package/dist/components/p-603c898d.js +6 -0
  459. package/dist/components/p-603c898d.js.map +1 -0
  460. package/dist/components/p-687da041.js +6 -0
  461. package/dist/components/p-687da041.js.map +1 -0
  462. package/dist/components/p-78d23ddc.js +6 -0
  463. package/dist/components/p-78d23ddc.js.map +1 -0
  464. package/dist/components/p-7d7f1f7e.js +6 -0
  465. package/dist/components/p-7d7f1f7e.js.map +1 -0
  466. package/dist/components/p-93c16753.js +6 -0
  467. package/dist/components/p-93c16753.js.map +1 -0
  468. package/dist/components/p-99829fc7.js +6 -0
  469. package/dist/components/p-99829fc7.js.map +1 -0
  470. package/dist/components/p-a5dc1c94.js +6 -0
  471. package/dist/components/p-a5dc1c94.js.map +1 -0
  472. package/dist/components/p-a8cad5ab.js +6 -0
  473. package/dist/components/p-a8cad5ab.js.map +1 -0
  474. package/dist/components/p-af062402.js +6 -0
  475. package/dist/components/p-af062402.js.map +1 -0
  476. package/dist/components/p-c2d43340.js +6 -0
  477. package/dist/components/p-c2d43340.js.map +1 -0
  478. package/dist/components/p-c3a0bd23.js +6 -0
  479. package/dist/components/p-c3a0bd23.js.map +1 -0
  480. package/dist/components/p-c78ae3c2.js +6 -0
  481. package/dist/components/p-c78ae3c2.js.map +1 -0
  482. package/dist/components/p-cf496927.js +6 -0
  483. package/dist/components/p-cf496927.js.map +1 -0
  484. package/dist/components/p-d62fdbae.js +6 -0
  485. package/dist/components/p-d62fdbae.js.map +1 -0
  486. package/dist/components/p-d7ce7165.js +6 -0
  487. package/dist/components/p-d7ce7165.js.map +1 -0
  488. package/dist/components/p-ecd27cf2.js +6 -0
  489. package/dist/components/p-ecd27cf2.js.map +1 -0
  490. package/dist/custom-elements.json +17559 -0
  491. package/dist/esm/app-globals-7655df21.js +9 -0
  492. package/dist/esm/app-globals-7655df21.js.map +1 -0
  493. package/dist/esm/{assetsPath-630898a9.js → assetsPath-eed21007.js} +6 -5
  494. package/dist/esm/assetsPath-eed21007.js.map +1 -0
  495. package/dist/esm/beeq.js +5 -5
  496. package/dist/esm/beeq.js.map +1 -1
  497. package/dist/esm/bq-accordion-group.entry.js +3 -3
  498. package/dist/esm/bq-accordion-group.entry.js.map +1 -1
  499. package/dist/esm/bq-accordion.entry.js +6 -6
  500. package/dist/esm/bq-accordion.entry.js.map +1 -1
  501. package/dist/esm/bq-alert.entry.js +7 -7
  502. package/dist/esm/bq-alert.entry.js.map +1 -1
  503. package/dist/esm/bq-avatar.entry.js +5 -5
  504. package/dist/esm/bq-avatar.entry.js.map +1 -1
  505. package/dist/esm/bq-badge.entry.js +5 -4
  506. package/dist/esm/bq-badge.entry.js.map +1 -1
  507. package/dist/esm/bq-breadcrumb-item.entry.js +4 -11
  508. package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
  509. package/dist/esm/bq-breadcrumb.entry.js +20 -38
  510. package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
  511. package/dist/esm/bq-button_2.entry.js +10 -9
  512. package/dist/esm/bq-button_2.entry.js.map +1 -1
  513. package/dist/esm/bq-card.entry.js +4 -4
  514. package/dist/esm/bq-card.entry.js.map +1 -1
  515. package/dist/esm/bq-checkbox.entry.js +9 -11
  516. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  517. package/dist/esm/bq-date-picker.entry.js +59 -15
  518. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  519. package/dist/esm/bq-dialog.entry.js +6 -6
  520. package/dist/esm/bq-dialog.entry.js.map +1 -1
  521. package/dist/esm/bq-divider.entry.js +8 -7
  522. package/dist/esm/bq-divider.entry.js.map +1 -1
  523. package/dist/esm/bq-drawer.entry.js +6 -6
  524. package/dist/esm/bq-drawer.entry.js.map +1 -1
  525. package/dist/esm/bq-dropdown_2.entry.js +5 -5
  526. package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
  527. package/dist/esm/bq-empty-state.entry.js +7 -7
  528. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  529. package/dist/esm/bq-input.entry.js +42 -17
  530. package/dist/esm/bq-input.entry.js.map +1 -1
  531. package/dist/esm/bq-notification.entry.js +11 -6
  532. package/dist/esm/bq-notification.entry.js.map +1 -1
  533. package/dist/esm/bq-option-group.entry.js +2 -2
  534. package/dist/esm/bq-option-group.entry.js.map +1 -1
  535. package/dist/esm/bq-option-list_2.entry.js +9 -8
  536. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  537. package/dist/esm/bq-option.entry.js +5 -5
  538. package/dist/esm/bq-option.entry.js.map +1 -1
  539. package/dist/esm/bq-page-title.entry.js +3 -3
  540. package/dist/esm/bq-page-title.entry.js.map +1 -1
  541. package/dist/esm/bq-progress.entry.js +13 -12
  542. package/dist/esm/bq-progress.entry.js.map +1 -1
  543. package/dist/esm/bq-radio-group.entry.js +68 -25
  544. package/dist/esm/bq-radio-group.entry.js.map +1 -1
  545. package/dist/esm/bq-radio.entry.js +10 -4
  546. package/dist/esm/bq-radio.entry.js.map +1 -1
  547. package/dist/esm/bq-select.entry.js +7 -7
  548. package/dist/esm/bq-select.entry.js.map +1 -1
  549. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  550. package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
  551. package/dist/esm/bq-side-menu.entry.js +7 -4
  552. package/dist/esm/bq-side-menu.entry.js.map +1 -1
  553. package/dist/esm/bq-slider.entry.js +23 -9
  554. package/dist/esm/bq-slider.entry.js.map +1 -1
  555. package/dist/esm/bq-spinner.entry.js +9 -8
  556. package/dist/esm/bq-spinner.entry.js.map +1 -1
  557. package/dist/esm/bq-status.entry.js +3 -3
  558. package/dist/esm/bq-status.entry.js.map +1 -1
  559. package/dist/esm/bq-step-item.entry.js +8 -8
  560. package/dist/esm/bq-step-item.entry.js.map +1 -1
  561. package/dist/esm/bq-steps.entry.js +2 -2
  562. package/dist/esm/bq-steps.entry.js.map +1 -1
  563. package/dist/esm/bq-switch.entry.js +57 -5
  564. package/dist/esm/bq-switch.entry.js.map +1 -1
  565. package/dist/esm/bq-tab-group.entry.js +9 -9
  566. package/dist/esm/bq-tab-group.entry.js.map +1 -1
  567. package/dist/esm/bq-tab.entry.js +9 -9
  568. package/dist/esm/bq-tab.entry.js.map +1 -1
  569. package/dist/esm/bq-textarea.entry.js +62 -13
  570. package/dist/esm/bq-textarea.entry.js.map +1 -1
  571. package/dist/esm/bq-toast.entry.js +9 -4
  572. package/dist/esm/bq-toast.entry.js.map +1 -1
  573. package/dist/esm/bq-tooltip.entry.js +2 -2
  574. package/dist/esm/bq-tooltip.entry.js.map +1 -1
  575. package/dist/esm/{app-globals-de5a646b.js → cally-1a3258d6.js} +2 -6
  576. package/dist/esm/cally-1a3258d6.js.map +1 -0
  577. package/dist/esm/{cssVariables-000c23ad.js → cssVariables-3665b51c.js} +4 -2
  578. package/dist/esm/cssVariables-3665b51c.js.map +1 -0
  579. package/dist/esm/{index-033f1efb.js → index-c7d02072.js} +787 -565
  580. package/dist/esm/index-c7d02072.js.map +1 -0
  581. package/dist/esm/index.js +6 -5
  582. package/dist/esm/index.js.map +1 -1
  583. package/dist/esm/isClient-c6eae7ba.js +15 -0
  584. package/dist/esm/isClient-c6eae7ba.js.map +1 -0
  585. package/dist/esm/{isDefined-f356f816.js → isDefined-48de6db5.js} +2 -2
  586. package/dist/esm/{isDefined-f356f816.js.map → isDefined-48de6db5.js.map} +1 -1
  587. package/dist/esm/loader.js +4 -4
  588. package/dist/hydrate/index.js +12770 -10546
  589. package/dist/hydrate/index.mjs +12770 -10546
  590. package/dist/stencil.config.js +17 -4
  591. package/dist/stencil.config.js.map +1 -1
  592. package/dist/types/components/accordion/bq-accordion.d.ts +100 -10
  593. package/dist/types/components/accordion-group/bq-accordion-group.d.ts +25 -0
  594. package/dist/types/components/alert/bq-alert.d.ts +71 -5
  595. package/dist/types/components/avatar/bq-avatar.d.ts +51 -1
  596. package/dist/types/components/badge/bq-badge.d.ts +28 -0
  597. package/dist/types/components/breadcrumb/bq-breadcrumb.d.ts +25 -17
  598. package/dist/types/components/breadcrumb-item/bq-breadcrumb-item.d.ts +43 -10
  599. package/dist/types/components/button/bq-button.d.ts +51 -0
  600. package/dist/types/components/card/bq-card.d.ts +31 -1
  601. package/dist/types/components/checkbox/bq-checkbox.d.ts +37 -1
  602. package/dist/types/components/date-picker/bq-date-picker.d.ts +118 -28
  603. package/dist/types/components/dialog/bq-dialog.d.ts +76 -8
  604. package/dist/types/components/divider/bq-divider.d.ts +31 -4
  605. package/dist/types/components/drawer/bq-drawer.d.ts +59 -9
  606. package/dist/types/components/dropdown/bq-dropdown.d.ts +51 -3
  607. package/dist/types/components/empty-state/bq-empty-state.d.ts +18 -0
  608. package/dist/types/components/icon/bq-icon.d.ts +21 -1
  609. package/dist/types/components/input/bq-input.d.ts +77 -0
  610. package/dist/types/components/notification/bq-notification.d.ts +57 -5
  611. package/dist/types/components/option/bq-option.d.ts +40 -0
  612. package/dist/types/components/option-group/bq-option-group.d.ts +31 -0
  613. package/dist/types/components/option-list/bq-option-list.d.ts +21 -0
  614. package/dist/types/components/page-title/bq-page-title.d.ts +37 -0
  615. package/dist/types/components/panel/bq-panel.d.ts +31 -0
  616. package/dist/types/components/progress/bq-progress.d.ts +33 -9
  617. package/dist/types/components/radio/bq-radio.d.ts +37 -0
  618. package/dist/types/components/radio-group/bq-radio-group.d.ts +53 -10
  619. package/dist/types/components/select/bq-select.d.ts +85 -0
  620. package/dist/types/components/side-menu/bq-side-menu.d.ts +45 -0
  621. package/dist/types/components/side-menu-item/bq-side-menu-item.d.ts +37 -0
  622. package/dist/types/components/slider/bq-slider.d.ts +39 -1
  623. package/dist/types/components/spinner/bq-spinner.d.ts +26 -0
  624. package/dist/types/components/status/bq-status.d.ts +21 -3
  625. package/dist/types/components/step-item/bq-step-item.d.ts +32 -0
  626. package/dist/types/components/steps/bq-steps.d.ts +27 -0
  627. package/dist/types/components/switch/bq-switch.d.ts +43 -0
  628. package/dist/types/components/tab/bq-tab.d.ts +47 -5
  629. package/dist/types/components/tab-group/bq-tab-group.d.ts +34 -8
  630. package/dist/types/components/tag/bq-tag.d.ts +49 -0
  631. package/dist/types/components/textarea/bq-textarea.d.ts +74 -0
  632. package/dist/types/components/toast/bq-toast.d.ts +47 -2
  633. package/dist/types/components/tooltip/bq-tooltip.d.ts +40 -0
  634. package/dist/types/components.d.ts +5795 -71
  635. package/dist/types/global.d.ts +26 -0
  636. package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/packages/beeq/.stencil/tailwind.config.d.ts +104 -78
  637. package/dist/types/shared/utils/index.d.ts +1 -0
  638. package/dist/types/shared/utils/isClient.d.ts +5 -0
  639. package/dist/types/stencil-public-runtime.d.ts +2 -0
  640. package/dist/types/tools/generate-custom-elements-json.d.ts +1 -1
  641. package/package.json +24 -24
  642. package/dist/beeq/p-01df4baa.js +0 -1826
  643. package/dist/beeq/p-01df4baa.js.map +0 -1
  644. package/dist/beeq/p-01fe8efb.entry.js +0 -182
  645. package/dist/beeq/p-01fe8efb.entry.js.map +0 -1
  646. package/dist/beeq/p-03373320.entry.js +0 -318
  647. package/dist/beeq/p-03373320.entry.js.map +0 -1
  648. package/dist/beeq/p-03c586df.entry.js +0 -292
  649. package/dist/beeq/p-03c586df.entry.js.map +0 -1
  650. package/dist/beeq/p-0a981080.entry.js +0 -154
  651. package/dist/beeq/p-0a981080.entry.js.map +0 -1
  652. package/dist/beeq/p-0ce76c54.entry.js +0 -103
  653. package/dist/beeq/p-0ce76c54.entry.js.map +0 -1
  654. package/dist/beeq/p-119526cc.entry.js +0 -272
  655. package/dist/beeq/p-119526cc.entry.js.map +0 -1
  656. package/dist/beeq/p-16c6ece5.entry.js.map +0 -1
  657. package/dist/beeq/p-3043c826.entry.js.map +0 -1
  658. package/dist/beeq/p-38e70f78.entry.js +0 -133
  659. package/dist/beeq/p-38e70f78.entry.js.map +0 -1
  660. package/dist/beeq/p-398bfb48.entry.js +0 -242
  661. package/dist/beeq/p-398bfb48.entry.js.map +0 -1
  662. package/dist/beeq/p-3fd0d92d.js +0 -1233
  663. package/dist/beeq/p-3fd0d92d.js.map +0 -1
  664. package/dist/beeq/p-41ac1d84.entry.js +0 -195
  665. package/dist/beeq/p-41ac1d84.entry.js.map +0 -1
  666. package/dist/beeq/p-4eabcd51.entry.js +0 -82
  667. package/dist/beeq/p-4eabcd51.entry.js.map +0 -1
  668. package/dist/beeq/p-5ff6621d.entry.js +0 -134
  669. package/dist/beeq/p-5ff6621d.entry.js.map +0 -1
  670. package/dist/beeq/p-60cbc966.entry.js +0 -85
  671. package/dist/beeq/p-60cbc966.entry.js.map +0 -1
  672. package/dist/beeq/p-67a7b85a.entry.js +0 -528
  673. package/dist/beeq/p-67a7b85a.entry.js.map +0 -1
  674. package/dist/beeq/p-68ff188d.entry.js +0 -144
  675. package/dist/beeq/p-68ff188d.entry.js.map +0 -1
  676. package/dist/beeq/p-69c766a3.entry.js +0 -213
  677. package/dist/beeq/p-69c766a3.entry.js.map +0 -1
  678. package/dist/beeq/p-7d789231.entry.js +0 -347
  679. package/dist/beeq/p-7d789231.entry.js.map +0 -1
  680. package/dist/beeq/p-8512b8ee.entry.js +0 -455
  681. package/dist/beeq/p-8512b8ee.entry.js.map +0 -1
  682. package/dist/beeq/p-8b16f130.entry.js +0 -210
  683. package/dist/beeq/p-8b16f130.entry.js.map +0 -1
  684. package/dist/beeq/p-9cab14ee.entry.js +0 -119
  685. package/dist/beeq/p-9cab14ee.entry.js.map +0 -1
  686. package/dist/beeq/p-a23b23c4.entry.js +0 -213
  687. package/dist/beeq/p-a23b23c4.entry.js.map +0 -1
  688. package/dist/beeq/p-aacaaa35.entry.js +0 -209
  689. package/dist/beeq/p-aacaaa35.entry.js.map +0 -1
  690. package/dist/beeq/p-b2df1479.entry.js +0 -270
  691. package/dist/beeq/p-b2df1479.entry.js.map +0 -1
  692. package/dist/beeq/p-b48788b5.js +0 -72
  693. package/dist/beeq/p-b48788b5.js.map +0 -1
  694. package/dist/beeq/p-b77b52f2.entry.js +0 -188
  695. package/dist/beeq/p-b77b52f2.entry.js.map +0 -1
  696. package/dist/beeq/p-c6cbb8e2.js +0 -16
  697. package/dist/beeq/p-c83bc7fd.entry.js +0 -157
  698. package/dist/beeq/p-c83bc7fd.entry.js.map +0 -1
  699. package/dist/beeq/p-cb2b0014.entry.js +0 -363
  700. package/dist/beeq/p-cb2b0014.entry.js.map +0 -1
  701. package/dist/beeq/p-cb917e68.entry.js +0 -177
  702. package/dist/beeq/p-cb917e68.entry.js.map +0 -1
  703. package/dist/beeq/p-cfb8829b.entry.js.map +0 -1
  704. package/dist/beeq/p-d7067dae.entry.js +0 -151
  705. package/dist/beeq/p-d7067dae.entry.js.map +0 -1
  706. package/dist/beeq/p-d7dc7086.entry.js +0 -267
  707. package/dist/beeq/p-d7dc7086.entry.js.map +0 -1
  708. package/dist/beeq/p-e707bd79.entry.js +0 -458
  709. package/dist/beeq/p-e707bd79.entry.js.map +0 -1
  710. package/dist/beeq/p-e76e346b.entry.js +0 -334
  711. package/dist/beeq/p-e76e346b.entry.js.map +0 -1
  712. package/dist/beeq/p-edfd9767.js +0 -31
  713. package/dist/beeq/p-edfd9767.js.map +0 -1
  714. package/dist/beeq/p-f11a3beb.entry.js +0 -90
  715. package/dist/beeq/p-f11a3beb.entry.js.map +0 -1
  716. package/dist/beeq/p-f1d6a960.entry.js +0 -271
  717. package/dist/beeq/p-f1d6a960.entry.js.map +0 -1
  718. package/dist/beeq/p-f350516b.entry.js +0 -154
  719. package/dist/beeq/p-f350516b.entry.js.map +0 -1
  720. package/dist/beeq/p-f979d79a.entry.js +0 -120
  721. package/dist/beeq/p-f979d79a.entry.js.map +0 -1
  722. package/dist/beeq/p-faa3be41.entry.js +0 -159
  723. package/dist/beeq/p-faa3be41.entry.js.map +0 -1
  724. package/dist/beeq/p-fe278ecc.entry.js +0 -267
  725. package/dist/beeq/p-fe278ecc.entry.js.map +0 -1
  726. package/dist/cjs/app-globals-b11284b9.js.map +0 -1
  727. package/dist/cjs/assetsPath-2885c838.js.map +0 -1
  728. package/dist/cjs/cssVariables-dd190bc2.js.map +0 -1
  729. package/dist/cjs/index-34edf639.js.map +0 -1
  730. package/dist/collection/global/scripts/global.js.map +0 -1
  731. package/dist/components/bq-badge2.js +0 -125
  732. package/dist/components/bq-badge2.js.map +0 -1
  733. package/dist/components/bq-button2.js +0 -208
  734. package/dist/components/bq-button2.js.map +0 -1
  735. package/dist/components/bq-divider2.js +0 -159
  736. package/dist/components/bq-divider2.js.map +0 -1
  737. package/dist/components/bq-dropdown2.js +0 -155
  738. package/dist/components/bq-dropdown2.js.map +0 -1
  739. package/dist/components/bq-icon2.js +0 -315
  740. package/dist/components/bq-icon2.js.map +0 -1
  741. package/dist/components/bq-option-list2.js +0 -76
  742. package/dist/components/bq-option-list2.js.map +0 -1
  743. package/dist/components/bq-panel2.js +0 -135
  744. package/dist/components/bq-panel2.js.map +0 -1
  745. package/dist/components/bq-steps.types.js +0 -10
  746. package/dist/components/bq-steps.types.js.map +0 -1
  747. package/dist/components/bq-tab.types.js +0 -11
  748. package/dist/components/bq-tab.types.js.map +0 -1
  749. package/dist/components/bq-tag2.js +0 -271
  750. package/dist/components/bq-tag2.js.map +0 -1
  751. package/dist/components/bq-tooltip2.js +0 -178
  752. package/dist/components/bq-tooltip2.js.map +0 -1
  753. package/dist/components/cssVariables.js +0 -34
  754. package/dist/components/cssVariables.js.map +0 -1
  755. package/dist/components/debounce.js +0 -73
  756. package/dist/components/debounce.js.map +0 -1
  757. package/dist/components/event.js +0 -18
  758. package/dist/components/event.js.map +0 -1
  759. package/dist/components/index2.js +0 -2138
  760. package/dist/components/index2.js.map +0 -1
  761. package/dist/components/isDefined.js +0 -19
  762. package/dist/components/isDefined.js.map +0 -1
  763. package/dist/components/isHTMLElement.js +0 -17
  764. package/dist/components/isHTMLElement.js.map +0 -1
  765. package/dist/components/isNil.js +0 -16
  766. package/dist/components/isNil.js.map +0 -1
  767. package/dist/components/isString.js +0 -21
  768. package/dist/components/isString.js.map +0 -1
  769. package/dist/components/props.js +0 -27
  770. package/dist/components/props.js.map +0 -1
  771. package/dist/components/slot.js +0 -85
  772. package/dist/components/slot.js.map +0 -1
  773. package/dist/components/transition.js +0 -131
  774. package/dist/components/transition.js.map +0 -1
  775. package/dist/esm/app-globals-de5a646b.js.map +0 -1
  776. package/dist/esm/assetsPath-630898a9.js.map +0 -1
  777. package/dist/esm/cssVariables-000c23ad.js.map +0 -1
  778. package/dist/esm/index-033f1efb.js.map +0 -1
  779. package/dist/types/global/scripts/global.d.ts +0 -18
  780. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/packages/beeq/.stencil/packages/beeq/stencil.config.d.ts +0 -0
@@ -5,6 +5,57 @@
5
5
  import { h } from "@stencil/core";
6
6
  import { debounce, hasSlotContent, isDefined, isHTMLElement, isNil } from "../../shared/utils";
7
7
  /**
8
+ * The Input component is a fundamental user interface element that allows users to input data by typing it into a text field.
9
+ * It is commonly used in web and mobile applications for various purposes, such as collecting user information, search inputs, and login forms.
10
+ *
11
+ * @example How to use it
12
+ * ```html
13
+ * <bq-input name="username" label="Username" placeholder="Enter your username"></bq-input>
14
+ * ```
15
+ *
16
+ * @documentation https://www.beeq.design/3d466e231/p/980362-input
17
+ * @status stable
18
+ *
19
+ * @dependency bq-button
20
+ * @dependency bq-icon
21
+ *
22
+ * @attr {string} autocapitalize - Controls whether or not the input field should be capitalized and how.
23
+ * @attr {string} autocomplete - Specifies whether or not the input field should have autocomplete enabled.
24
+ * @attr {string} autocorrect - Controls whether or not the input field should have autocorrect enabled.
25
+ * @attr {boolean} autofocus - If true, the input will be focused on component render.
26
+ * @attr {string} clear-button-label - The clear button aria label.
27
+ * @attr {number} debounce-time - The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.
28
+ * @attr {boolean} disabled - Indicates whether the input is disabled or not.
29
+ * @attr {boolean} disable-clear - If true, the clear button won't be displayed.
30
+ * @attr {string} form - The ID of the form that the input field belongs to.
31
+ * @attr {string} form-validation-message - The native form validation message (mandatory if `required` is set).
32
+ * @attr {string} inputmode - The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.
33
+ * @attr {number | string} max - The maximum value that the input field can accept.
34
+ * @attr {number} maxlength - The maximum number of characters that the input field can accept.
35
+ * @attr {number | string} min - The minimum value that the input field can accept.
36
+ * @attr {number} minlength - The minimum number of characters that the input field can accept.
37
+ * @attr {string} name - The input field name.
38
+ * @attr {string} pattern - Specifies a regular expression the form control's value should match.
39
+ * @attr {string} placeholder - The input placeholder text value.
40
+ * @attr {boolean} readonly - If true, the input field cannot be modified.
41
+ * @attr {boolean} required - Indicates whether or not the input field is required to be filled out before submitting the form.
42
+ * @attr {number | 'any'} step - A number that specifies the granularity that the value must adhere to.
43
+ * @attr {string} type - The type attribute specifies the type of input field to display.
44
+ * @attr {'none' | 'error' | 'warning' | 'success'} validation-status - The validation status of the input.
45
+ * @attr {string | number | string[]} value - The input value, it can be used to reset the input to a previous value.
46
+ *
47
+ * @event bqBlur - Callback handler emitted when the input loses focus.
48
+ * @event bqChange - Callback handler emitted when the input value has changed and the input loses focus.
49
+ * @event bqClear - Callback handler emitted when the input value has been cleared.
50
+ * @event bqFocus - Callback handler emitted when the input has received focus.
51
+ * @event bqInput - Callback handler emitted when the input value changes.
52
+ *
53
+ * @slot label - The label slot container.
54
+ * @slot prefix - The prefix slot container.
55
+ * @slot suffix - The suffix slot container.
56
+ * @slot helper-text - The helper text slot container.
57
+ * @slot clear-icon - The clear icon slot container.
58
+ *
8
59
  * @part base - The component's base wrapper.
9
60
  * @part button - The native HTML button used under the hood in the clear button.
10
61
  * @part clear-btn - The clear button.
@@ -14,6 +65,27 @@ import { debounce, hasSlotContent, isDefined, isHTMLElement, isNil } from "../..
14
65
  * @part input - The native HTML input element used under the hood.
15
66
  * @part prefix - The prefix slot container.
16
67
  * @part suffix - The suffix slot container.
68
+ *
69
+ * @cssprop --bq-input--background-color - Input background color
70
+ * @cssprop --bq-input--border-color - Input border color
71
+ * @cssprop --bq-input--border-color-focus - Input border color on focus
72
+ * @cssprop --bq-input--border-radius - Input border radius
73
+ * @cssprop --bq-input--border-width - Input border width
74
+ * @cssprop --bq-input--border-style - Input border style
75
+ * @cssprop --bq-input--gap - Gap between input content and prefix/suffix
76
+ * @cssprop --bq-input--helper-margin-top - Helper text margin top
77
+ * @cssprop --bq-input--helper-text-color - Helper text color
78
+ * @cssprop --bq-input--helper-text-size - Helper text size
79
+ * @cssprop --bq-input--icon-size - Icon size to use in prefix/suffix and clear button
80
+ * @cssprop --bq-input--label-margin-bottom - Input label margin bottom
81
+ * @cssprop --bq-input--label-text-color - Input label text color
82
+ * @cssprop --bq-input--label-text-size - Input label text size
83
+ * @cssprop --bq-input--padding-start - Input padding start
84
+ * @cssprop --bq-input--padding-end - Input padding end
85
+ * @cssprop --bq-input--paddingY - Input padding top and bottom
86
+ * @cssprop --bq-input--text-color - Input text color
87
+ * @cssprop --bq-input--text-size - Input text size
88
+ * @cssprop --bq-input--text-placeholder-color - Input placeholder text color
17
89
  */
18
90
  export class BqInput {
19
91
  constructor() {
@@ -31,6 +103,7 @@ export class BqInput {
31
103
  this.disabled = false;
32
104
  this.disableClear = false;
33
105
  this.form = undefined;
106
+ this.formValidationMessage = undefined;
34
107
  this.inputmode = undefined;
35
108
  this.max = undefined;
36
109
  this.maxlength = undefined;
@@ -62,13 +135,14 @@ export class BqInput {
62
135
  // Prop lifecycle events
63
136
  // =======================
64
137
  handleValueChange() {
65
- if (Array.isArray(this.value)) {
66
- this.hasValue = this.value.some((val) => val.length > 0);
67
- this.internals.setFormValue(this.value.join(','));
138
+ const { internals, value } = this;
139
+ if (Array.isArray(value)) {
140
+ this.hasValue = value.some((val) => val.length > 0);
141
+ this.internals.setFormValue(value.join(','));
68
142
  return;
69
143
  }
70
- this.hasValue = isDefined(this.value);
71
- this.internals.setFormValue(`${this.value}`);
144
+ this.hasValue = isDefined(value);
145
+ internals.setFormValue(!isNil(value) ? `${value}` : undefined);
72
146
  }
73
147
  // Events section
74
148
  // Requires JSDocs for public API documentation
@@ -95,6 +169,10 @@ export class BqInput {
95
169
  componentWillLoad() {
96
170
  this.handleValueChange();
97
171
  }
172
+ formAssociatedCallback() {
173
+ this.setFormValue(this.value?.toString());
174
+ this.updateFormValidity();
175
+ }
98
176
  formResetCallback() {
99
177
  if (isNil(this.value))
100
178
  return;
@@ -129,7 +207,6 @@ export class BqInput {
129
207
  if (!isHTMLElement(ev.target, 'input'))
130
208
  return;
131
209
  this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;
132
- this.internals.setFormValue(`${this.value}`);
133
210
  this.debounceBqInput = debounce(() => {
134
211
  this.bqInput.emit({ value: this.value, el: this.el });
135
212
  }, this.debounceTime);
@@ -141,18 +218,21 @@ export class BqInput {
141
218
  if (!isHTMLElement(ev.target, 'input'))
142
219
  return;
143
220
  this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;
144
- this.internals.setFormValue(`${this.value}`);
221
+ // Update form value and validity
222
+ this.setFormValue(`${this.value}`);
223
+ this.updateFormValidity();
145
224
  this.bqChange.emit({ value: this.value, el: this.el });
146
225
  };
147
226
  handleClear = () => {
148
227
  if (this.disabled)
149
228
  return;
150
- const { inputElem, internals } = this;
229
+ const { inputElem, setFormValue, updateFormValidity } = this;
151
230
  // Clear input element value
152
231
  inputElem.value = '';
153
232
  this.value = inputElem.value;
154
- // Update associated form control value
155
- internals.setFormValue(undefined);
233
+ // Set form value to empty string abd update validity
234
+ setFormValue(this.value);
235
+ updateFormValidity();
156
236
  };
157
237
  handleClearClick = (ev) => {
158
238
  ev.stopPropagation();
@@ -165,6 +245,23 @@ export class BqInput {
165
245
  // Refocus input element
166
246
  inputElem.focus();
167
247
  };
248
+ setFormValue = (value) => {
249
+ this.internals.setFormValue(!isNil(value) ? `${value}` : undefined);
250
+ };
251
+ updateFormValidity = () => {
252
+ const { formValidationMessage, internals, required, value, inputElem } = this;
253
+ // Clear the validity state
254
+ internals?.states.clear();
255
+ if (required && (!value || value.toString().trim() === '')) {
256
+ // Set validity state to invalid
257
+ internals?.states.add('invalid');
258
+ internals?.setValidity({ valueMissing: true }, formValidationMessage, inputElem);
259
+ return;
260
+ }
261
+ // Set validity state to valid if textarea has value or is not required
262
+ internals?.states.add('valid');
263
+ internals?.setValidity({});
264
+ };
168
265
  handleLabelSlotChange = () => {
169
266
  this.hasLabel = hasSlotContent(this.labelElem);
170
267
  };
@@ -181,19 +278,19 @@ export class BqInput {
181
278
  // Always the last one in the class.
182
279
  // ===================================
183
280
  render() {
184
- return (h("div", { key: '6456eb631d27ddd492c0d91d0b694f51694f2c76', class: "bq-input", part: "base" }, h("label", { key: '99261b13e0b8e16bb43d94b216e90668adb6ac06', class: { 'bq-input--label': true, '!hidden': !this.hasLabel }, "aria-label": this.name || this.fallbackInputId, htmlFor: this.name || this.fallbackInputId, ref: (labelElem) => (this.labelElem = labelElem), part: "label" }, h("slot", { key: '3723c9a8f0aecbf621a4f198f7d4f738b35c3384', name: "label", onSlotchange: this.handleLabelSlotChange })), h("div", { key: '3fe4343a4e09f1fcdd70b6af6ff2e2eebe112534', class: {
281
+ return (h("div", { key: '9023d1623163d781145e9f165c10b1801579d7bb', class: "bq-input", part: "base" }, h("label", { key: 'c041591b62aab8cbb8669bf4e320e9559288502d', class: { 'bq-input--label': true, '!hidden': !this.hasLabel }, "aria-label": this.name || this.fallbackInputId, htmlFor: this.name || this.fallbackInputId, ref: (labelElem) => (this.labelElem = labelElem), part: "label" }, h("slot", { key: 'b6305dd60716d998e9e21a6cabb3de991278b1c5', name: "label", onSlotchange: this.handleLabelSlotChange })), h("div", { key: '1ea760cc4a6d4ef461b92f9d72e4f5805095986b', class: {
185
282
  'bq-input--control': true,
186
283
  [`validation-${this.validationStatus}`]: true,
187
284
  disabled: this.disabled,
188
- }, part: "control" }, h("span", { key: '4e64970f78b42b4bcf44f6de7073db2324d38765', class: { 'bq-input--control__prefix': true, '!hidden': !this.hasPrefix }, ref: (spanElem) => (this.prefixElem = spanElem), part: "prefix" }, h("slot", { key: 'fc2e6bb67df93c3a87fe6dad685820232d7246ec', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: 'aa0c14e4ca2e93cde4b7f230b12f7db0b5bf2230', id: this.name || this.fallbackInputId, class: "bq-input--control__input", "aria-disabled": this.disabled ? 'true' : 'false', autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, disabled: this.disabled, form: this.form, inputMode: this.inputmode, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, ref: (inputElem) => (this.inputElem = inputElem), readOnly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, part: "input",
285
+ }, part: "control" }, h("span", { key: '7834d239f2973659d5525aa0a543071ef5947839', class: { 'bq-input--control__prefix': true, '!hidden': !this.hasPrefix }, ref: (spanElem) => (this.prefixElem = spanElem), part: "prefix" }, h("slot", { key: '9cbe4b1892c9b1aca36f63bd2f74d5f96bcd4869', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: '66d643d8c337f767fe774671f4eb31521b6000a6', id: this.name || this.fallbackInputId, class: "bq-input--control__input", "aria-disabled": this.disabled ? 'true' : 'false', autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, disabled: this.disabled, form: this.form, inputMode: this.inputmode, max: this.max, maxLength: this.maxlength, min: this.min, minLength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, ref: (inputElem) => (this.inputElem = inputElem), readOnly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, part: "input",
189
286
  // Events
190
287
  onBlur: this.handleBlur, onChange: this.handleChange, onFocus: this.handleFocus, onInput: this.handleInput }), this.hasValue && !this.disabled && !this.disableClear && (
191
288
  // The clear button will be visible as long as the input has a value
192
289
  // and the parent group is hovered or has focus-within
193
- h("bq-button", { key: '438ee180851fbe11732c1408a751fb010b6b58cd', class: "bq-input--control__clear ms-[--bq-input--gap] hidden", appearance: "text", "aria-label": this.clearButtonLabel, size: "small", onBqClick: this.handleClearClick, part: "clear-btn", exportparts: "button" }, h("slot", { key: '009efda0f6ae4ded256254418595ec3563af5784', name: "clear-icon" }, h("bq-icon", { key: '9cdd1ec62e9affa29840f0c0981f962df1aa7827', name: "x-circle", class: "flex" })))), h("span", { key: '263c324984728cf8b4877eebf2256024afab618e', class: { 'bq-input--control__suffix': true, '!hidden': !this.hasSuffix }, ref: (spanElem) => (this.suffixElem = spanElem), part: "suffix" }, h("slot", { key: 'b35dde7b503e64d6e30847c47cbfadbeb52d591a', name: "suffix", onSlotchange: this.handleSuffixSlotChange }))), h("div", { key: '6e7ea829ab13d136fe457382b2d8d153de1b0d27', class: {
290
+ h("bq-button", { key: 'd89714264727c3b92dc1eaa99f777a286a34bb84', class: "bq-input--control__clear ms-[--bq-input--gap] hidden", appearance: "text", "aria-label": this.clearButtonLabel, size: "small", onBqClick: this.handleClearClick, part: "clear-btn", exportparts: "button" }, h("slot", { key: 'c48db6791f3445ef798239a4aa6fd6b2a287c495', name: "clear-icon" }, h("bq-icon", { key: 'e40f03460ade9ca04c70a9e17efd90002672f63b', name: "x-circle", class: "flex" })))), h("span", { key: 'e1b7a2e3bbdb6d3dbc51b06953e0d710096a66fc', class: { 'bq-input--control__suffix': true, '!hidden': !this.hasSuffix }, ref: (spanElem) => (this.suffixElem = spanElem), part: "suffix" }, h("slot", { key: '1b03b915ed6732190bd9def47f4529045487b706', name: "suffix", onSlotchange: this.handleSuffixSlotChange }))), h("div", { key: 'ff4e0fe9f59a9aa79989b91f953f793d9c2d22ca', class: {
194
291
  [`bq-input--helper-text validation-${this.validationStatus}`]: true,
195
292
  '!hidden': !this.hasHelperText,
196
- }, ref: (divElem) => (this.helperTextElem = divElem), part: "helper-text" }, h("slot", { key: 'aefb690ab249d44658abbdd2b4e17bc578d76088', name: "helper-text", onSlotchange: this.handleHelperTextSlotChange }))));
293
+ }, ref: (divElem) => (this.helperTextElem = divElem), part: "helper-text" }, h("slot", { key: '07b7efcfce1484d15315050eac7c77d6fcb0b8ad', name: "helper-text", onSlotchange: this.handleHelperTextSlotChange }))));
197
294
  }
198
295
  static get is() { return "bq-input"; }
199
296
  static get encapsulation() { return "shadow"; }
@@ -225,6 +322,8 @@ export class BqInput {
225
322
  "tags": [],
226
323
  "text": "Controls whether or not the input field should be capitalized and how.\nPossible values are 'off', 'none', 'on', 'sentences', 'words', and 'characters'.\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize"
227
324
  },
325
+ "getter": false,
326
+ "setter": false,
228
327
  "attribute": "autocapitalize",
229
328
  "reflect": true,
230
329
  "defaultValue": "'off'"
@@ -243,6 +342,8 @@ export class BqInput {
243
342
  "tags": [],
244
343
  "text": "Specifies whether or not the input field should have autocomplete enabled.\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values"
245
344
  },
345
+ "getter": false,
346
+ "setter": false,
246
347
  "attribute": "autocomplete",
247
348
  "reflect": true,
248
349
  "defaultValue": "'off'"
@@ -261,6 +362,8 @@ export class BqInput {
261
362
  "tags": [],
262
363
  "text": "Controls whether or not the input field should have autocorrect enabled.\nPossible values are 'on' and 'off'."
263
364
  },
365
+ "getter": false,
366
+ "setter": false,
264
367
  "attribute": "autocorrect",
265
368
  "reflect": true,
266
369
  "defaultValue": "'off'"
@@ -279,6 +382,8 @@ export class BqInput {
279
382
  "tags": [],
280
383
  "text": "If true, the input will be focused on component render"
281
384
  },
385
+ "getter": false,
386
+ "setter": false,
282
387
  "attribute": "autofocus",
283
388
  "reflect": true
284
389
  },
@@ -296,6 +401,8 @@ export class BqInput {
296
401
  "tags": [],
297
402
  "text": "The clear button aria label"
298
403
  },
404
+ "getter": false,
405
+ "setter": false,
299
406
  "attribute": "clear-button-label",
300
407
  "reflect": true,
301
408
  "defaultValue": "'Clear value'"
@@ -314,6 +421,8 @@ export class BqInput {
314
421
  "tags": [],
315
422
  "text": "The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.\nA value of 0 means no debouncing will occur."
316
423
  },
424
+ "getter": false,
425
+ "setter": false,
317
426
  "attribute": "debounce-time",
318
427
  "reflect": true,
319
428
  "defaultValue": "0"
@@ -332,6 +441,8 @@ export class BqInput {
332
441
  "tags": [],
333
442
  "text": "Indicates whether the input is disabled or not.\nIf `true`, the input is disabled and cannot be interacted with."
334
443
  },
444
+ "getter": false,
445
+ "setter": false,
335
446
  "attribute": "disabled",
336
447
  "reflect": false,
337
448
  "defaultValue": "false"
@@ -350,6 +461,8 @@ export class BqInput {
350
461
  "tags": [],
351
462
  "text": "If true, the clear button won't be displayed"
352
463
  },
464
+ "getter": false,
465
+ "setter": false,
353
466
  "attribute": "disable-clear",
354
467
  "reflect": true,
355
468
  "defaultValue": "false"
@@ -368,9 +481,30 @@ export class BqInput {
368
481
  "tags": [],
369
482
  "text": "The ID of the form that the input field belongs to."
370
483
  },
484
+ "getter": false,
485
+ "setter": false,
371
486
  "attribute": "form",
372
487
  "reflect": true
373
488
  },
489
+ "formValidationMessage": {
490
+ "type": "string",
491
+ "mutable": true,
492
+ "complexType": {
493
+ "original": "string",
494
+ "resolved": "string",
495
+ "references": {}
496
+ },
497
+ "required": false,
498
+ "optional": true,
499
+ "docs": {
500
+ "tags": [],
501
+ "text": "The native form validation message (mandatory if `required` is set)"
502
+ },
503
+ "getter": false,
504
+ "setter": false,
505
+ "attribute": "form-validation-message",
506
+ "reflect": false
507
+ },
374
508
  "inputmode": {
375
509
  "type": "string",
376
510
  "mutable": false,
@@ -385,6 +519,8 @@ export class BqInput {
385
519
  "tags": [],
386
520
  "text": "The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.\nThis allows a browser to display an appropriate virtual keyboard while editing.\nPossible values are 'none', 'text', 'decimal', 'numeric', 'tel', 'search', 'email', 'url', and 'date'."
387
521
  },
522
+ "getter": false,
523
+ "setter": false,
388
524
  "attribute": "inputmode",
389
525
  "reflect": false
390
526
  },
@@ -402,6 +538,8 @@ export class BqInput {
402
538
  "tags": [],
403
539
  "text": "The maximum value that the input field can accept.\nOnly applies to date and number input types."
404
540
  },
541
+ "getter": false,
542
+ "setter": false,
405
543
  "attribute": "max",
406
544
  "reflect": true
407
545
  },
@@ -419,6 +557,8 @@ export class BqInput {
419
557
  "tags": [],
420
558
  "text": "The maximum number of characters that the input field can accept."
421
559
  },
560
+ "getter": false,
561
+ "setter": false,
422
562
  "attribute": "maxlength",
423
563
  "reflect": true
424
564
  },
@@ -436,6 +576,8 @@ export class BqInput {
436
576
  "tags": [],
437
577
  "text": "The minimum value that the input field can accept.\nOnly applies to date and number input types."
438
578
  },
579
+ "getter": false,
580
+ "setter": false,
439
581
  "attribute": "min",
440
582
  "reflect": true
441
583
  },
@@ -453,6 +595,8 @@ export class BqInput {
453
595
  "tags": [],
454
596
  "text": "The minimum number of characters that the input field can accept."
455
597
  },
598
+ "getter": false,
599
+ "setter": false,
456
600
  "attribute": "minlength",
457
601
  "reflect": true
458
602
  },
@@ -470,6 +614,8 @@ export class BqInput {
470
614
  "tags": [],
471
615
  "text": "The input field name."
472
616
  },
617
+ "getter": false,
618
+ "setter": false,
473
619
  "attribute": "name",
474
620
  "reflect": true
475
621
  },
@@ -487,6 +633,8 @@ export class BqInput {
487
633
  "tags": [],
488
634
  "text": "Specifies a regular expression the form control's value should match.\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern"
489
635
  },
636
+ "getter": false,
637
+ "setter": false,
490
638
  "attribute": "pattern",
491
639
  "reflect": true
492
640
  },
@@ -504,6 +652,8 @@ export class BqInput {
504
652
  "tags": [],
505
653
  "text": "The input placeholder text value"
506
654
  },
655
+ "getter": false,
656
+ "setter": false,
507
657
  "attribute": "placeholder",
508
658
  "reflect": true
509
659
  },
@@ -521,6 +671,8 @@ export class BqInput {
521
671
  "tags": [],
522
672
  "text": "If true, the input field cannot be modified."
523
673
  },
674
+ "getter": false,
675
+ "setter": false,
524
676
  "attribute": "readonly",
525
677
  "reflect": true
526
678
  },
@@ -538,6 +690,8 @@ export class BqInput {
538
690
  "tags": [],
539
691
  "text": "Indicates whether or not the input field is required to be filled out before submitting the form."
540
692
  },
693
+ "getter": false,
694
+ "setter": false,
541
695
  "attribute": "required",
542
696
  "reflect": true
543
697
  },
@@ -555,6 +709,8 @@ export class BqInput {
555
709
  "tags": [],
556
710
  "text": "A number that specifies the granularity that the value must adhere to.\nValid for date, month, week, time, datetime-local, number, and range.\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step"
557
711
  },
712
+ "getter": false,
713
+ "setter": false,
558
714
  "attribute": "step",
559
715
  "reflect": true
560
716
  },
@@ -578,6 +734,8 @@ export class BqInput {
578
734
  "tags": [],
579
735
  "text": "The type attribute specifies the type of input field to display.\nPossible values are 'text', 'password', 'email', 'number', 'tel', 'search', 'url', and more.\nSee: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types"
580
736
  },
737
+ "getter": false,
738
+ "setter": false,
581
739
  "attribute": "type",
582
740
  "reflect": true,
583
741
  "defaultValue": "'text'"
@@ -605,6 +763,8 @@ export class BqInput {
605
763
  }],
606
764
  "text": "The validation status of the input."
607
765
  },
766
+ "getter": false,
767
+ "setter": false,
608
768
  "attribute": "validation-status",
609
769
  "reflect": true,
610
770
  "defaultValue": "'none'"
@@ -629,6 +789,8 @@ export class BqInput {
629
789
  "tags": [],
630
790
  "text": "The input value, it can be used to reset the input to a previous value"
631
791
  },
792
+ "getter": false,
793
+ "setter": false,
632
794
  "attribute": "value",
633
795
  "reflect": true
634
796
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bq-input.js","sourceRoot":"","sources":["../../../../../../src/components/input/bq-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGhH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAa,MAAM,oBAAoB,CAAC;AAE1G;;;;;;;;;;GAUG;AASH,MAAM,OAAO,OAAO;;6BAuBO,KAAK;wBACV,KAAK;yBACJ,KAAK;yBACL,KAAK;wBACN,KAAK;8BAUyB,KAAK;4BAMP,KAAK;2BAMA,KAAK;;gCAMb,aAAa;4BAMF,CAAC;wBAMX,KAAK;4BAGV,KAAK;;;;;;;;;;;;;oBA4DF,MAAM;gCAYY,MAAM;;;IA7IpE,iBAAiB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,CAAC,EAAE,IAAI;oBACnE,SAAS,EAAE,CAAC,IAAI,CAAC,aAAa;iBAC/B,EACD,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,EACjD,IAAI,EAAC,aAAa;gBAElB,6DAAM,IAAI,EAAC,aAAa,EAAC,YAAY,EAAE,IAAI,CAAC,0BAA0B,GAAI,CACtE,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { AttachInternals, Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\n\nimport { TInputType, TInputValidation, TInputValue } from './bq-input.types';\nimport { debounce, hasSlotContent, isDefined, isHTMLElement, isNil, TDebounce } from '../../shared/utils';\n\n/**\n * @part base - The component's base wrapper.\n * @part button - The native HTML button used under the hood in the clear button.\n * @part clear-btn - The clear button.\n * @part control - The input control wrapper.\n * @part helper-text - The helper text slot container.\n * @part label - The label slot container.\n * @part input - The native HTML input element used under the hood.\n * @part prefix - The prefix slot container.\n * @part suffix - The suffix slot container.\n */\n@Component({\n tag: 'bq-input',\n styleUrl: './scss/bq-input.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqInput {\n // Own Properties\n // ====================\n\n private helperTextElem?: HTMLElement;\n private inputElem?: HTMLInputElement;\n private labelElem?: HTMLElement;\n private prefixElem?: HTMLElement;\n private suffixElem?: HTMLElement;\n\n private debounceBqInput: TDebounce<void>;\n private fallbackInputId = 'input';\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqInputElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() hasHelperText = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n @State() hasValue = false;\n\n // Public Property API\n // ========================\n\n /**\n * Controls whether or not the input field should be capitalized and how.\n * Possible values are 'off', 'none', 'on', 'sentences', 'words', and 'characters'.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize\n */\n @Prop({ reflect: true }) autocapitalize: string = 'off';\n\n /**\n * Specifies whether or not the input field should have autocomplete enabled.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values\n */\n @Prop({ reflect: true }) autocomplete: string = 'off';\n\n /**\n * Controls whether or not the input field should have autocorrect enabled.\n * Possible values are 'on' and 'off'.\n */\n @Prop({ reflect: true }) autocorrect: 'on' | 'off' = 'off';\n\n /** If true, the input will be focused on component render */\n @Prop({ reflect: true }) autofocus: boolean;\n\n /** The clear button aria label */\n @Prop({ reflect: true }) clearButtonLabel? = 'Clear value';\n\n /**\n * The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.\n * A value of 0 means no debouncing will occur.\n */\n @Prop({ reflect: true, mutable: true }) debounceTime? = 0;\n\n /**\n * Indicates whether the input is disabled or not.\n * If `true`, the input is disabled and cannot be interacted with.\n */\n @Prop({ mutable: true }) disabled?: boolean = false;\n\n /** If true, the clear button won't be displayed */\n @Prop({ reflect: true }) disableClear? = false;\n\n /** The ID of the form that the input field belongs to. */\n @Prop({ reflect: true }) form?: string;\n\n /**\n * The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.\n * This allows a browser to display an appropriate virtual keyboard while editing.\n * Possible values are 'none', 'text', 'decimal', 'numeric', 'tel', 'search', 'email', 'url', and 'date'.\n */\n @Prop() inputmode?: string;\n\n /**\n * The maximum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) max?: number | string;\n\n /** The maximum number of characters that the input field can accept. */\n @Prop({ reflect: true }) maxlength: number;\n\n /**\n * The minimum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) min?: number | string;\n\n /** The minimum number of characters that the input field can accept. */\n @Prop({ reflect: true }) minlength: number;\n\n /** The input field name. */\n @Prop({ reflect: true }) name!: string;\n\n /**\n * Specifies a regular expression the form control's value should match.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern\n */\n @Prop({ reflect: true }) pattern?: string;\n\n /** The input placeholder text value */\n @Prop({ reflect: true }) placeholder?: string;\n\n /** If true, the input field cannot be modified. */\n @Prop({ reflect: true }) readonly?: boolean;\n\n /** Indicates whether or not the input field is required to be filled out before submitting the form. */\n @Prop({ reflect: true }) required?: boolean;\n\n /**\n * A number that specifies the granularity that the value must adhere to.\n * Valid for date, month, week, time, datetime-local, number, and range.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n */\n @Prop({ reflect: true }) step: number | 'any';\n\n /**\n * The type attribute specifies the type of input field to display.\n * Possible values are 'text', 'password', 'email', 'number', 'tel', 'search', 'url', and more.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n */\n @Prop({ reflect: true }) type: TInputType = 'text';\n\n /**\n * The validation status of the input.\n *\n * @remarks\n * This property is used to indicate the validation status of the input. It can be set to one of the following values:\n * - `'none'`: No validation status is set.\n * - `'error'`: The input has a validation error.\n * - `'warning'`: The input has a validation warning.\n * - `'success'`: The input has passed validation.\n */\n @Prop({ reflect: true }) validationStatus: TInputValidation = 'none';\n\n /** The input value, it can be used to reset the input to a previous value */\n @Prop({ reflect: true, mutable: true }) value: TInputValue;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('value')\n handleValueChange() {\n if (Array.isArray(this.value)) {\n this.hasValue = this.value.some((val) => val.length > 0);\n this.internals.setFormValue(this.value.join(','));\n return;\n }\n\n this.hasValue = isDefined(this.value);\n this.internals.setFormValue(`${this.value}`);\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the input loses focus */\n @Event() bqBlur!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value has changed and the input loses focus.\n * This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.\n */\n @Event() bqChange!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n /** Callback handler emitted when the input value has been cleared */\n @Event() bqClear!: EventEmitter<HTMLBqInputElement>;\n\n /** Callback handler emitted when the input has received focus */\n @Event() bqFocus!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value changes.\n * This handler is called whenever the user types or pastes text into the input field.\n */\n @Event() bqInput!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.handleValueChange();\n }\n\n formResetCallback() {\n if (isNil(this.value)) return;\n\n this.handleClear();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleBlur = () => {\n if (this.disabled) return;\n\n this.bqBlur.emit(this.el);\n };\n\n private handleFocus = () => {\n if (this.disabled) return;\n\n this.bqFocus.emit(this.el);\n };\n\n private handleInput = (ev: Event) => {\n if (this.disabled) return;\n\n this.debounceBqInput?.cancel();\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n this.internals.setFormValue(`${this.value}`);\n\n this.debounceBqInput = debounce(() => {\n this.bqInput.emit({ value: this.value, el: this.el });\n }, this.debounceTime);\n this.debounceBqInput();\n };\n\n private handleChange = (ev: Event) => {\n if (this.disabled) return;\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n this.internals.setFormValue(`${this.value}`);\n\n this.bqChange.emit({ value: this.value, el: this.el });\n };\n\n private handleClear = () => {\n if (this.disabled) return;\n\n const { inputElem, internals } = this;\n\n // Clear input element value\n inputElem.value = '';\n this.value = inputElem.value;\n\n // Update associated form control value\n internals.setFormValue(undefined);\n };\n\n private handleClearClick = (ev: CustomEvent) => {\n ev.stopPropagation();\n this.handleClear();\n\n const { bqClear, bqChange, bqInput, el, inputElem } = this;\n // Emit events\n bqClear.emit(el);\n bqInput.emit({ value: this.value, el });\n bqChange.emit({ value: this.value, el });\n // Refocus input element\n inputElem.focus();\n };\n\n private handleLabelSlotChange = () => {\n this.hasLabel = hasSlotContent(this.labelElem);\n };\n\n private handlePrefixSlotChange = () => {\n this.hasPrefix = hasSlotContent(this.prefixElem);\n };\n\n private handleSuffixSlotChange = () => {\n this.hasSuffix = hasSlotContent(this.suffixElem);\n };\n\n private handleHelperTextSlotChange = () => {\n this.hasHelperText = hasSlotContent(this.helperTextElem);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bq-input\" part=\"base\">\n {/* Label */}\n <label\n class={{ 'bq-input--label': true, '!hidden': !this.hasLabel }}\n aria-label={this.name || this.fallbackInputId}\n htmlFor={this.name || this.fallbackInputId}\n ref={(labelElem) => (this.labelElem = labelElem)}\n part=\"label\"\n >\n <slot name=\"label\" onSlotchange={this.handleLabelSlotChange} />\n </label>\n {/* Input control group */}\n <div\n class={{\n 'bq-input--control': true,\n [`validation-${this.validationStatus}`]: true,\n disabled: this.disabled,\n }}\n part=\"control\"\n >\n {/* Prefix */}\n <span\n class={{ 'bq-input--control__prefix': true, '!hidden': !this.hasPrefix }}\n ref={(spanElem) => (this.prefixElem = spanElem)}\n part=\"prefix\"\n >\n <slot name=\"prefix\" onSlotchange={this.handlePrefixSlotChange} />\n </span>\n {/* HTML Input */}\n <input\n id={this.name || this.fallbackInputId}\n class=\"bq-input--control__input\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n disabled={this.disabled}\n form={this.form}\n inputMode={this.inputmode}\n max={this.max}\n maxLength={this.maxlength}\n min={this.min}\n minLength={this.minlength}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder}\n ref={(inputElem) => (this.inputElem = inputElem)}\n readOnly={this.readonly}\n required={this.required}\n step={this.step}\n type={this.type}\n value={this.value}\n part=\"input\"\n // Events\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onFocus={this.handleFocus}\n onInput={this.handleInput}\n />\n {/* Clear Button */}\n {this.hasValue && !this.disabled && !this.disableClear && (\n // The clear button will be visible as long as the input has a value\n // and the parent group is hovered or has focus-within\n <bq-button\n class=\"bq-input--control__clear ms-[--bq-input--gap] hidden\"\n appearance=\"text\"\n aria-label={this.clearButtonLabel}\n size=\"small\"\n onBqClick={this.handleClearClick}\n part=\"clear-btn\"\n exportparts=\"button\"\n >\n <slot name=\"clear-icon\">\n <bq-icon name=\"x-circle\" class=\"flex\" />\n </slot>\n </bq-button>\n )}\n {/* Suffix */}\n <span\n class={{ 'bq-input--control__suffix': true, '!hidden': !this.hasSuffix }}\n ref={(spanElem) => (this.suffixElem = spanElem)}\n part=\"suffix\"\n >\n <slot name=\"suffix\" onSlotchange={this.handleSuffixSlotChange} />\n </span>\n </div>\n {/* Helper text */}\n <div\n class={{\n [`bq-input--helper-text validation-${this.validationStatus}`]: true,\n '!hidden': !this.hasHelperText,\n }}\n ref={(divElem) => (this.helperTextElem = divElem)}\n part=\"helper-text\"\n >\n <slot name=\"helper-text\" onSlotchange={this.handleHelperTextSlotChange} />\n </div>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"bq-input.js","sourceRoot":"","sources":["../../../../../../src/components/input/bq-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGhH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,EAAa,MAAM,oBAAoB,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AASH,MAAM,OAAO,OAAO;;6BAuBO,KAAK;wBACV,KAAK;yBACJ,KAAK;yBACL,KAAK;wBACN,KAAK;8BAUyB,KAAK;4BAMP,KAAK;2BAMA,KAAK;;gCAMb,aAAa;4BAMF,CAAC;wBAMX,KAAK;4BAGV,KAAK;;;;;;;;;;;;;;oBA+DF,MAAM;gCAYY,MAAM;;;IAhJpE,iBAAiB;IACjB,uBAAuB;IAEf,cAAc,CAAe;IAC7B,SAAS,CAAoB;IAC7B,SAAS,CAAe;IACxB,UAAU,CAAe;IACzB,UAAU,CAAe;IAEzB,eAAe,CAAkB;IACjC,eAAe,GAAG,OAAO,CAAC;IAElC,iCAAiC;IACjC,sCAAsC;IAE3B,EAAE,CAAsB;IAChB,SAAS,CAAoB;IAqIhD,wBAAwB;IACxB,0BAA0B;IAG1B,iBAAiB;QACf,MAAM,EAAE,SAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { AttachInternals, Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\n\nimport { TInputType, TInputValidation, TInputValue } from './bq-input.types';\nimport { debounce, hasSlotContent, isDefined, isHTMLElement, isNil, TDebounce } from '../../shared/utils';\n\n/**\n * The Input component is a fundamental user interface element that allows users to input data by typing it into a text field.\n * It is commonly used in web and mobile applications for various purposes, such as collecting user information, search inputs, and login forms.\n *\n * @example How to use it\n * ```html\n * <bq-input name=\"username\" label=\"Username\" placeholder=\"Enter your username\"></bq-input>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/980362-input\n * @status stable\n *\n * @dependency bq-button\n * @dependency bq-icon\n *\n * @attr {string} autocapitalize - Controls whether or not the input field should be capitalized and how.\n * @attr {string} autocomplete - Specifies whether or not the input field should have autocomplete enabled.\n * @attr {string} autocorrect - Controls whether or not the input field should have autocorrect enabled.\n * @attr {boolean} autofocus - If true, the input will be focused on component render.\n * @attr {string} clear-button-label - The clear button aria label.\n * @attr {number} debounce-time - The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.\n * @attr {boolean} disabled - Indicates whether the input is disabled or not.\n * @attr {boolean} disable-clear - If true, the clear button won't be displayed.\n * @attr {string} form - The ID of the form that the input field belongs to.\n * @attr {string} form-validation-message - The native form validation message (mandatory if `required` is set).\n * @attr {string} inputmode - The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.\n * @attr {number | string} max - The maximum value that the input field can accept.\n * @attr {number} maxlength - The maximum number of characters that the input field can accept.\n * @attr {number | string} min - The minimum value that the input field can accept.\n * @attr {number} minlength - The minimum number of characters that the input field can accept.\n * @attr {string} name - The input field name.\n * @attr {string} pattern - Specifies a regular expression the form control's value should match.\n * @attr {string} placeholder - The input placeholder text value.\n * @attr {boolean} readonly - If true, the input field cannot be modified.\n * @attr {boolean} required - Indicates whether or not the input field is required to be filled out before submitting the form.\n * @attr {number | 'any'} step - A number that specifies the granularity that the value must adhere to.\n * @attr {string} type - The type attribute specifies the type of input field to display.\n * @attr {'none' | 'error' | 'warning' | 'success'} validation-status - The validation status of the input.\n * @attr {string | number | string[]} value - The input value, it can be used to reset the input to a previous value.\n *\n * @event bqBlur - Callback handler emitted when the input loses focus.\n * @event bqChange - Callback handler emitted when the input value has changed and the input loses focus.\n * @event bqClear - Callback handler emitted when the input value has been cleared.\n * @event bqFocus - Callback handler emitted when the input has received focus.\n * @event bqInput - Callback handler emitted when the input value changes.\n *\n * @slot label - The label slot container.\n * @slot prefix - The prefix slot container.\n * @slot suffix - The suffix slot container.\n * @slot helper-text - The helper text slot container.\n * @slot clear-icon - The clear icon slot container.\n *\n * @part base - The component's base wrapper.\n * @part button - The native HTML button used under the hood in the clear button.\n * @part clear-btn - The clear button.\n * @part control - The input control wrapper.\n * @part helper-text - The helper text slot container.\n * @part label - The label slot container.\n * @part input - The native HTML input element used under the hood.\n * @part prefix - The prefix slot container.\n * @part suffix - The suffix slot container.\n *\n * @cssprop --bq-input--background-color - Input background color\n * @cssprop --bq-input--border-color - Input border color\n * @cssprop --bq-input--border-color-focus - Input border color on focus\n * @cssprop --bq-input--border-radius - Input border radius\n * @cssprop --bq-input--border-width - Input border width\n * @cssprop --bq-input--border-style - Input border style\n * @cssprop --bq-input--gap - Gap between input content and prefix/suffix\n * @cssprop --bq-input--helper-margin-top - Helper text margin top\n * @cssprop --bq-input--helper-text-color - Helper text color\n * @cssprop --bq-input--helper-text-size - Helper text size\n * @cssprop --bq-input--icon-size - Icon size to use in prefix/suffix and clear button\n * @cssprop --bq-input--label-margin-bottom - Input label margin bottom\n * @cssprop --bq-input--label-text-color - Input label text color\n * @cssprop --bq-input--label-text-size - Input label text size\n * @cssprop --bq-input--padding-start - Input padding start\n * @cssprop --bq-input--padding-end - Input padding end\n * @cssprop --bq-input--paddingY - Input padding top and bottom\n * @cssprop --bq-input--text-color - Input text color\n * @cssprop --bq-input--text-size - Input text size\n * @cssprop --bq-input--text-placeholder-color - Input placeholder text color\n */\n@Component({\n tag: 'bq-input',\n styleUrl: './scss/bq-input.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqInput {\n // Own Properties\n // ====================\n\n private helperTextElem?: HTMLElement;\n private inputElem?: HTMLInputElement;\n private labelElem?: HTMLElement;\n private prefixElem?: HTMLElement;\n private suffixElem?: HTMLElement;\n\n private debounceBqInput: TDebounce<void>;\n private fallbackInputId = 'input';\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqInputElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() hasHelperText = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n @State() hasValue = false;\n\n // Public Property API\n // ========================\n\n /**\n * Controls whether or not the input field should be capitalized and how.\n * Possible values are 'off', 'none', 'on', 'sentences', 'words', and 'characters'.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize\n */\n @Prop({ reflect: true }) autocapitalize: string = 'off';\n\n /**\n * Specifies whether or not the input field should have autocomplete enabled.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values\n */\n @Prop({ reflect: true }) autocomplete: string = 'off';\n\n /**\n * Controls whether or not the input field should have autocorrect enabled.\n * Possible values are 'on' and 'off'.\n */\n @Prop({ reflect: true }) autocorrect: 'on' | 'off' = 'off';\n\n /** If true, the input will be focused on component render */\n @Prop({ reflect: true }) autofocus: boolean;\n\n /** The clear button aria label */\n @Prop({ reflect: true }) clearButtonLabel? = 'Clear value';\n\n /**\n * The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.\n * A value of 0 means no debouncing will occur.\n */\n @Prop({ reflect: true, mutable: true }) debounceTime? = 0;\n\n /**\n * Indicates whether the input is disabled or not.\n * If `true`, the input is disabled and cannot be interacted with.\n */\n @Prop({ mutable: true }) disabled?: boolean = false;\n\n /** If true, the clear button won't be displayed */\n @Prop({ reflect: true }) disableClear? = false;\n\n /** The ID of the form that the input field belongs to. */\n @Prop({ reflect: true }) form?: string;\n\n /** The native form validation message (mandatory if `required` is set) */\n @Prop({ mutable: true }) formValidationMessage?: string;\n\n /**\n * The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.\n * This allows a browser to display an appropriate virtual keyboard while editing.\n * Possible values are 'none', 'text', 'decimal', 'numeric', 'tel', 'search', 'email', 'url', and 'date'.\n */\n @Prop() inputmode?: string;\n\n /**\n * The maximum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) max?: number | string;\n\n /** The maximum number of characters that the input field can accept. */\n @Prop({ reflect: true }) maxlength: number;\n\n /**\n * The minimum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) min?: number | string;\n\n /** The minimum number of characters that the input field can accept. */\n @Prop({ reflect: true }) minlength: number;\n\n /** The input field name. */\n @Prop({ reflect: true }) name!: string;\n\n /**\n * Specifies a regular expression the form control's value should match.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern\n */\n @Prop({ reflect: true }) pattern?: string;\n\n /** The input placeholder text value */\n @Prop({ reflect: true }) placeholder?: string;\n\n /** If true, the input field cannot be modified. */\n @Prop({ reflect: true }) readonly?: boolean;\n\n /** Indicates whether or not the input field is required to be filled out before submitting the form. */\n @Prop({ reflect: true }) required?: boolean;\n\n /**\n * A number that specifies the granularity that the value must adhere to.\n * Valid for date, month, week, time, datetime-local, number, and range.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n */\n @Prop({ reflect: true }) step: number | 'any';\n\n /**\n * The type attribute specifies the type of input field to display.\n * Possible values are 'text', 'password', 'email', 'number', 'tel', 'search', 'url', and more.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n */\n @Prop({ reflect: true }) type: TInputType = 'text';\n\n /**\n * The validation status of the input.\n *\n * @remarks\n * This property is used to indicate the validation status of the input. It can be set to one of the following values:\n * - `'none'`: No validation status is set.\n * - `'error'`: The input has a validation error.\n * - `'warning'`: The input has a validation warning.\n * - `'success'`: The input has passed validation.\n */\n @Prop({ reflect: true }) validationStatus: TInputValidation = 'none';\n\n /** The input value, it can be used to reset the input to a previous value */\n @Prop({ reflect: true, mutable: true }) value: TInputValue;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('value')\n handleValueChange() {\n const { internals, value } = this;\n if (Array.isArray(value)) {\n this.hasValue = value.some((val) => val.length > 0);\n this.internals.setFormValue(value.join(','));\n return;\n }\n\n this.hasValue = isDefined(value);\n internals.setFormValue(!isNil(value) ? `${value}` : undefined);\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the input loses focus */\n @Event() bqBlur!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value has changed and the input loses focus.\n * This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.\n */\n @Event() bqChange!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n /** Callback handler emitted when the input value has been cleared */\n @Event() bqClear!: EventEmitter<HTMLBqInputElement>;\n\n /** Callback handler emitted when the input has received focus */\n @Event() bqFocus!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value changes.\n * This handler is called whenever the user types or pastes text into the input field.\n */\n @Event() bqInput!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.handleValueChange();\n }\n\n formAssociatedCallback() {\n this.setFormValue(this.value?.toString());\n this.updateFormValidity();\n }\n\n formResetCallback() {\n if (isNil(this.value)) return;\n\n this.handleClear();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleBlur = () => {\n if (this.disabled) return;\n\n this.bqBlur.emit(this.el);\n };\n\n private handleFocus = () => {\n if (this.disabled) return;\n\n this.bqFocus.emit(this.el);\n };\n\n private handleInput = (ev: Event) => {\n if (this.disabled) return;\n\n this.debounceBqInput?.cancel();\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n\n this.debounceBqInput = debounce(() => {\n this.bqInput.emit({ value: this.value, el: this.el });\n }, this.debounceTime);\n this.debounceBqInput();\n };\n\n private handleChange = (ev: Event) => {\n if (this.disabled) return;\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n // Update form value and validity\n this.setFormValue(`${this.value}`);\n this.updateFormValidity();\n\n this.bqChange.emit({ value: this.value, el: this.el });\n };\n\n private handleClear = () => {\n if (this.disabled) return;\n\n const { inputElem, setFormValue, updateFormValidity } = this;\n // Clear input element value\n inputElem.value = '';\n this.value = inputElem.value;\n // Set form value to empty string abd update validity\n setFormValue(this.value);\n updateFormValidity();\n };\n\n private handleClearClick = (ev: CustomEvent) => {\n ev.stopPropagation();\n this.handleClear();\n\n const { bqClear, bqChange, bqInput, el, inputElem } = this;\n // Emit events\n bqClear.emit(el);\n bqInput.emit({ value: this.value, el });\n bqChange.emit({ value: this.value, el });\n // Refocus input element\n inputElem.focus();\n };\n\n private setFormValue = (value?: string) => {\n this.internals.setFormValue(!isNil(value) ? `${value}` : undefined);\n };\n\n private updateFormValidity = () => {\n const { formValidationMessage, internals, required, value, inputElem } = this;\n\n // Clear the validity state\n internals?.states.clear();\n\n if (required && (!value || value.toString().trim() === '')) {\n // Set validity state to invalid\n internals?.states.add('invalid');\n internals?.setValidity({ valueMissing: true }, formValidationMessage, inputElem);\n return;\n }\n\n // Set validity state to valid if textarea has value or is not required\n internals?.states.add('valid');\n internals?.setValidity({});\n };\n\n private handleLabelSlotChange = () => {\n this.hasLabel = hasSlotContent(this.labelElem);\n };\n\n private handlePrefixSlotChange = () => {\n this.hasPrefix = hasSlotContent(this.prefixElem);\n };\n\n private handleSuffixSlotChange = () => {\n this.hasSuffix = hasSlotContent(this.suffixElem);\n };\n\n private handleHelperTextSlotChange = () => {\n this.hasHelperText = hasSlotContent(this.helperTextElem);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bq-input\" part=\"base\">\n {/* Label */}\n <label\n class={{ 'bq-input--label': true, '!hidden': !this.hasLabel }}\n aria-label={this.name || this.fallbackInputId}\n htmlFor={this.name || this.fallbackInputId}\n ref={(labelElem) => (this.labelElem = labelElem)}\n part=\"label\"\n >\n <slot name=\"label\" onSlotchange={this.handleLabelSlotChange} />\n </label>\n {/* Input control group */}\n <div\n class={{\n 'bq-input--control': true,\n [`validation-${this.validationStatus}`]: true,\n disabled: this.disabled,\n }}\n part=\"control\"\n >\n {/* Prefix */}\n <span\n class={{ 'bq-input--control__prefix': true, '!hidden': !this.hasPrefix }}\n ref={(spanElem) => (this.prefixElem = spanElem)}\n part=\"prefix\"\n >\n <slot name=\"prefix\" onSlotchange={this.handlePrefixSlotChange} />\n </span>\n {/* HTML Input */}\n <input\n id={this.name || this.fallbackInputId}\n class=\"bq-input--control__input\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n disabled={this.disabled}\n form={this.form}\n inputMode={this.inputmode}\n max={this.max}\n maxLength={this.maxlength}\n min={this.min}\n minLength={this.minlength}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder}\n ref={(inputElem) => (this.inputElem = inputElem)}\n readOnly={this.readonly}\n required={this.required}\n step={this.step}\n type={this.type}\n value={this.value}\n part=\"input\"\n // Events\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onFocus={this.handleFocus}\n onInput={this.handleInput}\n />\n {/* Clear Button */}\n {this.hasValue && !this.disabled && !this.disableClear && (\n // The clear button will be visible as long as the input has a value\n // and the parent group is hovered or has focus-within\n <bq-button\n class=\"bq-input--control__clear ms-[--bq-input--gap] hidden\"\n appearance=\"text\"\n aria-label={this.clearButtonLabel}\n size=\"small\"\n onBqClick={this.handleClearClick}\n part=\"clear-btn\"\n exportparts=\"button\"\n >\n <slot name=\"clear-icon\">\n <bq-icon name=\"x-circle\" class=\"flex\" />\n </slot>\n </bq-button>\n )}\n {/* Suffix */}\n <span\n class={{ 'bq-input--control__suffix': true, '!hidden': !this.hasSuffix }}\n ref={(spanElem) => (this.suffixElem = spanElem)}\n part=\"suffix\"\n >\n <slot name=\"suffix\" onSlotchange={this.handleSuffixSlotChange} />\n </span>\n </div>\n {/* Helper text */}\n <div\n class={{\n [`bq-input--helper-text validation-${this.validationStatus}`]: true,\n '!hidden': !this.hasHelperText,\n }}\n ref={(divElem) => (this.helperTextElem = divElem)}\n part=\"helper-text\"\n >\n <slot name=\"helper-text\" onSlotchange={this.handleHelperTextSlotChange} />\n </div>\n </div>\n );\n }\n}\n"]}