@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 +1 @@
1
- {"version":3,"file":"bq-date-picker.js","sourceRoot":"","sources":["../../../../../../packages/beeq/src/components/date-picker/bq-date-picker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIlH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,SAAS,EACT,2BAA2B,EAC3B,aAAa,EACb,KAAK,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,EAC3B,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import type { EventEmitter } from '@stencil/core';\nimport { AttachInternals, Component, Element, Event, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport type { JSX } from '@stencil/core/internal';\n\nimport type { Placement } from '../../services/interfaces';\nimport {\n clampDateToRange,\n extractFocusedDate,\n formatDisplayValue,\n getTodayISO,\n hasSlotContent,\n isClient,\n isDefined,\n isEventTargetChildOfElement,\n isHTMLElement,\n isNil,\n parseDateInput,\n toISODateString,\n updateFormValidity,\n validatePropValue,\n} from '../../shared/utils';\nimport type { TInputValidation } from '../input/bq-input.types';\nimport type { DaysOfWeek, TCalendarDate, TDatePickerType } from './bq-date-picker.types';\nimport { DATE_PICKER_TYPE } from './bq-date-picker.types';\nimport {\n CALENDAR_CONTAINER_EXPORT_PARTS,\n CALENDAR_MONTH_EXPORT_PARTS,\n CALENDAR_TYPE_MAP,\n DEFAULT_INPUT_ID,\n} from './helper/constants';\nimport { isCallyLibraryLoaded, loadCallyLibrary } from './libs/callyLibrary';\n\n/**\n * 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.\n *\n * @example How to use it\n * ```html\n * <bq-date-picker\n * first-day-of-week=\"1\"\n * locale=\"en-GB\"\n * months-per-view=\"single\"\n * months=\"2\"\n * name=\"bq-date-picker\"\n * placeholder=\"Enter your date\"\n * placement=\"bottom-end\"\n * show-outside-days=\"false\"\n * type=\"range\"\n * validation-status=\"none\"\n * value=\"2024-05-25\"\n * >\n * <label class=\"flex flex-grow items-center\" slot=\"label\">\n * Date picker label\n * </label>\n * </bq-date-picker>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/5793a9-date-picker\n * @status stable\n *\n * @dependency bq-button\n * @dependency bq-dropdown\n * @dependency bq-icon\n *\n * @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.\n * @attr {string} clear-button-label - The clear button aria label.\n * @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.\n * @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.\n * @attr {number} distance - Represents the distance (gutter or margin) between the Date picker panel and the input element.\n * @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.\n * @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\n * @attr {string} form - The ID of the form that the Date picker input belongs to.\n * @attr {string} form-validation-message - The native form validation message (mandatory if `required` is set).\n * @attr {function} is-date-disallowed - A function that takes a date and returns true if the date should not be selectable.\n * @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\n * @attr {string} max - The latest date that can be selected.\n * @attr {string} min - The earliest date that can be selected.\n * @attr {number} months - Number of months to show when range is `true`.\n * @attr {string} name - The Date picker input name.\n * @attr {boolean} open - If `true`, the Date picker panel will be visible.\n * @attr {string} panel-height - When set, it will override the height of the Date picker panel.\n * @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.\n * @attr {boolean} required - Indicates whether or not the Date picker input is required to be filled out before submitting the form.\n * @attr {number} skidding - Represents the skidding between the Date picker panel and the input element.\n * @attr {boolean} show-outside-days - Whether to show days outside the month.\n * @attr {string} strategy - Defines the strategy to position the Date picker panel.\n * @attr {string} tentative - The date that is tentatively selected, e.g. the start of a range selection.\n * @attr {\"single\" | \"multi\" | \"range\"} type - It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection.\n * @attr {\"error\" | \"none\" | \"success\" | \"warning\"} validation-status - The validation status of the Select input.\n * @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.\n *\n * @method clear - Clears the selected 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 *\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 calendar__button - Any button used in the calendar-month component.\n * @part calendar__button - Any button within the calendar-range component.\n * @part calendar__container - The calendar-range container for the entire component.\n * @part calendar__day - The buttons corresponding to each day in the calendar-month grid.\n * @part calendar__disabled - A button that is disabled due to min/max on the calendar-range component.\n * @part calendar__disallowed - Any day that has been disallowed via isDateDisallowed.\n * @part calendar__head - The calendar-month table's header row.\n * @part calendar__header - The calendar-range container for the heading and buttons.\n * @part calendar__heading - The calendar-month heading container that labels the month.\n * @part calendar__heading - The calendar-range heading containing the month and year.\n * @part calendar__next - The next page button on the calendar-range component.\n * @part calendar__outside - Any days which are outside the current month.\n * @part calendar__previous - The previous page button on the calendar-range component.\n * @part calendar__range-end - The day at the end of a date range.\n * @part calendar__range-inner - Any days between the start and end of a date range.\n * @part calendar__range-start - The day at the start of a date range.\n * @part calendar__selected - Any days which are selected.\n * @part calendar__table - The calendar-month <table> element.\n * @part calendar__td - The calendar-month table's body cells.\n * @part calendar__th - The calendar-month table's header cells.\n * @part calendar__today - The Today's day.\n * @part calendar__tr - Any row within the table on the calendar-month component.\n * @part calendar__week - The calendar-month table's body rows.\n * @part clear-btn - The clear button.\n * @part control - The input control wrapper.\n * @part input - The native HTML input element used under the hood.\n * @part label - The label slot container.\n * @part panel - The date picker panel container\n * @part prefix - The prefix slot container.\n * @part suffix - The suffix slot container.\n *\n * @cssprop --bq-date-picker--background-color - Date picker background color.\n * @cssprop --bq-date-picker--border-color - Date picker border color.\n * @cssprop --bq-date-picker--border-color-disabled - Date picker border color when disabled.\n * @cssprop --bq-date-picker--border-color-focus - Date picker border color on focus.\n * @cssprop --bq-date-picker--border-radius - Date picker border radius.\n * @cssprop --bq-date-picker--border-style - Date picker border style.\n * @cssprop --bq-date-picker--border-width - Date picker border width.\n * @cssprop --bq-date-picker--currentDate-border-color - Date picker border color for current date.\n * @cssprop --bq-date-picker--currentDate-border-width - Date picker border width for current date.\n * @cssprop --bq-date-picker--day-size - Date picker button day size.\n * @cssprop --bq-date-picker--gap - Gap between Date picker content and prefix/suffix.\n * @cssprop --bq-date-picker--icon-size - Icon size to use in prefix/suffix and clear button.\n * @cssprop --bq-date-picker--label-margin-bottom - Date picker label margin bottom.\n * @cssprop --bq-date-picker--label-text-color - Date picker label text color.\n * @cssprop --bq-date-picker--label-text-size - Date picker label text size.\n * @cssprop --bq-date-picker--padding-end - Date picker padding end.\n * @cssprop --bq-date-picker--padding-start - Date picker padding start.\n * @cssprop --bq-date-picker--paddingY - Date picker padding top and bottom.\n * @cssprop --bq-date-picker--range-background-color - Background color for the selected date range in the date picker.\n * @cssprop --bq-date-picker--range-inner-background-color - Background color for the selected dates inside the date range in the date picker.\n * @cssprop --bq-date-picker--text-color - Date picker text color.\n * @cssprop --bq-date-picker--text-placeholder-color - Date picker placeholder text color.\n * @cssprop --bq-date-picker--text-size - Date picker text size.\n */\n@Component({\n tag: 'bq-date-picker',\n styleUrl: './scss/bq-date-picker.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqDatePicker {\n // Own Properties\n // ====================\n\n private callyElem?: TCalendarDate;\n private inputElem?: HTMLInputElement;\n private isInternalUpdate = false;\n private labelElem?: HTMLElement;\n private prefixElem?: HTMLElement;\n private suffixElem?: HTMLElement;\n\n // Reference to host HTML element\n // ===================================\n\n @AttachInternals() internals: ElementInternals;\n @Element() el!: HTMLBqDatePickerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() isCallyLoaded = false;\n @State() focusedDate: string;\n @State() displayDate: string;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasRangeEnd = false;\n @State() hasSuffix = false;\n @State() hasValue = false;\n\n // Public Property API\n // ========================\n\n /** If `true`, the Date picker 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 /** If `true`, the clear button won't be displayed */\n @Prop({ reflect: true }) disableClear? = false;\n\n /**\n * Indicates whether the Date picker input is disabled or not.\n * If `true`, the Date picker is disabled and cannot be interacted with.\n */\n @Prop({ mutable: true }) disabled?: boolean = false;\n\n /** Represents the distance (gutter or margin) between the Date picker panel and the input element. */\n @Prop({ reflect: true }) distance?: number = 8;\n\n /** The first day of the week, where Sunday is 0, Monday is 1, etc */\n @Prop({ reflect: true }) firstDayOfWeek?: DaysOfWeek = 1;\n\n /** The options to use when formatting the displayed value.\n * Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options\n */\n @Prop() formatOptions: Intl.DateTimeFormatOptions = {\n day: 'numeric',\n month: 'short',\n year: 'numeric',\n };\n\n /** The ID of the form that the Date picker input 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 /** A function that takes a date and returns true if the date should not be selectable */\n @Prop({ reflect: true }) isDateDisallowed?: (date: Date) => boolean;\n\n /** The locale for formatting dates. If not set, will use the browser's locale.\n * Details: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument\n */\n @Prop({ reflect: true }) locale: Intl.LocalesArgument = 'en-GB';\n\n /** The latest date that can be selected */\n @Prop({ reflect: true }) max?: string;\n\n /** The earliest date that can be selected */\n @Prop({ reflect: true }) min?: string;\n\n /** Number of months to show when range is `true` */\n @Prop({ reflect: true }) months: number;\n\n /**\n * Specifies how the next/previous buttons should navigate the calendar.\n * - single: The buttons will navigate by a single month at a time.\n * - months: The buttons will navigate by the number of months displayed per view.\n */\n @Prop({ reflect: true }) monthsPerView: 'single' | 'months' = 'single';\n\n /** The Date picker input name. */\n @Prop({ reflect: true }) name!: string;\n\n /** If `true`, the Date picker panel will be visible. */\n @Prop({ reflect: true, mutable: true }) open?: boolean = false;\n\n /** When set, it will override the height of the Date picker panel. */\n @Prop({ reflect: true, mutable: true }) panelHeight?: string = 'auto';\n\n /** The Date picker input placeholder text value */\n @Prop({ reflect: true }) placeholder?: string;\n\n /** Position of the Date picker panel */\n @Prop({ reflect: true }) placement?: Placement = 'bottom-end';\n\n /** Indicates whether or not the Date picker input is required to be filled out before submitting the form. */\n @Prop({ reflect: true }) required?: boolean;\n\n /** Represents the skidding between the Date picker panel and the input element. */\n @Prop({ reflect: true }) skidding?: number = 0;\n\n /** Whether to show days outside the month */\n @Prop({ reflect: true }) showOutsideDays: boolean = false;\n\n /** Defines the strategy to position the Date picker panel */\n @Prop({ reflect: true }) strategy?: 'fixed' | 'absolute' = 'fixed';\n\n /** The date that is tentatively selected e.g. the start of a range selection */\n @Prop({ reflect: true, mutable: true }) tentative?: string;\n\n /** It defines how the calendar will behave, allowing single date selection, range selection, or multiple date selection */\n @Prop({ reflect: true }) type: TDatePickerType = 'single';\n\n /**\n * The validation status of the Select input.\n *\n * @remarks\n * This property is used to indicate the validation status of the select 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 select input value represents the currently selected date or range and can be used to reset the field to a previous value.\n * All dates are expected in ISO-8601 format (YYYY-MM-DD). */\n @Prop({ reflect: true, mutable: true }) value: string;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('value')\n handleValueChange(newValue: string, oldValue: string) {\n if (newValue === oldValue) return;\n\n const { formatOptions, internals, isCallyLoaded, locale, type } = this;\n if (!isCallyLoaded) return;\n\n internals.setFormValue(!isNil(newValue) ? `${newValue}` : undefined);\n this.updateFormValidity();\n\n this.hasValue = isDefined(newValue);\n this.displayDate = formatDisplayValue(newValue, type, locale, formatOptions);\n\n this.setFocusedDate();\n }\n\n @Watch('type')\n checkPropValues() {\n validatePropValue(DATE_PICKER_TYPE, 'single', this.el, 'type');\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<HTMLBqDatePickerElement>;\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; el: HTMLBqDatePickerElement }>;\n\n /** Callback handler emitted when the input value has been cleared */\n @Event() bqClear!: EventEmitter<HTMLBqDatePickerElement>;\n\n /** Callback handler emitted when the input has received focus */\n @Event() bqFocus!: EventEmitter<HTMLBqDatePickerElement>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n async componentWillLoad() {\n if (!isClient() || this.isCallyLoaded) return;\n\n try {\n await loadCallyLibrary();\n this.isCallyLoaded = isCallyLibraryLoaded();\n } catch (error) {\n console.error(error);\n }\n }\n\n componentDidLoad() {\n this.handleSlotChange();\n this.handleValueChange(this.value, undefined);\n }\n\n componentDidRender() {\n if (this.isInternalUpdate) {\n this.isInternalUpdate = false;\n }\n }\n\n formAssociatedCallback() {\n this.updateFormValidity();\n }\n\n formResetCallback() {\n if (isNil(this.value)) return;\n\n this.clear();\n }\n\n // Listeners\n // ==============\n\n @Listen('bqOpen', { capture: true })\n handleOpenChange(ev: CustomEvent<{ open: boolean }>) {\n if (!isEventTargetChildOfElement(ev, this.el)) return;\n\n const { open } = ev.detail;\n if (this.open === open) return;\n\n this.open = open;\n }\n\n @Listen('click', { target: 'body', capture: true })\n handleClickOutside(ev: MouseEvent) {\n const { open, type, hasRangeEnd } = this;\n if (!open || type !== 'range' || ev.button !== 0) return;\n if (isEventTargetChildOfElement(ev, this.el) || hasRangeEnd) return;\n\n this.tentative = undefined;\n this.hasRangeEnd = false;\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 /**\n * Clears the selected value.\n * @returns {Promise<void>}\n */\n @Method()\n async clear(): Promise<void> {\n if (this.disabled) return;\n\n this.value = undefined;\n this.internals.setFormValue(undefined);\n this.bqClear.emit(this.el);\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n /**\n * Handles the blur event for the date picker input.\n * @returns {void}\n */\n private handleBlur = (): void => {\n if (this.disabled) return;\n\n this.bqBlur.emit(this.el);\n };\n\n /**\n * Handles the focus event for the date picker input.\n * @returns {void}\n */\n private handleFocus = (): void => {\n if (this.disabled) return;\n\n this.bqFocus.emit(this.el);\n };\n\n /**\n * Updates the focused date in the calendar component.\n * Falls back to today's date if no value is set.\n * @returns {void}\n */\n private setFocusedDate = (): void => {\n const { callyElem, isCallyLoaded, value } = this;\n if (!callyElem || !isCallyLoaded) return;\n\n const nextFocused = value ? extractFocusedDate(value) : getTodayISO();\n if (this.focusedDate === nextFocused) return;\n\n this.focusedDate = nextFocused;\n if (callyElem.focusedDate !== this.focusedDate) {\n // We need to set the focused date in the calendar component via a ref\n // because it doesn't work when passed as a prop (the Cally element does not re-render)\n callyElem.focusedDate = this.focusedDate;\n }\n };\n\n /**\n * Handles user input changes with locale-aware date parsing.\n * Validates against disallowed dates and min/max constraints.\n * @param {Event} ev - The change event.\n * @returns {void}\n */\n private handleChange = (ev: Event): void => {\n if (this.disabled || !isHTMLElement(ev.target, 'input')) return;\n\n const inputValue = ev.target.value.trim();\n if (!inputValue) {\n this.clearValue();\n this.bqChange.emit({ value: this.value, el: this.el });\n return;\n }\n\n // Try to parse as date with locale awareness\n const dateValue = parseDateInput(inputValue, this.locale);\n if (!dateValue) {\n // Invalid date: don't update component value to avoid side effects\n this.internals.setFormValue(undefined);\n this.updateFormValidity();\n this.bqChange.emit({ value: inputValue, el: this.el });\n return;\n }\n\n // Check if date is disallowed\n if (this.isDateDisallowed?.(dateValue)) {\n this.internals.setFormValue(undefined);\n this.updateFormValidity();\n this.bqChange.emit({ value: inputValue, el: this.el });\n return;\n }\n\n // Valid date: normalize to ISO format and clamp to range if needed\n // Note: clamping is done based on string comparison of ISO dates and only when min/max are set\n let isoDate = toISODateString(dateValue);\n isoDate = clampDateToRange(isoDate, this.min, this.max);\n\n this.value = isoDate;\n this.displayDate = formatDisplayValue(isoDate, this.type, this.locale, this.formatOptions);\n this.internals.setFormValue(isoDate);\n this.updateFormValidity();\n this.bqChange.emit({ value: this.value, el: this.el });\n };\n\n /**\n * Handles the change event when the user selects a date in the calendar component.\n * @param {Event} ev - The change event.\n * @returns {void}\n */\n private handleCalendarChange = (ev: Event): void => {\n if (this.isInternalUpdate) return;\n\n const shouldStayOpen = this.type === 'multi';\n const value = (ev.target as unknown as { value: string }).value;\n\n if (this.value === value) {\n this.open = shouldStayOpen;\n return;\n }\n\n this.isInternalUpdate = true;\n\n this.value = value;\n this.displayDate = formatDisplayValue(value, this.type, this.locale, this.formatOptions);\n this.inputElem.value = this.displayDate;\n this.inputElem.focus();\n\n this.internals.setFormValue(value);\n this.bqChange.emit({ value: this.value, el: this.el });\n\n this.open = shouldStayOpen;\n };\n\n /**\n * Handles the range start event when the user starts selecting a date range\n * @param {CustomEvent} ev - The range start event.\n * @returns {void}\n */\n private handleCalendarRangeStart = (ev: CustomEvent): void => {\n this.hasRangeEnd = false;\n this.tentative = ev.detail;\n };\n\n /**\n * Handles the range end event when the user finishes selecting a date range\n * @returns {void}\n */\n private handleCalendarRangeEnd = (): void => {\n this.hasRangeEnd = true;\n };\n\n /**\n * Handles the clear click event when the user clicks the clear button\n * @param {CustomEvent} ev - The clear click event.\n * @returns {void}\n */\n private handleClearClick = (ev: CustomEvent): void => {\n if (this.disabled) return;\n\n this.inputElem.value = '';\n this.clearValue();\n this.hasRangeEnd = false;\n\n this.bqClear.emit(this.el);\n this.bqChange.emit({ value: this.value, el: this.el });\n this.inputElem.focus();\n\n ev.stopPropagation();\n };\n\n /**\n * Clears the value of the date picker input.\n * @returns {void}\n */\n private clearValue = (): void => {\n this.value = undefined;\n this.displayDate = undefined;\n this.internals.setFormValue(undefined);\n };\n\n /**\n * Handles the slot change event when the slots content changes\n * @returns {void}\n */\n private handleSlotChange = (): void => {\n this.hasLabel = hasSlotContent(this.labelElem);\n this.hasPrefix = hasSlotContent(this.prefixElem);\n this.hasSuffix = hasSlotContent(this.suffixElem);\n };\n\n /**\n * Generates a calendar month element\n * @param {number} offset - The offset of the calendar month.\n * @param {string} className - The class name of the calendar month.\n * @returns {JSX.Element | null} The calendar month element.\n */\n private generateCalendarMonth = (offset?: number, className: string = ''): JSX.Element | null => {\n if (!this.isCallyLoaded) return null;\n\n return <calendar-month class={className} exportparts={CALENDAR_MONTH_EXPORT_PARTS} offset={offset} />;\n };\n\n /**\n * Generates an array of Elements representing the calendar months.\n *\n * If the type of the date picker is 'range' or 'multi' and the number of months is specified,\n * it generates an array of calendar months with the specified length. Each month will have an offset\n * and a class name based on its position in the array. The offset is used to determine the month to display,\n * and the class name is used for responsive design.\n *\n * If the type of the date picker is not 'range' or 'multi', or if the number of months is not specified,\n * it generates an array with a single calendar month.\n *\n * @returns {JSX.Element[]} An array of elements representing the calendar months.\n */\n private generateCalendarMonths = (): JSX.Element[] => {\n if (!this.isCallyLoaded) return [];\n\n if (this.type === 'range' || (this.type === 'multi' && this.months)) {\n return Array.from({ length: this.months }, (_, i) => {\n const offset = i > 0 ? i : undefined;\n const className = offset ? 'hidden sm:block' : '';\n return this.generateCalendarMonth(offset, className);\n });\n }\n\n return [this.generateCalendarMonth()];\n };\n\n /**\n * Updates the form validity of the date picker input.\n * @returns {void}\n */\n private updateFormValidity = (): void => {\n const { formValidationMessage, internals, required, value, inputElem } = this;\n\n updateFormValidity({\n internals,\n required,\n value,\n inputElem,\n validationMessage: formValidationMessage,\n defaultMessage: 'Please, input or select a valid date',\n });\n };\n\n /**\n * Returns the Cally calendar component tag name based on the picker type.\n * Maps 'single' → 'calendar-date', 'multi' → 'calendar-multi', 'range' → 'calendar-range'\n *\n * @returns The Cally calendar component tag name.\n */\n private get calendarType(): (typeof CALENDAR_TYPE_MAP)[TDatePickerType] {\n return CALENDAR_TYPE_MAP[this.type] ?? CALENDAR_TYPE_MAP.single;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const CallyCalendar = this.calendarType;\n const labelId = `bq-date-picker__label-${this.name || DEFAULT_INPUT_ID}`;\n\n return (\n <div class=\"bq-date-picker\" part=\"base\">\n {/* Label */}\n <label\n aria-labelledby={labelId}\n class={{ 'bq-date-picker__label': true, '!hidden': !this.hasLabel }}\n htmlFor={this.name || DEFAULT_INPUT_ID}\n part=\"label\"\n ref={(labelElem: HTMLSpanElement) => {\n this.labelElem = labelElem;\n }}\n >\n <slot id={labelId} name=\"label\" onSlotchange={this.handleSlotChange} />\n </label>\n {/* Select date picker dropdown */}\n <bq-dropdown\n class=\"bq-date-picker__dropdown is-full [&::part(panel)]:is-auto [&::part(panel)]:p-m\"\n disabled={this.disabled}\n distance={this.distance}\n exportparts=\"panel\"\n open={this.open}\n panelHeight={this.panelHeight}\n placement={this.placement}\n skidding={this.skidding}\n strategy={this.strategy}\n >\n {/* Input control group */}\n <div\n class={{\n 'bq-date-picker__control': true,\n [`validation-${this.validationStatus}`]: true,\n disabled: this.disabled,\n }}\n part=\"control\"\n slot=\"trigger\"\n >\n {/* Prefix */}\n <span\n class={{ 'bq-date-picker__control--prefix': true, '!hidden': !this.hasPrefix }}\n part=\"prefix\"\n ref={(spanElem: HTMLSpanElement) => {\n this.prefixElem = spanElem;\n }}\n >\n <slot name=\"prefix\" onSlotchange={this.handleSlotChange} />\n </span>\n {/* HTML Input */}\n <input\n aria-controls={`${this.name}`}\n aria-describedby={this.hasLabel ? labelId : null}\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-invalid={this.validationStatus === 'error' ? 'true' : 'false'}\n aria-haspopup=\"dialog\"\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n class=\"bq-date-picker__control--input\"\n disabled={this.disabled}\n form={this.form}\n id={this.name || DEFAULT_INPUT_ID}\n name={this.name}\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onFocus={this.handleFocus}\n part=\"input\"\n placeholder={this.placeholder}\n readonly={this.type !== 'single'}\n ref={(inputElem: HTMLInputElement) => {\n this.inputElem = inputElem;\n }}\n required={this.required}\n spellcheck={false}\n type=\"text\"\n value={this.displayDate}\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 appearance=\"text\"\n border=\"s\"\n class=\"bq-date-picker__control--clear ms-[--bq-date-picker--gap] hidden [&::part(button)]:border-none [&::part(button)]:p-0\"\n exportparts=\"button\"\n label={this.clearButtonLabel}\n onBqClick={this.handleClearClick}\n onlyIcon\n part=\"clear-btn\"\n size=\"small\"\n >\n <slot name=\"clear-icon\">\n <bq-icon aria-hidden=\"true\" class=\"flex\" name=\"x-circle\" />\n </slot>\n </bq-button>\n )}\n {/* Suffix */}\n <span\n class=\"bq-date-picker__control--suffix\"\n part=\"suffix\"\n ref={(spanElem: HTMLSpanElement) => {\n this.suffixElem = spanElem;\n }}\n >\n <slot name=\"suffix\" onSlotchange={this.handleSlotChange}>\n <bq-icon class=\"flex\" name=\"calendar-blank\" />\n </slot>\n </span>\n </div>\n {this.isCallyLoaded && (\n <CallyCalendar\n aria-labelledby={labelId}\n aria-modal=\"true\"\n exportparts={CALENDAR_CONTAINER_EXPORT_PARTS}\n firstDayOfWeek={this.firstDayOfWeek}\n isDateDisallowed={this.isDateDisallowed}\n locale={this.locale as string}\n max={this.max}\n min={this.min}\n months={this.months}\n onChange={this.handleCalendarChange}\n onRangeend={this.handleCalendarRangeEnd}\n onRangestart={this.handleCalendarRangeStart}\n pageBy={this.monthsPerView}\n ref={(elem: TCalendarDate) => {\n this.callyElem = elem;\n }}\n role=\"dialog\"\n showOutsideDays={this.showOutsideDays}\n tentative={this.tentative}\n value={this.value}\n >\n <bq-icon color=\"text--primary\" label=\"Previous\" name=\"caret-left\" slot=\"previous\" />\n <bq-icon color=\"text--primary\" label=\"Next\" name=\"caret-right\" slot=\"next\" />\n\n <div class=\"flex flex-wrap justify-center gap-[--bq-spacing-m]\">{this.generateCalendarMonths()}</div>\n </CallyCalendar>\n )}\n </bq-dropdown>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"bq-date-picker.js","sourceRoot":"","sources":["../../../../../../packages/beeq/src/components/date-picker/bq-date-picker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIlH,OAAO,EACL,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,aAAa,EACb,KAAK,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAyB,MAAM,yBAAyB,CAAC;AAUlF,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import type { EventEmitter } from '@stencil/core';\nimport { AttachInternals, Component, Element, Event, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport type { JSX } from '@stencil/core/internal';\n\nimport type { Placement } from '../../services/interfaces';\nimport {\n getTodayISO,\n hasSlotContent,\n isEventTargetChildOfElement,\n isHTMLElement,\n isNil,\n updateFormValidity,\n validatePropValue,\n} from '../../shared/utils';\nimport { INPUT_VALIDATION, type TInputValidation } from '../input/bq-input.types';\nimport type {\n DaysOfWeek,\n TCalendarView,\n TDatePickerType,\n TDatePrecision,\n TFloatingStrategy,\n TMonthsPerView,\n TSelection,\n} from './bq-date-picker.types';\nimport {\n CALENDAR_VIEW,\n DATE_PICKER_TYPE,\n DATE_PRECISION,\n DAYS_OF_WEEK,\n FLOATING_PLACEMENT,\n FLOATING_STRATEGY,\n MONTHS_PER_VIEW,\n} from './bq-date-picker.types';\nimport { CalendarDayView } from './components/CalendarDayView';\nimport { CalendarHeader } from './components/CalendarHeader';\nimport { CalendarMonthView } from './components/CalendarMonthView';\nimport { CalendarYearView } from './components/CalendarYearView';\nimport { isMonthWithinBounds, isYearWithinBounds, padBound } from './helper/bounds';\nimport {\n addDays,\n addMonths,\n addYears,\n clampDate,\n endOfMonth,\n getDecadeStart,\n isWithinBounds,\n parseISO,\n startOfMonth,\n toISO,\n} from './helper/calendar';\nimport { CALENDAR_PARTS, DECADE_GRID_SIZE, DEFAULT_INPUT_ID, MAX_MONTHS_PER_VIEW } from './helper/constants';\nimport { parseTypedInput } from './helper/input';\nimport { formatMonth } from './helper/intl';\nimport { getHeaderLabel, getHeaderTitleLabel, getNextLabel, getPreviousLabel } from './helper/labels';\nimport { advanceFocusedMonth, advanceFocusedYear, getGridColumns } from './helper/navigation';\nimport { applySelection, buildTentativeRange, parseValue, serializeValue } from './helper/selection';\nimport {\n computeDisplayDate,\n computeHasValue,\n DEFAULT_FORMAT_OPTIONS_BY_PRECISION,\n normalizeValue,\n} from './helper/value';\n\n/** Compose the default constraint-validation message for a set of flags. */\nconst defaultValidityMessage = (flags: ValidityStateFlags): string => {\n if (flags.badInput) return 'Please, input or select a valid date';\n if (flags.rangeUnderflow && flags.rangeOverflow) return 'Selected value is outside the allowed range';\n if (flags.rangeUnderflow) return 'Selected value is before the minimum';\n return 'Selected value is after the maximum';\n};\n\n/**\n * The Date Picker is a pure-Stencil calendar input.\n *\n * It supports single, multi, and range selection, three navigation views\n * (days → months → years), full localization via `Intl.DateTimeFormat`,\n * multi-month side-by-side rendering, and RTL layouts.\n *\n * @example How to use it\n * ```html\n * <bq-date-picker\n * first-day-of-week=\"1\"\n * locale=\"en-GB\"\n * name=\"bq-date-picker\"\n * placeholder=\"Enter your date\"\n * type=\"single\"\n * value=\"2026-07-15\"\n * >\n * <label slot=\"label\">Date picker label</label>\n * </bq-date-picker>\n * ```\n *\n * @documentation https://storybook.beeq.design/?path=/docs/components-date-picker--docs\n *\n * @status experimental\n *\n * @dependency bq-button\n * @dependency bq-dropdown\n * @dependency bq-icon\n *\n * @attr {boolean} autofocus - If `true`, the Date picker input will be focused on component render.\n * @attr {string} clear-button-label - The clear button aria label.\n * @attr {string} calendar-button-label - The aria-label for the calendar trigger button.\n * @attr {boolean} disable-clear - If `true`, the clear button won't be displayed.\n * @attr {boolean} disabled - Indicates whether the Date picker input is disabled or not.\n * @attr {number} distance - Represents the distance between the panel and the input.\n * @attr {0 | 1 | 2 | 3 | 4 | 5 | 6} first-day-of-week - The first day of the week (0 = Sunday).\n * @attr {Intl.DateTimeFormatOptions} format-options - Display formatting options.\n * @attr {string} form - The form ID the input belongs to.\n * @attr {string} form-validation-message - Custom native form validation message.\n * @attr {\"days\" | \"months\" | \"years\"} initial-view - The view to open when the panel first opens.\n * @attr {function} is-date-disallowed - Predicate that marks specific dates as unselectable.\n * @attr {Intl.LocalesArgument} locale - Locale used for formatting.\n * @attr {string} max - Latest selectable date (ISO).\n * @attr {string} min - Earliest selectable date (ISO).\n * @attr {number} months - Number of month panels to render side by side (range/multi). Capped at 2.\n * @attr {\"single\" | \"months\"} months-per-view - Prev/Next step size when multi-month is enabled.\n * @attr {string} name - Input name.\n * @attr {boolean} open - If `true`, the panel is visible.\n * @attr {string} panel-height - Overrides the height of the panel.\n * @attr {string} placeholder - Input placeholder text.\n * @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.\n * @attr {boolean} required - Whether a value must be selected before submitting the form.\n * @attr {boolean} show-outside-days - Whether to render days that belong to adjacent months.\n * @attr {number} skidding - Skidding between the panel and the trigger.\n * @attr {\"fixed\" | \"absolute\"} strategy - Positioning strategy for the panel.\n * @attr {\"single\" | \"multi\" | \"range\"} type - Selection mode.\n * @attr {\"error\" | \"none\" | \"success\" | \"warning\"} validation-status - Validation state.\n * @attr {string} value - The current selection, as a wire-format string. Shape depends on `type` and `precision`:\n * • **single**: a single ISO token — `YYYY-MM-DD` (precision `day`), `YYYY-MM` (precision `month`), `YYYY` (precision `year`).\n * • **range**: `start/end` (two tokens joined with `/`) at the same precision.\n * • **multi**: space-separated tokens at the same precision.\n * Bounds (`min`/`max`) may be supplied at any of these precisions and are honoured accordingly.\n * @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\"`.\n *\n * @method clear - Clears the selected value.\n *\n * @event bqBlur - Emitted when the input loses focus.\n * @event bqChange - Emitted when the value changes.\n * @event bqClear - Emitted when the value is cleared.\n * @event bqFocus - Emitted when the input receives focus.\n * @event bqViewChange - Emitted when the internal calendar view changes (days ↔ months ↔ years).\n *\n * @slot label - The label displayed above the input.\n * @slot prefix - Content rendered before the input value.\n * @slot suffix - Icon rendered inside the calendar trigger button (defaults to a calendar icon).\n * @slot clear-icon - Icon used inside the clear button.\n *\n * @part base - The component's base wrapper.\n * @part label - The label slot container.\n * @part control - The input control wrapper.\n * @part prefix - The prefix slot container.\n * @part suffix - The suffix slot container.\n * @part input - The native input element.\n * @part clear-btn - The clear button.\n * @part calendar-trigger - The calendar icon trigger button.\n * @part button - Any button rendered inside the calendar (nav or day/month/year cell).\n * @part panel - The dropdown panel container.\n * @part calendar__container - The calendar panels wrapper.\n * @part calendar__header - The header row (prev / title / next).\n * @part calendar__heading - The header title button (or month label above a panel).\n * @part calendar__previous - The previous navigation button.\n * @part calendar__next - The next navigation button.\n * @part calendar__table - The day-view `<table>` element.\n * @part calendar__head - The day-view table header row wrapper.\n * @part calendar__tr - Any row within the day-view table.\n * @part calendar__th - The day-view weekday header cells.\n * @part calendar__week - Body rows in the day-view table.\n * @part calendar__td - Body cells in the day-view table.\n * @part calendar__day - Any day button in the day view.\n * @part calendar__today - The button representing today's date.\n * @part calendar__selected - Any selected day.\n * @part calendar__outside - Any day outside the visible month.\n * @part calendar__disallowed - Any day rejected by `isDateDisallowed`.\n * @part calendar__disabled - Any button disabled by min/max.\n * @part calendar__range-start - The first day of a range selection.\n * @part calendar__range-end - The last day of a range selection.\n * @part calendar__range-inner - Days between the start and end of a range.\n * @part calendar__months - The month-view grid.\n * @part calendar__month - Any month button.\n * @part calendar__month-selected - The currently selected month.\n * @part calendar__years - The year-view grid.\n * @part calendar__year - Any year button.\n * @part calendar__year-selected - The currently selected year.\n *\n * @cssprop --bq-date-picker--background-color - Input background color.\n * @cssprop --bq-date-picker--border-color - Input border color.\n * @cssprop --bq-date-picker--border-color-disabled - Border color when disabled.\n * @cssprop --bq-date-picker--border-color-focus - Border color on focus.\n * @cssprop --bq-date-picker--border-radius - Input border radius.\n * @cssprop --bq-date-picker--border-style - Border style.\n * @cssprop --bq-date-picker--border-width - Border width.\n * @cssprop --bq-date-picker--currentDate-border-color - Border color for today's date.\n * @cssprop --bq-date-picker--currentDate-border-width - Border width for today's date.\n * @cssprop --bq-date-picker--day-size - Size of a day cell in the calendar.\n * @cssprop --bq-date-picker--gap - Gap between the input content and prefix/suffix.\n * @cssprop --bq-date-picker--header-title-color - Color of the per-panel month label in multi-panel view.\n * @cssprop --bq-date-picker--icon-size - Size of the icons used in prefix/suffix/clear.\n * @cssprop --bq-date-picker--label-margin-bottom - Space below the label.\n * @cssprop --bq-date-picker--label-text-color - Label text color.\n * @cssprop --bq-date-picker--label-text-size - Label text size.\n * @cssprop --bq-date-picker--padding-end - Input padding end.\n * @cssprop --bq-date-picker--padding-start - Input padding start.\n * @cssprop --bq-date-picker--paddingY - Input vertical padding.\n * @cssprop --bq-date-picker--range-background-color - Background color for range start/end days.\n * @cssprop --bq-date-picker--range-inner-background-color - Background color for inner range days.\n * @cssprop --bq-date-picker--row-gap - Vertical space between day-grid rows.\n * @cssprop --bq-date-picker--text-color - Input text color.\n * @cssprop --bq-date-picker--text-placeholder-color - Placeholder text color.\n * @cssprop --bq-date-picker--text-size - Input text size.\n * @cssprop --bq-date-picker--view-cell-background-hover - Hover background for day/month/year cells.\n * @cssprop --bq-date-picker--view-cell-background-selected - Selected background for day/month/year cells.\n * @cssprop --bq-date-picker--view-cell-height - Height of month/year cells.\n * @cssprop --bq-date-picker--view-cell-radius - Border radius of day/month/year cells.\n * @cssprop --bq-date-picker--view-cell-text-selected - Text color for selected day/month/year cells.\n */\n@Component({\n tag: 'bq-date-picker',\n styleUrl: './scss/bq-date-picker.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqDatePicker {\n // Own Properties\n // ====================\n\n /**\n * Memoized parsed selection. Key encodes both `value` and `type` so cache\n * misses invalidate correctly. Value derives from `value`; not promoted to\n * `@State()` to preserve a single source of truth.\n */\n private cachedSelection?: { key: string; value: TSelection };\n\n /** Sticky flag: last typed input couldn't be parsed. Cleared on next successful commit or `clear()`. */\n private hasBadInput: boolean = false;\n\n /** Initial `value` captured at load time, restored on form reset. */\n private initialValue?: string;\n\n private inputElem?: HTMLInputElement;\n\n /** Set while `commitSelection` writes back to `this.value`. */\n private isCommittingSelection = false;\n\n private labelElem?: HTMLElement;\n\n /** Pending requestAnimationFrame id used by `focusButton`. */\n private pendingFocusRAF?: number;\n\n private prefixElem?: HTMLElement;\n private triggerBtnElem?: HTMLBqButtonElement;\n\n // Reference to host HTML element\n // ===================================\n\n @AttachInternals() internals!: ElementInternals;\n @Element() el!: HTMLBqDatePickerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() decadeStart: number = getDecadeStart(new Date().getFullYear());\n @State() displayDate?: string;\n @State() focusedISO: string = getTodayISO();\n @State() focusedMonth: number = new Date().getMonth();\n @State() focusedYear: number = new Date().getFullYear();\n @State() hasConstraintError = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasValue = false;\n @State() tentativeHover?: string;\n @State() view: TCalendarView = 'days';\n @State() viewDate: Date = new Date();\n\n // Public Property API\n // ========================\n\n /** If `true`, the Date picker input will be focused on component render. */\n @Prop({ reflect: true }) autofocus: boolean = false;\n\n /** The clear button aria label. */\n @Prop({ reflect: true }) clearButtonLabel: string = 'Clear value';\n\n /** The aria-label for the calendar trigger button. */\n @Prop({ reflect: true }) calendarButtonLabel: string = 'Open calendar';\n\n /** If `true`, the clear button won't be displayed. */\n @Prop({ reflect: true }) disableClear: boolean = false;\n\n /** Indicates whether the Date picker input is disabled or not. */\n @Prop({ reflect: true, mutable: true }) disabled: boolean = false;\n\n /** Distance (gutter) between the Date picker panel and the input element. */\n @Prop({ reflect: true }) distance: number = 8;\n\n /** The first day of the week, where Sunday is 0, Monday is 1, etc. */\n @Prop({ reflect: true }) firstDayOfWeek: DaysOfWeek = 1;\n\n /**\n * Options used when formatting the displayed value.\n *\n * When omitted, sensible defaults are picked based on `precision`:\n * - `day` → `{ day: 'numeric', month: 'short', year: 'numeric' }`\n * - `month` → `{ month: 'long', year: 'numeric' }`\n * - `year` → `{ year: 'numeric' }`\n */\n @Prop() formatOptions?: Intl.DateTimeFormatOptions;\n\n /** The ID of the form the input belongs to. */\n @Prop({ reflect: true }) form?: string;\n\n /** Native form validation message (mandatory if `required` is set). */\n @Prop({ mutable: true }) formValidationMessage?: string;\n\n /** The view opened first when the panel becomes visible. */\n @Prop({ reflect: true }) initialView: TCalendarView = 'days';\n\n /** Predicate that marks specific dates as unselectable. */\n @Prop() isDateDisallowed?: (date: Date) => boolean;\n\n /** Locale used for formatting dates. */\n @Prop({ reflect: true }) locale: Intl.LocalesArgument = 'en-GB';\n\n /** Latest date that can be selected (ISO). */\n @Prop({ reflect: true }) max?: string;\n\n /** Earliest date that can be selected (ISO). */\n @Prop({ reflect: true }) min?: string;\n\n /**\n * Number of months to show side by side (range / multi). Capped at 2.\n * Larger values are silently clamped to keep the popover from overflowing\n * the viewport and to preserve keyboard navigation semantics.\n */\n @Prop({ reflect: true, mutable: true }) months: number = 1;\n\n /**\n * How the next/previous buttons should navigate the calendar.\n * - single: navigate one month at a time.\n * - months: navigate by the number of months displayed.\n */\n @Prop({ reflect: true }) monthsPerView: TMonthsPerView = 'single';\n\n /** The Date picker input name. */\n @Prop({ reflect: true }) name!: string;\n\n /** If `true`, the panel is visible. */\n @Prop({ reflect: true, mutable: true }) open: boolean = false;\n\n /** Overrides the height of the Date picker panel. */\n @Prop({ reflect: true, mutable: true }) panelHeight?: string = 'auto';\n\n /** Placeholder text shown when no value is selected. */\n @Prop({ reflect: true }) placeholder?: string;\n\n /** Position of the Date picker panel. */\n @Prop({ reflect: true }) placement: Placement = 'bottom-end';\n\n /**\n * Precision of the value produced by the picker.\n *\n * - `day` → `YYYY-MM-DD` (default). Standard drill-down.\n * - `month` → `YYYY-MM`. Selection commits on the months view; no days view.\n * - `year` → `YYYY`. Selection commits on the years view; no months/days view.\n *\n * When precision is coarser than day, `initialView` is forced to match and\n * the header title cycles through the views available for that precision.\n */\n @Prop({ reflect: true }) precision: TDatePrecision = 'day';\n\n /** Whether a value must be selected before submitting the form. */\n @Prop({ reflect: true }) required: boolean = false;\n\n /** Skidding between the panel and the input element. */\n @Prop({ reflect: true }) skidding: number = 0;\n\n /** Whether to render days outside the current month. */\n @Prop({ reflect: true }) showOutsideDays: boolean = false;\n\n /** Positioning strategy for the panel. */\n @Prop({ reflect: true }) strategy: TFloatingStrategy = 'fixed';\n\n /**\n * Selection type.\n * - `single`: single date.\n * - `multi`: multiple discrete dates.\n * - `range`: contiguous range.\n */\n @Prop({ reflect: true }) type: TDatePickerType = 'single';\n\n /** Validation state applied to the input. */\n @Prop({ reflect: true }) validationStatus: TInputValidation = 'none';\n\n /**\n * Currently selected value, in the precision-aware wire format:\n * - `precision=\"day\"` → tokens are `YYYY-MM-DD`\n * - `precision=\"month\"` → tokens are `YYYY-MM`\n * - `precision=\"year\"` → tokens are `YYYY`\n *\n * How multiple tokens are combined depends on `type`:\n * - `single` → a single token (e.g. `\"2025-05-15\"`, `\"2025-05\"`, `\"2025\"`)\n * - `range` → `\"start/end\"` — two tokens joined with `/`\n * - `multi` → space-separated tokens (e.g. `\"2025-05-15 2025-05-20\"`)\n */\n @Prop({ reflect: true, mutable: true }) value: string | undefined;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('value')\n handleValueChange(newValue: string | undefined, oldValue: string | undefined) {\n if (newValue === oldValue) return;\n\n // Normalize invalid tokens before propagating to the form or the UI so\n // consumers can't submit an invalid wire value while the display shows\n // nothing. If normalization rewrote the value, reflect it back on the\n // prop and let the follow-up watcher tick handle the normalized string.\n const normalized = normalizeValue(newValue, this.type, this.precision);\n if (normalized !== newValue) {\n this.value = normalized;\n return;\n }\n\n this.hasBadInput = false;\n this.syncDerivedFromValue();\n if (this.isCommittingSelection) return;\n this.syncViewToValue();\n }\n\n @Watch('formatOptions')\n @Watch('locale')\n handleFormattingChange() {\n // Re-format the display without re-parsing the wire value.\n this.hasValue = computeHasValue(this.value);\n this.displayDate = computeDisplayDate(\n this.value,\n this.type,\n this.locale,\n this.effectiveFormatOptions,\n this.precision,\n );\n }\n\n @Watch('type')\n handleTypeChange() {\n // `type` affects wire-format parsing, display formatting, and validity.\n // Re-normalize the current value against the new type; if that rewrites\n // the value, the `value` watcher takes over. Otherwise refresh derived\n // state and re-sync the visible calendar range.\n const normalized = normalizeValue(this.value, this.type, this.precision);\n if (normalized !== this.value) {\n this.value = normalized;\n return;\n }\n this.syncDerivedFromValue();\n this.syncViewToValue();\n }\n\n @Watch('precision')\n handlePrecisionChange() {\n validatePropValue(DATE_PRECISION, 'day', this.el, 'precision');\n // Precision affects both wire format and default view. Force the calendar\n // to open on the matching view and re-normalize the current value so\n // trailing day/month segments are dropped or padded consistently.\n this.view = this.precisionToView(this.precision);\n const normalized = normalizeValue(this.value, this.type, this.precision);\n if (normalized !== this.value) {\n this.value = normalized;\n return;\n }\n this.syncDerivedFromValue();\n this.syncViewToValue();\n }\n\n @Watch('max')\n @Watch('min')\n handleBoundsChange() {\n this.syncValidity();\n this.syncViewToValue();\n }\n\n @Watch('required')\n handleRequiredChange() {\n this.syncValidity();\n }\n\n @Watch('firstDayOfWeek')\n @Watch('initialView')\n @Watch('monthsPerView')\n @Watch('placement')\n @Watch('precision')\n @Watch('strategy')\n @Watch('type')\n @Watch('validationStatus')\n checkPropValues() {\n validatePropValue(DATE_PICKER_TYPE, 'single', this.el, 'type');\n validatePropValue(CALENDAR_VIEW, 'days', this.el, 'initialView');\n validatePropValue(DATE_PRECISION, 'day', this.el, 'precision');\n validatePropValue(MONTHS_PER_VIEW, 'single', this.el, 'monthsPerView');\n validatePropValue(FLOATING_STRATEGY, 'fixed', this.el, 'strategy');\n validatePropValue(FLOATING_PLACEMENT, 'bottom-end', this.el, 'placement');\n validatePropValue(INPUT_VALIDATION, 'none', this.el, 'validationStatus');\n validatePropValue(DAYS_OF_WEEK, 1, this.el, 'firstDayOfWeek');\n }\n\n @Watch('months')\n handleMonthsChange() {\n // Clamp `months` to an integer in [1, MAX_MONTHS_PER_VIEW]. Non-single\n // pickers may show 1..MAX side-by-side; single pickers ignore the value\n // in `getMonthCount()`, so we still clamp defensively to keep the prop\n // reflected value predictable.\n const clamped = this.clampMonths(this.months);\n if (clamped !== this.months) this.months = clamped;\n }\n\n @Watch('open')\n handleOpen(open: boolean) {\n if (!open) {\n this.tentativeHover = undefined;\n // Return focus to the calendar trigger button after closing the panel,\n // so keyboard users don't lose their position in the document.\n requestAnimationFrame(() => this.triggerBtnElem?.shadowRoot?.querySelector<HTMLButtonElement>('button')?.focus());\n return;\n }\n // Precision locks the initial view; otherwise honor the consumer-provided one.\n this.view = this.precision === 'day' ? this.initialView : this.precisionToView(this.precision);\n this.syncViewToValue();\n // Move keyboard focus into the calendar so screen-reader / keyboard users\n // land on the focused day (or the equivalent focused cell for\n // months/years views). Non-modal popup: focus is *moved*, not trapped.\n this.focusActiveCell();\n }\n\n @Watch('view')\n handleViewChange(next: TCalendarView, prev: TCalendarView) {\n if (next === prev) return;\n this.bqViewChange.emit({ view: next, el: this.el });\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<HTMLBqDatePickerElement>;\n\n /**\n * Callback handler emitted when the input value changes.\n */\n @Event() bqChange!: EventEmitter<{ value: string | undefined; el: HTMLBqDatePickerElement }>;\n\n /** Callback handler emitted when the value is cleared. */\n @Event() bqClear!: EventEmitter<HTMLBqDatePickerElement>;\n\n /** Callback handler emitted when the input receives focus. */\n @Event() bqFocus!: EventEmitter<HTMLBqDatePickerElement>;\n\n /**\n * Callback handler emitted when the internal calendar view changes\n * (e.g. from `days` to `months`, or from `years` back to `days`).\n */\n @Event() bqViewChange!: EventEmitter<{ view: TCalendarView; el: HTMLBqDatePickerElement }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.initialValue = this.value;\n // Precision locks the initial view when set. Otherwise honor `initialView`.\n // When the picker is rendered with `open` already true, `handleOpen` never\n // fires — apply the preference here so the initial paint respects it.\n this.view = this.precision === 'day' ? this.initialView : this.precisionToView(this.precision);\n this.checkPropValues();\n this.handleMonthsChange();\n this.syncViewToValue();\n }\n\n componentDidLoad() {\n this.handleSlotChange();\n this.handleValueChange(this.value, undefined);\n if (this.autofocus) this.inputElem?.focus();\n // `@Watch('open')` doesn't run for the initial prop value, so pickers\n // rendered with `open` never move focus into the calendar. Do it here.\n if (this.open) this.focusActiveCell();\n }\n\n disconnectedCallback() {\n if (this.pendingFocusRAF !== undefined) {\n cancelAnimationFrame(this.pendingFocusRAF);\n this.pendingFocusRAF = undefined;\n }\n }\n\n formAssociatedCallback() {\n this.syncValidity();\n }\n\n formResetCallback() {\n // Native form reset should restore the value the field had when the form\n // was first parsed, not blank it. The `value` watcher takes care of\n // syncing derived state, form value, and validity.\n if (this.value === this.initialValue) return;\n this.value = this.initialValue;\n }\n\n // Listeners\n // ==============\n\n @Listen('bqOpen', { capture: true })\n handleOpenChange(ev: CustomEvent<{ open: boolean }>) {\n if (!isEventTargetChildOfElement(ev, this.el)) return;\n const { open } = ev.detail;\n if (this.open === open) return;\n this.open = open;\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 /**\n * Clears the selected value and any pending validation state (bad input,\n * bounds overflow). Emits `bqClear`. No-op when the component is disabled.\n *\n * @returns A promise that resolves once the value has been cleared.\n */\n @Method()\n async clear(): Promise<void> {\n if (this.disabled) return;\n this.clearValue();\n this.bqClear.emit(this.el);\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleBlur = (): void => {\n if (this.disabled) return;\n this.bqBlur.emit(this.el);\n };\n\n private handleFocus = (): void => {\n if (this.disabled) return;\n this.bqFocus.emit(this.el);\n };\n\n private handleInputChange = (ev: Event): void => {\n if (this.disabled || !isHTMLElement(ev.target, 'input')) return;\n\n const inputValue = ev.target.value.trim();\n if (!inputValue) {\n this.hasBadInput = false;\n this.clearValue();\n this.bqChange.emit({ value: this.value, el: this.el });\n return;\n }\n\n const parsed = parseTypedInput(inputValue, this.locale, this.precision, this.min, this.max, this.isDateDisallowed);\n if (parsed.invalid || parsed.value == null) {\n // Flag as `badInput` and emit `undefined` — never propagate the raw\n // typed string, which would break the precision-aware wire contract.\n this.hasBadInput = true;\n this.internals.setFormValue(null);\n this.syncValidity();\n this.bqChange.emit({ value: undefined, el: this.el });\n return;\n }\n\n this.hasBadInput = false;\n this.value = parsed.value;\n this.bqChange.emit({ value: this.value, el: this.el });\n };\n\n private handleClearClick = (ev: CustomEvent): void => {\n if (this.disabled) return;\n if (this.inputElem) this.inputElem.value = '';\n\n this.clearValue();\n this.bqClear.emit(this.el);\n this.bqChange.emit({ value: this.value, el: this.el });\n this.inputElem?.focus();\n ev.stopPropagation();\n };\n\n /** Toggles the calendar panel open/closed when the trigger button is activated. */\n private handleTriggerClick = (): void => {\n if (this.disabled) return;\n this.open = !this.open;\n };\n\n /**\n * Handles keyboard shortcuts on the text input.\n * - `ArrowDown` / `Alt+ArrowDown` → open panel and focus active cell.\n * - `Escape` → close panel (focus stays on input).\n */\n private handleInputKeyDown = (ev: KeyboardEvent): void => {\n if (this.disabled) return;\n if (ev.key === 'ArrowDown') {\n ev.preventDefault();\n if (!this.open) this.open = true;\n } else if (ev.key === 'Escape' && this.open) {\n ev.preventDefault();\n this.open = false;\n }\n };\n\n private clearValue = (): void => {\n this.value = undefined;\n this.displayDate = undefined;\n this.hasBadInput = false;\n this.internals.setFormValue(null);\n this.tentativeHover = undefined;\n };\n\n private handleSlotChange = (): void => {\n this.hasLabel = this.labelElem ? hasSlotContent(this.labelElem) : false;\n this.hasPrefix = this.prefixElem ? hasSlotContent(this.prefixElem) : false;\n };\n\n private updateFormValidity = (): void => {\n updateFormValidity({\n internals: this.internals,\n required: this.required,\n value: this.value,\n inputElem: this.inputElem,\n validationMessage: this.formValidationMessage,\n defaultMessage: 'Please, input or select a valid date',\n });\n };\n\n /**\n * Recompute all state derived from the public `value` (form value,\n * `hasValue`, formatted display). Called from `value` and any prop that\n * affects display formatting (`type`, `locale`, `formatOptions`).\n */\n private syncDerivedFromValue = (): void => {\n const current = this.value;\n this.internals.setFormValue(!isNil(current) ? `${current}` : null);\n this.syncValidity();\n this.hasValue = computeHasValue(current);\n this.displayDate = computeDisplayDate(current, this.type, this.locale, this.effectiveFormatOptions, this.precision);\n };\n\n /**\n * Runs the full form-validity pipeline in a consistent order: `required`\n * → bounds → `badInput`. Multiple failing constraints are unioned into a\n * single `setValidity` call.\n */\n private syncValidity = (): void => {\n if (!this.internals) return;\n\n this.updateFormValidity();\n\n const boundsFlags = this.computeBoundsValidityFlags();\n const flags: ValidityStateFlags = { ...boundsFlags };\n if (this.hasBadInput) flags.badInput = true;\n\n const hasCustomConstraintError = Object.keys(flags).length > 0;\n if (!hasCustomConstraintError) {\n this.hasConstraintError = !this.internals.validity.valid;\n return;\n }\n\n const message = this.formValidationMessage ?? defaultValidityMessage(flags);\n\n this.internals.states.delete('valid');\n this.internals.states.add('invalid');\n this.internals.setValidity(flags, message, this.inputElem);\n this.hasConstraintError = true;\n };\n\n /** Returns `rangeUnderflow` / `rangeOverflow` flags for the current selection. */\n private computeBoundsValidityFlags = (): ValidityStateFlags => {\n if (!this.min && !this.max) return {};\n const selection = parseValue(this.value, this.type, this.precision);\n if (selection.length === 0) return {};\n\n const paddedMin = padBound(this.min, 'min');\n const paddedMax = padBound(this.max, 'max');\n let rangeUnderflow = false;\n let rangeOverflow = false;\n\n for (const iso of selection) {\n if (paddedMin && iso < paddedMin) rangeUnderflow = true;\n if (paddedMax && iso > paddedMax) rangeOverflow = true;\n }\n\n if (!rangeUnderflow && !rangeOverflow) return {};\n return { rangeUnderflow, rangeOverflow };\n };\n\n private clampMonths = (value: number): number => {\n const rounded = Math.floor(Number(value));\n if (!Number.isFinite(rounded) || rounded < 1) return 1;\n return Math.min(rounded, MAX_MONTHS_PER_VIEW);\n };\n\n /**\n * Align the internal `viewDate` / `focused*` state with the current value.\n * Called when the panel opens and whenever an *external* prop change\n * invalidates the current view (value, type, precision, min/max). Internal\n * commits skip this via `isCommittingSelection` so the user's navigated\n * year isn't clobbered by a subsequent multi/range selection.\n *\n * Uses `parseValue` (precision-aware, always returns full ISO dates) rather\n * than a raw `YYYY-MM-DD` regex so that month/year wire values like\n * `\"2025-05\"` or `\"2025\"` land on the right cell instead of falling back\n * to today.\n */\n private syncViewToValue = (): void => {\n const parsed = parseValue(this.value, this.type, this.precision);\n const focusISO = parsed[0] ?? getTodayISO();\n const focus = parseISO(focusISO) ?? new Date();\n const bounded = clampDate(focus, this.min, this.max);\n\n this.focusedISO = toISO(bounded);\n this.viewDate = startOfMonth(bounded);\n this.focusedMonth = bounded.getMonth();\n this.focusedYear = bounded.getFullYear();\n this.decadeStart = getDecadeStart(bounded.getFullYear());\n };\n\n private get selection(): TSelection {\n const key = `${this.type}|${this.precision}|${this.value ?? ''}`;\n if (this.cachedSelection?.key === key) return this.cachedSelection.value;\n const parsed = parseValue(this.value, this.type, this.precision);\n this.cachedSelection = { key, value: parsed };\n return parsed;\n }\n\n /**\n * Effective `Intl.DateTimeFormatOptions` — user-provided when set, otherwise\n * the precision-appropriate default. Prevents a `month` picker from\n * accidentally rendering \"1 May 2026\" when the consumer just sets\n * `precision=\"month\"` without overriding `formatOptions`.\n */\n private get effectiveFormatOptions(): Intl.DateTimeFormatOptions {\n return this.formatOptions ?? DEFAULT_FORMAT_OPTIONS_BY_PRECISION[this.precision];\n }\n\n /** Map a precision value to the calendar view that commits selections. */\n private precisionToView = (precision: TDatePrecision): TCalendarView => {\n if (precision === 'month') return 'months';\n if (precision === 'year') return 'years';\n return 'days';\n };\n\n private get tentativeRange(): TSelection {\n if (this.type !== 'range') return [];\n const parsed = this.selection;\n // While the user is completing a range (one endpoint chosen) show the\n // hover preview between that endpoint and the current hovered day.\n if (parsed.length === 1) return buildTentativeRange(parsed[0], this.tentativeHover);\n return [];\n }\n\n /* --------------------------- View transitions -------------------------- */\n\n /**\n * Return the date that view transitions (days ⇄ months ⇄ years) should\n * center the focus on.\n *\n * Priority:\n * 1. First entry of the current selection — for `range` this is the start\n * date (selection is sorted on parse), for `multi` it is the earliest.\n * 2. Otherwise the currently displayed `viewDate` (i.e. the month/year the\n * user has navigated to with prev/next).\n */\n private getViewFocusReference = (): Date => {\n const [first] = this.selection;\n if (first) {\n const parsed = parseISO(first);\n if (parsed) return parsed;\n }\n return this.viewDate;\n };\n\n private handleHeaderTitleClick = (): void => {\n if (this.precision === 'year') return;\n\n if (this.view === 'days') {\n const ref = this.getViewFocusReference();\n this.focusedMonth = ref.getMonth();\n this.focusedYear = ref.getFullYear();\n this.view = 'months';\n this.focusActiveCell();\n return;\n }\n if (this.view === 'months') {\n const ref = this.getViewFocusReference();\n this.focusedYear = ref.getFullYear();\n this.decadeStart = getDecadeStart(ref.getFullYear());\n this.view = 'years';\n this.focusActiveCell();\n return;\n }\n // years view → cycle back to the base view for the current precision\n this.view = this.precisionToView(this.precision);\n this.focusActiveCell();\n };\n\n private handleHeaderPrev = (): void => {\n if (this.view === 'days') {\n const step = this.monthsPerView === 'months' ? Math.max(1, this.months) : 1;\n this.viewDate = addMonths(this.viewDate, -step);\n this.focusedISO = toISO(clampDate(startOfMonth(this.viewDate), this.min, this.max));\n } else if (this.view === 'months') {\n this.focusedYear = this.focusedYear - 1;\n } else {\n this.decadeStart = this.decadeStart - DECADE_GRID_SIZE;\n }\n };\n\n private handleHeaderNext = (): void => {\n if (this.view === 'days') {\n const step = this.monthsPerView === 'months' ? Math.max(1, this.months) : 1;\n this.viewDate = addMonths(this.viewDate, step);\n this.focusedISO = toISO(clampDate(startOfMonth(this.viewDate), this.min, this.max));\n } else if (this.view === 'months') {\n this.focusedYear = this.focusedYear + 1;\n } else {\n this.decadeStart = this.decadeStart + DECADE_GRID_SIZE;\n }\n };\n\n private handleMonthSelect = (month: number): void => {\n // When precision is `month`, selecting a month commits the value instead\n // of drilling to the days view. Gate the commit on bounds so keyboard\n // Enter/Space cannot bypass the click-path disabled check.\n if (this.precision === 'month') {\n if (!isMonthWithinBounds(this.focusedYear, month, this.min, this.max)) return;\n this.focusedMonth = month;\n this.viewDate = new Date(this.focusedYear, month, 1);\n this.commitSelection(toISO(new Date(this.focusedYear, month, 1)));\n return;\n }\n\n this.viewDate = new Date(this.focusedYear, month, 1);\n this.focusedMonth = month;\n // Preserve day-of-month from the current focus (value or today), clamped\n // to the last day of the destination month and to min/max bounds.\n const nextFocus = clampDate(\n new Date(\n this.focusedYear,\n month,\n Math.min(new Date(this.focusedISO).getDate() || 1, endOfMonth(this.viewDate).getDate()),\n ),\n this.min,\n this.max,\n );\n this.focusedISO = toISO(nextFocus);\n this.view = 'days';\n this.focusActiveCell();\n };\n\n private handleYearSelect = (year: number): void => {\n // When precision is `year`, selecting a year commits the value instead\n // of drilling to the months view. Gate the commit on bounds so keyboard\n // Enter/Space cannot bypass the click-path disabled check.\n if (this.precision === 'year') {\n if (!isYearWithinBounds(year, this.min, this.max)) return;\n this.focusedYear = year;\n this.viewDate = new Date(year, 0, 1);\n this.commitSelection(toISO(new Date(year, 0, 1)));\n return;\n }\n\n this.focusedYear = year;\n this.viewDate = new Date(year, this.focusedMonth, 1);\n this.view = 'months';\n this.focusActiveCell();\n };\n\n /* ---------------------------- Day selection ---------------------------- */\n\n private handleDaySelect = (iso: string): void => {\n this.commitSelection(iso);\n };\n\n /**\n * Shared commit path used by day / month / year selection. Keeps the\n * selection logic (single/multi/range) and post-commit behaviour (event,\n * open state, tentative hover, view sync) identical across precisions.\n */\n private commitSelection = (iso: string): void => {\n const next = applySelection(iso, this.selection, this.type);\n const shouldStayOpen = this.type === 'multi' || (this.type === 'range' && next.length === 1);\n\n this.hasBadInput = false;\n\n // Guard so `handleValueChange` doesn't re-sync the view back to `parsed[0]`\n // (would jump multi/range pickers to the earliest selected date) or to\n // today (when precision truncation leaves no full ISO to extract).\n this.isCommittingSelection = true;\n this.value = serializeValue(next, this.type, this.precision);\n this.isCommittingSelection = false;\n\n this.focusedISO = iso;\n const parsedIso = parseISO(iso);\n if (parsedIso) {\n this.viewDate = startOfMonth(parsedIso);\n this.focusedMonth = parsedIso.getMonth();\n this.focusedYear = parsedIso.getFullYear();\n if (this.precision !== 'year') {\n this.decadeStart = getDecadeStart(parsedIso.getFullYear());\n }\n }\n this.tentativeHover = this.type === 'range' && next.length === 1 ? iso : undefined;\n\n this.bqChange.emit({ value: this.value, el: this.el });\n this.open = shouldStayOpen;\n };\n\n private handleDayHover = (iso: string | undefined): void => {\n if (this.type !== 'range') return;\n this.tentativeHover = iso;\n };\n\n private handleDayFocus = (iso: string): void => {\n if (this.focusedISO === iso) return;\n this.focusedISO = iso;\n };\n\n /* ------------------------- Grid keyboard nav --------------------------- */\n\n private getRTLDirection = (): 1 | -1 => {\n // Walk up through the composed tree so that dir=\"rtl\" set on <html> or\n // any ancestor is picked up, not just a direct attribute on the host.\n const dir = (this.el.closest('[dir]') as HTMLElement)?.dir ?? getComputedStyle(this.el).direction;\n return dir === 'rtl' ? -1 : 1;\n };\n\n private moveFocusedDay = (deltaDays: number): void => {\n const current = parseISO(this.focusedISO) ?? new Date();\n const next = clampDate(addDays(current, deltaDays), this.min, this.max);\n this.focusedISO = toISO(next);\n if (next.getMonth() !== this.viewDate.getMonth() || next.getFullYear() !== this.viewDate.getFullYear()) {\n this.viewDate = startOfMonth(next);\n }\n this.focusButton(`[data-iso=\"${this.focusedISO}\"]`);\n };\n\n private moveFocusedDayHome = (): void => {\n const first = this.firstDayOfWeek ?? 1;\n const dayOfWeek = parseISO(this.focusedISO)?.getDay() ?? 0;\n this.moveFocusedDay(-((dayOfWeek - first + 7) % 7));\n };\n\n private moveFocusedDayEnd = (): void => {\n const first = this.firstDayOfWeek ?? 1;\n const focus = parseISO(this.focusedISO) ?? new Date();\n const rowIndex = (focus.getDay() - first + 7) % 7;\n this.moveFocusedDay(6 - rowIndex);\n };\n\n private pageFocusedMonth = (direction: -1 | 1, byYear: boolean): void => {\n this.viewDate = byYear ? addYears(this.viewDate, direction) : addMonths(this.viewDate, direction);\n this.focusedISO = toISO(clampDate(startOfMonth(this.viewDate), this.min, this.max));\n };\n\n private selectFocusedDay = (): void => {\n const iso = this.focusedISO;\n const parsed = parseISO(iso);\n if (parsed && isWithinBounds(parsed, this.min, this.max) && !this.isDateDisallowed?.(parsed)) {\n this.handleDaySelect(iso);\n }\n };\n\n private handleDayGridKeyDown = (ev: KeyboardEvent): void => {\n const rtl = this.getRTLDirection();\n\n const handlers: Record<string, () => void> = {\n ArrowLeft: () => this.moveFocusedDay(-1 * rtl),\n ArrowRight: () => this.moveFocusedDay(1 * rtl),\n ArrowUp: () => this.moveFocusedDay(-7),\n ArrowDown: () => this.moveFocusedDay(7),\n Home: () => this.moveFocusedDayHome(),\n End: () => this.moveFocusedDayEnd(),\n PageUp: () => this.pageFocusedMonth(-1, ev.shiftKey),\n PageDown: () => this.pageFocusedMonth(1, ev.shiftKey),\n Escape: () => {\n this.open = false;\n this.inputElem?.focus();\n },\n Enter: () => this.selectFocusedDay(),\n ' ': () => this.selectFocusedDay(),\n };\n\n const handler = handlers[ev.key];\n if (handler) {\n ev.preventDefault();\n handler();\n }\n };\n\n private getGridColumns = (): number => {\n // Months/years grids visually expand from 3 to 4 columns in multi-panel\n // mode. Keep arrow-key stride in sync so vertical navigation still lands\n // on the row directly above/below the current cell.\n return getGridColumns(this.getMonthCount());\n };\n\n private handleMonthGridKeyDown = (ev: KeyboardEvent): void => {\n const rtl = this.getRTLDirection();\n const stride = this.getGridColumns();\n const move = (delta: number) => {\n const { month, year } = advanceFocusedMonth(this.focusedMonth, this.focusedYear, delta);\n this.focusedMonth = month;\n this.focusedYear = year;\n this.focusButton(`[data-month=\"${month}\"]`);\n };\n\n switch (ev.key) {\n case 'ArrowLeft':\n ev.preventDefault();\n move(-1 * rtl);\n return;\n case 'ArrowRight':\n ev.preventDefault();\n move(1 * rtl);\n return;\n case 'ArrowUp':\n ev.preventDefault();\n move(-stride);\n return;\n case 'ArrowDown':\n ev.preventDefault();\n move(stride);\n return;\n case 'Enter':\n case ' ':\n ev.preventDefault();\n this.handleMonthSelect(this.focusedMonth);\n return;\n case 'Escape':\n ev.preventDefault();\n this.view = 'days';\n }\n };\n\n private handleYearGridKeyDown = (ev: KeyboardEvent): void => {\n const rtl = this.getRTLDirection();\n const stride = this.getGridColumns();\n const move = (delta: number) => {\n const { year, decadeStart } = advanceFocusedYear(this.focusedYear, this.decadeStart, delta);\n this.focusedYear = year;\n this.decadeStart = decadeStart;\n this.focusButton(`[data-year=\"${year}\"]`);\n };\n\n switch (ev.key) {\n case 'ArrowLeft':\n ev.preventDefault();\n move(-1 * rtl);\n return;\n case 'ArrowRight':\n ev.preventDefault();\n move(1 * rtl);\n return;\n case 'ArrowUp':\n ev.preventDefault();\n move(-stride);\n return;\n case 'ArrowDown':\n ev.preventDefault();\n move(stride);\n return;\n case 'Enter':\n case ' ':\n ev.preventDefault();\n this.handleYearSelect(this.focusedYear);\n return;\n case 'Escape':\n ev.preventDefault();\n this.view = 'months';\n }\n };\n\n private focusButton = (selector: string): void => {\n // Cancel any prior pending focus request so rapid state changes don't\n // race — only the latest target should win.\n if (this.pendingFocusRAF !== undefined) cancelAnimationFrame(this.pendingFocusRAF);\n this.pendingFocusRAF = requestAnimationFrame(() => {\n this.pendingFocusRAF = undefined;\n const button = this.el.shadowRoot?.querySelector<HTMLButtonElement>(selector);\n button?.focus();\n });\n };\n\n /**\n * Focus the currently active cell for the visible view. Called after the\n * popup opens so keyboard users don't have to tab into the calendar.\n */\n private focusActiveCell = (): void => {\n if (this.view === 'months') {\n this.focusButton(`[data-month=\"${this.focusedMonth}\"]`);\n return;\n }\n if (this.view === 'years') {\n this.focusButton(`[data-year=\"${this.focusedYear}\"]`);\n return;\n }\n this.focusButton(`[data-iso=\"${this.focusedISO}\"]`);\n };\n\n /* -------------------------- Header labels ------------------------------ */\n\n private getMonthCount = (): number => {\n if (this.type === 'single') return 1;\n // `handleMonthsChange` clamps the prop on write, so here we just guard\n // against the initial value before the first watcher tick.\n return this.clampMonths(this.months);\n };\n\n private getHeaderLabel = (): string => {\n return getHeaderLabel({\n view: this.view,\n viewDate: this.viewDate,\n focusedYear: this.focusedYear,\n decadeStart: this.decadeStart,\n monthCount: this.getMonthCount(),\n locale: this.locale,\n });\n };\n\n private getHeaderTitleLabel = (): string => {\n return getHeaderTitleLabel(this.view, this.precision);\n };\n\n private getPreviousLabel = (): string => {\n return getPreviousLabel(this.view);\n };\n\n private getNextLabel = (): string => {\n return getNextLabel(this.view);\n };\n\n private renderDayPanels = (): JSX.Element => {\n const panels: JSX.Element[] = [];\n const monthCount = this.getMonthCount();\n\n for (let i = 0; i < monthCount; i++) {\n const anchor = addMonths(this.viewDate, i);\n const anchorKey = toISO(startOfMonth(anchor));\n panels.push(\n <div\n key={anchorKey}\n class={{\n 'bq-date-picker__panel': true,\n 'bq-date-picker__panel--extra': i > 0,\n }}\n >\n {monthCount > 1 && (\n <div class=\"bq-date-picker__month-label\" part={CALENDAR_PARTS.heading}>\n {formatMonth(anchor, this.locale, 'long', true)}\n </div>\n )}\n <CalendarDayView\n viewDate={anchor}\n selection={this.selection}\n tentativeRange={this.tentativeRange}\n focusedISO={this.focusedISO}\n type={this.type}\n locale={this.locale}\n firstDayOfWeek={this.firstDayOfWeek ?? 1}\n showOutsideDays={this.showOutsideDays}\n minISO={this.min}\n maxISO={this.max}\n isDateDisallowed={this.isDateDisallowed}\n onDaySelect={(iso) => this.handleDaySelect(iso)}\n onDayHover={(iso) => this.handleDayHover(iso)}\n onDayFocus={(iso) => this.handleDayFocus(iso)}\n onGridKeyDown={this.handleDayGridKeyDown}\n />\n </div>,\n );\n }\n\n return <div class=\"bq-date-picker__panels\">{panels}</div>;\n };\n\n private renderMonthsView = (): JSX.Element => {\n const gridColumns = this.getGridColumns();\n return (\n <CalendarMonthView\n year={this.focusedYear}\n focusedMonth={this.focusedMonth}\n gridColumns={gridColumns}\n locale={this.locale}\n minISO={this.min}\n maxISO={this.max}\n selection={this.selection}\n tentativeRange={this.tentativeRange}\n type={this.type}\n onMonthSelect={(month) => this.handleMonthSelect(month)}\n onMonthHover={(iso) => this.handleDayHover(iso)}\n onMonthFocus={(month) => {\n this.focusedMonth = month;\n }}\n onGridKeyDown={this.handleMonthGridKeyDown}\n />\n );\n };\n\n private renderYearsView = (): JSX.Element => {\n const start = this.decadeStart;\n const end = start + DECADE_GRID_SIZE - 1;\n const years = Array.from({ length: DECADE_GRID_SIZE }, (_, i) => start + i);\n const effectiveFocused = this.focusedYear >= start && this.focusedYear <= end ? this.focusedYear : start;\n const gridColumns = this.getGridColumns();\n\n return (\n <CalendarYearView\n years={years}\n focusedYear={effectiveFocused}\n gridColumns={gridColumns}\n minISO={this.min}\n maxISO={this.max}\n selection={this.selection}\n tentativeRange={this.tentativeRange}\n type={this.type}\n onYearSelect={(year) => this.handleYearSelect(year)}\n onYearHover={(iso) => this.handleDayHover(iso)}\n onYearFocus={(year) => {\n this.focusedYear = year;\n }}\n onGridKeyDown={this.handleYearGridKeyDown}\n />\n );\n };\n\n private renderView = (): JSX.Element => {\n if (this.view === 'months') return this.renderMonthsView();\n if (this.view === 'years') return this.renderYearsView();\n return this.renderDayPanels();\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const labelId = `bq-date-picker__label-${this.name || DEFAULT_INPUT_ID}`;\n const popupId = `bq-date-picker__popup-${this.name || DEFAULT_INPUT_ID}`;\n\n return (\n <div class=\"bq-date-picker\" part={CALENDAR_PARTS.base}>\n <label\n class={{ 'bq-date-picker__label': true, 'is-hidden': !this.hasLabel }}\n htmlFor={this.name || DEFAULT_INPUT_ID}\n part={CALENDAR_PARTS.label}\n ref={(labelElem) => {\n this.labelElem = labelElem;\n }}\n >\n <slot id={labelId} name=\"label\" onSlotchange={this.handleSlotChange} />\n </label>\n\n <bq-dropdown\n class=\"bq-date-picker__dropdown\"\n disabled={this.disabled}\n distance={this.distance}\n exportparts=\"panel\"\n open={this.open}\n panelHeight={this.panelHeight}\n placement={this.placement}\n skidding={this.skidding}\n strategy={this.strategy}\n >\n <div\n class={{\n 'bq-date-picker__control': true,\n [`validation-${this.validationStatus}`]: true,\n 'is-disabled': !!this.disabled,\n 'is-open': !!this.open,\n }}\n part={CALENDAR_PARTS.control}\n slot=\"trigger\"\n >\n <span\n class={{ 'bq-date-picker__prefix': true, 'is-hidden': !this.hasPrefix }}\n part={CALENDAR_PARTS.prefix}\n ref={(el) => {\n this.prefixElem = el;\n }}\n >\n <slot name=\"prefix\" onSlotchange={this.handleSlotChange} />\n </span>\n\n <input\n aria-controls={popupId}\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-expanded={this.open ? 'true' : 'false'}\n aria-haspopup=\"dialog\"\n aria-invalid={this.validationStatus === 'error' || this.hasConstraintError ? 'true' : 'false'}\n aria-labelledby={this.hasLabel ? labelId : undefined}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n class=\"bq-date-picker__input\"\n disabled={this.disabled}\n form={this.form}\n id={this.name || DEFAULT_INPUT_ID}\n name={this.name}\n onBlur={this.handleBlur}\n onChange={this.handleInputChange}\n onFocus={this.handleFocus}\n onKeyDown={this.handleInputKeyDown}\n part={CALENDAR_PARTS.input}\n placeholder={this.placeholder}\n readonly={this.type !== 'single'}\n ref={(el) => {\n this.inputElem = el;\n }}\n required={this.required}\n role=\"combobox\"\n spellcheck={false}\n type=\"text\"\n value={this.displayDate}\n />\n\n {this.hasValue && !this.disabled && !this.disableClear && (\n <bq-button\n appearance=\"text\"\n border=\"xs\"\n class=\"bq-date-picker__clear\"\n exportparts=\"button\"\n label={this.clearButtonLabel}\n onBqClick={this.handleClearClick}\n onlyIcon\n part={CALENDAR_PARTS.clearBtn}\n size=\"small\"\n >\n <slot name=\"clear-icon\">\n <bq-icon aria-hidden=\"true\" name=\"x-circle\" />\n </slot>\n </bq-button>\n )}\n\n {/* biome-ignore lint/a11y/noStaticElementInteractions: bq-button renders a native <button> in its shadow DOM */}\n <bq-button\n appearance=\"text\"\n border=\"xs\"\n class=\"bq-date-picker__calendar-trigger\"\n disabled={this.disabled}\n exportparts=\"button\"\n label={this.calendarButtonLabel}\n onClick={(ev: MouseEvent) => ev.stopPropagation()}\n onBqClick={this.handleTriggerClick}\n onlyIcon\n part={`${CALENDAR_PARTS.button} ${CALENDAR_PARTS.suffix} ${CALENDAR_PARTS.calendarTrigger}`}\n ref={(el) => {\n this.triggerBtnElem = el;\n }}\n size=\"small\"\n >\n <slot name=\"suffix\" onSlotchange={this.handleSlotChange}>\n <bq-icon aria-hidden=\"true\" name=\"calendar-blank\" />\n </slot>\n </bq-button>\n </div>\n\n <div\n aria-label={this.hasLabel ? undefined : 'Date picker'}\n aria-labelledby={this.hasLabel ? labelId : undefined}\n class=\"bq-date-picker__calendar\"\n id={popupId}\n part={CALENDAR_PARTS.container}\n role=\"dialog\"\n style={{ '--bq-date-picker--panel-count': `${this.getMonthCount()}` }}\n >\n <CalendarHeader\n view={this.view}\n label={this.getHeaderLabel()}\n previousLabel={this.getPreviousLabel()}\n nextLabel={this.getNextLabel()}\n titleLabel={this.getHeaderTitleLabel()}\n titleInteractive={this.precision !== 'year'}\n onPrevious={() => this.handleHeaderPrev()}\n onNext={() => this.handleHeaderNext()}\n onTitleClick={() => this.handleHeaderTitleClick()}\n />\n <div class=\"bq-date-picker__view\">{this.renderView()}</div>\n </div>\n </bq-dropdown>\n </div>\n );\n }\n}\n"]}
@@ -2,6 +2,35 @@
2
2
  * Built by Endavans
3
3
  * © https://beeq.design - Apache 2 License.
4
4
  */
5
+ export const DAYS_OF_WEEK = [0, 1, 2, 3, 4, 5, 6];
5
6
  /** The type of the date picker */
6
7
  export const DATE_PICKER_TYPE = ['single', 'multi', 'range'];
8
+ /** The calendar view */
9
+ export const CALENDAR_VIEW = ['days', 'months', 'years'];
10
+ /** Positioning strategy for the panel. */
11
+ export const FLOATING_STRATEGY = ['fixed', 'absolute'];
12
+ /** Placement of the panel — mirrors `@floating-ui/dom` placements. */
13
+ export const FLOATING_PLACEMENT = [
14
+ 'top',
15
+ 'top-start',
16
+ 'top-end',
17
+ 'right',
18
+ 'right-start',
19
+ 'right-end',
20
+ 'bottom',
21
+ 'bottom-start',
22
+ 'bottom-end',
23
+ 'left',
24
+ 'left-start',
25
+ 'left-end',
26
+ ];
27
+ /** How the next/previous buttons should step through months. */
28
+ export const MONTHS_PER_VIEW = ['single', 'months'];
29
+ /**
30
+ * The precision of the value produced by the date picker.
31
+ * - `day` → `YYYY-MM-DD` (default; drill-down to days)
32
+ * - `month` → `YYYY-MM` (selection commits on the months view)
33
+ * - `year` → `YYYY` (selection commits on the years view)
34
+ */
35
+ export const DATE_PRECISION = ['day', 'month', 'year'];
7
36
  //# sourceMappingURL=bq-date-picker.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bq-date-picker.types.js","sourceRoot":"","sources":["../../../../../../packages/beeq/src/components/date-picker/bq-date-picker.types.ts"],"names":[],"mappings":"AAGA,kCAAkC;AAClC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC","sourcesContent":["/** The first day of the week, where Sunday is 0, Monday is 1, etc. */\nexport type DaysOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\n/** The type of the date picker */\nexport const DATE_PICKER_TYPE = ['single', 'multi', 'range'] as const;\n/** The type of the date picker */\nexport type TDatePickerType = (typeof DATE_PICKER_TYPE)[number];\n\nexport type TCalendarDate = {\n /** The first day of the week */\n firstDayOfWeek?: number;\n /** The focused date */\n focusedDate: string;\n /** The locale */\n locale?: string;\n /** The maximum date */\n max?: string;\n /** The minimum date */\n min?: string;\n /** The number of months to show */\n months?: number;\n /** How to navigate through the calendar, by single month or by the number of months */\n pageBy?: 'single' | 'months';\n /** Whether to show days outside the current month */\n showOutsideDays?: boolean;\n /** The tentative selected date, e.g. the start of a date range */\n tentative?: string;\n /** The selected date, in ISO-8601 format (YYYY-MM-DD) */\n value: string;\n /**\n * Focuses the <calendar-month> containing the currently focused date.\n * `option.target` controls which part of the component gets focused.\n */\n focus: ({ target }: { target: 'previous' | 'next' | 'day' }) => void;\n /** Checks if the date is not allowed to be selected */\n isDateDisallowed?: (date: Date) => boolean;\n /** Handles the change event, when the user selects a date or a date range */\n onChange?: (ev: Event) => void;\n /** Handles the focus date event. E.g. when the user navigates back/forward in the calendar */\n onFocusDate?: (ev: CustomEvent) => void;\n /** Handles the date range start event. E.g. when the user starts selecting a date range */\n onRangestart?: (ev: CustomEvent) => void;\n /** Handles the date range end event. E.g. when the user finishes selecting a date range */\n onRangeend?: (ev: CustomEvent) => void;\n};\n"]}
1
+ {"version":3,"file":"bq-date-picker.types.js","sourceRoot":"","sources":["../../../../../../packages/beeq/src/components/date-picker/bq-date-picker.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAU,CAAC;AAElF,kCAAkC;AAClC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAU,CAAC;AAItE,wBAAwB;AACxB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAIlE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AAGhE,sEAAsE;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,KAAK;IACL,WAAW;IACX,SAAS;IACT,OAAO;IACP,aAAa;IACb,WAAW;IACX,QAAQ;IACR,cAAc;IACd,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,UAAU;CACF,CAAC;AAGX,gEAAgE;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAG7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC","sourcesContent":["/** The first day of the week, where Sunday is 0, Monday is 1, etc. */\nexport type DaysOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;\nexport const DAYS_OF_WEEK: readonly DaysOfWeek[] = [0, 1, 2, 3, 4, 5, 6] as const;\n\n/** The type of the date picker */\nexport const DATE_PICKER_TYPE = ['single', 'multi', 'range'] as const;\n/** The type of the date picker */\nexport type TDatePickerType = (typeof DATE_PICKER_TYPE)[number];\n\n/** The calendar view */\nexport const CALENDAR_VIEW = ['days', 'months', 'years'] as const;\n/** The calendar view */\nexport type TCalendarView = (typeof CALENDAR_VIEW)[number];\n\n/** Positioning strategy for the panel. */\nexport const FLOATING_STRATEGY = ['fixed', 'absolute'] as const;\nexport type TFloatingStrategy = (typeof FLOATING_STRATEGY)[number];\n\n/** Placement of the panel mirrors `@floating-ui/dom` placements. */\nexport const FLOATING_PLACEMENT = [\n 'top',\n 'top-start',\n 'top-end',\n 'right',\n 'right-start',\n 'right-end',\n 'bottom',\n 'bottom-start',\n 'bottom-end',\n 'left',\n 'left-start',\n 'left-end',\n] as const;\nexport type TFloatingPlacement = (typeof FLOATING_PLACEMENT)[number];\n\n/** How the next/previous buttons should step through months. */\nexport const MONTHS_PER_VIEW = ['single', 'months'] as const;\nexport type TMonthsPerView = (typeof MONTHS_PER_VIEW)[number];\n\n/**\n * The precision of the value produced by the date picker.\n * - `day` → `YYYY-MM-DD` (default; drill-down to days)\n * - `month` `YYYY-MM` (selection commits on the months view)\n * - `year` `YYYY` (selection commits on the years view)\n */\nexport const DATE_PRECISION = ['day', 'month', 'year'] as const;\nexport type TDatePrecision = (typeof DATE_PRECISION)[number];\n\n/**\n * Internal representation of a selection.\n * Always an array of ISO 8601 date strings (YYYY-MM-DD).\n * - single 0 or 1 entry\n * - multi → N entries\n * - range → 0 or 2 entries [startISO, endISO]\n */\nexport type TSelection = string[];\n"]}
@@ -0,0 +1,96 @@
1
+ /*!
2
+ * Built by Endavans
3
+ * © https://beeq.design - Apache 2 License.
4
+ */
5
+ import { h } from "@stencil/core";
6
+ import { buildMonthMatrix, isSameDay, isWithinBounds } from "../helper/calendar";
7
+ import { CALENDAR_PARTS } from "../helper/constants";
8
+ import { formatMonth, getWeekdayNames } from "../helper/intl";
9
+ import { isRangeEnd, isRangeInner, isRangeStart, isSelected } from "../helper/selection";
10
+ const buildCellPartList = (state) => {
11
+ const parts = [CALENDAR_PARTS.day];
12
+ if (state.selected)
13
+ parts.push(CALENDAR_PARTS.selected);
14
+ if (state.isToday)
15
+ parts.push(CALENDAR_PARTS.today);
16
+ if (state.outside)
17
+ parts.push(CALENDAR_PARTS.outside);
18
+ if (state.disallowed)
19
+ parts.push(CALENDAR_PARTS.disallowed);
20
+ if (state.outOfBounds)
21
+ parts.push(CALENDAR_PARTS.disabled);
22
+ if (state.rangeStart)
23
+ parts.push(CALENDAR_PARTS.rangeStart);
24
+ if (state.rangeEnd)
25
+ parts.push(CALENDAR_PARTS.rangeEnd);
26
+ if (state.rangeInner)
27
+ parts.push(CALENDAR_PARTS.rangeInner);
28
+ return parts.join(' ');
29
+ };
30
+ const computeCellState = (cell, ctx) => {
31
+ const disallowed = ctx.isDateDisallowed?.(cell.date) ?? false;
32
+ const outOfBounds = !isWithinBounds(cell.date, ctx.minISO, ctx.maxISO);
33
+ return {
34
+ outside: cell.outside,
35
+ disallowed,
36
+ outOfBounds,
37
+ disabled: disallowed || outOfBounds,
38
+ selected: isSelected(cell.iso, ctx.effectiveSelection, ctx.type),
39
+ rangeStart: isRangeStart(cell.iso, ctx.effectiveSelection, ctx.type),
40
+ rangeEnd: isRangeEnd(cell.iso, ctx.effectiveSelection, ctx.type),
41
+ rangeInner: isRangeInner(cell.iso, ctx.effectiveSelection, ctx.type),
42
+ isToday: isSameDay(cell.date, ctx.today),
43
+ isFocused: cell.iso === ctx.focusedISO,
44
+ buttonHidden: cell.outside && !ctx.showOutsideDays,
45
+ };
46
+ };
47
+ const renderCell = (cell, state, cb) => (h("td", { key: cell.iso, "aria-selected": state.selected ? 'true' : undefined, class: "bq-date-picker__td", part: CALENDAR_PARTS.td,
48
+ // biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: WAI-ARIA date-picker grid pattern.
49
+ role: "gridcell", tabIndex: -1 }, h("button", { "aria-current": state.isToday ? 'date' : undefined, "aria-disabled": state.disabled ? 'true' : undefined, class: {
50
+ 'bq-date-picker__day': true,
51
+ 'is-selected': state.selected,
52
+ 'is-today': state.isToday,
53
+ 'is-outside': state.outside,
54
+ 'is-disallowed': state.disallowed,
55
+ 'is-out-of-bounds': state.outOfBounds,
56
+ 'is-range-start': state.rangeStart,
57
+ 'is-range-end': state.rangeEnd,
58
+ 'is-range-inner': state.rangeInner,
59
+ 'is-hidden': state.buttonHidden,
60
+ }, "data-iso": cell.iso, onClick: (ev) => !state.disabled && cb.onDaySelect(cell.iso, ev), onFocus: () => cb.onDayFocus(cell.iso), onMouseEnter: () => cb.onDayHover(cell.iso), onMouseLeave: () => cb.onDayHover(undefined), part: `${CALENDAR_PARTS.button} ${buildCellPartList(state)}`, tabIndex: state.isFocused ? 0 : -1, type: "button" }, cell.date.getDate())));
61
+ /**
62
+ * Day-level calendar view — weekday row + 6x7 grid.
63
+ *
64
+ * The grid is a `<table role="grid">` so it is announced correctly by screen
65
+ * readers, and it uses a roving tabindex so only the "focused" day is in the
66
+ * tab order. Keyboard nav is delegated to the host via `onGridKeyDown`.
67
+ */
68
+ export const CalendarDayView = (props) => {
69
+ const { viewDate, selection, tentativeRange, focusedISO, type, locale, firstDayOfWeek, showOutsideDays, minISO, maxISO, isDateDisallowed, onDaySelect, onDayHover, onDayFocus, onGridKeyDown, } = props;
70
+ const weekdays = getWeekdayNames(locale, firstDayOfWeek, 'short');
71
+ const rows = buildMonthMatrix(viewDate, firstDayOfWeek);
72
+ const today = new Date();
73
+ // Localized "Month Year" label used to name the grid for screen readers,
74
+ // e.g. "July 2026". Always computed so the grid is named even when the
75
+ // visible heading is rendered outside this component.
76
+ const gridLabel = formatMonth(viewDate, locale, 'long', true);
77
+ // The effective selection includes the tentative range so hover states
78
+ // preview correctly during range selection.
79
+ const effectiveSelection = type === 'range' && tentativeRange.length === 2 ? tentativeRange : selection;
80
+ return (h("div", { class: "bq-date-picker__day-view" }, h("table", { "aria-label": gridLabel, class: "bq-date-picker__table", onKeyDown: onGridKeyDown, part: CALENDAR_PARTS.table,
81
+ // biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: WAI-ARIA date-picker grid pattern.
82
+ role: "grid" }, h("thead", { part: CALENDAR_PARTS.head }, h("tr", { part: CALENDAR_PARTS.tr }, weekdays.map((wd) => (h("th", { key: wd.long, abbr: wd.long, class: "bq-date-picker__th", part: CALENDAR_PARTS.th, scope: "col" }, wd.short))))), h("tbody", null, rows.map((row) => (h("tr", { key: row[0].iso, class: "bq-date-picker__week", part: `${CALENDAR_PARTS.tr} ${CALENDAR_PARTS.week}` }, row.map((cell) => {
83
+ const state = computeCellState(cell, {
84
+ effectiveSelection,
85
+ type,
86
+ today,
87
+ focusedISO,
88
+ minISO,
89
+ maxISO,
90
+ isDateDisallowed,
91
+ showOutsideDays,
92
+ });
93
+ return renderCell(cell, state, { onDaySelect, onDayHover, onDayFocus });
94
+ }))))))));
95
+ };
96
+ //# sourceMappingURL=CalendarDayView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarDayView.js","sourceRoot":"","sources":["../../../../../../../packages/beeq/src/components/date-picker/components/CalendarDayView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,CAAC,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,gBAAg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AAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAC,oBAAoB,EAAC,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,KAAK,EAAC,KAAK,IAC7F,EAAE,CAAC,KAAK,CACN,CACN,CAAC,CACC,CACC;YACR,iBACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,UAAI,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,EAAC,sBAAsB,EAAC,IAAI,EAAE,GAAG,cAAc,CAAC,EAAE,IAAI,cAAc,CAAC,IAAI,EAAE,IAClG,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;gBAChB,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,EAAE;oBACnC,kBAAkB;oBAClB,IAAI;oBACJ,KAAK;oBACL,UAAU;oBACV,MAAM;oBACN,MAAM;oBACN,gBAAgB;oBAChB,eAAe;iBAChB,CAAC,CAAC;gBACH,OAAO,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;YAC1E,CAAC,CAAC,CACC,CACN,CAAC,CACI,CACF,CACJ,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { type FunctionalComponent, h } from '@stencil/core';\n\nimport type { TDatePickerType, TSelection } from '../bq-date-picker.types';\nimport { buildMonthMatrix, isSameDay, isWithinBounds, type TCalendarCell } from '../helper/calendar';\nimport { CALENDAR_PARTS } from '../helper/constants';\nimport { formatMonth, getWeekdayNames } from '../helper/intl';\nimport { isRangeEnd, isRangeInner, isRangeStart, isSelected } from '../helper/selection';\n\ntype TCellState = {\n outside: boolean;\n disallowed: boolean;\n outOfBounds: boolean;\n disabled: boolean;\n selected: boolean;\n rangeStart: boolean;\n rangeEnd: boolean;\n rangeInner: boolean;\n isToday: boolean;\n isFocused: boolean;\n buttonHidden: boolean;\n};\n\nconst buildCellPartList = (state: TCellState): string => {\n const parts: string[] = [CALENDAR_PARTS.day];\n if (state.selected) parts.push(CALENDAR_PARTS.selected);\n if (state.isToday) parts.push(CALENDAR_PARTS.today);\n if (state.outside) parts.push(CALENDAR_PARTS.outside);\n if (state.disallowed) parts.push(CALENDAR_PARTS.disallowed);\n if (state.outOfBounds) parts.push(CALENDAR_PARTS.disabled);\n if (state.rangeStart) parts.push(CALENDAR_PARTS.rangeStart);\n if (state.rangeEnd) parts.push(CALENDAR_PARTS.rangeEnd);\n if (state.rangeInner) parts.push(CALENDAR_PARTS.rangeInner);\n return parts.join(' ');\n};\n\ntype TCellContext = {\n effectiveSelection: TSelection;\n type: TDatePickerType;\n today: Date;\n focusedISO: string;\n minISO?: string;\n maxISO?: string;\n isDateDisallowed?: (date: Date) => boolean;\n showOutsideDays: boolean;\n};\n\nconst computeCellState = (cell: TCalendarCell, ctx: TCellContext): TCellState => {\n const disallowed = ctx.isDateDisallowed?.(cell.date) ?? false;\n const outOfBounds = !isWithinBounds(cell.date, ctx.minISO, ctx.maxISO);\n return {\n outside: cell.outside,\n disallowed,\n outOfBounds,\n disabled: disallowed || outOfBounds,\n selected: isSelected(cell.iso, ctx.effectiveSelection, ctx.type),\n rangeStart: isRangeStart(cell.iso, ctx.effectiveSelection, ctx.type),\n rangeEnd: isRangeEnd(cell.iso, ctx.effectiveSelection, ctx.type),\n rangeInner: isRangeInner(cell.iso, ctx.effectiveSelection, ctx.type),\n isToday: isSameDay(cell.date, ctx.today),\n isFocused: cell.iso === ctx.focusedISO,\n buttonHidden: cell.outside && !ctx.showOutsideDays,\n };\n};\n\ntype TCellCallbacks = {\n onDaySelect: (iso: string, ev: MouseEvent) => void;\n onDayHover: (iso: string | undefined) => void;\n onDayFocus: (iso: string) => void;\n};\n\nconst renderCell = (cell: TCalendarCell, state: TCellState, cb: TCellCallbacks) => (\n <td\n key={cell.iso}\n aria-selected={state.selected ? 'true' : undefined}\n class=\"bq-date-picker__td\"\n part={CALENDAR_PARTS.td}\n // biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: WAI-ARIA date-picker grid pattern.\n role=\"gridcell\"\n tabIndex={-1}\n >\n <button\n aria-current={state.isToday ? 'date' : undefined}\n aria-disabled={state.disabled ? 'true' : undefined}\n class={{\n 'bq-date-picker__day': true,\n 'is-selected': state.selected,\n 'is-today': state.isToday,\n 'is-outside': state.outside,\n 'is-disallowed': state.disallowed,\n 'is-out-of-bounds': state.outOfBounds,\n 'is-range-start': state.rangeStart,\n 'is-range-end': state.rangeEnd,\n 'is-range-inner': state.rangeInner,\n 'is-hidden': state.buttonHidden,\n }}\n data-iso={cell.iso}\n onClick={(ev) => !state.disabled && cb.onDaySelect(cell.iso, ev)}\n onFocus={() => cb.onDayFocus(cell.iso)}\n onMouseEnter={() => cb.onDayHover(cell.iso)}\n onMouseLeave={() => cb.onDayHover(undefined)}\n part={`${CALENDAR_PARTS.button} ${buildCellPartList(state)}`}\n tabIndex={state.isFocused ? 0 : -1}\n type=\"button\"\n >\n {cell.date.getDate()}\n </button>\n </td>\n);\n\nexport type TCalendarDayViewProps = {\n /** Anchor date for the month grid (any date within the month). */\n viewDate: Date;\n /** Current selection (parsed). */\n selection: TSelection;\n /** In-progress range selection (start pending or hovered end). */\n tentativeRange: TSelection;\n /** Focused date ISO (roving tabindex target). */\n focusedISO: string;\n /** Selection type. */\n type: TDatePickerType;\n /** Locale. */\n locale: Intl.LocalesArgument;\n /** First day of the week. */\n firstDayOfWeek: number;\n /** Whether to render outside-month days. */\n showOutsideDays: boolean;\n /** Optional min ISO. */\n minISO?: string;\n /** Optional max ISO. */\n maxISO?: string;\n /** Optional guard for disallowed days. */\n isDateDisallowed?: (date: Date) => boolean;\n /** Callback fired when a day is picked. */\n onDaySelect: (iso: string, ev: MouseEvent | KeyboardEvent) => void;\n /** Callback fired when the pointer hovers a day (used for range preview). */\n onDayHover: (iso: string | undefined) => void;\n /** Callback fired when a day receives focus. */\n onDayFocus: (iso: string) => void;\n /** Optional handler for keyboard nav bubbling up (Arrow, Home, End...). */\n onGridKeyDown: (ev: KeyboardEvent) => void;\n};\n\n/**\n * Day-level calendar view — weekday row + 6x7 grid.\n *\n * The grid is a `<table role=\"grid\">` so it is announced correctly by screen\n * readers, and it uses a roving tabindex so only the \"focused\" day is in the\n * tab order. Keyboard nav is delegated to the host via `onGridKeyDown`.\n */\nexport const CalendarDayView: FunctionalComponent<TCalendarDayViewProps> = (props) => {\n const {\n viewDate,\n selection,\n tentativeRange,\n focusedISO,\n type,\n locale,\n firstDayOfWeek,\n showOutsideDays,\n minISO,\n maxISO,\n isDateDisallowed,\n onDaySelect,\n onDayHover,\n onDayFocus,\n onGridKeyDown,\n } = props;\n\n const weekdays = getWeekdayNames(locale, firstDayOfWeek, 'short');\n const rows = buildMonthMatrix(viewDate, firstDayOfWeek);\n const today = new Date();\n\n // Localized \"Month Year\" label used to name the grid for screen readers,\n // e.g. \"July 2026\". Always computed so the grid is named even when the\n // visible heading is rendered outside this component.\n const gridLabel = formatMonth(viewDate, locale, 'long', true);\n\n // The effective selection includes the tentative range so hover states\n // preview correctly during range selection.\n const effectiveSelection: TSelection = type === 'range' && tentativeRange.length === 2 ? tentativeRange : selection;\n\n return (\n <div class=\"bq-date-picker__day-view\">\n <table\n aria-label={gridLabel}\n class=\"bq-date-picker__table\"\n onKeyDown={onGridKeyDown}\n part={CALENDAR_PARTS.table}\n // biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: WAI-ARIA date-picker grid pattern.\n role=\"grid\"\n >\n <thead part={CALENDAR_PARTS.head}>\n <tr part={CALENDAR_PARTS.tr}>\n {weekdays.map((wd) => (\n <th key={wd.long} abbr={wd.long} class=\"bq-date-picker__th\" part={CALENDAR_PARTS.th} scope=\"col\">\n {wd.short}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map((row) => (\n <tr key={row[0].iso} class=\"bq-date-picker__week\" part={`${CALENDAR_PARTS.tr} ${CALENDAR_PARTS.week}`}>\n {row.map((cell) => {\n const state = computeCellState(cell, {\n effectiveSelection,\n type,\n today,\n focusedISO,\n minISO,\n maxISO,\n isDateDisallowed,\n showOutsideDays,\n });\n return renderCell(cell, state, { onDaySelect, onDayHover, onDayFocus });\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n};\n"]}
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Built by Endavans
3
+ * © https://beeq.design - Apache 2 License.
4
+ */
5
+ import { h } from "@stencil/core";
6
+ import { CALENDAR_PARTS } from "../helper/constants";
7
+ /**
8
+ * Calendar header — previous / title / next.
9
+ *
10
+ * The header is rendered once per calendar panel. It exposes the standard
11
+ * `calendar__header`, `calendar__previous`, `calendar__heading`, and
12
+ * `calendar__next` shadow parts so consumers can theme any button.
13
+ */
14
+ export const CalendarHeader = ({ view, label, previousLabel, nextLabel, titleLabel, previousDisabled = false, nextDisabled = false, titleInteractive = true, onPrevious, onNext, onTitleClick, }) => (h("div", { class: "bq-date-picker__header", part: CALENDAR_PARTS.header }, h("bq-button", { appearance: "text", border: "s", class: "bq-date-picker__nav-button", disabled: previousDisabled, label: previousLabel, onlyIcon: true, onBqClick: onPrevious, part: `${CALENDAR_PARTS.button} ${CALENDAR_PARTS.previous}`, size: "small", type: "button" }, h("bq-icon", { "aria-hidden": "true", class: "bq-date-picker__nav-icon", name: "caret-left" })), h("bq-button", { appearance: "text", "aria-live": "polite", border: "s", class: {
15
+ 'bq-date-picker__heading': true,
16
+ 'bq-date-picker__heading--static': !titleInteractive,
17
+ }, "data-view": view, disabled: !titleInteractive, label: titleLabel, onBqClick: onTitleClick, part: CALENDAR_PARTS.heading, size: "small", type: "button", block: true }, label), h("bq-button", { appearance: "text", border: "s", class: "bq-date-picker__nav-button", disabled: nextDisabled, label: nextLabel, onlyIcon: true, onBqClick: onNext, part: `${CALENDAR_PARTS.button} ${CALENDAR_PARTS.next}`, size: "small", type: "button" }, h("bq-icon", { "aria-hidden": "true", class: "bq-date-picker__nav-icon", name: "caret-right" }))));
18
+ //# sourceMappingURL=CalendarHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarHeader.js","sourceRoot":"","sources":["../../../../../../../packages/beeq/src/components/date-picker/components/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,CAAC,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AA2BrD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAA8C,CAAC,EACxE,IAAI,EACJ,KAAK,EACL,aAAa,EACb,SAAS,EACT,UAAU,EACV,gBAAgB,GAAG,KAAK,EACxB,YAAY,GAAG,KAAK,EACpB,gBAAgB,GAAG,IAAI,EACvB,UAAU,EACV,MAAM,EACN,YAAY,GACb,EAAE,EAAE,CAAC,CACJ,WAAK,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAE,cAAc,CAAC,MAAM;IAC7D,iBACE,UAAU,EAAC,MAAM,EACjB,MAAM,EAAC,GAAG,EACV,KAAK,EAAC,4BAA4B,EAClC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,aAAa,EACpB,QAAQ,QACR,SAAS,EAAE,UAAU,EACrB,IAAI,EAAE,GAAG,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,QAAQ,EAAE,EAC3D,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ;QAEb,8BAAqB,MAAM,EAAC,KAAK,EAAC,0BAA0B,EAAC,IAAI,EAAC,YAAY,GAAG,CACvE;IAEZ,iBACE,UAAU,EAAC,MAAM,eACP,QAAQ,EAClB,MAAM,EAAC,GAAG,EACV,KAAK,EAAE;YACL,yBAAyB,EAAE,IAAI;YAC/B,iCAAiC,EAAE,CAAC,gBAAgB;SACrD,eACU,IAAI,EACf,QAAQ,EAAE,CAAC,gBAAgB,EAC3B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,YAAY,EACvB,IAAI,EAAE,cAAc,CAAC,OAAO,EAC5B,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,KAAK,UAEJ,KAAK,CACI;IAEZ,iBACE,UAAU,EAAC,MAAM,EACjB,MAAM,EAAC,GAAG,EACV,KAAK,EAAC,4BAA4B,EAClC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,SAAS,EAChB,QAAQ,QACR,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,GAAG,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,IAAI,EAAE,EACvD,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ;QAEb,8BAAqB,MAAM,EAAC,KAAK,EAAC,0BAA0B,EAAC,IAAI,EAAC,aAAa,GAAG,CACxE,CACR,CACP,CAAC","sourcesContent":["import { type FunctionalComponent, h } from '@stencil/core';\n\nimport type { TCalendarView } from '../bq-date-picker.types';\nimport { CALENDAR_PARTS } from '../helper/constants';\n\nexport type TCalendarHeaderProps = {\n /** Current view. Used to pick the correct aria label and title. */\n view: TCalendarView;\n /** Label rendered inside the title button (e.g. \"January 2026\", \"2026\", \"2016 – 2027\"). */\n label: string;\n /** Aria label for the previous button. */\n previousLabel: string;\n /** Aria label for the next button. */\n nextLabel: string;\n /** Aria label for the title button. */\n titleLabel: string;\n /** Whether the previous button is disabled. */\n previousDisabled?: boolean;\n /** Whether the next button is disabled. */\n nextDisabled?: boolean;\n /** Whether the title button is interactive. `false` when already on the years view. */\n titleInteractive?: boolean;\n /** Callback fired when the previous button is activated. */\n onPrevious: (ev: Event) => void;\n /** Callback fired when the next button is activated. */\n onNext: (ev: Event) => void;\n /** Callback fired when the title button is activated. */\n onTitleClick: (ev: Event) => void;\n};\n\n/**\n * Calendar header — previous / title / next.\n *\n * The header is rendered once per calendar panel. It exposes the standard\n * `calendar__header`, `calendar__previous`, `calendar__heading`, and\n * `calendar__next` shadow parts so consumers can theme any button.\n */\nexport const CalendarHeader: FunctionalComponent<TCalendarHeaderProps> = ({\n view,\n label,\n previousLabel,\n nextLabel,\n titleLabel,\n previousDisabled = false,\n nextDisabled = false,\n titleInteractive = true,\n onPrevious,\n onNext,\n onTitleClick,\n}) => (\n <div class=\"bq-date-picker__header\" part={CALENDAR_PARTS.header}>\n <bq-button\n appearance=\"text\"\n border=\"s\"\n class=\"bq-date-picker__nav-button\"\n disabled={previousDisabled}\n label={previousLabel}\n onlyIcon\n onBqClick={onPrevious}\n part={`${CALENDAR_PARTS.button} ${CALENDAR_PARTS.previous}`}\n size=\"small\"\n type=\"button\"\n >\n <bq-icon aria-hidden=\"true\" class=\"bq-date-picker__nav-icon\" name=\"caret-left\" />\n </bq-button>\n\n <bq-button\n appearance=\"text\"\n aria-live=\"polite\"\n border=\"s\"\n class={{\n 'bq-date-picker__heading': true,\n 'bq-date-picker__heading--static': !titleInteractive,\n }}\n data-view={view}\n disabled={!titleInteractive}\n label={titleLabel}\n onBqClick={onTitleClick}\n part={CALENDAR_PARTS.heading}\n size=\"small\"\n type=\"button\"\n block\n >\n {label}\n </bq-button>\n\n <bq-button\n appearance=\"text\"\n border=\"s\"\n class=\"bq-date-picker__nav-button\"\n disabled={nextDisabled}\n label={nextLabel}\n onlyIcon\n onBqClick={onNext}\n part={`${CALENDAR_PARTS.button} ${CALENDAR_PARTS.next}`}\n size=\"small\"\n type=\"button\"\n >\n <bq-icon aria-hidden=\"true\" class=\"bq-date-picker__nav-icon\" name=\"caret-right\" />\n </bq-button>\n </div>\n);\n"]}