@adyen/bento-vue3 1.89.2 → 1.91.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 (283) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +767 -522
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  36. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  37. package/dist/chunks/action-bar.BPS3wPde.js +336 -0
  38. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
  39. package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
  40. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
  41. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  42. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  43. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  44. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  45. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
  46. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
  49. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
  50. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
  51. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
  52. package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
  53. package/dist/chunks/card.BEChcEqg.js +223 -0
  54. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
  56. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
  57. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
  58. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
  59. package/dist/chunks/chip.DFldnqfz.js +72 -0
  60. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
  64. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
  65. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
  66. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  67. package/dist/chunks/copy.CL893i9-.js +114 -0
  68. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  69. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  70. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  71. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  72. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
  74. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
  76. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
  78. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
  79. package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
  80. package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
  81. package/dist/chunks/date-picker.CidHad1p.js +269 -0
  82. package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
  83. package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
  84. package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
  85. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  86. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  87. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  88. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  89. package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
  90. package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
  91. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
  92. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
  93. package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
  94. package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
  95. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  96. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  97. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  98. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  99. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
  100. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
  102. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
  103. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  104. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
  106. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
  107. package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
  108. package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
  110. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
  112. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
  113. package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
  114. package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
  115. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  116. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  117. package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
  118. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
  119. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
  120. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
  121. package/dist/chunks/input-field.DkUFvIWt.js +326 -0
  122. package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
  123. package/dist/chunks/input-time.WI_qdwJc.js +122 -0
  124. package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
  125. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  126. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  127. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  128. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  130. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  131. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
  132. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
  133. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
  134. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
  135. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  136. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  137. package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
  138. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
  139. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  140. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  141. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
  142. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
  143. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
  144. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
  145. package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
  146. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
  147. package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
  148. package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
  149. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  150. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  151. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
  152. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  153. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
  154. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
  155. package/dist/chunks/step.AsX2jAeL.js +268 -0
  156. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  157. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  158. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  159. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
  160. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
  161. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  162. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  163. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  164. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  165. package/dist/chunks/textarea.JGXAlpx9.js +257 -0
  166. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
  167. package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
  168. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
  169. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  170. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  171. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  172. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
  176. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
  177. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  178. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  179. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  180. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  181. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
  182. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
  183. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/country.js +3 -3
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable.js +1383 -0
  195. package/dist/draggable.js.map +1 -0
  196. package/dist/dropdown.js +10 -11
  197. package/dist/dropdown.js.map +1 -1
  198. package/dist/file-uploader.js +1 -1
  199. package/dist/filter-bar.js +1 -1
  200. package/dist/form-layout.js +1 -1
  201. package/dist/header-with-views.js +1 -1
  202. package/dist/header.js +1 -1
  203. package/dist/index.js +284 -279
  204. package/dist/index.js.map +1 -1
  205. package/dist/info-icon.js +1 -1
  206. package/dist/input-field-password.js +1 -1
  207. package/dist/input-field-phone-number.js +1 -1
  208. package/dist/input-field.js +1 -1
  209. package/dist/input-time.js +5 -0
  210. package/dist/input-time.js.map +1 -0
  211. package/dist/inspector.js +1 -1
  212. package/dist/internal.js +26 -25
  213. package/dist/internal.js.map +1 -1
  214. package/dist/list.js +1 -1
  215. package/dist/menu.js +1 -1
  216. package/dist/modal-fullscreen.js +1 -1
  217. package/dist/modal.js +2 -2
  218. package/dist/pagination.js +1 -1
  219. package/dist/popover.js +1 -1
  220. package/dist/promo-banner.js +1 -1
  221. package/dist/radio-group.js +1 -1
  222. package/dist/rich-text-editor.js +1 -1
  223. package/dist/search-bar.js +2 -2
  224. package/dist/secondary-nav.js +1 -1
  225. package/dist/segmented-control.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/summary-grid.js +1 -1
  231. package/dist/tabs.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/toast.js +1 -1
  236. package/dist/tutorial.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +7 -10
  239. package/dist/assets/dropdown-default-textbox.css +0 -1
  240. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  241. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  242. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  243. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  244. package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
  245. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  246. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  247. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  248. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  249. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  250. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  251. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  252. package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
  253. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  254. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  255. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  256. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  257. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  258. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
  259. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
  260. package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
  261. package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
  262. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  263. package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
  264. package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
  265. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  266. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  267. package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
  268. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  269. package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
  270. package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
  271. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  272. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  273. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  274. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  275. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  276. package/dist/chunks/step.BlwoLfdw.js +0 -259
  277. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  278. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  279. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  280. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
  282. package/dist/draggable-handle.js +0 -155
  283. package/dist/draggable-handle.js.map +0 -1
