@beeq/core 1.12.4 → 1.13.0

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 (409) hide show
  1. package/dist/beeq/beeq.esm.js +1 -1
  2. package/dist/beeq/{p-b4b02b99.entry.js → p-0d078519.entry.js} +2 -2
  3. package/dist/beeq/{p-b4b02b99.entry.js.map → p-0d078519.entry.js.map} +1 -1
  4. package/dist/beeq/{p-49a999b4.entry.js → p-1a2c4878.entry.js} +2 -2
  5. package/dist/beeq/p-21db4f39.entry.js +6 -0
  6. package/dist/beeq/p-21db4f39.entry.js.map +1 -0
  7. package/dist/beeq/{p-21db2c4e.entry.js → p-24bb2588.entry.js} +2 -2
  8. package/dist/beeq/{p-21db2c4e.entry.js.map → p-24bb2588.entry.js.map} +1 -1
  9. package/dist/beeq/{p-327cb74b.entry.js → p-2a081a54.entry.js} +2 -2
  10. package/dist/beeq/{p-327cb74b.entry.js.map → p-2a081a54.entry.js.map} +1 -1
  11. package/dist/beeq/{p-8974f66f.entry.js → p-2e1fffcd.entry.js} +2 -2
  12. package/dist/beeq/p-2fd6ea70.entry.js +6 -0
  13. package/dist/beeq/{p-d4df64ae.entry.js.map → p-2fd6ea70.entry.js.map} +1 -1
  14. package/dist/beeq/{p-f4c66e83.entry.js → p-30d1bd84.entry.js} +2 -2
  15. package/dist/beeq/{p-f4c66e83.entry.js.map → p-30d1bd84.entry.js.map} +1 -1
  16. package/dist/beeq/{p-b31d249b.entry.js → p-38006c8e.entry.js} +2 -2
  17. package/dist/beeq/{p-b8bac7c7.entry.js → p-3d754d97.entry.js} +2 -2
  18. package/dist/beeq/{p-b8bac7c7.entry.js.map → p-3d754d97.entry.js.map} +1 -1
  19. package/dist/beeq/{p-25772ebd.entry.js → p-45ae19aa.entry.js} +2 -2
  20. package/dist/beeq/p-45ae19aa.entry.js.map +1 -0
  21. package/dist/beeq/{p-f0a2c87e.entry.js → p-56b49d4e.entry.js} +2 -2
  22. package/dist/beeq/{p-f0a2c87e.entry.js.map → p-56b49d4e.entry.js.map} +1 -1
  23. package/dist/beeq/{p-644013aa.entry.js → p-58813f83.entry.js} +2 -2
  24. package/dist/beeq/{p-644013aa.entry.js.map → p-58813f83.entry.js.map} +1 -1
  25. package/dist/beeq/{p-0a3c5b97.entry.js → p-5eba392c.entry.js} +2 -2
  26. package/dist/beeq/{p-fe22de00.entry.js → p-6a38fcaf.entry.js} +2 -2
  27. package/dist/beeq/{p-d7c20c6f.entry.js → p-6be3f23a.entry.js} +2 -2
  28. package/dist/beeq/{p-d7c20c6f.entry.js.map → p-6be3f23a.entry.js.map} +1 -1
  29. package/dist/beeq/{p-ef783b95.entry.js → p-72ff2fe2.entry.js} +2 -2
  30. package/dist/beeq/{p-1764899f.entry.js → p-7ebe6b9d.entry.js} +2 -2
  31. package/dist/beeq/{p-1764899f.entry.js.map → p-7ebe6b9d.entry.js.map} +1 -1
  32. package/dist/beeq/{p-69cf0536.entry.js → p-817f7a5e.entry.js} +2 -2
  33. package/dist/beeq/{p-69cf0536.entry.js.map → p-817f7a5e.entry.js.map} +1 -1
  34. package/dist/beeq/{p-fb763ec5.entry.js → p-8bd7f4c2.entry.js} +2 -2
  35. package/dist/beeq/{p-8d9bef7a.entry.js → p-8be7ceb5.entry.js} +2 -2
  36. package/dist/beeq/{p-8d9bef7a.entry.js.map → p-8be7ceb5.entry.js.map} +1 -1
  37. package/dist/beeq/{p-f07f4d99.entry.js → p-9413a4d3.entry.js} +2 -2
  38. package/dist/beeq/{p-b7c6fdbd.entry.js → p-96f72671.entry.js} +2 -2
  39. package/dist/beeq/p-96f72671.entry.js.map +1 -0
  40. package/dist/beeq/p-Dx-CEPSQ.js.map +1 -1
  41. package/dist/beeq/p-a0a8ea5b.entry.js +6 -0
  42. package/dist/beeq/p-a0a8ea5b.entry.js.map +1 -0
  43. package/dist/beeq/{p-7972ba08.entry.js → p-a55354ee.entry.js} +2 -2
  44. package/dist/beeq/{p-365f0372.entry.js → p-a72671f9.entry.js} +2 -2
  45. package/dist/beeq/p-a72671f9.entry.js.map +1 -0
  46. package/dist/beeq/{p-56810dba.entry.js → p-bdb983f9.entry.js} +2 -2
  47. package/dist/beeq/{p-56810dba.entry.js.map → p-bdb983f9.entry.js.map} +1 -1
  48. package/dist/beeq/{p-2a7c5b1e.entry.js → p-d6c35472.entry.js} +2 -2
  49. package/dist/beeq/{p-2a7c5b1e.entry.js.map → p-d6c35472.entry.js.map} +1 -1
  50. package/dist/beeq/{p-84e96891.entry.js → p-d792e3d3.entry.js} +2 -2
  51. package/dist/beeq/{p-5645238d.entry.js → p-e9a1b183.entry.js} +2 -2
  52. package/dist/beeq/p-f688d230.entry.js +6 -0
  53. package/dist/beeq/{p-79aab4dd.entry.js.map → p-f688d230.entry.js.map} +1 -1
  54. package/dist/beeq/{p-b6f5430a.entry.js → p-f891fb4b.entry.js} +2 -2
  55. package/dist/beeq/{p-b26ee039.entry.js → p-fa123a10.entry.js} +2 -2
  56. package/dist/beeq/{p-b26ee039.entry.js.map → p-fa123a10.entry.js.map} +1 -1
  57. package/dist/beeq/p-uqkxeAeG.js.map +1 -1
  58. package/dist/beeq/svg/.icons-meta.json +13 -0
  59. package/dist/beeq.html-custom-data.json +2153 -50
  60. package/dist/cjs/beeq.cjs.js +1 -1
  61. package/dist/cjs/bq-accordion.cjs.entry.js +1 -1
  62. package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
  63. package/dist/cjs/bq-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
  65. package/dist/cjs/bq-button_2.cjs.entry.js +2 -2
  66. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  67. package/dist/cjs/bq-checkbox.cjs.entry.js +4 -4
  68. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  69. package/dist/cjs/bq-date-picker.cjs.entry.js +1741 -364
  70. package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
  71. package/dist/cjs/bq-dialog.cjs.entry.js +5 -5
  72. package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
  73. package/dist/cjs/bq-divider.cjs.entry.js +4 -4
  74. package/dist/cjs/bq-drawer.cjs.entry.js +5 -5
  75. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  76. package/dist/cjs/bq-dropdown_2.cjs.entry.js +4 -4
  77. package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
  78. package/dist/cjs/bq-empty-state.cjs.entry.js +6 -6
  79. package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
  80. package/dist/cjs/bq-input.cjs.entry.js +8 -8
  81. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  82. package/dist/cjs/bq-notification.cjs.entry.js +6 -6
  83. package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
  84. package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
  85. package/dist/cjs/bq-option-list_2.cjs.entry.js +6 -6
  86. package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
  87. package/dist/cjs/bq-option.cjs.entry.js +4 -4
  88. package/dist/cjs/bq-page-title.cjs.entry.js +4 -4
  89. package/dist/cjs/bq-progress.cjs.entry.js +5 -5
  90. package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
  91. package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
  92. package/dist/cjs/bq-radio.cjs.entry.js +4 -4
  93. package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
  94. package/dist/cjs/bq-select.cjs.entry.js +1 -1
  95. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  96. package/dist/cjs/bq-side-menu-item.cjs.entry.js +1 -1
  97. package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
  98. package/dist/cjs/bq-side-menu.cjs.entry.js +2 -2
  99. package/dist/cjs/bq-slider.cjs.entry.js +3 -3
  100. package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
  101. package/dist/cjs/bq-spinner.cjs.entry.js +4 -4
  102. package/dist/cjs/bq-status.cjs.entry.js +2 -2
  103. package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
  104. package/dist/cjs/bq-step-item.cjs.entry.js +5 -5
  105. package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
  106. package/dist/cjs/bq-steps.cjs.entry.js +2 -2
  107. package/dist/cjs/bq-switch.cjs.entry.js +4 -4
  108. package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
  109. package/dist/cjs/bq-tab-group.cjs.entry.js +3 -3
  110. package/dist/cjs/bq-tab.cjs.entry.js +3 -3
  111. package/dist/cjs/bq-textarea.cjs.entry.js +5 -5
  112. package/dist/cjs/bq-toast.cjs.entry.js +2 -2
  113. package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
  114. package/dist/cjs/bq-tooltip.cjs.entry.js +4 -4
  115. package/dist/cjs/event-BhuEFC-I.js.map +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/slot-DKWrtk4b.js.map +1 -1
  118. package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
  119. package/dist/collection/components/alert/scss/bq-alert.css +1 -1
  120. package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
  121. package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
  122. package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
  123. package/dist/collection/components/button/scss/bq-button.css +1 -1
  124. package/dist/collection/components/card/scss/bq-card.css +1 -1
  125. package/dist/collection/components/checkbox/bq-checkbox.js +5 -4
  126. package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
  127. package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
  128. package/dist/collection/components/date-picker/bq-date-picker.js +1141 -457
  129. package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
  130. package/dist/collection/components/date-picker/bq-date-picker.types.js +29 -0
  131. package/dist/collection/components/date-picker/bq-date-picker.types.js.map +1 -1
  132. package/dist/collection/components/date-picker/components/CalendarDayView.js +96 -0
  133. package/dist/collection/components/date-picker/components/CalendarDayView.js.map +1 -0
  134. package/dist/collection/components/date-picker/components/CalendarHeader.js +18 -0
  135. package/dist/collection/components/date-picker/components/CalendarHeader.js.map +1 -0
  136. package/dist/collection/components/date-picker/components/CalendarMonthView.js +70 -0
  137. package/dist/collection/components/date-picker/components/CalendarMonthView.js.map +1 -0
  138. package/dist/collection/components/date-picker/components/CalendarYearView.js +68 -0
  139. package/dist/collection/components/date-picker/components/CalendarYearView.js.map +1 -0
  140. package/dist/collection/components/date-picker/helper/bounds.js +114 -0
  141. package/dist/collection/components/date-picker/helper/bounds.js.map +1 -0
  142. package/dist/collection/components/date-picker/helper/calendar.js +156 -0
  143. package/dist/collection/components/date-picker/helper/calendar.js.map +1 -0
  144. package/dist/collection/components/date-picker/helper/constants.js +62 -16
  145. package/dist/collection/components/date-picker/helper/constants.js.map +1 -1
  146. package/dist/collection/components/date-picker/helper/input.js +37 -0
  147. package/dist/collection/components/date-picker/helper/input.js.map +1 -0
  148. package/dist/collection/components/date-picker/helper/intl.js +78 -0
  149. package/dist/collection/components/date-picker/helper/intl.js.map +1 -0
  150. package/dist/collection/components/date-picker/helper/labels.js +61 -0
  151. package/dist/collection/components/date-picker/helper/labels.js.map +1 -0
  152. package/dist/collection/components/date-picker/helper/navigation.js +45 -0
  153. package/dist/collection/components/date-picker/helper/navigation.js.map +1 -0
  154. package/dist/collection/components/date-picker/helper/selection.js +167 -0
  155. package/dist/collection/components/date-picker/helper/selection.js.map +1 -0
  156. package/dist/collection/components/date-picker/helper/value.js +49 -0
  157. package/dist/collection/components/date-picker/helper/value.js.map +1 -0
  158. package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
  159. package/dist/collection/components/dialog/bq-dialog.js +4 -4
  160. package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
  161. package/dist/collection/components/divider/bq-divider.js +4 -4
  162. package/dist/collection/components/drawer/bq-drawer.js +4 -4
  163. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  164. package/dist/collection/components/dropdown/bq-dropdown.js +1 -1
  165. package/dist/collection/components/dropdown/scss/bq-dropdown.css +1 -1
  166. package/dist/collection/components/empty-state/bq-empty-state.js +5 -5
  167. package/dist/collection/components/empty-state/scss/bq-empty-state.css +1 -1
  168. package/dist/collection/components/icon/bq-icon.js +1 -1
  169. package/dist/collection/components/icon/svg/.icons-meta.json +13 -0
  170. package/dist/collection/components/input/bq-input.js +7 -7
  171. package/dist/collection/components/input/scss/bq-input.css +1 -1
  172. package/dist/collection/components/notification/bq-notification.js +5 -5
  173. package/dist/collection/components/notification/scss/bq-notification.css +1 -1
  174. package/dist/collection/components/option/bq-option.js +4 -4
  175. package/dist/collection/components/option-group/bq-option-group.js +1 -1
  176. package/dist/collection/components/option-group/scss/bq-option-group.css +1 -1
  177. package/dist/collection/components/option-list/bq-option-list.js +1 -1
  178. package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
  179. package/dist/collection/components/page-title/bq-page-title.js +4 -4
  180. package/dist/collection/components/page-title/scss/bq-page-title.css +1 -1
  181. package/dist/collection/components/panel/bq-panel.js +2 -2
  182. package/dist/collection/components/panel/scss/bq-panel.css +1 -1
  183. package/dist/collection/components/progress/bq-progress.js +4 -4
  184. package/dist/collection/components/progress/scss/bq-progress.css +1 -1
  185. package/dist/collection/components/radio/bq-radio.js +5 -4
  186. package/dist/collection/components/radio/bq-radio.js.map +1 -1
  187. package/dist/collection/components/radio/scss/bq-radio.css +1 -1
  188. package/dist/collection/components/radio-group/bq-radio-group.js +1 -1
  189. package/dist/collection/components/select/scss/bq-select.css +1 -1
  190. package/dist/collection/components/side-menu/bq-side-menu.js +2 -2
  191. package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
  192. package/dist/collection/components/slider/bq-slider.js +2 -2
  193. package/dist/collection/components/spinner/bq-spinner.js +4 -4
  194. package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
  195. package/dist/collection/components/status/bq-status.js +1 -1
  196. package/dist/collection/components/status/scss/bq-status.css +1 -1
  197. package/dist/collection/components/step-item/bq-step-item.js +4 -4
  198. package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
  199. package/dist/collection/components/steps/bq-steps.js +2 -2
  200. package/dist/collection/components/switch/bq-switch.js +3 -3
  201. package/dist/collection/components/switch/scss/bq-switch.css +1 -1
  202. package/dist/collection/components/tab/bq-tab.js +3 -3
  203. package/dist/collection/components/tab/scss/bq-tab.css +1 -1
  204. package/dist/collection/components/tab-group/bq-tab-group.js +3 -3
  205. package/dist/collection/components/tag/bq-tag.js +4 -4
  206. package/dist/collection/components/tag/scss/bq-tag.css +1 -1
  207. package/dist/collection/components/textarea/bq-textarea.js +5 -5
  208. package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
  209. package/dist/collection/components/toast/bq-toast.js +1 -1
  210. package/dist/collection/components/toast/scss/bq-toast.css +1 -1
  211. package/dist/collection/components/tooltip/bq-tooltip.js +4 -4
  212. package/dist/collection/components/tooltip/scss/bq-tooltip.css +1 -1
  213. package/dist/collection/shared/utils/event.js.map +1 -1
  214. package/dist/collection/shared/utils/slot.js.map +1 -1
  215. package/dist/components/bq-accordion-group.js +1 -1
  216. package/dist/components/bq-accordion-group.js.map +1 -1
  217. package/dist/components/bq-accordion.js +1 -1
  218. package/dist/components/bq-alert.js +1 -1
  219. package/dist/components/bq-alert.js.map +1 -1
  220. package/dist/components/bq-avatar.js +1 -1
  221. package/dist/components/bq-avatar.js.map +1 -1
  222. package/dist/components/bq-breadcrumb-item.js +1 -1
  223. package/dist/components/bq-breadcrumb-item.js.map +1 -1
  224. package/dist/components/bq-breadcrumb.js +1 -1
  225. package/dist/components/bq-breadcrumb.js.map +1 -1
  226. package/dist/components/bq-button.js +1 -1
  227. package/dist/components/bq-card.js +1 -1
  228. package/dist/components/bq-card.js.map +1 -1
  229. package/dist/components/bq-checkbox.js +1 -1
  230. package/dist/components/bq-checkbox.js.map +1 -1
  231. package/dist/components/bq-date-picker.js +1 -1
  232. package/dist/components/bq-date-picker.js.map +1 -1
  233. package/dist/components/bq-dialog.js +1 -1
  234. package/dist/components/bq-dialog.js.map +1 -1
  235. package/dist/components/bq-divider.js +1 -1
  236. package/dist/components/bq-drawer.js +1 -1
  237. package/dist/components/bq-drawer.js.map +1 -1
  238. package/dist/components/bq-dropdown.js +1 -1
  239. package/dist/components/bq-empty-state.js +1 -1
  240. package/dist/components/bq-empty-state.js.map +1 -1
  241. package/dist/components/bq-icon.js +1 -1
  242. package/dist/components/bq-input.js +1 -1
  243. package/dist/components/bq-input.js.map +1 -1
  244. package/dist/components/bq-notification.js +1 -1
  245. package/dist/components/bq-notification.js.map +1 -1
  246. package/dist/components/bq-option-group.js +1 -1
  247. package/dist/components/bq-option-group.js.map +1 -1
  248. package/dist/components/bq-option-list.js +1 -1
  249. package/dist/components/bq-option.js +1 -1
  250. package/dist/components/bq-page-title.js +1 -1
  251. package/dist/components/bq-page-title.js.map +1 -1
  252. package/dist/components/bq-panel.js +1 -1
  253. package/dist/components/bq-progress.js +1 -1
  254. package/dist/components/bq-progress.js.map +1 -1
  255. package/dist/components/bq-radio-group.js +1 -1
  256. package/dist/components/bq-radio.js +1 -1
  257. package/dist/components/bq-radio.js.map +1 -1
  258. package/dist/components/bq-select.js +1 -1
  259. package/dist/components/bq-select.js.map +1 -1
  260. package/dist/components/bq-side-menu-item.js +1 -1
  261. package/dist/components/bq-side-menu-item.js.map +1 -1
  262. package/dist/components/bq-side-menu.js +1 -1
  263. package/dist/components/bq-slider.js +1 -1
  264. package/dist/components/bq-spinner.js +1 -1
  265. package/dist/components/bq-spinner.js.map +1 -1
  266. package/dist/components/bq-status.js +1 -1
  267. package/dist/components/bq-status.js.map +1 -1
  268. package/dist/components/bq-step-item.js +1 -1
  269. package/dist/components/bq-step-item.js.map +1 -1
  270. package/dist/components/bq-steps.js +1 -1
  271. package/dist/components/bq-switch.js +1 -1
  272. package/dist/components/bq-switch.js.map +1 -1
  273. package/dist/components/bq-tab-group.js +1 -1
  274. package/dist/components/bq-tab.js +1 -1
  275. package/dist/components/bq-tab.js.map +1 -1
  276. package/dist/components/bq-tag.js +1 -1
  277. package/dist/components/bq-textarea.js +1 -1
  278. package/dist/components/bq-textarea.js.map +1 -1
  279. package/dist/components/bq-toast.js +1 -1
  280. package/dist/components/bq-toast.js.map +1 -1
  281. package/dist/components/bq-tooltip.js +1 -1
  282. package/dist/components/index.js +1 -1
  283. package/dist/components/{p-CK3SnGa2.js → p-BBCVL6R0.js} +2 -2
  284. package/dist/components/{p-MSqM1CAF.js → p-BS8hIETL.js} +2 -2
  285. package/dist/components/{p-MSqM1CAF.js.map → p-BS8hIETL.js.map} +1 -1
  286. package/dist/components/{p-wi7vUIoV.js → p-CWawcXxA.js} +2 -2
  287. package/dist/components/{p-wi7vUIoV.js.map → p-CWawcXxA.js.map} +1 -1
  288. package/dist/components/{p-CNITfoR_.js → p-D6ngGq0Y.js} +2 -2
  289. package/dist/components/{p-CNITfoR_.js.map → p-D6ngGq0Y.js.map} +1 -1
  290. package/dist/components/{p-jrBUnEFW.js → p-DMKBBBUE.js} +2 -2
  291. package/dist/components/{p-jrBUnEFW.js.map → p-DMKBBBUE.js.map} +1 -1
  292. package/dist/components/p-Dd3v3b2E.js +6 -0
  293. package/dist/components/{p-CfP6le1E.js.map → p-Dd3v3b2E.js.map} +1 -1
  294. package/dist/components/p-Dx-CEPSQ.js.map +1 -1
  295. package/dist/components/{p-BOuMP_Rm.js → p-iyX-PhkX.js} +2 -2
  296. package/dist/components/{p-BOuMP_Rm.js.map → p-iyX-PhkX.js.map} +1 -1
  297. package/dist/components/p-uqkxeAeG.js.map +1 -1
  298. package/dist/components/{p-2bpX-u8x.js → p-v3c5-Hhf.js} +2 -2
  299. package/dist/custom-elements.json +25333 -1261
  300. package/dist/esm/beeq.js +1 -1
  301. package/dist/esm/bq-accordion.entry.js +1 -1
  302. package/dist/esm/bq-accordion.entry.js.map +1 -1
  303. package/dist/esm/bq-alert.entry.js +1 -1
  304. package/dist/esm/bq-alert.entry.js.map +1 -1
  305. package/dist/esm/bq-button_2.entry.js +2 -2
  306. package/dist/esm/bq-button_2.entry.js.map +1 -1
  307. package/dist/esm/bq-checkbox.entry.js +4 -4
  308. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  309. package/dist/esm/bq-date-picker.entry.js +1743 -366
  310. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  311. package/dist/esm/bq-dialog.entry.js +5 -5
  312. package/dist/esm/bq-dialog.entry.js.map +1 -1
  313. package/dist/esm/bq-divider.entry.js +4 -4
  314. package/dist/esm/bq-drawer.entry.js +5 -5
  315. package/dist/esm/bq-drawer.entry.js.map +1 -1
  316. package/dist/esm/bq-dropdown_2.entry.js +4 -4
  317. package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
  318. package/dist/esm/bq-empty-state.entry.js +6 -6
  319. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  320. package/dist/esm/bq-input.entry.js +8 -8
  321. package/dist/esm/bq-input.entry.js.map +1 -1
  322. package/dist/esm/bq-notification.entry.js +6 -6
  323. package/dist/esm/bq-notification.entry.js.map +1 -1
  324. package/dist/esm/bq-option-group.entry.js +1 -1
  325. package/dist/esm/bq-option-list_2.entry.js +6 -6
  326. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  327. package/dist/esm/bq-option.entry.js +4 -4
  328. package/dist/esm/bq-page-title.entry.js +4 -4
  329. package/dist/esm/bq-progress.entry.js +5 -5
  330. package/dist/esm/bq-progress.entry.js.map +1 -1
  331. package/dist/esm/bq-radio-group.entry.js +1 -1
  332. package/dist/esm/bq-radio.entry.js +4 -4
  333. package/dist/esm/bq-radio.entry.js.map +1 -1
  334. package/dist/esm/bq-select.entry.js +1 -1
  335. package/dist/esm/bq-select.entry.js.map +1 -1
  336. package/dist/esm/bq-side-menu-item.entry.js +1 -1
  337. package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
  338. package/dist/esm/bq-side-menu.entry.js +2 -2
  339. package/dist/esm/bq-slider.entry.js +3 -3
  340. package/dist/esm/bq-slider.entry.js.map +1 -1
  341. package/dist/esm/bq-spinner.entry.js +4 -4
  342. package/dist/esm/bq-status.entry.js +2 -2
  343. package/dist/esm/bq-status.entry.js.map +1 -1
  344. package/dist/esm/bq-step-item.entry.js +5 -5
  345. package/dist/esm/bq-step-item.entry.js.map +1 -1
  346. package/dist/esm/bq-steps.entry.js +2 -2
  347. package/dist/esm/bq-switch.entry.js +4 -4
  348. package/dist/esm/bq-switch.entry.js.map +1 -1
  349. package/dist/esm/bq-tab-group.entry.js +3 -3
  350. package/dist/esm/bq-tab.entry.js +3 -3
  351. package/dist/esm/bq-textarea.entry.js +5 -5
  352. package/dist/esm/bq-toast.entry.js +2 -2
  353. package/dist/esm/bq-toast.entry.js.map +1 -1
  354. package/dist/esm/bq-tooltip.entry.js +4 -4
  355. package/dist/esm/event-Dx-CEPSQ.js.map +1 -1
  356. package/dist/esm/loader.js +1 -1
  357. package/dist/esm/slot-uqkxeAeG.js.map +1 -1
  358. package/dist/hydrate/index.js +1980 -601
  359. package/dist/hydrate/index.mjs +1980 -601
  360. package/dist/stencil.config.js +6 -0
  361. package/dist/stencil.config.js.map +1 -1
  362. package/dist/types/components/checkbox/bq-checkbox.d.ts +2 -1
  363. package/dist/types/components/date-picker/bq-date-picker.d.ts +330 -238
  364. package/dist/types/components/date-picker/bq-date-picker.types.d.ts +30 -39
  365. package/dist/types/components/date-picker/components/CalendarDayView.d.ts +42 -0
  366. package/dist/types/components/date-picker/components/CalendarHeader.d.ts +34 -0
  367. package/dist/types/components/date-picker/components/CalendarMonthView.d.ts +34 -0
  368. package/dist/types/components/date-picker/components/CalendarYearView.d.ts +32 -0
  369. package/dist/types/components/date-picker/helper/bounds.d.ts +49 -0
  370. package/dist/types/components/date-picker/helper/calendar.d.ts +78 -0
  371. package/dist/types/components/date-picker/helper/constants.d.ts +62 -16
  372. package/dist/types/components/date-picker/helper/input.d.ts +23 -0
  373. package/dist/types/components/date-picker/helper/intl.d.ts +38 -0
  374. package/dist/types/components/date-picker/helper/labels.d.ts +29 -0
  375. package/dist/types/components/date-picker/helper/navigation.d.ts +23 -0
  376. package/dist/types/components/date-picker/helper/selection.d.ts +44 -0
  377. package/dist/types/components/date-picker/helper/value.d.ts +31 -0
  378. package/dist/types/components/radio/bq-radio.d.ts +2 -1
  379. package/dist/types/components.d.ts +437 -350
  380. package/dist/types/shared/utils/event.d.ts +1 -1
  381. package/dist/types/shared/utils/slot.d.ts +1 -1
  382. package/package.json +1 -1
  383. package/dist/beeq/p-0cfa8d0b.entry.js +0 -6
  384. package/dist/beeq/p-0cfa8d0b.entry.js.map +0 -1
  385. package/dist/beeq/p-25772ebd.entry.js.map +0 -1
  386. package/dist/beeq/p-365f0372.entry.js.map +0 -1
  387. package/dist/beeq/p-53ea5999.entry.js +0 -6
  388. package/dist/beeq/p-53ea5999.entry.js.map +0 -1
  389. package/dist/beeq/p-79aab4dd.entry.js +0 -6
  390. package/dist/beeq/p-b7c6fdbd.entry.js.map +0 -1
  391. package/dist/beeq/p-d4df64ae.entry.js +0 -6
  392. package/dist/collection/components/date-picker/libs/callyLibrary.js +0 -92
  393. package/dist/collection/components/date-picker/libs/callyLibrary.js.map +0 -1
  394. package/dist/components/p-CfP6le1E.js +0 -6
  395. package/dist/types/components/date-picker/libs/callyLibrary.d.ts +0 -15
  396. /package/dist/beeq/{p-49a999b4.entry.js.map → p-1a2c4878.entry.js.map} +0 -0
  397. /package/dist/beeq/{p-8974f66f.entry.js.map → p-2e1fffcd.entry.js.map} +0 -0
  398. /package/dist/beeq/{p-b31d249b.entry.js.map → p-38006c8e.entry.js.map} +0 -0
  399. /package/dist/beeq/{p-0a3c5b97.entry.js.map → p-5eba392c.entry.js.map} +0 -0
  400. /package/dist/beeq/{p-fe22de00.entry.js.map → p-6a38fcaf.entry.js.map} +0 -0
  401. /package/dist/beeq/{p-ef783b95.entry.js.map → p-72ff2fe2.entry.js.map} +0 -0
  402. /package/dist/beeq/{p-fb763ec5.entry.js.map → p-8bd7f4c2.entry.js.map} +0 -0
  403. /package/dist/beeq/{p-f07f4d99.entry.js.map → p-9413a4d3.entry.js.map} +0 -0
  404. /package/dist/beeq/{p-7972ba08.entry.js.map → p-a55354ee.entry.js.map} +0 -0
  405. /package/dist/beeq/{p-84e96891.entry.js.map → p-d792e3d3.entry.js.map} +0 -0
  406. /package/dist/beeq/{p-5645238d.entry.js.map → p-e9a1b183.entry.js.map} +0 -0
  407. /package/dist/beeq/{p-b6f5430a.entry.js.map → p-f891fb4b.entry.js.map} +0 -0
  408. /package/dist/components/{p-CK3SnGa2.js.map → p-BBCVL6R0.js.map} +0 -0
  409. /package/dist/components/{p-2bpX-u8x.js.map → p-v3c5-Hhf.js.map} +0 -0
