@adyen/bento-vue3 2.1.0 → 2.2.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 (258) hide show
  1. package/dist/@types/bento-translation-keys.generated.d.ts +10 -0
  2. package/dist/@types/index.d.ts +67 -10
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/alert.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/button.css +1 -1
  13. package/dist/assets/card.css +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/dashboard-section.css +1 -1
  16. package/dist/assets/data-grid.css +1 -1
  17. package/dist/assets/date-filter.css +1 -0
  18. package/dist/assets/date-range-filter.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/draggable-handle.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/filter-bar.css +1 -1
  24. package/dist/assets/fixed-scroller.css +1 -1
  25. package/dist/assets/form-layout-title.css +1 -1
  26. package/dist/assets/grid-layout.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/input-with-dropdown-filter.css +1 -0
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/navigation-menu-group.css +1 -1
  32. package/dist/assets/pagination.css +1 -1
  33. package/dist/assets/secondary-nav.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/table-of-contents.css +1 -1
  36. package/dist/assets/textarea.css +1 -1
  37. package/dist/assets/timeline-item.css +1 -1
  38. package/dist/assets/toggle.css +1 -1
  39. package/dist/button.js +1 -1
  40. package/dist/card.js +1 -1
  41. package/dist/checkbox.js +2 -2
  42. package/dist/chunks/{action-bar.C6XFuiE0.js → action-bar.BIidNGlt.js} +3 -3
  43. package/dist/chunks/{action-bar.C6XFuiE0.js.map → action-bar.BIidNGlt.js.map} +1 -1
  44. package/dist/chunks/{ai-tag.BLDTP7fs.js → ai-tag.B1YHMfAh.js} +2 -2
  45. package/dist/chunks/{ai-tag.BLDTP7fs.js.map → ai-tag.B1YHMfAh.js.map} +1 -1
  46. package/dist/chunks/{alert.BYmn1ewo.js → alert.PGzfyHZI.js} +80 -98
  47. package/dist/chunks/alert.PGzfyHZI.js.map +1 -0
  48. package/dist/chunks/{anchor-scroller.B35-JMuH.js → anchor-scroller.CSOg3htL.js} +2 -2
  49. package/dist/chunks/{anchor-scroller.B35-JMuH.js.map → anchor-scroller.CSOg3htL.js.map} +1 -1
  50. package/dist/chunks/{base-modal.CulokESn.js → base-modal.A52tojyk.js} +5 -5
  51. package/dist/chunks/{base-modal.CulokESn.js.map → base-modal.A52tojyk.js.map} +1 -1
  52. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js → button-actions-with-menu.DkPSfKO9.js} +2 -2
  53. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js.map → button-actions-with-menu.DkPSfKO9.js.map} +1 -1
  54. package/dist/chunks/{button-actions.DvuGEQxM.js → button-actions.BYoctIth.js} +2 -2
  55. package/dist/chunks/button-actions.BYoctIth.js.map +1 -0
  56. package/dist/chunks/{calendar.EuBZ9HoM.js → calendar.BhoyTBN1.js} +18 -18
  57. package/dist/chunks/{calendar.EuBZ9HoM.js.map → calendar.BhoyTBN1.js.map} +1 -1
  58. package/dist/chunks/{card.OErI_R47.js → card.DL3-xIH9.js} +3 -3
  59. package/dist/chunks/{card.OErI_R47.js.map → card.DL3-xIH9.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.Deb5pHjj.js → checkbox-group.993HE54c.js} +3 -3
  61. package/dist/chunks/{checkbox-group.Deb5pHjj.js.map → checkbox-group.993HE54c.js.map} +1 -1
  62. package/dist/chunks/{checkbox.YBhv3GCJ.js → checkbox.DpT4DfSl.js} +2 -2
  63. package/dist/chunks/{checkbox.YBhv3GCJ.js.map → checkbox.DpT4DfSl.js.map} +1 -1
  64. package/dist/chunks/{code-snippet.DNDXr7t6.js → code-snippet.8XinCILe.js} +4 -4
  65. package/dist/chunks/{code-snippet.DNDXr7t6.js.map → code-snippet.8XinCILe.js.map} +1 -1
  66. package/dist/chunks/{controls-group.CC3yZiTT.js → controls-group.BcbFbqr-.js} +2 -2
  67. package/dist/chunks/{controls-group.CC3yZiTT.js.map → controls-group.BcbFbqr-.js.map} +1 -1
  68. package/dist/chunks/{copy.YBeE8V9S.js → copy.DrHbwkFX.js} +3 -3
  69. package/dist/chunks/{copy.YBeE8V9S.js.map → copy.DrHbwkFX.js.map} +1 -1
  70. package/dist/chunks/{dashboard-section.CjC3fVU6.js → dashboard-section.CVDLs9xL.js} +4 -4
  71. package/dist/chunks/dashboard-section.CVDLs9xL.js.map +1 -0
  72. package/dist/chunks/{dashed-underline.DAtZOaad.js → dashed-underline.BH4vfrBh.js} +3 -3
  73. package/dist/chunks/{dashed-underline.DAtZOaad.js.map → dashed-underline.BH4vfrBh.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.bPjGSga2.js → data-grid-template.5keqokzt.js} +4 -4
  75. package/dist/chunks/{data-grid-template.bPjGSga2.js.map → data-grid-template.5keqokzt.js.map} +1 -1
  76. package/dist/chunks/{data-grid.o5MQdWnJ.js → data-grid.DP4VPyjR.js} +20 -20
  77. package/dist/chunks/{data-grid.o5MQdWnJ.js.map → data-grid.DP4VPyjR.js.map} +1 -1
  78. package/dist/chunks/date-filter.EysjbedJ.js +156 -0
  79. package/dist/chunks/date-filter.EysjbedJ.js.map +1 -0
  80. package/dist/chunks/{date-picker.DyB8XkiY.js → date-picker.CQ3eoDIo.js} +10 -10
  81. package/dist/chunks/{date-picker.DyB8XkiY.js.map → date-picker.CQ3eoDIo.js.map} +1 -1
  82. package/dist/chunks/date-range-filter.DwNzkqTo.js +949 -0
  83. package/dist/chunks/date-range-filter.DwNzkqTo.js.map +1 -0
  84. package/dist/chunks/{date-range-picker.BcQUUVcW.js → date-range-picker.BYGk8uh-.js} +60 -60
  85. package/dist/chunks/{date-range-picker.BcQUUVcW.js.map → date-range-picker.BYGk8uh-.js.map} +1 -1
  86. package/dist/chunks/{draggable-handle.CKkSJP0K.js → draggable-handle.D6rFbf1V.js} +2 -2
  87. package/dist/chunks/{draggable-handle.CKkSJP0K.js.map → draggable-handle.D6rFbf1V.js.map} +1 -1
  88. package/dist/chunks/{draggable.jzTSFcM7.js → draggable.DH-Wc8GI.js} +2 -2
  89. package/dist/chunks/{draggable.jzTSFcM7.js.map → draggable.DH-Wc8GI.js.map} +1 -1
  90. package/dist/chunks/{dropdown-tag.BvXqllkv.js → dropdown-tag.DQ_BcUK7.js} +3 -3
  91. package/dist/chunks/{dropdown-tag.BvXqllkv.js.map → dropdown-tag.DQ_BcUK7.js.map} +1 -1
  92. package/dist/chunks/{dropdown.BoSI-Rre.js → dropdown.BJ0cJ9Ea.js} +1471 -1384
  93. package/dist/chunks/dropdown.BJ0cJ9Ea.js.map +1 -0
  94. package/dist/chunks/{empty-state.BuK12EGe.js → empty-state.CECdMida.js} +2 -2
  95. package/dist/chunks/{empty-state.BuK12EGe.js.map → empty-state.CECdMida.js.map} +1 -1
  96. package/dist/chunks/{field-label.vrUwhoOg.js → field-label.Dm9I8IDI.js} +2 -2
  97. package/dist/chunks/{field-label.vrUwhoOg.js.map → field-label.Dm9I8IDI.js.map} +1 -1
  98. package/dist/chunks/{file-uploader.Cv8sm0Jd.js → file-uploader.B8c3MlBD.js} +7 -6
  99. package/dist/chunks/{file-uploader.Cv8sm0Jd.js.map → file-uploader.B8c3MlBD.js.map} +1 -1
  100. package/dist/chunks/filter-bar.BPPxuT_w.js +2552 -0
  101. package/dist/chunks/filter-bar.BPPxuT_w.js.map +1 -0
  102. package/dist/chunks/{fixed-scroller.C0nVzRBU.js → fixed-scroller.nECGGyOp.js} +15 -15
  103. package/dist/chunks/{fixed-scroller.C0nVzRBU.js.map → fixed-scroller.nECGGyOp.js.map} +1 -1
  104. package/dist/chunks/{focus-trap.Co-S6goa.js → focus-trap.BgyHTR_3.js} +1 -2
  105. package/dist/chunks/{focus-trap.Co-S6goa.js.map → focus-trap.BgyHTR_3.js.map} +1 -1
  106. package/dist/chunks/{footer-actions.BJif4sIk.js → footer-actions.B2dxp-b_.js} +2 -2
  107. package/dist/chunks/{footer-actions.BJif4sIk.js.map → footer-actions.B2dxp-b_.js.map} +1 -1
  108. package/dist/chunks/{form-layout-title.C7f1ByNh.js → form-layout-title.h-7dMAq7.js} +2 -2
  109. package/dist/chunks/{form-layout-title.C7f1ByNh.js.map → form-layout-title.h-7dMAq7.js.map} +1 -1
  110. package/dist/chunks/grid-layout.BuhsC4WZ.js +115 -0
  111. package/dist/chunks/grid-layout.BuhsC4WZ.js.map +1 -0
  112. package/dist/chunks/{header-with-views.Dl6bfk_7.js → header-with-views.Bux_-bM4.js} +308 -308
  113. package/dist/chunks/{header-with-views.Dl6bfk_7.js.map → header-with-views.Bux_-bM4.js.map} +1 -1
  114. package/dist/chunks/{header.E-KFjIG7.js → header.BEnZbxIA.js} +4 -4
  115. package/dist/chunks/{header.E-KFjIG7.js.map → header.BEnZbxIA.js.map} +1 -1
  116. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js → info-icon-with-popover.BRl6sC0B.js} +3 -3
  117. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js.map → info-icon-with-popover.BRl6sC0B.js.map} +1 -1
  118. package/dist/chunks/{info-icon.D_zu5SYT.js → info-icon.CcM7z-CY.js} +3 -3
  119. package/dist/chunks/{info-icon.D_zu5SYT.js.map → info-icon.CcM7z-CY.js.map} +1 -1
  120. package/dist/chunks/{input-field-password.BXptrVTT.js → input-field-password.0W7vePC4.js} +4 -4
  121. package/dist/chunks/{input-field-password.BXptrVTT.js.map → input-field-password.0W7vePC4.js.map} +1 -1
  122. package/dist/chunks/{input-field-phone-number.Crxi8Wm7.js → input-field-phone-number.RblgK9OP.js} +2 -2
  123. package/dist/chunks/{input-field-phone-number.Crxi8Wm7.js.map → input-field-phone-number.RblgK9OP.js.map} +1 -1
  124. package/dist/chunks/{input-field._keU91LW.js → input-field.B-Nta-en.js} +3 -3
  125. package/dist/chunks/{input-field._keU91LW.js.map → input-field.B-Nta-en.js.map} +1 -1
  126. package/dist/chunks/{input-time.D7UW_ww_.js → input-time.CMKTGRcV.js} +3 -3
  127. package/dist/chunks/{input-time.D7UW_ww_.js.map → input-time.CMKTGRcV.js.map} +1 -1
  128. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js +100 -0
  129. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js.map +1 -0
  130. package/dist/chunks/{inspector-page.DNsc0lK1.js → inspector-page.Bd39LxR2.js} +2 -2
  131. package/dist/chunks/{inspector-page.DNsc0lK1.js.map → inspector-page.Bd39LxR2.js.map} +1 -1
  132. package/dist/chunks/{inspector.BLAqbhmV.js → inspector.SmoWfjqp.js} +2 -2
  133. package/dist/chunks/{inspector.BLAqbhmV.js.map → inspector.SmoWfjqp.js.map} +1 -1
  134. package/dist/chunks/{list-item.RuGQ8Y4T.js → list-item.CoDag_QY.js} +3 -3
  135. package/dist/chunks/{list-item.RuGQ8Y4T.js.map → list-item.CoDag_QY.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.71rmQvG8.js → listbox-option-tag.Bhyu9LpW.js} +2 -2
  137. package/dist/chunks/{listbox-option-tag.71rmQvG8.js.map → listbox-option-tag.Bhyu9LpW.js.map} +1 -1
  138. package/dist/chunks/{modal-fullscreen.jXJnaueu.js → modal-fullscreen.D-ws4648.js} +3 -3
  139. package/dist/chunks/{modal-fullscreen.jXJnaueu.js.map → modal-fullscreen.D-ws4648.js.map} +1 -1
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js} +4 -4
  141. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js.map → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js.map} +1 -1
  142. package/dist/chunks/{navigation-menu-group.BnS0isK8.js → navigation-menu-group.BlkhBGX3.js} +2 -2
  143. package/dist/chunks/{navigation-menu-group.BnS0isK8.js.map → navigation-menu-group.BlkhBGX3.js.map} +1 -1
  144. package/dist/chunks/{pagination.C-kvJ-XK.js → pagination.CyqfmV_-.js} +4 -4
  145. package/dist/chunks/{pagination.C-kvJ-XK.js.map → pagination.CyqfmV_-.js.map} +1 -1
  146. package/dist/chunks/popover.types.CXIAfp1m.js +6 -0
  147. package/dist/chunks/{popover.types.dhllh3NP.js.map → popover.types.CXIAfp1m.js.map} +1 -1
  148. package/dist/chunks/{popper-container.Rfj8UdMD.js → popper-container.lfk_dyZi.js} +2 -2
  149. package/dist/chunks/{popper-container.Rfj8UdMD.js.map → popper-container.lfk_dyZi.js.map} +1 -1
  150. package/dist/chunks/promo-banner.3d1DHWas.js.map +1 -1
  151. package/dist/chunks/{radio-group.BTI_2U11.js → radio-group.DGwM-ijw.js} +3 -3
  152. package/dist/chunks/{radio-group.BTI_2U11.js.map → radio-group.DGwM-ijw.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.ClUU1zPM.js → rich-text-editor.7qlWY3xz.js} +5 -5
  154. package/dist/chunks/{rich-text-editor.ClUU1zPM.js.map → rich-text-editor.7qlWY3xz.js.map} +1 -1
  155. package/dist/chunks/{search-bar.D1Jz7hdd.js → search-bar.BRMyMzkF.js} +3 -3
  156. package/dist/chunks/{search-bar.D1Jz7hdd.js.map → search-bar.BRMyMzkF.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.D32VFDTi.js → secondary-nav.BbBhe7QI.js} +3 -3
  158. package/dist/chunks/{secondary-nav.D32VFDTi.js.map → secondary-nav.BbBhe7QI.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.CarI0i3p.js → segmented-control.BTILFbBW.js} +2 -2
  160. package/dist/chunks/{segmented-control.CarI0i3p.js.map → segmented-control.BTILFbBW.js.map} +1 -1
  161. package/dist/chunks/select-avatar-filter.DdOdBb0C.js +55 -0
  162. package/dist/chunks/select-avatar-filter.DdOdBb0C.js.map +1 -0
  163. package/dist/chunks/select-country-filter.D-zpTtKe.js +56 -0
  164. package/dist/chunks/select-country-filter.D-zpTtKe.js.map +1 -0
  165. package/dist/chunks/select-currency-filter.BitX4BCE.js +91 -0
  166. package/dist/chunks/select-currency-filter.BitX4BCE.js.map +1 -0
  167. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js +55 -0
  168. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js.map +1 -0
  169. package/dist/chunks/select-tag-filter.BUIIqK0l.js +63 -0
  170. package/dist/chunks/select-tag-filter.BUIIqK0l.js.map +1 -0
  171. package/dist/chunks/{selection-card-group.CQsS8-H9.js → selection-card-group.mCAfzxrB.js} +3 -3
  172. package/dist/chunks/{selection-card-group.CQsS8-H9.js.map → selection-card-group.mCAfzxrB.js.map} +1 -1
  173. package/dist/chunks/{sidepanel.CYWPV9dE.js → sidepanel.amz6_quV.js} +12 -12
  174. package/dist/chunks/sidepanel.amz6_quV.js.map +1 -0
  175. package/dist/chunks/{structured-list-item.C6SAUS9a.js → structured-list-item.Br6cAwZk.js} +4 -4
  176. package/dist/chunks/{structured-list-item.C6SAUS9a.js.map → structured-list-item.Br6cAwZk.js.map} +1 -1
  177. package/dist/chunks/{summary-grid.types.FTWeUNFh.js → summary-grid.types.DUEiCht4.js} +6 -6
  178. package/dist/chunks/{summary-grid.types.FTWeUNFh.js.map → summary-grid.types.DUEiCht4.js.map} +1 -1
  179. package/dist/chunks/{tab.CwXAsp9E.js → tab.Df1c3HPX.js} +3 -3
  180. package/dist/chunks/{tab.CwXAsp9E.js.map → tab.Df1c3HPX.js.map} +1 -1
  181. package/dist/chunks/{tag.BYxa556o.js → tag.Cg3joxK_.js} +2 -2
  182. package/dist/chunks/{tag.BYxa556o.js.map → tag.Cg3joxK_.js.map} +1 -1
  183. package/dist/chunks/{textarea.D4aMdmDx.js → textarea.ClWTwdJT.js} +2 -2
  184. package/dist/chunks/{textarea.D4aMdmDx.js.map → textarea.ClWTwdJT.js.map} +1 -1
  185. package/dist/chunks/{timeline-item.De8HCoYw.js → timeline-item.CdOFw-Jn.js} +144 -132
  186. package/dist/chunks/timeline-item.CdOFw-Jn.js.map +1 -0
  187. package/dist/chunks/{title-details.8cyCeaLf.js → title-details.Ccs_ltkI.js} +2 -2
  188. package/dist/chunks/{title-details.8cyCeaLf.js.map → title-details.Ccs_ltkI.js.map} +1 -1
  189. package/dist/chunks/{tooltip.0QqJo2sa.js → tooltip.B8LTTssT.js} +3 -3
  190. package/dist/chunks/{tooltip.0QqJo2sa.js.map → tooltip.B8LTTssT.js.map} +1 -1
  191. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js} +4 -4
  192. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js.map → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js.map} +1 -1
  193. package/dist/chunks/typography.B6elnWpr.js.map +1 -1
  194. package/dist/chunks/{use-date-input-formatter.BIVkaB1k.js → use-date-input-formatter.COZBxMaZ.js} +2 -2
  195. package/dist/chunks/{use-date-input-formatter.BIVkaB1k.js.map → use-date-input-formatter.COZBxMaZ.js.map} +1 -1
  196. package/dist/chunks/warning-filled.Bzh3ib0x.js +25 -0
  197. package/dist/chunks/warning-filled.Bzh3ib0x.js.map +1 -0
  198. package/dist/code-snippet.js +1 -1
  199. package/dist/dashboard-template.js +1 -1
  200. package/dist/dashed-underline.js +1 -1
  201. package/dist/data-grid-template.js +1 -1
  202. package/dist/data-grid.js +1 -1
  203. package/dist/date-picker.js +2 -2
  204. package/dist/date-range-picker.js +2 -2
  205. package/dist/date-time-picker.js +4 -4
  206. package/dist/draggable.js +2 -2
  207. package/dist/dropdown.js +2 -2
  208. package/dist/empty-state.js +1 -1
  209. package/dist/file-uploader.js +1 -1
  210. package/dist/filter-bar.js +1 -1
  211. package/dist/focus-trap.js +1 -1
  212. package/dist/form-layout.js +1 -1
  213. package/dist/header-with-views.js +1 -1
  214. package/dist/header.js +1 -1
  215. package/dist/index.js +257 -257
  216. package/dist/info-icon.js +1 -1
  217. package/dist/input-field-password.js +1 -1
  218. package/dist/input-field-phone-number.js +1 -1
  219. package/dist/input-field.js +1 -1
  220. package/dist/input-time.js +1 -1
  221. package/dist/inspector.js +2 -2
  222. package/dist/internal.js +13 -13
  223. package/dist/list.js +1 -1
  224. package/dist/menu.js +1 -1
  225. package/dist/modal-fullscreen.js +1 -1
  226. package/dist/modal.js +2 -2
  227. package/dist/navigation-menu.js +1 -1
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +2 -2
  230. package/dist/popper-container.js +1 -1
  231. package/dist/progress-bar.js +1 -1
  232. package/dist/radio-group.js +1 -1
  233. package/dist/rich-text-editor.js +1 -1
  234. package/dist/search-bar.js +2 -2
  235. package/dist/secondary-nav.js +1 -1
  236. package/dist/segmented-control.js +1 -1
  237. package/dist/selection-card.js +1 -1
  238. package/dist/sidepanel.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +1 -1
  247. package/package.json +4 -4
  248. package/dist/chunks/alert.BYmn1ewo.js.map +0 -1
  249. package/dist/chunks/button-actions.DvuGEQxM.js.map +0 -1
  250. package/dist/chunks/dashboard-section.CjC3fVU6.js.map +0 -1
  251. package/dist/chunks/dropdown.BoSI-Rre.js.map +0 -1
  252. package/dist/chunks/filter-bar.6ElVHgFA.js +0 -3974
  253. package/dist/chunks/filter-bar.6ElVHgFA.js.map +0 -1
  254. package/dist/chunks/grid-layout.CCWNscU_.js +0 -113
  255. package/dist/chunks/grid-layout.CCWNscU_.js.map +0 -1
  256. package/dist/chunks/popover.types.dhllh3NP.js +0 -6
  257. package/dist/chunks/sidepanel.CYWPV9dE.js.map +0 -1
  258. package/dist/chunks/timeline-item.De8HCoYw.js.map +0 -1