@@ -1,995 +0,0 @@
1
- import { reactive as ke, defineComponent as Ze, useSlots as ba, ref as F, computed as f, onMounted as ea, openBlock as O, createElementBlock as Te, createElementVNode as H, normalizeClass as be, unref as m, renderSlot as Ue, createCommentVNode as _, createBlock as $, createVNode as j, withCtx as P, createTextVNode as ee, toDisplayString as _e, toRaw as Ae, watch as he, useAttrs as ha, toRef as Oe, withDirectives as ka, withKeys as Ve, createSlots as Ra } from "vue";
2
- import { j as Ma } from "./index.DDwcHPb6.js";
3
- import { B as Ia } from "./divider.BIY84UH7.js";
4
- import { h as wa, B as Sa } from "./button-actions.cMQWyZne.js";
5
- import { B as Be, d as Pe } from "./typography.B3J6_tYk.js";
6
- import { g as se } from "./generate-uid.DBWe4g6T.js";
7
- import { u as Ce } from "./index.B875RXHM.js";
8
- import { e as aa, f as le, i as q, h, j as Oa, k as $e, l as Ea, s as je, m as Fa, n as Le, b as V, u as _a, o as A, g as Aa } from "./calendar.DcCqkSNJ.js";
9
- import { u as qe, a as Ba } from "./use-date-input-formatter.CDRzd-hW.js";
10
- import { t as L, n as Ca, c as qa } from "./en-US.CCazFVNP.js";
11
- import { u as Ya } from "./use-form-layout-loading.CWbjZiwP.js";
12
- import { B as Na } from "./directive.Dpivxq_t.js";
13
- import { u as xa } from "./form-field.D_2g7vaP.js";
14
- import { D as Ua } from "./dropdown-default-textbox.bq9AlGzJ.js";
15
- import { B as ye } from "./input-field.CfU0ZKtL.js";
16
- import { B as Va } from "./dropdown.MhmX1P9o.js";
17
- import { B as Pa } from "./segmented-control.KeQ5kuR1.js";
18
- import { d as ge } from "./debounce.DUTu11PS.js";
19
- import { u as $a } from "./use-has-slot.CyMiImRQ.js";
20
- import { e as N, a as Qe } from "./differenceInMonths.s_znQQpw.js";
21
- import { s as We } from "./startOfWeek.Cvmo-f5J.js";
22
- import { c as ja } from "./constructNow.D9uRk678.js";
23
- import { _ as ta } from "./_plugin-vue_export-helper.CHgC5LLL.js";
24
- import { F as La, E as Ge } from "./error-message.DCgo8q20.js";
25
- import { B as Qa } from "./button-actions.types.BptAXjD8.js";
26
- import "../assets/date-range-picker.css";
27
- function na(t, i, c) {
28
- return aa(t, i * 3, c);
29
- }
30
- function Ke(t, i) {
31
- const c = L(t, i?.in);
32
- return Math.trunc(c.getMonth() / 3) + 1;
33
- }
34
- function He(t, i) {
35
- return L(t, i?.in).getFullYear();
36
- }
37
- function Ee(t, i) {
38
- return +L(t) == +L(i);
39
- }
40
- function Wa(t, i, c) {
41
- const [s, e] = Ca(
42
- c?.in,
43
- t,
44
- i
45
- );
46
- return +le(s) == +le(e);
47
- }
48
- function ze(t, i) {
49
- const c = L(t, i?.in);
50
- return c.setMilliseconds(0), c;
51
- }
52
- function Fe(t, i) {
53
- return +ze(t) == +ze(i);
54
- }
55
- function Ga(t, i) {
56
- return q(
57
- qa(t, t),
58
- ja(t)
59
- );
60
- }
61
- function Ka(t, i, c) {
62
- const s = L(t, c?.in);
63
- return s.setHours(i), s;
64
- }
65
- function Je(t, i, c) {
66
- const s = L(t, c?.in);
67
- return s.setMilliseconds(i), s;
68
- }
69
- function Ha(t, i, c) {
70
- const s = L(t, c?.in);
71
- return s.setMinutes(i), s;
72
- }
73
- function za(t, i, c) {
74
- const s = L(t, c?.in);
75
- return s.setSeconds(i), s;
76
- }
77
- function Ja(t, i, c) {
78
- return na(t, -1, c);
79
- }
80
- const Xa = ({
81
- firstDayOfWeek: t,
82
- min: i,
83
- max: c
84
- }) => ({ getGranularCalendarLimits: (e) => {
85
- if (!i && !c)
86
- return { min: null, max: null };
87
- let u = i ? h(i) : null, D = c ? N(c) : null;
88
- if (e?.type === "weekly") {
89
- if (e.earliest)
90
- u = h(e.earliest);
91
- else if (u) {
92
- const p = We(u, { weekStartsOn: t });
93
- q(u, p) || (u = h(Oa($e(u, { weekStartsOn: t }), 1)));
94
- }
95
- if (e.latest)
96
- D = N(e.latest);
97
- else if (D) {
98
- const p = $e(D, { weekStartsOn: t });
99
- q(D, p) || (D = N(Ea(We(D, { weekStartsOn: t }), 1)));
100
- }
101
- }
102
- if (e?.type === "monthly") {
103
- if (e.earliest)
104
- u = h(e.earliest);
105
- else if (u) {
106
- const p = je(u);
107
- q(u, p) || (u = je(aa(u, 1)));
108
- }
109
- if (e.latest)
110
- D = N(e.latest);
111
- else if (D) {
112
- const p = Qe(D);
113
- q(D, p) || (D = Qe(Fa(D, 1)));
114
- }
115
- }
116
- if (e?.type === "quarterly") {
117
- if (e.earliest)
118
- u = le(e.earliest);
119
- else if (u) {
120
- const p = le(u);
121
- q(u, p) || (u = le(na(u, 1)));
122
- }
123
- if (e.latest)
124
- D = N(e.latest);
125
- else if (D) {
126
- const p = Le(D);
127
- q(D, p) || (D = Le(Ja(D)));
128
- }
129
- }
130
- return { min: u, max: D };
131
- } }), Za = () => {
132
- const t = ke({
133
- daily: null,
134
- weekly: null,
135
- monthly: null,
136
- quarterly: null
137
- });
138
- return {
139
- savedRanges: t,
140
- saveRange: (s, e) => {
141
- t[s] = e;
142
- },
143
- resetSavedRanges: () => {
144
- t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
145
- }
146
- };
147
- };
148
- var v = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(v || {});
149
- const et = /[\d]/, at = /^\d{2}$/, tt = /^\d{2}:\d{2}$/, nt = (t) => {
150
- const { selectionStart: i } = t.target, c = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], s = et.test(t.key) || c.includes(t.key), e = [1, 2, 4, 5].includes(i) && t.key === ":";
151
- !s && !e && t.preventDefault();
152
- }, Xe = (t) => {
153
- if (!t)
154
- return t;
155
- let i = t;
156
- if (i.length === 1 && parseInt(t, 10) > 2)
157
- return `0${i}:`;
158
- const [c, s] = i.slice(-2);
159
- return [2, 5].includes(i.length) && s === ":" && (i = `${i.slice(0, i.length - 2)}0${c}`), (at.test(i) || tt.test(i)) && (i += ":"), i;
160
- }, ra = {
161
- "en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
162
- "ja-JP": { customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "日付まで", lastMonth: "先月", lastSevenDays: "過去7日間", lastThreeMonths: "過去3か月", monthly: "毎月", quarterly: "毎四半期", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
163
- "pt-BR": { customRange: "Intervalo personalizado", daily: "Diária", dateFrom: "Data a partir de", dateTo: "Data até", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", monthly: "Mensal", quarterly: "Trimestral", timeFrom: "Horário a partir de", timeTo: "Hora de", weekly: "Semanal" }
164
- }, rt = { class: "b-date-range-picker-calendar" }, st = { class: "b-date-range-picker-calendar__form" }, lt = { key: 0 }, ot = {
165
- key: 0,
166
- class: "b-date-range-picker-calendar__calendars-container",
167
- "data-testid": "date-range-picker-calendar-calendar-container"
168
- }, it = {
169
- name: "date-range-picker-calendar",
170
- i18n: { messages: ra }
171
- }, ut = /* @__PURE__ */ Ze({
172
- ...it,
173
- props: {
174
- /**
175
- * Allows user to enter time values in the form
176
- */
177
- allowTimeInput: { type: Boolean, default: !1 },
178
- /**
179
- * Ranges form persistance data
180
- */
181
- dateFormData: {
182
- type: Object,
183
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
184
- },
185
- /**
186
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
187
- */
188
- firstDayOfWeek: V.props.firstDayOfWeek,
189
- /**
190
- * A list of available granularities.
191
- * If present, the date picker will display a segmented control to change granularity.
192
- */
193
- granularities: {
194
- type: Array,
195
- default: null
196
- },
197
- /**
198
- * Indicate if a date should be disabled or not
199
- */
200
- isDateDisabled: V.props.isDateDisabled,
201
- /**
202
- * Set a maximum number of dates to be selectable by the range.
203
- */
204
- maxRange: V.props.maxRange,
205
- /**
206
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
207
- */
208
- min: V.props.min,
209
- /**
210
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
211
- */
212
- max: V.props.max,
213
- /**
214
- * Number of months rendered on pane
215
- */
216
- numberOfMonths: {
217
- type: V.props.numberOfMonths.type,
218
- default: V.props.numberOfMonths.default,
219
- validator: (t) => t >= 0
220
- },
221
- /**
222
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
223
- */
224
- showEndDateOnOpen: { type: Boolean, default: !1 },
225
- /**
226
- * Enables the custom range selector.
227
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
228
- * `label` - label of custom range item.
229
- * `value` - a unique key of the custom range item.
230
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
231
- */
232
- quickSelectRanges: {
233
- type: Array,
234
- default: void 0
235
- },
236
- /**
237
- * Selected date
238
- */
239
- value: { type: Object, default: void 0 },
240
- /**
241
- * The type of calendar to display. Defaults to showing days.
242
- */
243
- variant: V.props.variant
244
- },
245
- emits: [
246
- v.CUSTOM_RANGE,
247
- v.INPUT,
248
- v.ERROR,
249
- v.FORM_DATE,
250
- v.START_DATE_SELECTED
251
- ],
252
- setup(t, { emit: i }) {
253
- const s = "customRange", e = t, u = i, D = ba(), p = $a(D), { t: k } = Ce({ messages: ra }), {
254
- dateFormat: Q,
255
- isFormatValid: M,
256
- parseDate: E,
257
- onKeyDown: oe,
258
- autoFormat: b,
259
- formatDate: Y
260
- } = qe(), B = F({}), W = f(() => e.variant === "month" ? "monthly" : "daily"), ae = f(() => e.numberOfMonths === 0), n = ke({
261
- startDate: e.value?.startDate,
262
- endDate: e.value?.endDate,
263
- range: e.value?.range,
264
- ...e.granularities ? {
265
- granularity: e.value?.granularity || W.value
266
- } : {}
267
- }), C = f(() => (
268
- // eslint-disable-next-line consistent-return
269
- e?.quickSelectRanges?.find(({ value: a, data: r }) => {
270
- if (!r.endDate) {
271
- if (r.isRelativeToNow) {
272
- const d = B.value?.[a];
273
- return d ? Ee(d.startDate, n.startDate) && Ee(d.endDate, n.endDate) : (
274
- // If not stored calculated dates, fall back to comparing the quick select item's value
275
- // with the internal range's stored range identifier.
276
- a === n.range
277
- );
278
- }
279
- return Ee(r.startDate, n.startDate) && Ga(n.endDate) && (!e.allowTimeInput || Fe(n.endDate, N(n.endDate))) && (e.granularities ? r.granularity === n.granularity : !0);
280
- }
281
- if (e.allowTimeInput)
282
- return Fe(r.startDate, n.startDate) && Fe(r.endDate, n.endDate) && (e.granularities ? r.granularity === n.granularity : !0);
283
- if (r.endDate)
284
- return q(r.startDate, n.startDate) && q(r.endDate, n.endDate) && (e.granularities ? r.granularity === n.granularity : !0);
285
- })?.value ?? s
286
- )), w = f(() => ({
287
- "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
288
- })), Re = f(() => [
289
- { label: k("customRange"), value: s },
290
- ...e.quickSelectRanges ? e.quickSelectRanges : []
291
- ]), z = f(
292
- () => e.granularities?.find(({ type: a }) => a === n.granularity) || null
293
- ), ie = f(
294
- () => e.granularities?.map(({ type: a, disabled: r }) => ({
295
- label: k(a),
296
- value: a,
297
- disabled: r
298
- })) ?? []
299
- ), { getGranularCalendarLimits: ne } = Xa(e), g = f(
300
- () => e.granularities ? ne(z.value) : { min: e.min ? h(e.min) : null, max: e.max ? N(e.max) : null }
301
- ), {
302
- adjustDateForQuarterly: Me,
303
- adjustDateForMonthly: ue,
304
- adjustDateForWeekly: re,
305
- adjustStartDateInputForWeekly: T,
306
- adjustEndDateInputForWeekly: Ie,
307
- adjustStartDateInputForMonthly: J,
308
- adjustEndDateInputForMonthly: we,
309
- adjustStartDateInputForQuarterly: de,
310
- adjustEndDateInputForQuarterly: me
311
- } = _a(e.firstDayOfWeek), { savedRanges: S, saveRange: te, resetSavedRanges: ce } = Za(), I = (a) => a ? Y(a) : "", X = F(!1), Z = F(!1), x = F(!1), U = F(!1), o = ke({
312
- startDate: e.dateFormData.startDate,
313
- endDate: e.dateFormData.endDate,
314
- startTime: e.dateFormData.startTime,
315
- endTime: e.dateFormData.endTime
316
- }), De = (a, r) => {
317
- let d = new Date(a);
318
- const [y, K, Ta] = r.split(":");
319
- return d = Ka(d, parseInt(y, 10)), d = Ha(d, parseInt(K, 10)), d = za(d, parseInt(Ta, 10)), d;
320
- }, fe = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), l = (a, r) => {
321
- const d = () => {
322
- if (r && G(r)) {
323
- const y = De(E(r), a);
324
- if (e.min && y < Je(e.min, 0) || e.max && y > Je(e.max, 0))
325
- return !1;
326
- }
327
- return !0;
328
- };
329
- return fe(a) && d();
330
- }, R = (a, r) => !r || !fe(r) || e.variant === "month" ? a : De(new Date(a), r), pe = (a) => {
331
- o.startTime = A(
332
- e.min && e.allowTimeInput && q(e.min, a.startDate) ? e.min : h(a.startDate)
333
- ), o.endTime = A(
334
- e.max && e.allowTimeInput && q(e.max, a.endDate) ? e.max : N(a.endDate)
335
- ), n.startDate = R(a.startDate, o.startTime), n.endDate = R(a.endDate, o.endTime), n.range = null, e.granularities && ce(), u(v.INPUT, {
336
- ...n,
337
- range: C.value
338
- });
339
- }, G = (a) => {
340
- if (!a)
341
- return !1;
342
- const r = (d) => e.min && h(d) < h(e.min) || e.max && h(d) > h(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(h(d)) : !0;
343
- return M(a) && r(E(a));
344
- };
345
- ea(() => {
346
- X.value = !!(e.dateFormData.startDate && !G(e.dateFormData.startDate)), e.allowTimeInput ? x.value = !!(e.dateFormData.startTime && !l(e.dateFormData.startTime, e.dateFormData.startDate)) : x.value = !1, Z.value = !!(e.dateFormData.endDate && !G(e.dateFormData.endDate)), e.allowTimeInput ? U.value = !!(e.dateFormData.endTime && !l(e.dateFormData.endTime, e.dateFormData.endDate)) : U.value = !1;
347
- });
348
- const sa = (a) => {
349
- o.startDate = I(a), o.startTime ? x.value && (o.startTime = e.dateFormData?.startTime) : o.startTime = A(a), X.value = !1, x.value = !1, u(v.START_DATE_SELECTED, a);
350
- }, la = (a) => {
351
- o.endDate = I(a), o.endTime ? U.value && (o.endTime = e.dateFormData?.endTime) : o.endTime = A(N(a)), Z.value = !1, U.value = !1;
352
- }, Se = (a) => {
353
- const r = e.value[a];
354
- if (r)
355
- return r;
356
- if (e.dateFormData[a] && G(e.dateFormData[a]))
357
- return E(e.dateFormData[a]);
358
- }, oa = ge((a) => {
359
- if (G(a)) {
360
- let r = a;
361
- switch (X.value = !1, z.value?.type) {
362
- case "weekly":
363
- r = T(
364
- a,
365
- I,
366
- g.value.min,
367
- g.value.max
368
- ), o.startDate = r;
369
- break;
370
- case "monthly":
371
- r = J(
372
- a,
373
- I,
374
- g.value.min,
375
- g.value.max
376
- ), o.startDate = r;
377
- break;
378
- case "quarterly":
379
- r = de(
380
- a,
381
- I,
382
- g.value.min,
383
- g.value.max
384
- ), o.startDate = r;
385
- break;
386
- }
387
- const d = h(E(r));
388
- n.startDate = R(d, o.startTime), n.endDate = R(
389
- h(E(o.endDate)),
390
- o.endTime
391
- ), G(o.endDate) && (n.endDate = R(
392
- h(E(o.endDate)),
393
- o.endTime
394
- ));
395
- const y = Se("endDate");
396
- n.range = null, u(v.FORM_DATE, {
397
- startDate: d,
398
- endDate: y
399
- }), u(v.INPUT, {
400
- ...n,
401
- range: C.value
402
- });
403
- } else
404
- X.value = !0, u(v.ERROR, { ...o });
405
- }, 300), ia = (a) => {
406
- o.startDate = b(a), oa(o.startDate);
407
- }, ua = ge((a) => {
408
- if (G(a)) {
409
- let r = a;
410
- switch (Z.value = !1, z.value?.type) {
411
- case "weekly":
412
- r = Ie(
413
- a,
414
- I,
415
- g.value.min,
416
- g.value.max
417
- ), o.endDate = r;
418
- break;
419
- case "monthly":
420
- r = we(
421
- a,
422
- I,
423
- g.value.min,
424
- g.value.max
425
- ), o.endDate = r;
426
- break;
427
- case "quarterly":
428
- r = me(
429
- a,
430
- I,
431
- g.value.min,
432
- g.value.max
433
- ), o.endDate = r;
434
- break;
435
- }
436
- const d = h(E(r));
437
- n.endDate = R(d, o.endTime), G(o.startDate) && (n.startDate = R(
438
- h(E(o.startDate)),
439
- o.startTime
440
- ));
441
- const y = Se("startDate");
442
- n.range = null, u(v.FORM_DATE, {
443
- startDate: y,
444
- endDate: d
445
- }), u(v.INPUT, {
446
- ...n,
447
- range: C.value
448
- });
449
- } else
450
- Z.value = !0, u(v.ERROR, { ...o });
451
- }, 300), da = (a) => {
452
- o.endDate = b(a), ua(o.endDate);
453
- }, Ne = (a) => {
454
- oe(a);
455
- }, ma = ge((a) => {
456
- if (l(a, e.dateFormData.startDate)) {
457
- x.value = !1, n.startDate = R(n.startDate, a);
458
- const r = Se("endDate");
459
- u(v.FORM_DATE, {
460
- startDate: n.startDate,
461
- endDate: r,
462
- startTime: a,
463
- endTime: o.endTime ?? e.dateFormData.endTime
464
- }), u(v.INPUT, {
465
- ...n,
466
- range: C.value
467
- });
468
- } else
469
- x.value = !0, u(v.ERROR, { ...o });
470
- }), ca = ge((a) => {
471
- l(a, e.dateFormData.endDate) ? (U.value = !1, n.endDate = R(n.endDate, a), u(v.FORM_DATE, {
472
- startDate: n.startDate,
473
- endDate: n.endDate,
474
- startTime: o.startTime ?? e.dateFormData.startTime,
475
- endTime: a
476
- }), u(v.INPUT, {
477
- ...n,
478
- range: C.value
479
- })) : (U.value = !0, u(v.ERROR, { ...o }));
480
- }), Da = (a) => {
481
- o.startTime = Xe(a), ma(o.startTime);
482
- }, fa = (a) => {
483
- o.endTime = Xe(a), ca(o.endTime);
484
- }, xe = (a) => {
485
- nt(a);
486
- }, ve = (a, r, d, y) => {
487
- n.startDate = a, n.endDate = r, d && (n.granularity = d), y && (n.range = y);
488
- }, pa = (a) => {
489
- const r = e.quickSelectRanges?.find(({ value: d }) => d === a);
490
- if (r) {
491
- ce();
492
- const d = r.data, y = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), K = d.isRelativeToNow && d.timeDifference ? new Date(y.getTime() - d.timeDifference) : d.startDate;
493
- o.endDate = I(y), o.startDate = I(K), ve(K, y, null, a), e.granularities && (n.granularity = d.granularity || W.value), o.startTime = A(K), o.endTime = A(y), n.startDate = K, n.endDate = y, d.isRelativeToNow && (B.value = {
494
- ...B.value,
495
- [a]: {
496
- startDate: K,
497
- endDate: y
498
- }
499
- }), u(v.CUSTOM_RANGE, {
500
- ...r.data,
501
- startDate: K,
502
- endDate: y,
503
- range: r.value
504
- });
505
- }
506
- }, va = {
507
- weekly: re,
508
- monthly: ue,
509
- quarterly: Me
510
- }, ya = (a) => {
511
- const r = n.granularity;
512
- if (n.granularity = a, r && te(r, structuredClone(Ae(n))), n.startDate && n.endDate) {
513
- switch (a) {
514
- case "quarterly":
515
- case "monthly":
516
- case "weekly": {
517
- if (S[a]) {
518
- ve(S[a].startDate, S[a].endDate, a);
519
- break;
520
- }
521
- const { startDate: d, endDate: y } = va[a](
522
- n.startDate,
523
- n.endDate,
524
- g.value.min,
525
- g.value.max
526
- );
527
- ve(d, y, a);
528
- break;
529
- }
530
- case "daily":
531
- S.daily && ve(S.daily.startDate, S.daily.endDate, a);
532
- break;
533
- }
534
- o.startDate = I(n.startDate), o.endDate = I(n.endDate), u(v.INPUT, {
535
- ...n,
536
- range: C.value
537
- });
538
- }
539
- }, ga = f(() => ({
540
- "b-date-range-picker-calendar__form-container--no-calendars": ae.value
541
- }));
542
- return (a, r) => (O(), Te("div", rt, [
543
- H("div", {
544
- class: be(["b-date-range-picker-calendar__form-container", ga.value]),
545
- "data-testid": "date-range-picker-calendar-form-container"
546
- }, [
547
- H("div", st, [
548
- m(p)("title") ? Ue(a.$slots, "title", { key: 0 }, void 0, !0) : _("", !0),
549
- t.quickSelectRanges ? (O(), $(Va, {
550
- key: 1,
551
- "aria-label": m(k)("customRange"),
552
- items: Re.value,
553
- "model-value": C.value,
554
- "onUpdate:modelValue": pa
555
- }, null, 8, ["aria-label", "items", "model-value"])) : _("", !0),
556
- t.granularities ? (O(), $(m(Pa), {
557
- key: 2,
558
- items: ie.value,
559
- "model-value": n.granularity,
560
- "full-width": "",
561
- "onUpdate:modelValue": ya
562
- }, null, 8, ["items", "model-value"])) : _("", !0),
563
- H("div", null, [
564
- j(m(Be), {
565
- stronger: "",
566
- el: "span",
567
- class: "b-date-range-picker-calendar__label"
568
- }, {
569
- default: P(() => r[0] || (r[0] = [
570
- ee(" From ")
571
- ])),
572
- _: 1
573
- }),
574
- H("div", {
575
- class: be(w.value)
576
- }, [
577
- j(m(ye), {
578
- "aria-label": m(k)("dateFrom"),
579
- "model-value": o.startDate,
580
- error: X.value,
581
- class: "b-date-range-picker-calendar__form-input",
582
- "onUpdate:modelValue": ia,
583
- onKeydown: Ne
584
- }, {
585
- description: P(() => [
586
- ee(_e(m(k)(m(Q))), 1)
587
- ]),
588
- _: 1
589
- }, 8, ["aria-label", "model-value", "error"]),
590
- t.allowTimeInput ? (O(), $(m(ye), {
591
- key: 0,
592
- "aria-label": m(k)("timeFrom"),
593
- "model-value": o.startTime,
594
- error: x.value,
595
- class: "b-date-range-picker-calendar__form-input",
596
- "onUpdate:modelValue": Da,
597
- onKeydown: xe
598
- }, {
599
- description: P(() => r[1] || (r[1] = [
600
- ee("HH:MM:SS")
601
- ])),
602
- _: 1
603
- }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
604
- ], 2)
605
- ]),
606
- H("div", null, [
607
- j(m(Be), {
608
- stronger: "",
609
- el: "span",
610
- class: "b-date-range-picker-calendar__label"
611
- }, {
612
- default: P(() => r[2] || (r[2] = [
613
- ee(" To ")
614
- ])),
615
- _: 1
616
- }),
617
- H("div", {
618
- class: be(w.value)
619
- }, [
620
- j(m(ye), {
621
- class: "b-date-range-picker-calendar__form-input",
622
- "aria-label": m(k)("dateTo"),
623
- "model-value": o.endDate,
624
- error: Z.value,
625
- "onUpdate:modelValue": da,
626
- onKeydown: Ne
627
- }, {
628
- description: P(() => [
629
- ee(_e(m(k)(m(Q))), 1)
630
- ]),
631
- _: 1
632
- }, 8, ["aria-label", "model-value", "error"]),
633
- t.allowTimeInput ? (O(), $(m(ye), {
634
- key: 0,
635
- "aria-label": m(k)("timeTo"),
636
- "model-value": o.endTime,
637
- error: U.value,
638
- class: "b-date-range-picker-calendar__form-input",
639
- "onUpdate:modelValue": fa,
640
- onKeydown: xe
641
- }, {
642
- description: P(() => r[3] || (r[3] = [
643
- ee("HH:MM:SS")
644
- ])),
645
- _: 1
646
- }, 8, ["aria-label", "model-value", "error"])) : _("", !0)
647
- ], 2)
648
- ])
649
- ]),
650
- m(p)("actions") ? (O(), Te("div", lt, [
651
- Ue(a.$slots, "actions", {}, void 0, !0)
652
- ])) : _("", !0)
653
- ], 2),
654
- ae.value ? _("", !0) : (O(), Te("div", ot, [
655
- j(m(V), {
656
- value: n,
657
- "first-day-of-week": t.firstDayOfWeek,
658
- "is-date-disabled": t.isDateDisabled,
659
- "max-range": t.maxRange,
660
- min: g.value.min,
661
- max: g.value.max,
662
- "number-of-months": t.numberOfMonths,
663
- "show-end-date-on-open": t.showEndDateOnOpen,
664
- granularity: z.value,
665
- variant: t.variant,
666
- "is-range": "",
667
- onInput: pe,
668
- onStartDateSelected: sa,
669
- onEndDateSelected: la
670
- }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
671
- ]))
672
- ]));
673
- }
674
- }), dt = /* @__PURE__ */ ta(ut, [["__scopeId", "data-v-cf6285de"]]), Ye = {
675
- "en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", provideDateInAFormat: "Provide date in a YYYY-MM-DD format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
676
- "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
677
- "pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" }
678
- }, mt = ({
679
- datePickerValue: t,
680
- isDateIncorrect: i,
681
- quickSelectRanges: c,
682
- isMonthVariant: s,
683
- withTimeInput: e,
684
- placeholder: u
685
- }) => {
686
- const { locale: D, t: p } = Ce({ messages: Ye }), { dateToInputDateString: k } = qe(), Q = (b) => !!b && !isNaN(b.getTime()), M = ke({
687
- startDate: null,
688
- endDate: null,
689
- startTime: null,
690
- endTime: null
691
- });
692
- return he(
693
- t,
694
- (b) => {
695
- M.startDate = k(b?.startDate), M.endDate = k(b?.endDate), M.startTime = A(b?.startDate), M.endTime = A(b?.endDate);
696
- },
697
- { immediate: !0 }
698
- ), {
699
- // Values
700
- dateDisplayValue: f(() => {
701
- if (i.value)
702
- return `${M.startDate || ""} - ${M.endDate || ""}`;
703
- if (!t.value || !t.value.startDate && !t.value.endDate)
704
- return u?.value || p("selectDateRange");
705
- if (c.value?.length) {
706
- const Y = c.value.find(({ value: B }) => B === t.value?.range);
707
- if (Y)
708
- return Y.label;
709
- }
710
- if (t.value.granularity === "quarterly") {
711
- const { startDate: Y, endDate: B } = t.value, W = p("quarter", { quarter: Ke(Y), year: He(Y) });
712
- if (Wa(Y, B))
713
- return W;
714
- const ae = p("quarter", { quarter: Ke(B), year: He(B) });
715
- return `${W} - ${ae}`;
716
- }
717
- if (!Q(t.value.startDate) || !Q(t.value.endDate))
718
- return `${M.startDate || ""} - ${M.endDate || ""}`;
719
- let b = s?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
720
- return e.value && (b = {
721
- ...b,
722
- hour: "numeric",
723
- minute: "numeric",
724
- second: "numeric",
725
- hour12: !1
726
- }), Aa(D.value, b).formatRange(
727
- t.value.startDate,
728
- t.value.endDate
729
- );
730
- }),
731
- textInputDisplayValue: M,
732
- // Methods
733
- formatTextInputDisplayValue: () => ""
734
- };
735
- }, ct = { class: "b-date-range-picker" }, Dt = { class: "b-date-range-picker__footer" }, ft = {
736
- i18n: { messages: Ye },
737
- name: "bento-date-range-picker",
738
- model: { prop: "modelValue" }
739
- }, pt = /* @__PURE__ */ Ze({
740
- ...ft,
741
- props: {
742
- allowTimeInput: { type: Boolean },
743
- firstDayOfWeek: { default: void 0 },
744
- granularities: {},
745
- isDateDisabled: { type: Function, default: void 0 },
746
- showEndDateOnOpen: { type: Boolean, default: !1 },
747
- quickSelectRanges: { default: void 0 },
748
- maxRange: { default: null },
749
- min: { default: null },
750
- max: { default: null },
751
- numberOfMonths: { default: void 0 },
752
- modelValue: { default: null },
753
- value: { default: null },
754
- variant: { default: void 0 },
755
- hasActions: { type: Boolean, default: !1 },
756
- description: { default: void 0 },
757
- disabled: { type: Boolean, default: !1 },
758
- errorMessage: { default: null },
759
- label: { default: void 0 },
760
- optional: { type: Boolean, default: !1 },
761
- placeholder: { default: null },
762
- readonly: { type: Boolean, default: !1 },
763
- required: { type: Boolean, default: !1 },
764
- tooltipText: { default: null }
765
- },
766
- emits: ["update:model-value", "input"],
767
- setup(t, { emit: i }) {
768
- const c = i, s = t, e = ha(), { t: u } = Ce({ messages: Ye }), { dateToInputDateString: D } = qe(), p = se("bento-date-range-picker-container"), k = se("bento-date-range-picker-label"), Q = se("bento-date-range-picker-description"), M = se("bento-date-range-picker-error"), E = se("bento-date-range-picker-date-error"), oe = f(() => s.label || u("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: b } = Ba(Oe(s, "firstDayOfWeek")), Y = Ma({
769
- none: 0,
770
- one: 710,
771
- // width of date range picker with one panes
772
- two: 1030,
773
- // width of date range picker with two panes
774
- three: 1290
775
- // width of date range picker with three panes
776
- }), B = f(() => {
777
- const l = Y.active().value, R = {
778
- none: 0,
779
- one: 1,
780
- two: 2
781
- };
782
- if (l in R) {
783
- const pe = R[l];
784
- return s.numberOfMonths === void 0 ? pe : Math.min(s.numberOfMonths, pe);
785
- }
786
- return s.numberOfMonths;
787
- }), W = f(() => s?.quickSelectRanges && s.quickSelectRanges.map((l) => {
788
- const R = l.data.endDate ? void 0 : new Date(Date.now()).getTime() - l.data.startDate.getTime();
789
- return {
790
- ...l,
791
- data: {
792
- ...l.data,
793
- // Adding timeDifference to calculate an up-to-date endDate on range selection
794
- timeDifference: R
795
- }
796
- };
797
- })), ae = f(() => s.label ? k : e?.["aria-labelledby"] ?? null), n = F(!1), C = F(null), w = F(!1), { isReadOnly: Re } = Ya(Oe(s, "readonly")), { emitValue: z } = xa(c);
798
- he(
799
- () => s.disabled,
800
- () => {
801
- s.disabled && w.value && (w.value = !1);
802
- }
803
- );
804
- const ie = f(() => s.modelValue || s.value), ne = f(() => s.hasActions ? !te.value && n.value : n.value), g = f(() => ({
805
- "b-date-range-picker__description--error": !!s.errorMessage || ne.value
806
- })), Me = f(() => s.variant === "month"), ue = f(() => s.allowTimeInput && s.variant !== "month"), { dateDisplayValue: re, textInputDisplayValue: T } = mt({
807
- datePickerValue: ie,
808
- isDateIncorrect: n,
809
- quickSelectRanges: W,
810
- isMonthVariant: Me,
811
- withTimeInput: ue,
812
- placeholder: Oe(s, "placeholder")
813
- }), Ie = f(
814
- () => `${s.description ? Q : ""} ${s.errorMessage ? M : ""} ${n.value ? E : ""}`.trim() || null
815
- ), J = () => {
816
- w.value = !1;
817
- }, we = () => {
818
- w.value = !0;
819
- }, de = F(re.value), me = F(
820
- // textInputDisplayValue is a reactive object
821
- structuredClone(Ae(T))
822
- ), S = F(s.modelValue ?? s.value), te = F(!0), ce = f(
823
- () => s.hasActions ? me.value : T
824
- ), I = f(
825
- () => s.hasActions ? de.value : re.value
826
- );
827
- ea(() => {
828
- if (s.hasActions || Pe(
829
- 'BentoDateRangePicker "hasActions" property',
830
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
831
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
832
- "2.0.0"
833
- ), s.value && Pe(
834
- 'BentoDateRangePicker "value" property',
835
- 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
836
- "2.0.0"
837
- ), s.granularities && s.variant !== "month" && s.granularities.find(({ type: l }) => l === "quarterly"))
838
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
839
- }), he([() => s.value, () => s.modelValue], () => {
840
- de.value = re.value, me.value = structuredClone(Ae(T));
841
- });
842
- const X = f(() => [
843
- {
844
- title: u("apply"),
845
- event: () => {
846
- z(S.value), J(), te.value = !0;
847
- },
848
- disabled: te.value
849
- },
850
- {
851
- title: u("cancel"),
852
- event: J
853
- }
854
- ]);
855
- he(S, (l) => {
856
- if (s.hasActions) {
857
- te.value = n.value;
858
- return;
859
- }
860
- z(l);
861
- });
862
- const Z = (l) => {
863
- n.value = !1, T.startDate = D(l.startDate), T.endDate = D(l.endDate), T.startTime = A(l.startDate), T.endTime = A(l.endDate), S.value = l;
864
- }, x = async () => {
865
- n.value && (n.value = !1), S.value = null;
866
- }, U = () => {
867
- if (!w.value) {
868
- w.value = !0;
869
- return;
870
- }
871
- n.value || (w.value = !1);
872
- }, o = (l) => {
873
- n.value = !1, l.startTime && (T.startTime = l.startTime), l.endTime && (T.endTime = l.endTime);
874
- }, De = (l) => {
875
- n.value = !0, T.startDate = l.startDate, T.endDate = l.endDate, S.value = { startDate: null, endDate: null };
876
- }, fe = (l) => {
877
- l && (T.startDate = D(l.startDate), T.endDate = D(l.endDate), T.startTime = A(l.startDate), T.endTime = A(l.endDate), S.value = l);
878
- };
879
- return (l, R) => ka((O(), Te("div", ct, [
880
- l.label ? (O(), $(m(La), {
881
- key: 0,
882
- id: m(k),
883
- label: l.label,
884
- "tooltip-text": l.tooltipText,
885
- optional: l.optional,
886
- required: l.required
887
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : _("", !0),
888
- H("div", {
889
- onKeydown: Ve(U, ["enter"])
890
- }, [
891
- j(m(Ua), {
892
- ref_key: "inputContainerRef",
893
- ref: C,
894
- "always-combobox-is-input": "",
895
- ariaControls: m(p),
896
- ariaExpanded: w.value,
897
- "aria-labelledby": ae.value,
898
- "aria-describedby": Ie.value,
899
- "aria-required": l.required,
900
- disabled: l.disabled,
901
- "is-invalid": !!l.errorMessage || ne.value,
902
- open: w.value,
903
- "display-value": I.value,
904
- readonly: m(Re),
905
- onOpen: we,
906
- onClear: x,
907
- onClose: J
908
- }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "display-value", "readonly"])
909
- ], 32),
910
- ne.value ? (O(), $(m(Ge), {
911
- key: 1,
912
- id: m(E),
913
- "error-message": m(u)("provideDateInAFormat"),
914
- class: "b-date-range-picker__error-message"
915
- }, null, 8, ["id", "error-message"])) : _("", !0),
916
- l.errorMessage ? (O(), $(m(Ge), {
917
- key: 2,
918
- id: m(M),
919
- "error-message": l.errorMessage,
920
- class: "b-date-range-picker__error-message"
921
- }, null, 8, ["id", "error-message"])) : _("", !0),
922
- l.description ? (O(), $(m(Be), {
923
- key: 3,
924
- id: m(Q),
925
- class: be(["b-date-range-picker__description", g.value]),
926
- el: "span"
927
- }, {
928
- default: P(() => [
929
- ee(_e(l.description), 1)
930
- ]),
931
- _: 1
932
- }, 8, ["id", "class"])) : _("", !0),
933
- C.value ? (O(), $(m(wa), {
934
- key: 4,
935
- id: m(p),
936
- class: "b-date-range-picker__container",
937
- open: w.value,
938
- "target-element": C.value,
939
- "aria-label": oe.value,
940
- position: "bottom-start",
941
- "without-space": "",
942
- "fit-content": "",
943
- "trap-all": "",
944
- "overflow-visible": "",
945
- onKeydown: Ve(J, ["esc", "native"])
946
- }, {
947
- default: P(() => [
948
- j(m(dt), {
949
- "allow-time-input": ue.value,
950
- "quick-select-ranges": W.value,
951
- value: ie.value,
952
- "first-day-of-week": m(b),
953
- granularities: l.granularities,
954
- "is-date-disabled": l.isDateDisabled,
955
- "max-range": l.maxRange,
956
- min: l.min,
957
- max: l.max,
958
- "number-of-months": B.value,
959
- "show-end-date-on-open": l.showEndDateOnOpen,
960
- "date-form-data": ce.value,
961
- variant: l.variant,
962
- onCustomRange: fe,
963
- onInput: Z,
964
- onError: De,
965
- onFormDate: o
966
- }, Ra({ _: 2 }, [
967
- l.hasActions ? {
968
- name: "actions",
969
- fn: P(() => [
970
- j(m(Ia)),
971
- H("div", Dt, [
972
- j(m(Sa), {
973
- actions: X.value,
974
- layout: m(Qa).SPACE_BETWEEN
975
- }, null, 8, ["actions", "layout"])
976
- ])
977
- ]),
978
- key: "0"
979
- } : void 0
980
- ]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
981
- ]),
982
- _: 1
983
- }, 8, ["id", "open", "target-element", "aria-label"])) : _("", !0)
984
- ])), [
985
- [m(Na), J]
986
- ]);
987
- }
988
- }), Pt = /* @__PURE__ */ ta(pt, [["__scopeId", "data-v-e00826fe"]]);
989
- export {
990
- Pt as B,
991
- dt as D,
992
- Ga as a,
993
- Ee as i
994
- };
995
- //# sourceMappingURL=date-range-picker.DC6CK0As.js.map