@@ -1,33 +1,31 @@
1
1
  import type { EventEmitter } from '../../stencil-public-runtime';
2
2
  import type { Placement } from '../../services/interfaces';
3
- import type { TInputValidation } from '../input/bq-input.types';
4
- import type { DaysOfWeek, TDatePickerType } from './bq-date-picker.types';
3
+ import { type TInputValidation } from '../input/bq-input.types';
4
+ import type { DaysOfWeek, TCalendarView, TDatePickerType, TDatePrecision, TFloatingStrategy, TMonthsPerView } from './bq-date-picker.types';
5
5
  /**
6
- * The Date Picker is a intuitive UI element component allows users to select dates from a visual calendar interface, providing an intuitive way to input date information.
6
+ * The Date Picker is a pure-Stencil calendar input.
7
+ *
8
+ * It supports single, multi, and range selection, three navigation views
9
+ * (days → months → years), full localization via `Intl.DateTimeFormat`,
10
+ * multi-month side-by-side rendering, and RTL layouts.
7
11
  *
8
12
  * @example How to use it
9
13
  * ```html
10
14
  * <bq-date-picker
11
15
  * first-day-of-week="1"
12
16
  * locale="en-GB"
13
- * months-per-view="single"
14
- * months="2"
15
17
  * name="bq-date-picker"
16
18
  * placeholder="Enter your date"
17
- * placement="bottom-end"
18
- * show-outside-days="false"
19
- * type="range"
20
- * validation-status="none"
21
- * value="2024-05-25"
19
+ * type="single"
20
+ * value="2026-07-15"
22
21
  * >
23
- * <label class="flex flex-grow items-center" slot="label">
24
- * Date picker label
25
- * </label>
22
+ * <label slot="label">Date picker label</label>
26
23
  * </bq-date-picker>
27
24
  * ```
28
25
  *
29
- * @documentation https://www.beeq.design/3d466e231/p/5793a9-date-picker
30
- * @status stable
26
+ * @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs
27
+ *
28
+ * @status experimental
31
29
  *
32
30
  * @dependency bq-button
33
31
  * @dependency bq-dropdown
@@ -35,307 +33,401 @@ import type { DaysOfWeek, TDatePickerType } from './bq-date-picker.types';
35
33
  *
36
34
  * @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.
37
35
  * @attr {string} clear-button-label - The clear button aria label.
36
+ * @attr {string} calendar-button-label - The aria-label for the calendar trigger button.
38
37
  * @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.
39
38
  * @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.
40
- * @attr {number} distance - Represents the distance (gutter or margin) between the Date picker panel and the input element.
41
- * @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week, where Sunday is 0, Monday is 1, etc.
42
- * @attr {Intl.DateTimeFormatOptions} format-options - The options to use when formatting the displayed value. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
43
- * @attr {string} form - The ID of the form that the Date picker input belongs to.
44
- * @attr {string} form-validation-message - The native form validation message (mandatory if `required` is set).
45
- * @attr {function} is-date-disallowed - A function that takes a date and returns true if the date should not be selectable.
46
- * @attr {Intl.LocalesArgument} locale - The locale for formatting dates. If not set, will use the browser's locale. Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
47
- * @attr {string} max - The latest date that can be selected.
48
- * @attr {string} min - The earliest date that can be selected.
49
- * @attr {number} months - Number of months to show when range is `true`.
50
- * @attr {string} name - The Date picker input name.
51
- * @attr {boolean} open - If `true`, the Date picker panel will be visible.
52
- * @attr {string} panel-height - When set, it will override the height of the Date picker panel.
53
- * @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Position of the Date picker panel.
54
- * @attr {boolean} required - Indicates whether or not the Date picker input is required to be filled out before submitting the form.
55
- * @attr {number} skidding - Represents the skidding between the Date picker panel and the input element.
56
- * @attr {boolean} show-outside-days - Whether to show days outside the month.
57
- * @attr {string} strategy - Defines the strategy to position the Date picker panel.
58
- * @attr {string} tentative - The date that is tentatively selected, e.g. the start of a range selection.
59
- * @attr {"single" | "multi" | "range"} type - It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection.
60
- * @attr {"error" | "none" | "success" | "warning"} validation-status - The validation status of the Select input.
61
- * @attr {string} value - The select input value represents the currently selected date or range and can be used to reset the field to a previous value.
39
+ * @attr {number} distance - Represents the distance between the panel and the input.
40
+ * @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).
41
+ * @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.
42
+ * @attr {string} form - The form ID the input belongs to.
43
+ * @attr {string} form-validation-message - Custom native form validation message.
44
+ * @attr {"days" | "months" | "years"} initial-view - The view to open when the panel first opens.
45
+ * @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.
46
+ * @attr {Intl.LocalesArgument} locale - Locale used for formatting.
47
+ * @attr {string} max - Latest selectable date (ISO).
48
+ * @attr {string} min - Earliest selectable date (ISO).
49
+ * @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.
50
+ * @attr {"single" | "months"} months-per-view - Prev/Next step size when multi-month is enabled.
51
+ * @attr {string} name - Input name.
52
+ * @attr {boolean} open - If `true`, the panel is visible.
53
+ * @attr {string} panel-height - Overrides the height of the panel.
54
+ * @attr {string} placeholder - Input placeholder text.
55
+ * @attr {"top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end"} placement - Placement of the panel.
56
+ * @attr {boolean} required - Whether a value must be selected before submitting the form.
57
+ * @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.
58
+ * @attr {number} skidding - Skidding between the panel and the trigger.
59
+ * @attr {"fixed" | "absolute"} strategy - Positioning strategy for the panel.
60
+ * @attr {"single" | "multi" | "range"} type - Selection mode.
61
+ * @attr {"error" | "none" | "success" | "warning"} validation-status - Validation state.
62
+ * @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:
63
+ * • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).
64
+ * • **range**: `start/end` (two tokens joined with `/`) at the same precision.
65
+ * • **multi**: space-separated tokens at the same precision.
66
+ * Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.
67
+ * @attr {"day" | "month" | "year"} precision - Granularity of the value and of the calendar's initial view. Also drives which cells are selectable (day cells at `day`, month cells at `month`, year cells at `year`). Defaults to `"day"`.
62
68
  *
63
69
  * @method clear - Clears the selected value.
64
70
  *
65
- * @event bqBlur - Callback handler emitted when the input loses focus.
66
- * @event bqChange - Callback handler emitted when the input value has changed and the input loses focus.
67
- * @event bqClear - Callback handler emitted when the input value has been cleared.
68
- * @event bqFocus - Callback handler emitted when the input has received focus.
71
+ * @event bqBlur - Emitted when the input loses focus.
72
+ * @event bqChange - Emitted when the value changes.
73
+ * @event bqClear - Emitted when the value is cleared.
74
+ * @event bqFocus - Emitted when the input receives focus.
75
+ * @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).
76
+ *
77
+ * @slot label - The label displayed above the input.
78
+ * @slot prefix - Content rendered before the input value.
79
+ * @slot suffix - Icon rendered inside the calendar trigger button (defaults to a calendar icon).
80
+ * @slot clear-icon - Icon used inside the clear button.
69
81
  *
70
82
  * @part base - The component's base wrapper.
71
- * @part button - The native HTML button used under the hood in the clear button.
72
- * @part calendar__button - Any button used in the calendar-month component.
73
- * @part calendar__button - Any button within the calendar-range component.
74
- * @part calendar__container - The calendar-range container for the entire component.
75
- * @part calendar__day - The buttons corresponding to each day in the calendar-month grid.
76
- * @part calendar__disabled - A button that is disabled due to min/max on the calendar-range component.
77
- * @part calendar__disallowed - Any day that has been disallowed via isDateDisallowed.
78
- * @part calendar__head - The calendar-month table's header row.
79
- * @part calendar__header - The calendar-range container for the heading and buttons.
80
- * @part calendar__heading - The calendar-month heading container that labels the month.
81
- * @part calendar__heading - The calendar-range heading containing the month and year.
82
- * @part calendar__next - The next page button on the calendar-range component.
83
- * @part calendar__outside - Any days which are outside the current month.
84
- * @part calendar__previous - The previous page button on the calendar-range component.
85
- * @part calendar__range-end - The day at the end of a date range.
86
- * @part calendar__range-inner - Any days between the start and end of a date range.
87
- * @part calendar__range-start - The day at the start of a date range.
88
- * @part calendar__selected - Any days which are selected.
89
- * @part calendar__table - The calendar-month <table> element.
90
- * @part calendar__td - The calendar-month table's body cells.
91
- * @part calendar__th - The calendar-month table's header cells.
92
- * @part calendar__today - The Today's day.
93
- * @part calendar__tr - Any row within the table on the calendar-month component.
94
- * @part calendar__week - The calendar-month table's body rows.
95
- * @part clear-btn - The clear button.
96
- * @part control - The input control wrapper.
97
- * @part input - The native HTML input element used under the hood.
98
83
  * @part label - The label slot container.
99
- * @part panel - The date picker panel container
84
+ * @part control - The input control wrapper.
100
85
  * @part prefix - The prefix slot container.
101
86
  * @part suffix - The suffix slot container.
87
+ * @part input - The native input element.
88
+ * @part clear-btn - The clear button.
89
+ * @part calendar-trigger - The calendar icon trigger button.
90
+ * @part button - Any button rendered inside the calendar (nav or day/month/year cell).
91
+ * @part panel - The dropdown panel container.
92
+ * @part calendar__container - The calendar panels wrapper.
93
+ * @part calendar__header - The header row (prev / title / next).
94
+ * @part calendar__heading - The header title button (or month label above a panel).
95
+ * @part calendar__previous - The previous navigation button.
96
+ * @part calendar__next - The next navigation button.
97
+ * @part calendar__table - The day-view `<table>` element.
98
+ * @part calendar__head - The day-view table header row wrapper.
99
+ * @part calendar__tr - Any row within the day-view table.
100
+ * @part calendar__th - The day-view weekday header cells.
101
+ * @part calendar__week - Body rows in the day-view table.
102
+ * @part calendar__td - Body cells in the day-view table.
103
+ * @part calendar__day - Any day button in the day view.
104
+ * @part calendar__today - The button representing today's date.
105
+ * @part calendar__selected - Any selected day.
106
+ * @part calendar__outside - Any day outside the visible month.
107
+ * @part calendar__disallowed - Any day rejected by `isDateDisallowed`.
108
+ * @part calendar__disabled - Any button disabled by min/max.
109
+ * @part calendar__range-start - The first day of a range selection.
110
+ * @part calendar__range-end - The last day of a range selection.
111
+ * @part calendar__range-inner - Days between the start and end of a range.
112
+ * @part calendar__months - The month-view grid.
113
+ * @part calendar__month - Any month button.
114
+ * @part calendar__month-selected - The currently selected month.
115
+ * @part calendar__years - The year-view grid.
116
+ * @part calendar__year - Any year button.
117
+ * @part calendar__year-selected - The currently selected year.
102
118
  *
103
- * @cssprop --bq-date-picker--background-color - Date picker background color.
104
- * @cssprop --bq-date-picker--border-color - Date picker border color.
105
- * @cssprop --bq-date-picker--border-color-disabled - Date picker border color when disabled.
106
- * @cssprop --bq-date-picker--border-color-focus - Date picker border color on focus.
107
- * @cssprop --bq-date-picker--border-radius - Date picker border radius.
108
- * @cssprop --bq-date-picker--border-style - Date picker border style.
109
- * @cssprop --bq-date-picker--border-width - Date picker border width.
110
- * @cssprop --bq-date-picker--currentDate-border-color - Date picker border color for current date.
111
- * @cssprop --bq-date-picker--currentDate-border-width - Date picker border width for current date.
112
- * @cssprop --bq-date-picker--day-size - Date picker button day size.
113
- * @cssprop --bq-date-picker--gap - Gap between Date picker content and prefix/suffix.
114
- * @cssprop --bq-date-picker--icon-size - Icon size to use in prefix/suffix and clear button.
115
- * @cssprop --bq-date-picker--label-margin-bottom - Date picker label margin bottom.
116
- * @cssprop --bq-date-picker--label-text-color - Date picker label text color.
117
- * @cssprop --bq-date-picker--label-text-size - Date picker label text size.
118
- * @cssprop --bq-date-picker--padding-end - Date picker padding end.
119
- * @cssprop --bq-date-picker--padding-start - Date picker padding start.
120
- * @cssprop --bq-date-picker--paddingY - Date picker padding top and bottom.
121
- * @cssprop --bq-date-picker--range-background-color - Background color for the selected date range in the date picker.
122
- * @cssprop --bq-date-picker--range-inner-background-color - Background color for the selected dates inside the date range in the date picker.
123
- * @cssprop --bq-date-picker--text-color - Date picker text color.
124
- * @cssprop --bq-date-picker--text-placeholder-color - Date picker placeholder text color.
125
- * @cssprop --bq-date-picker--text-size - Date picker text size.
119
+ * @cssprop --bq-date-picker--background-color - Input background color.
120
+ * @cssprop --bq-date-picker--border-color - Input border color.
121
+ * @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.
122
+ * @cssprop --bq-date-picker--border-color-focus - Border color on focus.
123
+ * @cssprop --bq-date-picker--border-radius - Input border radius.
124
+ * @cssprop --bq-date-picker--border-style - Border style.
125
+ * @cssprop --bq-date-picker--border-width - Border width.
126
+ * @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.
127
+ * @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.
128
+ * @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.
129
+ * @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.
130
+ * @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.
131
+ * @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.
132
+ * @cssprop --bq-date-picker--label-margin-bottom - Space below the label.
133
+ * @cssprop --bq-date-picker--label-text-color - Label text color.
134
+ * @cssprop --bq-date-picker--label-text-size - Label text size.
135
+ * @cssprop --bq-date-picker--padding-end - Input padding end.
136
+ * @cssprop --bq-date-picker--padding-start - Input padding start.
137
+ * @cssprop --bq-date-picker--paddingY - Input vertical padding.
138
+ * @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.
139
+ * @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.
140
+ * @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.
141
+ * @cssprop --bq-date-picker--text-color - Input text color.
142
+ * @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.
143
+ * @cssprop --bq-date-picker--text-size - Input text size.
144
+ * @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.
145
+ * @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.
146
+ * @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.
147
+ * @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.
148
+ * @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.
126
149
  */