@@ -0,0 +1,949 @@
1
+ import { defineComponent as z, toRef as N, ref as R, computed as M, reactive as _, watch as ee, resolveComponent as D, openBlock as P, createBlock as Y, withCtx as T, createElementBlock as te, createVNode as E, createTextVNode as ne, toDisplayString as ae } from "vue";
2
+ import { c as p, B as re, u as oe } from "./filter-bar.BPPxuT_w.js";
3
+ import { D as ie, B as se, i as q, a as ue } from "./date-range-picker.BYGk8uh-.js";
4
+ import { B as le } from "./divider.BlxQCxkM.js";
5
+ import { B as ce } from "./typography.B6elnWpr.js";
6
+ import { u as de } from "./index.CGBfMQdv.js";
7
+ import { j as fe, k as me, e as v, l as ge } from "./calendar.BhoyTBN1.js";
8
+ import { t as L, k as he, g as be } from "./en-US.C412g-7U.js";
9
+ import { g as pe, b as ye, c as we, d as De, i as ve, e as Oe, w as Se, l as ke, u as Me } from "./use-date-input-formatter.COZBxMaZ.js";
10
+ import { B as Te } from "./button-actions.BYoctIth.js";
11
+ import { u as Ee } from "./use-dynamic-date-fns-locale._EtEeU3i.js";
12
+ import { _ as Be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
+ import "../assets/date-range-filter.css";
14
+ function Re(e) {
15
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
16
+ }
17
+ function Pe(e) {
18
+ return !(!Re(e) && typeof e != "number" || isNaN(+L(e)));
19
+ }
20
+ function qe(e, n) {
21
+ const t = L(e, n?.in);
22
+ return fe(t, me(t)) + 1;
23
+ }
24
+ function s(e, n) {
25
+ const t = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(n, "0");
26
+ return t + a;
27
+ }
28
+ const b = {
29
+ // Year
30
+ y(e, n) {
31
+ const t = e.getFullYear(), a = t > 0 ? t : 1 - t;
32
+ return s(n === "yy" ? a % 100 : a, n.length);
33
+ },
34
+ // Month
35
+ M(e, n) {
36
+ const t = e.getMonth();
37
+ return n === "M" ? String(t + 1) : s(t + 1, 2);
38
+ },
39
+ // Day of the month
40
+ d(e, n) {
41
+ return s(e.getDate(), n.length);
42
+ },
43
+ // AM or PM
44
+ a(e, n) {
45
+ const t = e.getHours() / 12 >= 1 ? "pm" : "am";
46
+ switch (n) {
47
+ case "a":
48
+ case "aa":
49
+ return t.toUpperCase();
50
+ case "aaa":
51
+ return t;
52
+ case "aaaaa":
53
+ return t[0];
54
+ default:
55
+ return t === "am" ? "a.m." : "p.m.";
56
+ }
57
+ },
58
+ // Hour [1-12]
59
+ h(e, n) {
60
+ return s(e.getHours() % 12 || 12, n.length);
61
+ },
62
+ // Hour [0-23]
63
+ H(e, n) {
64
+ return s(e.getHours(), n.length);
65
+ },
66
+ // Minute
67
+ m(e, n) {
68
+ return s(e.getMinutes(), n.length);
69
+ },
70
+ // Second
71
+ s(e, n) {
72
+ return s(e.getSeconds(), n.length);
73
+ },
74
+ // Fraction of second
75
+ S(e, n) {
76
+ const t = n.length, a = e.getMilliseconds(), r = Math.trunc(
77
+ a * Math.pow(10, t - 3)
78
+ );
79
+ return s(r, n.length);
80
+ }
81
+ }, O = {
82
+ midnight: "midnight",
83
+ noon: "noon",
84
+ morning: "morning",
85
+ afternoon: "afternoon",
86
+ evening: "evening",
87
+ night: "night"
88
+ }, W = {
89
+ // Era
90
+ G: function(e, n, t) {
91
+ const a = e.getFullYear() > 0 ? 1 : 0;
92
+ switch (n) {
93
+ // AD, BC
94
+ case "G":
95
+ case "GG":
96
+ case "GGG":
97
+ return t.era(a, { width: "abbreviated" });
98
+ // A, B
99
+ case "GGGGG":
100
+ return t.era(a, { width: "narrow" });
101
+ default:
102
+ return t.era(a, { width: "wide" });
103
+ }
104
+ },
105
+ // Year
106
+ y: function(e, n, t) {
107
+ if (n === "yo") {
108
+ const a = e.getFullYear(), r = a > 0 ? a : 1 - a;
109
+ return t.ordinalNumber(r, { unit: "year" });
110
+ }
111
+ return b.y(e, n);
112
+ },
113
+ // Local week-numbering year
114
+ Y: function(e, n, t, a) {
115
+ const r = De(e, a), i = r > 0 ? r : 1 - r;
116
+ if (n === "YY") {
117
+ const u = i % 100;
118
+ return s(u, 2);
119
+ }
120
+ return n === "Yo" ? t.ordinalNumber(i, { unit: "year" }) : s(i, n.length);
121
+ },
122
+ // ISO week-numbering year
123
+ R: function(e, n) {
124
+ const t = we(e);
125
+ return s(t, n.length);
126
+ },
127
+ // Extended year. This is a single number designating the year of this calendar system.
128
+ // The main difference between `y` and `u` localizers are B.C. years:
129
+ // | Year | `y` | `u` |
130
+ // |------|-----|-----|
131
+ // | AC 1 | 1 | 1 |
132
+ // | BC 1 | 1 | 0 |
133
+ // | BC 2 | 2 | -1 |
134
+ // Also `yy` always returns the last two digits of a year,
135
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
136
+ u: function(e, n) {
137
+ const t = e.getFullYear();
138
+ return s(t, n.length);
139
+ },
140
+ // Quarter
141
+ Q: function(e, n, t) {
142
+ const a = Math.ceil((e.getMonth() + 1) / 3);
143
+ switch (n) {
144
+ // 1, 2, 3, 4
145
+ case "Q":
146
+ return String(a);
147
+ // 01, 02, 03, 04
148
+ case "QQ":
149
+ return s(a, 2);
150
+ // 1st, 2nd, 3rd, 4th
151
+ case "Qo":
152
+ return t.ordinalNumber(a, { unit: "quarter" });
153
+ // Q1, Q2, Q3, Q4
154
+ case "QQQ":
155
+ return t.quarter(a, {
156
+ width: "abbreviated",
157
+ context: "formatting"
158
+ });
159
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
160
+ case "QQQQQ":
161
+ return t.quarter(a, {
162
+ width: "narrow",
163
+ context: "formatting"
164
+ });
165
+ default:
166
+ return t.quarter(a, {
167
+ width: "wide",
168
+ context: "formatting"
169
+ });
170
+ }
171
+ },
172
+ // Stand-alone quarter
173
+ q: function(e, n, t) {
174
+ const a = Math.ceil((e.getMonth() + 1) / 3);
175
+ switch (n) {
176
+ // 1, 2, 3, 4
177
+ case "q":
178
+ return String(a);
179
+ // 01, 02, 03, 04
180
+ case "qq":
181
+ return s(a, 2);
182
+ // 1st, 2nd, 3rd, 4th
183
+ case "qo":
184
+ return t.ordinalNumber(a, { unit: "quarter" });
185
+ // Q1, Q2, Q3, Q4
186
+ case "qqq":
187
+ return t.quarter(a, {
188
+ width: "abbreviated",
189
+ context: "standalone"
190
+ });
191
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
192
+ case "qqqqq":
193
+ return t.quarter(a, {
194
+ width: "narrow",
195
+ context: "standalone"
196
+ });
197
+ default:
198
+ return t.quarter(a, {
199
+ width: "wide",
200
+ context: "standalone"
201
+ });
202
+ }
203
+ },
204
+ // Month
205
+ M: function(e, n, t) {
206
+ const a = e.getMonth();
207
+ switch (n) {
208
+ case "M":
209
+ case "MM":
210
+ return b.M(e, n);
211
+ // 1st, 2nd, ..., 12th
212
+ case "Mo":
213
+ return t.ordinalNumber(a + 1, { unit: "month" });
214
+ // Jan, Feb, ..., Dec
215
+ case "MMM":
216
+ return t.month(a, {
217
+ width: "abbreviated",
218
+ context: "formatting"
219
+ });
220
+ // J, F, ..., D
221
+ case "MMMMM":
222
+ return t.month(a, {
223
+ width: "narrow",
224
+ context: "formatting"
225
+ });
226
+ default:
227
+ return t.month(a, { width: "wide", context: "formatting" });
228
+ }
229
+ },
230
+ // Stand-alone month
231
+ L: function(e, n, t) {
232
+ const a = e.getMonth();
233
+ switch (n) {
234
+ // 1, 2, ..., 12
235
+ case "L":
236
+ return String(a + 1);
237
+ // 01, 02, ..., 12
238
+ case "LL":
239
+ return s(a + 1, 2);
240
+ // 1st, 2nd, ..., 12th
241
+ case "Lo":
242
+ return t.ordinalNumber(a + 1, { unit: "month" });
243
+ // Jan, Feb, ..., Dec
244
+ case "LLL":
245
+ return t.month(a, {
246
+ width: "abbreviated",
247
+ context: "standalone"
248
+ });
249
+ // J, F, ..., D
250
+ case "LLLLL":
251
+ return t.month(a, {
252
+ width: "narrow",
253
+ context: "standalone"
254
+ });
255
+ default:
256
+ return t.month(a, { width: "wide", context: "standalone" });
257
+ }
258
+ },
259
+ // Local week of year
260
+ w: function(e, n, t, a) {
261
+ const r = ye(e, a);
262
+ return n === "wo" ? t.ordinalNumber(r, { unit: "week" }) : s(r, n.length);
263
+ },
264
+ // ISO week of year
265
+ I: function(e, n, t) {
266
+ const a = pe(e);
267
+ return n === "Io" ? t.ordinalNumber(a, { unit: "week" }) : s(a, n.length);
268
+ },
269
+ // Day of the month
270
+ d: function(e, n, t) {
271
+ return n === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : b.d(e, n);
272
+ },
273
+ // Day of year
274
+ D: function(e, n, t) {
275
+ const a = qe(e);
276
+ return n === "Do" ? t.ordinalNumber(a, { unit: "dayOfYear" }) : s(a, n.length);
277
+ },
278
+ // Day of week
279
+ E: function(e, n, t) {
280
+ const a = e.getDay();
281
+ switch (n) {
282
+ // Tue
283
+ case "E":
284
+ case "EE":
285
+ case "EEE":
286
+ return t.day(a, {
287
+ width: "abbreviated",
288
+ context: "formatting"
289
+ });
290
+ // T
291
+ case "EEEEE":
292
+ return t.day(a, {
293
+ width: "narrow",
294
+ context: "formatting"
295
+ });
296
+ // Tu
297
+ case "EEEEEE":
298
+ return t.day(a, {
299
+ width: "short",
300
+ context: "formatting"
301
+ });
302
+ default:
303
+ return t.day(a, {
304
+ width: "wide",
305
+ context: "formatting"
306
+ });
307
+ }
308
+ },
309
+ // Local day of week
310
+ e: function(e, n, t, a) {
311
+ const r = e.getDay(), i = (r - a.weekStartsOn + 8) % 7 || 7;
312
+ switch (n) {
313
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
314
+ case "e":
315
+ return String(i);
316
+ // Padded numerical value
317
+ case "ee":
318
+ return s(i, 2);
319
+ // 1st, 2nd, ..., 7th
320
+ case "eo":
321
+ return t.ordinalNumber(i, { unit: "day" });
322
+ case "eee":
323
+ return t.day(r, {
324
+ width: "abbreviated",
325
+ context: "formatting"
326
+ });
327
+ // T
328
+ case "eeeee":
329
+ return t.day(r, {
330
+ width: "narrow",
331
+ context: "formatting"
332
+ });
333
+ // Tu
334
+ case "eeeeee":
335
+ return t.day(r, {
336
+ width: "short",
337
+ context: "formatting"
338
+ });
339
+ default:
340
+ return t.day(r, {
341
+ width: "wide",
342
+ context: "formatting"
343
+ });
344
+ }
345
+ },
346
+ // Stand-alone local day of week
347
+ c: function(e, n, t, a) {
348
+ const r = e.getDay(), i = (r - a.weekStartsOn + 8) % 7 || 7;
349
+ switch (n) {
350
+ // Numerical value (same as in `e`)
351
+ case "c":
352
+ return String(i);
353
+ // Padded numerical value
354
+ case "cc":
355
+ return s(i, n.length);
356
+ // 1st, 2nd, ..., 7th
357
+ case "co":
358
+ return t.ordinalNumber(i, { unit: "day" });
359
+ case "ccc":
360
+ return t.day(r, {
361
+ width: "abbreviated",
362
+ context: "standalone"
363
+ });
364
+ // T
365
+ case "ccccc":
366
+ return t.day(r, {
367
+ width: "narrow",
368
+ context: "standalone"
369
+ });
370
+ // Tu
371
+ case "cccccc":
372
+ return t.day(r, {
373
+ width: "short",
374
+ context: "standalone"
375
+ });
376
+ default:
377
+ return t.day(r, {
378
+ width: "wide",
379
+ context: "standalone"
380
+ });
381
+ }
382
+ },
383
+ // ISO day of week
384
+ i: function(e, n, t) {
385
+ const a = e.getDay(), r = a === 0 ? 7 : a;
386
+ switch (n) {
387
+ // 2
388
+ case "i":
389
+ return String(r);
390
+ // 02
391
+ case "ii":
392
+ return s(r, n.length);
393
+ // 2nd
394
+ case "io":
395
+ return t.ordinalNumber(r, { unit: "day" });
396
+ // Tue
397
+ case "iii":
398
+ return t.day(a, {
399
+ width: "abbreviated",
400
+ context: "formatting"
401
+ });
402
+ // T
403
+ case "iiiii":
404
+ return t.day(a, {
405
+ width: "narrow",
406
+ context: "formatting"
407
+ });
408
+ // Tu
409
+ case "iiiiii":
410
+ return t.day(a, {
411
+ width: "short",
412
+ context: "formatting"
413
+ });
414
+ default:
415
+ return t.day(a, {
416
+ width: "wide",
417
+ context: "formatting"
418
+ });
419
+ }
420
+ },
421
+ // AM or PM
422
+ a: function(e, n, t) {
423
+ const r = e.getHours() / 12 >= 1 ? "pm" : "am";
424
+ switch (n) {
425
+ case "a":
426
+ case "aa":
427
+ return t.dayPeriod(r, {
428
+ width: "abbreviated",
429
+ context: "formatting"
430
+ });
431
+ case "aaa":
432
+ return t.dayPeriod(r, {
433
+ width: "abbreviated",
434
+ context: "formatting"
435
+ }).toLowerCase();
436
+ case "aaaaa":
437
+ return t.dayPeriod(r, {
438
+ width: "narrow",
439
+ context: "formatting"
440
+ });
441
+ default:
442
+ return t.dayPeriod(r, {
443
+ width: "wide",
444
+ context: "formatting"
445
+ });
446
+ }
447
+ },
448
+ // AM, PM, midnight, noon
449
+ b: function(e, n, t) {
450
+ const a = e.getHours();
451
+ let r;
452
+ switch (a === 12 ? r = O.noon : a === 0 ? r = O.midnight : r = a / 12 >= 1 ? "pm" : "am", n) {
453
+ case "b":
454
+ case "bb":
455
+ return t.dayPeriod(r, {
456
+ width: "abbreviated",
457
+ context: "formatting"
458
+ });
459
+ case "bbb":
460
+ return t.dayPeriod(r, {
461
+ width: "abbreviated",
462
+ context: "formatting"
463
+ }).toLowerCase();
464
+ case "bbbbb":
465
+ return t.dayPeriod(r, {
466
+ width: "narrow",
467
+ context: "formatting"
468
+ });
469
+ default:
470
+ return t.dayPeriod(r, {
471
+ width: "wide",
472
+ context: "formatting"
473
+ });
474
+ }
475
+ },
476
+ // in the morning, in the afternoon, in the evening, at night
477
+ B: function(e, n, t) {
478
+ const a = e.getHours();
479
+ let r;
480
+ switch (a >= 17 ? r = O.evening : a >= 12 ? r = O.afternoon : a >= 4 ? r = O.morning : r = O.night, n) {
481
+ case "B":
482
+ case "BB":
483
+ case "BBB":
484
+ return t.dayPeriod(r, {
485
+ width: "abbreviated",
486
+ context: "formatting"
487
+ });
488
+ case "BBBBB":
489
+ return t.dayPeriod(r, {
490
+ width: "narrow",
491
+ context: "formatting"
492
+ });
493
+ default:
494
+ return t.dayPeriod(r, {
495
+ width: "wide",
496
+ context: "formatting"
497
+ });
498
+ }
499
+ },
500
+ // Hour [1-12]
501
+ h: function(e, n, t) {
502
+ if (n === "ho") {
503
+ let a = e.getHours() % 12;
504
+ return a === 0 && (a = 12), t.ordinalNumber(a, { unit: "hour" });
505
+ }
506
+ return b.h(e, n);
507
+ },
508
+ // Hour [0-23]
509
+ H: function(e, n, t) {
510
+ return n === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : b.H(e, n);
511
+ },
512
+ // Hour [0-11]
513
+ K: function(e, n, t) {
514
+ const a = e.getHours() % 12;
515
+ return n === "Ko" ? t.ordinalNumber(a, { unit: "hour" }) : s(a, n.length);
516
+ },
517
+ // Hour [1-24]
518
+ k: function(e, n, t) {
519
+ let a = e.getHours();
520
+ return a === 0 && (a = 24), n === "ko" ? t.ordinalNumber(a, { unit: "hour" }) : s(a, n.length);
521
+ },
522
+ // Minute
523
+ m: function(e, n, t) {
524
+ return n === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : b.m(e, n);
525
+ },
526
+ // Second
527
+ s: function(e, n, t) {
528
+ return n === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : b.s(e, n);
529
+ },
530
+ // Fraction of second
531
+ S: function(e, n) {
532
+ return b.S(e, n);
533
+ },
534
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
535
+ X: function(e, n, t) {
536
+ const a = e.getTimezoneOffset();
537
+ if (a === 0)
538
+ return "Z";
539
+ switch (n) {
540
+ // Hours and optional minutes
541
+ case "X":
542
+ return Q(a);
543
+ // Hours, minutes and optional seconds without `:` delimiter
544
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
545
+ // so this token always has the same output as `XX`
546
+ case "XXXX":
547
+ case "XX":
548
+ return y(a);
549
+ // Hours and minutes with `:` delimiter
550
+ default:
551
+ return y(a, ":");
552
+ }
553
+ },
554
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
555
+ x: function(e, n, t) {
556
+ const a = e.getTimezoneOffset();
557
+ switch (n) {
558
+ // Hours and optional minutes
559
+ case "x":
560
+ return Q(a);
561
+ // Hours, minutes and optional seconds without `:` delimiter
562
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
563
+ // so this token always has the same output as `xx`
564
+ case "xxxx":
565
+ case "xx":
566
+ return y(a);
567
+ // Hours and minutes with `:` delimiter
568
+ default:
569
+ return y(a, ":");
570
+ }
571
+ },
572
+ // Timezone (GMT)
573
+ O: function(e, n, t) {
574
+ const a = e.getTimezoneOffset();
575
+ switch (n) {
576
+ // Short
577
+ case "O":
578
+ case "OO":
579
+ case "OOO":
580
+ return "GMT" + x(a, ":");
581
+ default:
582
+ return "GMT" + y(a, ":");
583
+ }
584
+ },
585
+ // Timezone (specific non-location)
586
+ z: function(e, n, t) {
587
+ const a = e.getTimezoneOffset();
588
+ switch (n) {
589
+ // Short
590
+ case "z":
591
+ case "zz":
592
+ case "zzz":
593
+ return "GMT" + x(a, ":");
594
+ default:
595
+ return "GMT" + y(a, ":");
596
+ }
597
+ },
598
+ // Seconds timestamp
599
+ t: function(e, n, t) {
600
+ const a = Math.trunc(+e / 1e3);
601
+ return s(a, n.length);
602
+ },
603
+ // Milliseconds timestamp
604
+ T: function(e, n, t) {
605
+ return s(+e, n.length);
606
+ }
607
+ };
608
+ function x(e, n = "") {
609
+ const t = e > 0 ? "-" : "+", a = Math.abs(e), r = Math.trunc(a / 60), i = a % 60;
610
+ return i === 0 ? t + String(r) : t + String(r) + n + s(i, 2);
611
+ }
612
+ function Q(e, n) {
613
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2) : y(e, n);
614
+ }
615
+ function y(e, n = "") {
616
+ const t = e > 0 ? "-" : "+", a = Math.abs(e), r = s(Math.trunc(a / 60), 2), i = s(a % 60, 2);
617
+ return t + r + n + i;
618
+ }
619
+ const Le = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ie = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Fe = /^'([^]*?)'?$/, Ce = /''/g, Ne = /[a-zA-Z]/;
620
+ function B(e, n, t) {
621
+ const a = be(), r = t?.locale ?? a.locale ?? he, i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, u = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, m = L(e, t?.in);
622
+ if (!Pe(m))
623
+ throw new RangeError("Invalid time value");
624
+ let g = n.match(Ie).map((c) => {
625
+ const l = c[0];
626
+ if (l === "p" || l === "P") {
627
+ const f = ke[l];
628
+ return f(c, r.formatLong);
629
+ }
630
+ return c;
631
+ }).join("").match(Le).map((c) => {
632
+ if (c === "''")
633
+ return { isToken: !1, value: "'" };
634
+ const l = c[0];
635
+ if (l === "'")
636
+ return { isToken: !1, value: Ye(c) };
637
+ if (W[l])
638
+ return { isToken: !0, value: c };
639
+ if (l.match(Ne))
640
+ throw new RangeError(
641
+ "Format string contains an unescaped latin alphabet character `" + l + "`"
642
+ );
643
+ return { isToken: !1, value: c };
644
+ });
645
+ r.localize.preprocessor && (g = r.localize.preprocessor(m, g));
646
+ const h = {
647
+ firstWeekContainsDate: i,
648
+ weekStartsOn: u,
649
+ locale: r
650
+ };
651
+ return g.map((c) => {
652
+ if (!c.isToken) return c.value;
653
+ const l = c.value;
654
+ (!t?.useAdditionalWeekYearTokens && ve(l) || !t?.useAdditionalDayOfYearTokens && Oe(l)) && Se(l, n, String(e));
655
+ const f = W[l[0]];
656
+ return f(m, l, r.localize, h);
657
+ }).join("");
658
+ }
659
+ function Ye(e) {
660
+ const n = e.match(Fe);
661
+ return n ? n[1].replace(Ce, "'") : e;
662
+ }
663
+ const G = {
664
+ "de-DE": { apply: "Anwenden", clear: "Löschen", reset: "Zurücksetzen" },
665
+ "en-GB": { apply: "Apply", clear: "Clear", reset: "Reset" },
666
+ "en-US": { apply: "Apply", clear: "Clear", reset: "Reset" },
667
+ "es-419": { apply: "Aplicar", clear: "Borrar", reset: "Restablecer" },
668
+ "es-ES": { apply: "Aplicar", clear: "Borrar", reset: "Reiniciar" },
669
+ "es-MX": { apply: "Aplicar", clear: "Limpiar", reset: "Restablecer" },
670
+ "fr-FR": { apply: "Appliquer", clear: "Clair", reset: "Réinitialiser" },
671
+ "it-IT": { apply: "Applica", clear: "Cancella", reset: "Resetta" },
672
+ "ja-JP": { apply: "適用", clear: "クリア", reset: "リセット" },
673
+ "pt-BR": { apply: "Aplicar", clear: "Limpar", reset: "Limpar" },
674
+ "zh-CN": { apply: "应用", clear: "清除", reset: "重置" }
675
+ }, We = z({
676
+ i18n: { messages: G },
677
+ name: "bento-date-range-filter",
678
+ components: {
679
+ BentoBaseFilter: re,
680
+ BentoButtonActions: Te,
681
+ BentoDateRangePicker: se,
682
+ BentoTypography: ce,
683
+ BentoDivider: le,
684
+ DateRangePickerCalendar: ie
685
+ },
686
+ props: {
687
+ /**
688
+ * Disables the filter from being interacted with.
689
+ */
690
+ disabled: { type: Boolean, default: !1 },
691
+ /**
692
+ * Default value of the filter to reset to.
693
+ */
694
+ defaultValue: { type: Object, default: null },
695
+ /**
696
+ * Filter name/key referencing the actual property name in the data set.
697
+ * Should be unique per filter bar.
698
+ */
699
+ field: { type: String, required: !0 },
700
+ /**
701
+ * Label text to be displayed
702
+ */
703
+ label: { type: String, required: !0 },
704
+ /**
705
+ * Renders the base filter's slot content only - leaving out the button and the popover.
706
+ * Used for the allFiltersModal component.
707
+ */
708
+ onlySlot: { type: Boolean, default: !1 },
709
+ /**
710
+ * List of options that are needed to setup the filter
711
+ * Available options:
712
+ * - allowTimeInput: Allows user to enter time values in the form
713
+ * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
714
+ * - isDateDisabled: Indicate if a date should be disabled or not
715
+ * - maxRange: Set a maximum number of dates to be selectable by the range
716
+ * - numberOfMonths: Number of months rendered on pane
717
+ * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
718
+ * - showEndDateOnOpen: Upon opening date range picker, end date's month will be pre-selected.
719
+ * - granularities: A list of available granularities.
720
+ * - timeInterval: Limits the selectable times to a fixed interval, in minutes. Requires allowTimeInput
721
+ * - variant: The type of calendar to display. Defaults to showing days.
722
+ * - tooltipPosition: The position of the tooltip attached to the filter button
723
+ * - tooltipText: The content of the tooltip attached to the filter button
724
+ */
725
+ options: {
726
+ type: Object,
727
+ default: void 0
728
+ },
729
+ /**
730
+ * Current value of the filter
731
+ */
732
+ value: {
733
+ type: Object,
734
+ default: () => ({ startDate: void 0, endDate: void 0 })
735
+ }
736
+ },
737
+ emits: [p.INPUT, p.UPDATE],
738
+ setup(e, { emit: n }) {
739
+ const { locale: t, t: a } = de({ messages: G }), r = Ee(t), { dateToInputDateString: i } = Me(), { internalFilterValue: u, isSecondaryButtonDisabled: m, isApplyButtonDisabled: g } = oe(
740
+ N(e, "value"),
741
+ N(e, "defaultValue")
742
+ ), h = R(!1), c = M(() => e?.options?.quickSelectRanges && e.options.quickSelectRanges.map((o) => {
743
+ const w = o.data.endDate ? void 0 : new Date(Date.now()).getTime() - o.data.startDate.getTime();
744
+ return {
745
+ ...o,
746
+ data: {
747
+ ...o.data,
748
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
749
+ timeDifference: w
750
+ }
751
+ };
752
+ })), l = R(null), f = R(!1), d = _({
753
+ startDate: i(e.value?.startDate),
754
+ endDate: i(e.value?.endDate),
755
+ startTime: v(e.value?.startDate),
756
+ endTime: v(e.value?.endDate)
757
+ });
758
+ ee(
759
+ () => e.value,
760
+ () => {
761
+ d.startDate = i(e.value?.startDate), d.endDate = i(e.value?.endDate), d.startTime = v(e.value?.startDate), d.endTime = v(e.value?.endDate);
762
+ }
763
+ );
764
+ function A(o) {
765
+ return o?.length !== void 0;
766
+ }
767
+ const H = (o) => {
768
+ if (!o || !o?.startDate && !o.endDate)
769
+ return null;
770
+ if (A(e.options?.quickSelectRanges) && e.options?.quickSelectRanges?.length > 0) {
771
+ const w = e.options?.quickSelectRanges?.find(({ value: V, data: k }) => o ? o.range ? V === o.range : !o.startDate || !o.endDate ? !1 : k?.endDate ? q(k?.startDate, o.startDate) && q(k?.endDate, o.endDate) : q(k?.startDate, o.startDate) && ue(o.endDate) : !1);
772
+ if (w)
773
+ return w.label;
774
+ }
775
+ return !o.startDate || !o.endDate ? null : ge(o.startDate, o.endDate) && e?.options?.allowTimeInput ? `${B(o.startDate, "dd MMM, yyyy HH:mm:ss", {
776
+ locale: r.value
777
+ })} - ${B(o.endDate, "HH:mm:ss", {
778
+ locale: r.value
779
+ })}` : `${B(o.startDate, "dd MMM, yyyy", {
780
+ locale: r.value
781
+ })} - ${B(o.endDate, "dd MMM, yyyy", {
782
+ locale: r.value
783
+ })}`;
784
+ }, X = M(() => H(e.value)), U = M(() => e.label), S = () => {
785
+ l.value.closePopover();
786
+ const { onlySlot: o, ...w } = e;
787
+ n(p.UPDATE, { ...w, value: u.value });
788
+ }, I = () => {
789
+ u.value = void 0, S();
790
+ }, F = () => {
791
+ u.value = e.defaultValue, S();
792
+ }, $ = () => {
793
+ u.value = e.value;
794
+ }, j = () => {
795
+ u.value = e.value, h.value = !1, d.startDate = i(e.value?.startDate), d.endDate = i(e.value?.endDate), d.startTime = v(e.value?.startDate), d.endTime = v(e.value?.endDate);
796
+ }, C = (o) => {
797
+ h.value = !1, u.value = o, d.startDate = i(o.startDate), d.endDate = i(o.endDate), n(p.INPUT, { ...e, value: u.value });
798
+ }, Z = (o) => {
799
+ o?.startDate && o?.endDate && (u.value = o, d.startDate = i(o.startDate), d.endDate = i(o.endDate), n(p.INPUT, { ...e, value: u.value }));
800
+ }, K = (o) => {
801
+ C(o), n(p.INPUT, { ...e, value: u.value });
802
+ }, J = M(
803
+ () => [
804
+ {
805
+ title: a("apply"),
806
+ event: S,
807
+ disabled: h.value || f.value || g.value
808
+ },
809
+ {
810
+ title: e.defaultValue ? a("reset") : a("clear"),
811
+ event: e.defaultValue ? F : I,
812
+ disabled: f.value && m.value
813
+ }
814
+ ]
815
+ );
816
+ return {
817
+ // Refs
818
+ baseFilter: l,
819
+ // Values
820
+ actions: J,
821
+ formData: d,
822
+ internalFilterValue: u,
823
+ isApplyButtonDisabled: g,
824
+ isSecondaryButtonDisabled: m,
825
+ isSelectingDate: h,
826
+ buttonLabel: U,
827
+ buttonSecondaryLabel: X,
828
+ adjustedQuickSelectRanges: c,
829
+ // Events
830
+ onCancel: j,
831
+ onDateSelected: C,
832
+ openFilter: $,
833
+ clearFilter: I,
834
+ resetFilter: F,
835
+ updateFilter: S,
836
+ onDatePickerRangeError: () => {
837
+ f.value = !0, u.value = { startDate: void 0, endDate: void 0 }, n(p.INPUT, { ...e, value: u.value });
838
+ },
839
+ onDatePickerRangeFormDateInputUpdate: (o) => {
840
+ f.value = !1, o.startTime && (d.startTime = o.startTime), o.endTime && (d.endTime = o.endTime);
841
+ },
842
+ onDateInputSelected: K,
843
+ onRangeSelectorInput: Z
844
+ };
845
+ }
846
+ }), xe = {
847
+ key: 1,
848
+ class: "b-date-range-filter"
849
+ };
850
+ function Qe(e, n, t, a, r, i) {
851
+ const u = D("bento-date-range-picker"), m = D("bento-typography"), g = D("bento-divider"), h = D("bento-button-actions"), c = D("date-range-picker-calendar"), l = D("bento-base-filter");
852
+ return P(), Y(l, {
853
+ ref: "baseFilter",
854
+ class: "b-base-filter-date-range-filter",
855
+ "button-label": e.buttonLabel,
856
+ "button-secondary-label": e.buttonSecondaryLabel,
857
+ controlled: !e.onlySlot,
858
+ disabled: e.disabled,
859
+ "disable-apply-button": e.isApplyButtonDisabled,
860
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
861
+ "default-value": e.defaultValue,
862
+ field: e.field,
863
+ label: e.label,
864
+ "only-slot": e.onlySlot,
865
+ "tooltip-position": e.options?.tooltipPosition,
866
+ "tooltip-text": e.options?.tooltipText,
867
+ value: e.value,
868
+ "fit-content": "",
869
+ onOpen: e.openFilter,
870
+ onClear: e.clearFilter,
871
+ onReset: e.resetFilter,
872
+ onCancel: e.onCancel
873
+ }, {
874
+ default: T(() => [
875
+ e.onlySlot ? (P(), Y(u, {
876
+ key: 0,
877
+ "allow-time-input": e.options?.allowTimeInput,
878
+ "model-value": e.internalFilterValue,
879
+ "first-day-of-week": e.options?.firstDayOfWeek,
880
+ "is-date-disabled": e.options?.isDateDisabled,
881
+ "number-of-months": e.options?.numberOfMonths,
882
+ "quick-select-ranges": e.options?.quickSelectRanges,
883
+ variant: e.options?.variant,
884
+ "year-range": e.options?.yearRange,
885
+ disabled: e.disabled,
886
+ granularities: e.options?.granularities,
887
+ "max-range": e.options?.maxRange,
888
+ min: e.options?.min,
889
+ max: e.options?.max,
890
+ "date-form-data": e.formData,
891
+ "show-end-date-on-open": e.options?.showEndDateOnOpen,
892
+ "time-interval": e.options?.timeInterval,
893
+ "aria-labelledby": e.$attrs?.["aria-labelledby"],
894
+ "onUpdate:modelValue": e.onDateInputSelected
895
+ }, null, 8, ["allow-time-input", "model-value", "first-day-of-week", "is-date-disabled", "number-of-months", "quick-select-ranges", "variant", "year-range", "disabled", "granularities", "max-range", "min", "max", "date-form-data", "show-end-date-on-open", "time-interval", "aria-labelledby", "onUpdate:modelValue"])) : (P(), te("div", xe, [
896
+ E(c, {
897
+ "allow-time-input": e.options?.allowTimeInput,
898
+ "first-day-of-week": e.options?.firstDayOfWeek,
899
+ "is-date-disabled": e.options?.isDateDisabled,
900
+ granularities: e.options?.granularities,
901
+ "max-range": e.options?.maxRange,
902
+ min: e.options?.min,
903
+ max: e.options?.max,
904
+ "number-of-months": e.options?.numberOfMonths,
905
+ "quick-select-ranges": e.adjustedQuickSelectRanges,
906
+ value: e.internalFilterValue,
907
+ "date-form-data": e.formData,
908
+ "show-end-date-on-open": e.options?.showEndDateOnOpen,
909
+ "time-interval": e.options?.timeInterval,
910
+ variant: e.options?.variant,
911
+ "year-range": e.options?.yearRange,
912
+ onInput: e.onDateSelected,
913
+ onCustomRange: e.onRangeSelectorInput,
914
+ onError: e.onDatePickerRangeError,
915
+ onFormDate: e.onDatePickerRangeFormDateInputUpdate,
916
+ onStartDateSelected: n[0] || (n[0] = (f) => e.isSelectingDate = !0)
917
+ }, {
918
+ title: T(() => [
919
+ E(m, {
920
+ strongest: "",
921
+ variant: "body",
922
+ el: "span"
923
+ }, {
924
+ default: T(() => [
925
+ ne(ae(e.label), 1)
926
+ ]),
927
+ _: 1
928
+ })
929
+ ]),
930
+ actions: T(() => [
931
+ E(g, { class: "b-date-range-filter__divider" }),
932
+ E(h, {
933
+ class: "b-date-range-filter__actions",
934
+ actions: e.actions,
935
+ layout: "space-between"
936
+ }, null, 8, ["actions"])
937
+ ]),
938
+ _: 1
939
+ }, 8, ["allow-time-input", "first-day-of-week", "is-date-disabled", "granularities", "max-range", "min", "max", "number-of-months", "quick-select-ranges", "value", "date-form-data", "show-end-date-on-open", "time-interval", "variant", "year-range", "onInput", "onCustomRange", "onError", "onFormDate"])
940
+ ]))
941
+ ]),
942
+ _: 1
943
+ }, 8, ["button-label", "button-secondary-label", "controlled", "disabled", "disable-apply-button", "disable-secondary-button", "default-value", "field", "label", "only-slot", "tooltip-position", "tooltip-text", "value", "onOpen", "onClear", "onReset", "onCancel"]);
944
+ }
945
+ const tt = /* @__PURE__ */ Be(We, [["render", Qe], ["__scopeId", "data-v-32cbf5dc"]]);
946
+ export {
947
+ tt as default
948
+ };
949
+ //# sourceMappingURL=date-range-filter.DwNzkqTo.js.map