127
150
  export declare class BqDatePicker {
128
- private callyElem?;
151
+ /**
152
+ * Memoized parsed selection. Key encodes both `value` and `type` so cache
153
+ * misses invalidate correctly. Value derives from `value`; not promoted to
154
+ * `@State()` to preserve a single source of truth.
155
+ */
156
+ private cachedSelection?;
157
+ /** Sticky flag: last typed input couldn't be parsed. Cleared on next successful commit or `clear()`. */
158
+ private hasBadInput;
159
+ /** Initial `value` captured at load time, restored on form reset. */
160
+ private initialValue?;
129
161
  private inputElem?;
130
- private isInternalUpdate;
162
+ /** Set while `commitSelection` writes back to `this.value`. */
163
+ private isCommittingSelection;
131
164
  private labelElem?;
165
+ /** Pending requestAnimationFrame id used by `focusButton`. */
166
+ private pendingFocusRAF?;
132
167
  private prefixElem?;
133
- private suffixElem?;
168
+ private triggerBtnElem?;
134
169
  internals: ElementInternals;
135
170
  el: HTMLBqDatePickerElement;
136
- isCallyLoaded: boolean;
137
- focusedDate: string;
138
- displayDate: string;
171
+ decadeStart: number;
172
+ displayDate?: string;
173
+ focusedISO: string;
174
+ focusedMonth: number;
175
+ focusedYear: number;
176
+ hasConstraintError: boolean;
139
177
  hasLabel: boolean;
140
178
  hasPrefix: boolean;
141
- hasRangeEnd: boolean;
142
- hasSuffix: boolean;
143
179
  hasValue: boolean;
144
- /** If `true`, the Date picker input will be focused on component render */
180
+ tentativeHover?: string;
181
+ view: TCalendarView;
182
+ viewDate: Date;
183
+ /** If `true`, the Date picker input will be focused on component render. */
145
184
  autofocus: boolean;
146
- /** The clear button aria label */
147
- clearButtonLabel?: string;
148
- /** If `true`, the clear button won't be displayed */
149
- disableClear?: boolean;
185
+ /** The clear button aria label. */
186
+ clearButtonLabel: string;
187
+ /** The aria-label for the calendar trigger button. */
188
+ calendarButtonLabel: string;
189
+ /** If `true`, the clear button won't be displayed. */
190
+ disableClear: boolean;
191
+ /** Indicates whether the Date picker input is disabled or not. */
192
+ disabled: boolean;
193
+ /** Distance (gutter) between the Date picker panel and the input element. */
194
+ distance: number;
195
+ /** The first day of the week, where Sunday is 0, Monday is 1, etc. */
196
+ firstDayOfWeek: DaysOfWeek;
150
197
  /**
151
- * Indicates whether the Date picker input is disabled or not.
152
- * If `true`, the Date picker is disabled and cannot be interacted with.
153
- */
154
- disabled?: boolean;
155
- /** Represents the distance (gutter or margin) between the Date picker panel and the input element. */
156
- distance?: number;
157
- /** The first day of the week, where Sunday is 0, Monday is 1, etc */
158
- firstDayOfWeek?: DaysOfWeek;
159
- /** The options to use when formatting the displayed value.
160
- * Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
198
+ * Options used when formatting the displayed value.
199
+ *
200
+ * When omitted, sensible defaults are picked based on `precision`:
201
+ * - `day` → `{ day: 'numeric', month: 'short', year: 'numeric' }`
202
+ * - `month` `{ month: 'long', year: 'numeric' }`
203
+ * - `year` → `{ year: 'numeric' }`
161
204
  */
162
- formatOptions: Intl.DateTimeFormatOptions;
163
- /** The ID of the form that the Date picker input belongs to. */
205
+ formatOptions?: Intl.DateTimeFormatOptions;
206
+ /** The ID of the form the input belongs to. */
164
207
  form?: string;
165
- /** The native form validation message (mandatory if `required` is set) */
208
+ /** Native form validation message (mandatory if `required` is set). */
166
209
  formValidationMessage?: string;
167
- /** A function that takes a date and returns true if the date should not be selectable */
210
+ /** The view opened first when the panel becomes visible. */
211
+ initialView: TCalendarView;
212
+ /** Predicate that marks specific dates as unselectable. */
168
213
  isDateDisallowed?: (date: Date) => boolean;
169
- /** The locale for formatting dates. If not set, will use the browser's locale.
170
- * Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument
171
- */
214
+ /** Locale used for formatting dates. */
172
215
  locale: Intl.LocalesArgument;
173
- /** The latest date that can be selected */
216
+ /** Latest date that can be selected (ISO). */
174
217
  max?: string;
175
- /** The earliest date that can be selected */
218
+ /** Earliest date that can be selected (ISO). */
176
219
  min?: string;
177
- /** Number of months to show when range is `true` */
220
+ /**
221
+ * Number of months to show side by side (range / multi). Capped at 2.
222
+ * Larger values are silently clamped to keep the popover from overflowing
223
+ * the viewport and to preserve keyboard navigation semantics.
224
+ */
178
225
  months: number;
179
226
  /**
180
- * Specifies how the next/previous buttons should navigate the calendar.
181
- * - single: The buttons will navigate by a single month at a time.
182
- * - months: The buttons will navigate by the number of months displayed per view.
227
+ * How the next/previous buttons should navigate the calendar.
228
+ * - single: navigate one month at a time.
229
+ * - months: navigate by the number of months displayed.
183
230
  */
184
- monthsPerView: 'single' | 'months';
231
+ monthsPerView: TMonthsPerView;
185
232
  /** The Date picker input name. */
186
233
  name: string;
187
- /** If `true`, the Date picker panel will be visible. */
188
- open?: boolean;
189
- /** When set, it will override the height of the Date picker panel. */
234
+ /** If `true`, the panel is visible. */
235
+ open: boolean;
236
+ /** Overrides the height of the Date picker panel. */
190
237
  panelHeight?: string;
191
- /** The Date picker input placeholder text value */
238
+ /** Placeholder text shown when no value is selected. */
192
239
  placeholder?: string;
193
- /** Position of the Date picker panel */
194
- placement?: Placement;
195
- /** Indicates whether or not the Date picker input is required to be filled out before submitting the form. */
196
- required?: boolean;
197
- /** Represents the skidding between the Date picker panel and the input element. */
198
- skidding?: number;
199
- /** Whether to show days outside the month */
240
+ /** Position of the Date picker panel. */
241
+ placement: Placement;
242
+ /**
243
+ * Precision of the value produced by the picker.
244
+ *
245
+ * - `day` → `YYYY-MM-DD` (default). Standard drill-down.
246
+ * - `month` `YYYY-MM`. Selection commits on the months view; no days view.
247
+ * - `year` → `YYYY`. Selection commits on the years view; no months/days view.
248
+ *
249
+ * When precision is coarser than day, `initialView` is forced to match and
250
+ * the header title cycles through the views available for that precision.
251
+ */
252
+ precision: TDatePrecision;
253
+ /** Whether a value must be selected before submitting the form. */
254
+ required: boolean;
255
+ /** Skidding between the panel and the input element. */
256
+ skidding: number;
257
+ /** Whether to render days outside the current month. */
200
258
  showOutsideDays: boolean;
201
- /** Defines the strategy to position the Date picker panel */
202
- strategy?: 'fixed' | 'absolute';
203
- /** The date that is tentatively selected e.g. the start of a range selection */
204
- tentative?: string;
205
- /** It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection */
259
+ /** Positioning strategy for the panel. */
260
+ strategy: TFloatingStrategy;
261
+ /**
262
+ * Selection type.
263
+ * - `single`: single date.
264
+ * - `multi`: multiple discrete dates.
265
+ * - `range`: contiguous range.
266
+ */
206
267
  type: TDatePickerType;
268
+ /** Validation state applied to the input. */
269
+ validationStatus: TInputValidation;
207
270
  /**
208
- * The validation status of the Select input.
271
+ * Currently selected value, in the precision-aware wire format:
272
+ * - `precision="day"` → tokens are `YYYY-MM-DD`
273
+ * - `precision="month"` → tokens are `YYYY-MM`
274
+ * - `precision="year"` → tokens are `YYYY`
209
275
  *
210
- * @remarks
211
- * This property is used to indicate the validation status of the select input. It can be set to one of the following values:
212
- * - `'none'`: No validation status is set.
213
- * - `'error'`: The input has a validation error.
214
- * - `'warning'`: The input has a validation warning.
215
- * - `'success'`: The input has passed validation.
276
+ * How multiple tokens are combined depends on `type`:
277
+ * - `single` a single token (e.g. `"2025-05-15"`, `"2025-05"`, `"2025"`)
278
+ * - `range` → `"start/end"` two tokens joined with `/`
279
+ * - `multi` → space-separated tokens (e.g. `"2025-05-15 2025-05-20"`)
216
280
  */
217
- validationStatus: TInputValidation;
218
- /** The select input value represents the currently selected date or range and can be used to reset the field to a previous value.
219
- * All dates are expected in ISO-8601 format (YYYY-MM-DD). */
220
- value: string;
221
- handleValueChange(newValue: string, oldValue: string): void;
281
+ value: string | undefined;
282
+ handleValueChange(newValue: string | undefined, oldValue: string | undefined): void;
283
+ handleFormattingChange(): void;
284
+ handleTypeChange(): void;
285
+ handlePrecisionChange(): void;
286
+ handleBoundsChange(): void;
287
+ handleRequiredChange(): void;
222
288
  checkPropValues(): void;
223
- /** Callback handler emitted when the input loses focus */
289
+ handleMonthsChange(): void;
290
+ handleOpen(open: boolean): void;
291
+ handleViewChange(next: TCalendarView, prev: TCalendarView): void;
292
+ /** Callback handler emitted when the input loses focus. */
224
293
  bqBlur: EventEmitter<HTMLBqDatePickerElement>;
225
294
  /**
226
- * Callback handler emitted when the input value has changed and the input loses focus.
227
- * This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.
295
+ * Callback handler emitted when the input value changes.
228
296
  */
229
297
  bqChange: EventEmitter<{
230
- value: string;
298
+ value: string | undefined;
231
299
  el: HTMLBqDatePickerElement;
232
300
  }>;
233
- /** Callback handler emitted when the input value has been cleared */
301
+ /** Callback handler emitted when the value is cleared. */
234
302
  bqClear: EventEmitter<HTMLBqDatePickerElement>;
235
- /** Callback handler emitted when the input has received focus */
303
+ /** Callback handler emitted when the input receives focus. */
236
304
  bqFocus: EventEmitter<HTMLBqDatePickerElement>;
237
- componentWillLoad(): Promise<void>;
305
+ /**
306
+ * Callback handler emitted when the internal calendar view changes
307
+ * (e.g. from `days` to `months`, or from `years` back to `days`).
308
+ */
309
+ bqViewChange: EventEmitter<{
310
+ view: TCalendarView;
311
+ el: HTMLBqDatePickerElement;
312
+ }>;
313
+ componentWillLoad(): void;
238
314
  componentDidLoad(): void;
239
- componentDidRender(): void;
315
+ disconnectedCallback(): void;
240
316
  formAssociatedCallback(): void;
241
317
  formResetCallback(): void;
242
318
  handleOpenChange(ev: CustomEvent<{
243
319
  open: boolean;
244
320
  }>): void;
245
- handleClickOutside(ev: MouseEvent): void;
246
321
  /**
247
- * Clears the selected value.
248
- * @returns {Promise<void>}
322
+ * Clears the selected value and any pending validation state (bad input,
323
+ * bounds overflow). Emits `bqClear`. No-op when the component is disabled.
324
+ *
325
+ * @returns A promise that resolves once the value has been cleared.
249
326
  */
250
327
  clear(): Promise<void>;
251
- /**
252
- * Handles the blur event for the date picker input.
253
- * @returns {void}
254
- */
255
328
  private handleBlur;
256
- /**
257
- * Handles the focus event for the date picker input.
258
- * @returns {void}
259
- */
260
329
  private handleFocus;
330
+ private handleInputChange;
331
+ private handleClearClick;
332
+ /** Toggles the calendar panel open/closed when the trigger button is activated. */
333
+ private handleTriggerClick;
261
334
  /**
262
- * Updates the focused date in the calendar component.
263
- * Falls back to today's date if no value is set.
264
- * @returns {void}
265
- */
266
- private setFocusedDate;
267
- /**
268
- * Handles user input changes with locale-aware date parsing.
269
- * Validates against disallowed dates and min/max constraints.
270
- * @param {Event} ev - The change event.
271
- * @returns {void}
272
- */
273
- private handleChange;
274
- /**
275
- * Handles the change event when the user selects a date in the calendar component.
276
- * @param {Event} ev - The change event.
277
- * @returns {void}
278
- */
279
- private handleCalendarChange;
280
- /**
281
- * Handles the range start event when the user starts selecting a date range
282
- * @param {CustomEvent} ev - The range start event.
283
- * @returns {void}
284
- */
285
- private handleCalendarRangeStart;
286
- /**
287
- * Handles the range end event when the user finishes selecting a date range
288
- * @returns {void}
335
+ * Handles keyboard shortcuts on the text input.
336
+ * - `ArrowDown` / `Alt+ArrowDown` open panel and focus active cell.
337
+ * - `Escape` → close panel (focus stays on input).
289
338
  */
290
- private handleCalendarRangeEnd;
339
+ private handleInputKeyDown;
340
+ private clearValue;
341
+ private handleSlotChange;
342
+ private updateFormValidity;
291
343
  /**
292
- * Handles the clear click event when the user clicks the clear button
293
- * @param {CustomEvent} ev - The clear click event.
294
- * @returns {void}
344
+ * Recompute all state derived from the public `value` (form value,
345
+ * `hasValue`, formatted display). Called from `value` and any prop that
346
+ * affects display formatting (`type`, `locale`, `formatOptions`).
295
347
  */
296
- private handleClearClick;
348
+ private syncDerivedFromValue;
297
349
  /**
298
- * Clears the value of the date picker input.
299
- * @returns {void}
350
+ * Runs the full form-validity pipeline in a consistent order: `required`
351
+ * bounds → `badInput`. Multiple failing constraints are unioned into a
352
+ * single `setValidity` call.
300
353
  */
301
- private clearValue;
354
+ private syncValidity;
355
+ /** Returns `rangeUnderflow` / `rangeOverflow` flags for the current selection. */
356
+ private computeBoundsValidityFlags;
357
+ private clampMonths;
302
358
  /**
303
- * Handles the slot change event when the slots content changes
304
- * @returns {void}
359
+ * Align the internal `viewDate` / `focused*` state with the current value.
360
+ * Called when the panel opens and whenever an *external* prop change
361
+ * invalidates the current view (value, type, precision, min/max). Internal
362
+ * commits skip this via `isCommittingSelection` so the user's navigated
363
+ * year isn't clobbered by a subsequent multi/range selection.
364
+ *
365
+ * Uses `parseValue` (precision-aware, always returns full ISO dates) rather
366
+ * than a raw `YYYY-MM-DD` regex so that month/year wire values like
367
+ * `"2025-05"` or `"2025"` land on the right cell instead of falling back
368
+ * to today.
305
369
  */
306
- private handleSlotChange;
370
+ private syncViewToValue;
371
+ private get selection();
307
372
  /**
308
- * Generates a calendar month element
309
- * @param {number} offset - The offset of the calendar month.
310
- * @param {string} className - The class name of the calendar month.
311
- * @returns {JSX.Element | null} The calendar month element.
373
+ * Effective `Intl.DateTimeFormatOptions` user-provided when set, otherwise
374
+ * the precision-appropriate default. Prevents a `month` picker from
375
+ * accidentally rendering "1 May 2026" when the consumer just sets
376
+ * `precision="month"` without overriding `formatOptions`.
312
377
  */
313
- private generateCalendarMonth;
378
+ private get effectiveFormatOptions();
379
+ /** Map a precision value to the calendar view that commits selections. */
380
+ private precisionToView;
381
+ private get tentativeRange();
314
382
  /**
315
- * Generates an array of Elements representing the calendar months.
316
- *
317
- * If the type of the date picker is 'range' or 'multi' and the number of months is specified,
318
- * it generates an array of calendar months with the specified length. Each month will have an offset
319
- * and a class name based on its position in the array. The offset is used to determine the month to display,
320
- * and the class name is used for responsive design.
383
+ * Return the date that view transitions (days months ⇄ years) should
384
+ * center the focus on.
321
385
  *
322
- * If the type of the date picker is not 'range' or 'multi', or if the number of months is not specified,
323
- * it generates an array with a single calendar month.
324
- *
325
- * @returns {JSX.Element[]} An array of elements representing the calendar months.
386
+ * Priority:
387
+ * 1. First entry of the current selection for `range` this is the start
388
+ * date (selection is sorted on parse), for `multi` it is the earliest.
389
+ * 2. Otherwise the currently displayed `viewDate` (i.e. the month/year the
390
+ * user has navigated to with prev/next).
326
391
  */
327
- private generateCalendarMonths;
392
+ private getViewFocusReference;
393
+ private handleHeaderTitleClick;
394
+ private handleHeaderPrev;
395
+ private handleHeaderNext;
396
+ private handleMonthSelect;
397
+ private handleYearSelect;
398
+ private handleDaySelect;
328
399
  /**
329
- * Updates the form validity of the date picker input.
330
- * @returns {void}
400
+ * Shared commit path used by day / month / year selection. Keeps the
401
+ * selection logic (single/multi/range) and post-commit behaviour (event,
402
+ * open state, tentative hover, view sync) identical across precisions.
331
403
  */
332
- private updateFormValidity;
404
+ private commitSelection;
405
+ private handleDayHover;
406
+ private handleDayFocus;
407
+ private getRTLDirection;
408
+ private moveFocusedDay;
409
+ private moveFocusedDayHome;
410
+ private moveFocusedDayEnd;
411
+ private pageFocusedMonth;
412
+ private selectFocusedDay;
413
+ private handleDayGridKeyDown;
414
+ private getGridColumns;
415
+ private handleMonthGridKeyDown;
416
+ private handleYearGridKeyDown;
417
+ private focusButton;
333
418
  /**
334
- * Returns the Cally calendar component tag name based on the picker type.
335
- * Maps 'single' 'calendar-date', 'multi' 'calendar-multi', 'range' 'calendar-range'
336
- *
337
- * @returns The Cally calendar component tag name.
419
+ * Focus the currently active cell for the visible view. Called after the
420
+ * popup opens so keyboard users don't have to tab into the calendar.
338
421
  */
339
- private get calendarType();
422
+ private focusActiveCell;
423
+ private getMonthCount;
424
+ private getHeaderLabel;
425
+ private getHeaderTitleLabel;
426
+ private getPreviousLabel;
427
+ private getNextLabel;
428
+ private renderDayPanels;
429
+ private renderMonthsView;
430
+ private renderYearsView;
431
+ private renderView;
340
432
  render(): any;
341
433
  }