@adyen/bento-vue3 2.0.1-rc.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/accordion.js +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/modal-fullscreen.css +1 -1
  16. package/dist/assets/navigation-menu-group.css +1 -1
  17. package/dist/assets/secondary-nav.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/button.js +1 -1
  20. package/dist/card.js +1 -1
  21. package/dist/checkbox.js +2 -2
  22. package/dist/chunks/{accordion-item.l88yjGPT.js → accordion-item.BMxeTYDy.js} +2 -2
  23. package/dist/chunks/{accordion-item.l88yjGPT.js.map → accordion-item.BMxeTYDy.js.map} +1 -1
  24. package/dist/chunks/{action-bar.CDkRNAoE.js → action-bar.CWjLoeOU.js} +3 -3
  25. package/dist/chunks/{action-bar.CDkRNAoE.js.map → action-bar.CWjLoeOU.js.map} +1 -1
  26. package/dist/chunks/{ai-tag.BijlneJD.js → ai-tag.CjrOE5yl.js} +2 -2
  27. package/dist/chunks/{ai-tag.BijlneJD.js.map → ai-tag.CjrOE5yl.js.map} +1 -1
  28. package/dist/chunks/{alert.Bplzzgm3.js → alert.C8Pe1-OO.js} +98 -80
  29. package/dist/chunks/alert.C8Pe1-OO.js.map +1 -0
  30. package/dist/chunks/{base-modal.DKCKkQDy.js → base-modal.Bn4ZXwv6.js} +4 -4
  31. package/dist/chunks/{base-modal.DKCKkQDy.js.map → base-modal.Bn4ZXwv6.js.map} +1 -1
  32. package/dist/chunks/{button-actions-with-menu.CqFhtqhV.js → button-actions-with-menu.CrbF2BSQ.js} +2 -2
  33. package/dist/chunks/{button-actions-with-menu.CqFhtqhV.js.map → button-actions-with-menu.CrbF2BSQ.js.map} +1 -1
  34. package/dist/chunks/{button-actions.796MVzQq.js → button-actions.uIjzze43.js} +2 -2
  35. package/dist/chunks/{button-actions.796MVzQq.js.map → button-actions.uIjzze43.js.map} +1 -1
  36. package/dist/chunks/{calendar.C60WoNOM.js → calendar.Dtba7fcs.js} +18 -18
  37. package/dist/chunks/{calendar.C60WoNOM.js.map → calendar.Dtba7fcs.js.map} +1 -1
  38. package/dist/chunks/{card.Dvp16GwX.js → card.a8QL14dy.js} +4 -4
  39. package/dist/chunks/{card.Dvp16GwX.js.map → card.a8QL14dy.js.map} +1 -1
  40. package/dist/chunks/{checkbox-group.DTGifncj.js → checkbox-group.BCzNXT1-.js} +3 -3
  41. package/dist/chunks/{checkbox-group.DTGifncj.js.map → checkbox-group.BCzNXT1-.js.map} +1 -1
  42. package/dist/chunks/{checkbox.X1EMa3FW.js → checkbox.0RmIkniU.js} +14 -14
  43. package/dist/chunks/{checkbox.X1EMa3FW.js.map → checkbox.0RmIkniU.js.map} +1 -1
  44. package/dist/chunks/{code-snippet.DEsJSJVK.js → code-snippet.BbswO6TU.js} +4 -4
  45. package/dist/chunks/{code-snippet.DEsJSJVK.js.map → code-snippet.BbswO6TU.js.map} +1 -1
  46. package/dist/chunks/{controls-group.DerSnhym.js → controls-group.KarFHKUT.js} +2 -2
  47. package/dist/chunks/{controls-group.DerSnhym.js.map → controls-group.KarFHKUT.js.map} +1 -1
  48. package/dist/chunks/{copy.DNczgREu.js → copy.C92qFRaR.js} +3 -3
  49. package/dist/chunks/{copy.DNczgREu.js.map → copy.C92qFRaR.js.map} +1 -1
  50. package/dist/chunks/{dashboard-section.l2FpRDRL.js → dashboard-section.Bv-SveGN.js} +3 -3
  51. package/dist/chunks/{dashboard-section.l2FpRDRL.js.map → dashboard-section.Bv-SveGN.js.map} +1 -1
  52. package/dist/chunks/{dashed-underline.BCAYJqCs.js → dashed-underline.C3lSC1_R.js} +3 -3
  53. package/dist/chunks/{dashed-underline.BCAYJqCs.js.map → dashed-underline.C3lSC1_R.js.map} +1 -1
  54. package/dist/chunks/{data-grid-template.8nSTkhta.js → data-grid-template.DqZmPeze.js} +4 -4
  55. package/dist/chunks/{data-grid-template.8nSTkhta.js.map → data-grid-template.DqZmPeze.js.map} +1 -1
  56. package/dist/chunks/{data-grid.CjR--S7q.js → data-grid.vBDlLHOW.js} +19 -19
  57. package/dist/chunks/{data-grid.CjR--S7q.js.map → data-grid.vBDlLHOW.js.map} +1 -1
  58. package/dist/chunks/{date-picker.kX0OtzF-.js → date-picker.Dnr2HuxA.js} +7 -7
  59. package/dist/chunks/{date-picker.kX0OtzF-.js.map → date-picker.Dnr2HuxA.js.map} +1 -1
  60. package/dist/chunks/{date-range-picker.BiCTjOGe.js → date-range-picker.CuBygd3O.js} +32 -32
  61. package/dist/chunks/{date-range-picker.BiCTjOGe.js.map → date-range-picker.CuBygd3O.js.map} +1 -1
  62. package/dist/chunks/{draggable-handle.C4CTHXxX.js → draggable-handle.Cvc8gHzx.js} +2 -2
  63. package/dist/chunks/{draggable-handle.C4CTHXxX.js.map → draggable-handle.Cvc8gHzx.js.map} +1 -1
  64. package/dist/chunks/{draggable.GtQJVBaG.js → draggable.BZsgR26I.js} +2 -2
  65. package/dist/chunks/{draggable.GtQJVBaG.js.map → draggable.BZsgR26I.js.map} +1 -1
  66. package/dist/chunks/{dropdown-tag.ChTtNLjy.js → dropdown-tag.Bn5FPeEL.js} +3 -3
  67. package/dist/chunks/{dropdown-tag.ChTtNLjy.js.map → dropdown-tag.Bn5FPeEL.js.map} +1 -1
  68. package/dist/chunks/{dropdown.D_mKfQ6f.js → dropdown.D_jkFrMd.js} +5 -5
  69. package/dist/chunks/{dropdown.D_mKfQ6f.js.map → dropdown.D_jkFrMd.js.map} +1 -1
  70. package/dist/chunks/{empty-state.Ds2tRTWX.js → empty-state.DpUC-3wv.js} +2 -2
  71. package/dist/chunks/{empty-state.Ds2tRTWX.js.map → empty-state.DpUC-3wv.js.map} +1 -1
  72. package/dist/chunks/{field-label.2cXs_CZy.js → field-label.Cz11fn_F.js} +2 -2
  73. package/dist/chunks/{field-label.2cXs_CZy.js.map → field-label.Cz11fn_F.js.map} +1 -1
  74. package/dist/chunks/{file-uploader.AlkcCFhN.js → file-uploader.BglImnqw.js} +6 -7
  75. package/dist/chunks/{file-uploader.AlkcCFhN.js.map → file-uploader.BglImnqw.js.map} +1 -1
  76. package/dist/chunks/filter-bar.DG4GTi8L.js +3971 -0
  77. package/dist/chunks/filter-bar.DG4GTi8L.js.map +1 -0
  78. package/dist/chunks/{focus-trap.BgyHTR_3.js → focus-trap.Co-S6goa.js} +2 -1
  79. package/dist/chunks/{focus-trap.BgyHTR_3.js.map → focus-trap.Co-S6goa.js.map} +1 -1
  80. package/dist/chunks/{footer-actions.CjiK4krX.js → footer-actions.Dl20Q1WX.js} +2 -2
  81. package/dist/chunks/{footer-actions.CjiK4krX.js.map → footer-actions.Dl20Q1WX.js.map} +1 -1
  82. package/dist/chunks/{form-layout-title.BB-65dko.js → form-layout-title.BZFh_nGD.js} +2 -2
  83. package/dist/chunks/{form-layout-title.BB-65dko.js.map → form-layout-title.BZFh_nGD.js.map} +1 -1
  84. package/dist/chunks/{header-with-views.DncSeESj.js → header-with-views.WJlXgGI5.js} +10 -10
  85. package/dist/chunks/{header-with-views.DncSeESj.js.map → header-with-views.WJlXgGI5.js.map} +1 -1
  86. package/dist/chunks/{header.CcbbavgV.js → header.Bi3MPZKE.js} +4 -4
  87. package/dist/chunks/{header.CcbbavgV.js.map → header.Bi3MPZKE.js.map} +1 -1
  88. package/dist/chunks/{info-icon-with-popover.i_J-4snn.js → info-icon-with-popover.uSr6-jzR.js} +3 -3
  89. package/dist/chunks/{info-icon-with-popover.i_J-4snn.js.map → info-icon-with-popover.uSr6-jzR.js.map} +1 -1
  90. package/dist/chunks/{info-icon.Bs4_4xiO.js → info-icon.Zlg6Sgz0.js} +3 -3
  91. package/dist/chunks/{info-icon.Bs4_4xiO.js.map → info-icon.Zlg6Sgz0.js.map} +1 -1
  92. package/dist/chunks/{input-field-password.DJJWboYN.js → input-field-password.CJZxudne.js} +4 -4
  93. package/dist/chunks/{input-field-password.DJJWboYN.js.map → input-field-password.CJZxudne.js.map} +1 -1
  94. package/dist/chunks/{input-field-phone-number.s6e7fRXS.js → input-field-phone-number.OJ4MG9Gf.js} +2 -2
  95. package/dist/chunks/{input-field-phone-number.s6e7fRXS.js.map → input-field-phone-number.OJ4MG9Gf.js.map} +1 -1
  96. package/dist/chunks/{input-field.D-9DhR3q.js → input-field.IyNujUZt.js} +3 -3
  97. package/dist/chunks/{input-field.D-9DhR3q.js.map → input-field.IyNujUZt.js.map} +1 -1
  98. package/dist/chunks/{input-time.B8CjTnFN.js → input-time.BJ6YqkFi.js} +3 -3
  99. package/dist/chunks/{input-time.B8CjTnFN.js.map → input-time.BJ6YqkFi.js.map} +1 -1
  100. package/dist/chunks/{inspector-page.ddc8uxW0.js → inspector-page.D42_PXHM.js} +2 -2
  101. package/dist/chunks/{inspector-page.ddc8uxW0.js.map → inspector-page.D42_PXHM.js.map} +1 -1
  102. package/dist/chunks/{inspector.M8CDE070.js → inspector.BBgrupfO.js} +2 -2
  103. package/dist/chunks/{inspector.M8CDE070.js.map → inspector.BBgrupfO.js.map} +1 -1
  104. package/dist/chunks/{list-item.H7_fNTdv.js → list-item.CT7dyMQH.js} +3 -3
  105. package/dist/chunks/{list-item.H7_fNTdv.js.map → list-item.CT7dyMQH.js.map} +1 -1
  106. package/dist/chunks/{listbox-option-tag.D4dI6JjW.js → listbox-option-tag.CwrFdsY1.js} +2 -2
  107. package/dist/chunks/{listbox-option-tag.D4dI6JjW.js.map → listbox-option-tag.CwrFdsY1.js.map} +1 -1
  108. package/dist/chunks/{modal-fullscreen.xBCeCfKq.js → modal-fullscreen.I5bjqzfd.js} +3 -3
  109. package/dist/chunks/{modal-fullscreen.xBCeCfKq.js.map → modal-fullscreen.I5bjqzfd.js.map} +1 -1
  110. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5FvZCo.js → modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js} +4 -4
  111. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5FvZCo.js.map → modal.vue_vue_type_script_setup_true_lang.CrsIyU7A.js.map} +1 -1
  112. package/dist/chunks/{navigation-menu-group.C3PlLAW0.js → navigation-menu-group.BJ9ZsXEn.js} +3 -3
  113. package/dist/chunks/{navigation-menu-group.C3PlLAW0.js.map → navigation-menu-group.BJ9ZsXEn.js.map} +1 -1
  114. package/dist/chunks/{pagination.BDWvQSLE.js → pagination.C5gZxtZY.js} +2 -2
  115. package/dist/chunks/{pagination.BDWvQSLE.js.map → pagination.C5gZxtZY.js.map} +1 -1
  116. package/dist/chunks/popover.types.dhllh3NP.js +6 -0
  117. package/dist/chunks/{popover.types.CXIAfp1m.js.map → popover.types.dhllh3NP.js.map} +1 -1
  118. package/dist/chunks/{popper-container.lfk_dyZi.js → popper-container.Rfj8UdMD.js} +2 -2
  119. package/dist/chunks/{popper-container.lfk_dyZi.js.map → popper-container.Rfj8UdMD.js.map} +1 -1
  120. package/dist/chunks/{radio-group.BCSEk7bG.js → radio-group.XmRPh03c.js} +3 -3
  121. package/dist/chunks/{radio-group.BCSEk7bG.js.map → radio-group.XmRPh03c.js.map} +1 -1
  122. package/dist/chunks/{rich-text-editor.-rhl_Odb.js → rich-text-editor.Cv_Vwt-6.js} +5 -5
  123. package/dist/chunks/{rich-text-editor.-rhl_Odb.js.map → rich-text-editor.Cv_Vwt-6.js.map} +1 -1
  124. package/dist/chunks/{search-bar.9OVo47s4.js → search-bar.5tObtLfW.js} +3 -3
  125. package/dist/chunks/{search-bar.9OVo47s4.js.map → search-bar.5tObtLfW.js.map} +1 -1
  126. package/dist/chunks/{secondary-nav.DLIwusR0.js → secondary-nav.DApIImQ0.js} +4 -4
  127. package/dist/chunks/{secondary-nav.DLIwusR0.js.map → secondary-nav.DApIImQ0.js.map} +1 -1
  128. package/dist/chunks/{segmented-control.CVGuMpfp.js → segmented-control.CEt2dz4n.js} +2 -2
  129. package/dist/chunks/{segmented-control.CVGuMpfp.js.map → segmented-control.CEt2dz4n.js.map} +1 -1
  130. package/dist/chunks/{selection-card-group.BdPFzMeI.js → selection-card-group.DHXtJpoB.js} +10 -10
  131. package/dist/chunks/{selection-card-group.BdPFzMeI.js.map → selection-card-group.DHXtJpoB.js.map} +1 -1
  132. package/dist/chunks/{sidepanel.DAJe9Vze.js → sidepanel._30g8POM.js} +4 -4
  133. package/dist/chunks/{sidepanel.DAJe9Vze.js.map → sidepanel._30g8POM.js.map} +1 -1
  134. package/dist/chunks/{structured-list-item.DHhqoy1c.js → structured-list-item.CBzznwcF.js} +4 -4
  135. package/dist/chunks/{structured-list-item.DHhqoy1c.js.map → structured-list-item.CBzznwcF.js.map} +1 -1
  136. package/dist/chunks/{summary-grid.types.q3UovoFz.js → summary-grid.types.BR_EGvRg.js} +5 -5
  137. package/dist/chunks/{summary-grid.types.q3UovoFz.js.map → summary-grid.types.BR_EGvRg.js.map} +1 -1
  138. package/dist/chunks/{tab.BnQFECsk.js → tab.D_k5AVHk.js} +2 -2
  139. package/dist/chunks/{tab.BnQFECsk.js.map → tab.D_k5AVHk.js.map} +1 -1
  140. package/dist/chunks/{tag.CYht36pa.js → tag.BE1j0Oid.js} +2 -2
  141. package/dist/chunks/{tag.CYht36pa.js.map → tag.BE1j0Oid.js.map} +1 -1
  142. package/dist/chunks/{textarea.Co2I-8Xo.js → textarea.BYshPd98.js} +2 -2
  143. package/dist/chunks/{textarea.Co2I-8Xo.js.map → textarea.BYshPd98.js.map} +1 -1
  144. package/dist/chunks/{timeline-item.cWOsHLlm.js → timeline-item.Sy_DSw6p.js} +6 -6
  145. package/dist/chunks/{timeline-item.cWOsHLlm.js.map → timeline-item.Sy_DSw6p.js.map} +1 -1
  146. package/dist/chunks/{title-details.BoXlSA06.js → title-details.C4ZvxPMu.js} +2 -2
  147. package/dist/chunks/{title-details.BoXlSA06.js.map → title-details.C4ZvxPMu.js.map} +1 -1
  148. package/dist/chunks/{tooltip.870vHAR2.js → tooltip.TFOGHOO0.js} +3 -3
  149. package/dist/chunks/{tooltip.870vHAR2.js.map → tooltip.TFOGHOO0.js.map} +1 -1
  150. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ddox1H1m.js → tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js} +4 -4
  151. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ddox1H1m.js.map → tutorial.vue_vue_type_script_setup_true_lang.BIP-heAH.js.map} +1 -1
  152. package/dist/chunks/{use-date-input-formatter.C3Dpcve8.js → use-date-input-formatter._ik1DYYV.js} +2 -2
  153. package/dist/chunks/{use-date-input-formatter.C3Dpcve8.js.map → use-date-input-formatter._ik1DYYV.js.map} +1 -1
  154. package/dist/chunks/use-expandable-content-height.DmFeas9-.js +36 -0
  155. package/dist/chunks/use-expandable-content-height.DmFeas9-.js.map +1 -0
  156. package/dist/code-snippet.js +1 -1
  157. package/dist/dashboard-template.js +1 -1
  158. package/dist/dashed-underline.js +1 -1
  159. package/dist/data-grid-template.js +1 -1
  160. package/dist/data-grid.js +1 -1
  161. package/dist/date-picker.js +2 -2
  162. package/dist/date-range-picker.js +2 -2
  163. package/dist/date-time-picker.js +4 -4
  164. package/dist/draggable.js +2 -2
  165. package/dist/dropdown.js +2 -2
  166. package/dist/empty-state.js +1 -1
  167. package/dist/file-uploader.js +1 -1
  168. package/dist/filter-bar.js +1 -1
  169. package/dist/focus-trap.js +1 -1
  170. package/dist/form-layout.js +1 -1
  171. package/dist/header-with-views.js +1 -1
  172. package/dist/header.js +1 -1
  173. package/dist/index.js +55 -55
  174. package/dist/info-icon.js +1 -1
  175. package/dist/input-field-password.js +1 -1
  176. package/dist/input-field-phone-number.js +1 -1
  177. package/dist/input-field.js +1 -1
  178. package/dist/input-time.js +1 -1
  179. package/dist/inspector.js +2 -2
  180. package/dist/internal.js +11 -11
  181. package/dist/list.js +1 -1
  182. package/dist/menu.js +1 -1
  183. package/dist/modal-fullscreen.js +1 -1
  184. package/dist/modal.js +2 -2
  185. package/dist/navigation-menu.js +1 -1
  186. package/dist/pagination.js +1 -1
  187. package/dist/popover.js +2 -2
  188. package/dist/popper-container.js +1 -1
  189. package/dist/progress-bar.js +1 -1
  190. package/dist/radio-group.js +1 -1
  191. package/dist/rich-text-editor.js +1 -1
  192. package/dist/search-bar.js +2 -2
  193. package/dist/secondary-nav.js +1 -1
  194. package/dist/segmented-control.js +1 -1
  195. package/dist/selection-card.js +1 -1
  196. package/dist/sidepanel.js +1 -1
  197. package/dist/structured-list.js +1 -1
  198. package/dist/summary-grid.js +1 -1
  199. package/dist/tabs.js +1 -1
  200. package/dist/tag.js +1 -1
  201. package/dist/textarea.js +1 -1
  202. package/dist/timeline.js +1 -1
  203. package/dist/tutorial.js +1 -1
  204. package/dist/web-types.json +1 -1
  205. package/package.json +3 -3
  206. package/dist/assets/date-filter.css +0 -1
  207. package/dist/assets/date-range-filter.css +0 -1
  208. package/dist/assets/input-with-dropdown-filter.css +0 -1
  209. package/dist/chunks/alert.Bplzzgm3.js.map +0 -1
  210. package/dist/chunks/date-filter.75o-NSBz.js +0 -156
  211. package/dist/chunks/date-filter.75o-NSBz.js.map +0 -1
  212. package/dist/chunks/date-range-filter.J5p9ECm7.js +0 -946
  213. package/dist/chunks/date-range-filter.J5p9ECm7.js.map +0 -1
  214. package/dist/chunks/filter-bar.CdUM6KUq.js +0 -2554
  215. package/dist/chunks/filter-bar.CdUM6KUq.js.map +0 -1
  216. package/dist/chunks/input-with-dropdown-filter.BBQAFXkw.js +0 -100
  217. package/dist/chunks/input-with-dropdown-filter.BBQAFXkw.js.map +0 -1
  218. package/dist/chunks/popover.types.CXIAfp1m.js +0 -6
  219. package/dist/chunks/select-avatar-filter.BcvevMzz.js +0 -55
  220. package/dist/chunks/select-avatar-filter.BcvevMzz.js.map +0 -1
  221. package/dist/chunks/select-country-filter.D9sGjia8.js +0 -56
  222. package/dist/chunks/select-country-filter.D9sGjia8.js.map +0 -1
  223. package/dist/chunks/select-currency-filter.oeGe4-X4.js +0 -91
  224. package/dist/chunks/select-currency-filter.oeGe4-X4.js.map +0 -1
  225. package/dist/chunks/select-payment-method-filter.uSfKXqOm.js +0 -55
  226. package/dist/chunks/select-payment-method-filter.uSfKXqOm.js.map +0 -1
  227. package/dist/chunks/select-tag-filter.BuKVAYC6.js +0 -63
  228. package/dist/chunks/select-tag-filter.BuKVAYC6.js.map +0 -1
  229. package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js +0 -34
  230. package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js.map +0 -1
  231. package/dist/chunks/warning-filled.Bzh3ib0x.js +0 -25
  232. package/dist/chunks/warning-filled.Bzh3ib0x.js.map +0 -1
@@ -1,946 +0,0 @@
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 ae, toDisplayString as ne } from "vue";
2
- import { c as y, B as re, u as oe } from "./filter-bar.CdUM6KUq.js";
3
- import { D as ie, B as se, i as q, a as ue } from "./date-range-picker.BiCTjOGe.js";
4
- import { B as le } from "./divider.BlxQCxkM.js";
5
- import { B as ce } from "./typography.wIM07Hbl.js";
6
- import { u as de } from "./index.B875RXHM.js";
7
- import { j as fe, k as me, e as v, l as ge } from "./calendar.C60WoNOM.js";
8
- import { t as L, k as he, g as be } from "./en-US.C412g-7U.js";
9
- import { g as ye, b as pe, 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.C3Dpcve8.js";
10
- import { B as Te } from "./button-actions.796MVzQq.js";
11
- import { u as Ee } from "./use-dynamic-date-fns-locale.BMO9rsEh.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, a) {
21
- const t = L(e, a?.in);
22
- return fe(t, me(t)) + 1;
23
- }
24
- function s(e, a) {
25
- const t = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(a, "0");
26
- return t + n;
27
- }
28
- const b = {
29
- // Year
30
- y(e, a) {
31
- const t = e.getFullYear(), n = t > 0 ? t : 1 - t;
32
- return s(a === "yy" ? n % 100 : n, a.length);
33
- },
34
- // Month
35
- M(e, a) {
36
- const t = e.getMonth();
37
- return a === "M" ? String(t + 1) : s(t + 1, 2);
38
- },
39
- // Day of the month
40
- d(e, a) {
41
- return s(e.getDate(), a.length);
42
- },
43
- // AM or PM
44
- a(e, a) {
45
- const t = e.getHours() / 12 >= 1 ? "pm" : "am";
46
- switch (a) {
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, a) {
60
- return s(e.getHours() % 12 || 12, a.length);
61
- },
62
- // Hour [0-23]
63
- H(e, a) {
64
- return s(e.getHours(), a.length);
65
- },
66
- // Minute
67
- m(e, a) {
68
- return s(e.getMinutes(), a.length);
69
- },
70
- // Second
71
- s(e, a) {
72
- return s(e.getSeconds(), a.length);
73
- },
74
- // Fraction of second
75
- S(e, a) {
76
- const t = a.length, n = e.getMilliseconds(), r = Math.trunc(
77
- n * Math.pow(10, t - 3)
78
- );
79
- return s(r, a.length);
80
- }
81
- }, O = {
82
- midnight: "midnight",
83
- noon: "noon",
84
- morning: "morning",
85
- afternoon: "afternoon",
86
- evening: "evening",
87
- night: "night"
88
- }, x = {
89
- // Era
90
- G: function(e, a, t) {
91
- const n = e.getFullYear() > 0 ? 1 : 0;
92
- switch (a) {
93
- // AD, BC
94
- case "G":
95
- case "GG":
96
- case "GGG":
97
- return t.era(n, { width: "abbreviated" });
98
- // A, B
99
- case "GGGGG":
100
- return t.era(n, { width: "narrow" });
101
- default:
102
- return t.era(n, { width: "wide" });
103
- }
104
- },
105
- // Year
106
- y: function(e, a, t) {
107
- if (a === "yo") {
108
- const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
109
- return t.ordinalNumber(r, { unit: "year" });
110
- }
111
- return b.y(e, a);
112
- },
113
- // Local week-numbering year
114
- Y: function(e, a, t, n) {
115
- const r = De(e, n), i = r > 0 ? r : 1 - r;
116
- if (a === "YY") {
117
- const u = i % 100;
118
- return s(u, 2);
119
- }
120
- return a === "Yo" ? t.ordinalNumber(i, { unit: "year" }) : s(i, a.length);
121
- },
122
- // ISO week-numbering year
123
- R: function(e, a) {
124
- const t = we(e);
125
- return s(t, a.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, a) {
137
- const t = e.getFullYear();
138
- return s(t, a.length);
139
- },
140
- // Quarter
141
- Q: function(e, a, t) {
142
- const n = Math.ceil((e.getMonth() + 1) / 3);
143
- switch (a) {
144
- // 1, 2, 3, 4
145
- case "Q":
146
- return String(n);
147
- // 01, 02, 03, 04
148
- case "QQ":
149
- return s(n, 2);
150
- // 1st, 2nd, 3rd, 4th
151
- case "Qo":
152
- return t.ordinalNumber(n, { unit: "quarter" });
153
- // Q1, Q2, Q3, Q4
154
- case "QQQ":
155
- return t.quarter(n, {
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(n, {
162
- width: "narrow",
163
- context: "formatting"
164
- });
165
- default:
166
- return t.quarter(n, {
167
- width: "wide",
168
- context: "formatting"
169
- });
170
- }
171
- },
172
- // Stand-alone quarter
173
- q: function(e, a, t) {
174
- const n = Math.ceil((e.getMonth() + 1) / 3);
175
- switch (a) {
176
- // 1, 2, 3, 4
177
- case "q":
178
- return String(n);
179
- // 01, 02, 03, 04
180
- case "qq":
181
- return s(n, 2);
182
- // 1st, 2nd, 3rd, 4th
183
- case "qo":
184
- return t.ordinalNumber(n, { unit: "quarter" });
185
- // Q1, Q2, Q3, Q4
186
- case "qqq":
187
- return t.quarter(n, {
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(n, {
194
- width: "narrow",
195
- context: "standalone"
196
- });
197
- default:
198
- return t.quarter(n, {
199
- width: "wide",
200
- context: "standalone"
201
- });
202
- }
203
- },
204
- // Month
205
- M: function(e, a, t) {
206
- const n = e.getMonth();
207
- switch (a) {
208
- case "M":
209
- case "MM":
210
- return b.M(e, a);
211
- // 1st, 2nd, ..., 12th
212
- case "Mo":
213
- return t.ordinalNumber(n + 1, { unit: "month" });
214
- // Jan, Feb, ..., Dec
215
- case "MMM":
216
- return t.month(n, {
217
- width: "abbreviated",
218
- context: "formatting"
219
- });
220
- // J, F, ..., D
221
- case "MMMMM":
222
- return t.month(n, {
223
- width: "narrow",
224
- context: "formatting"
225
- });
226
- default:
227
- return t.month(n, { width: "wide", context: "formatting" });
228
- }
229
- },
230
- // Stand-alone month
231
- L: function(e, a, t) {
232
- const n = e.getMonth();
233
- switch (a) {
234
- // 1, 2, ..., 12
235
- case "L":
236
- return String(n + 1);
237
- // 01, 02, ..., 12
238
- case "LL":
239
- return s(n + 1, 2);
240
- // 1st, 2nd, ..., 12th
241
- case "Lo":
242
- return t.ordinalNumber(n + 1, { unit: "month" });
243
- // Jan, Feb, ..., Dec
244
- case "LLL":
245
- return t.month(n, {
246
- width: "abbreviated",
247
- context: "standalone"
248
- });
249
- // J, F, ..., D
250
- case "LLLLL":
251
- return t.month(n, {
252
- width: "narrow",
253
- context: "standalone"
254
- });
255
- default:
256
- return t.month(n, { width: "wide", context: "standalone" });
257
- }
258
- },
259
- // Local week of year
260
- w: function(e, a, t, n) {
261
- const r = pe(e, n);
262
- return a === "wo" ? t.ordinalNumber(r, { unit: "week" }) : s(r, a.length);
263
- },
264
- // ISO week of year
265
- I: function(e, a, t) {
266
- const n = ye(e);
267
- return a === "Io" ? t.ordinalNumber(n, { unit: "week" }) : s(n, a.length);
268
- },
269
- // Day of the month
270
- d: function(e, a, t) {
271
- return a === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : b.d(e, a);
272
- },
273
- // Day of year
274
- D: function(e, a, t) {
275
- const n = qe(e);
276
- return a === "Do" ? t.ordinalNumber(n, { unit: "dayOfYear" }) : s(n, a.length);
277
- },
278
- // Day of week
279
- E: function(e, a, t) {
280
- const n = e.getDay();
281
- switch (a) {
282
- // Tue
283
- case "E":
284
- case "EE":
285
- case "EEE":
286
- return t.day(n, {
287
- width: "abbreviated",
288
- context: "formatting"
289
- });
290
- // T
291
- case "EEEEE":
292
- return t.day(n, {
293
- width: "narrow",
294
- context: "formatting"
295
- });
296
- // Tu
297
- case "EEEEEE":
298
- return t.day(n, {
299
- width: "short",
300
- context: "formatting"
301
- });
302
- default:
303
- return t.day(n, {
304
- width: "wide",
305
- context: "formatting"
306
- });
307
- }
308
- },
309
- // Local day of week
310
- e: function(e, a, t, n) {
311
- const r = e.getDay(), i = (r - n.weekStartsOn + 8) % 7 || 7;
312
- switch (a) {
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, a, t, n) {
348
- const r = e.getDay(), i = (r - n.weekStartsOn + 8) % 7 || 7;
349
- switch (a) {
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, a.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, a, t) {
385
- const n = e.getDay(), r = n === 0 ? 7 : n;
386
- switch (a) {
387
- // 2
388
- case "i":
389
- return String(r);
390
- // 02
391
- case "ii":
392
- return s(r, a.length);
393
- // 2nd
394
- case "io":
395
- return t.ordinalNumber(r, { unit: "day" });
396
- // Tue
397
- case "iii":
398
- return t.day(n, {
399
- width: "abbreviated",
400
- context: "formatting"
401
- });
402
- // T
403
- case "iiiii":
404
- return t.day(n, {
405
- width: "narrow",
406
- context: "formatting"
407
- });
408
- // Tu
409
- case "iiiiii":
410
- return t.day(n, {
411
- width: "short",
412
- context: "formatting"
413
- });
414
- default:
415
- return t.day(n, {
416
- width: "wide",
417
- context: "formatting"
418
- });
419
- }
420
- },
421
- // AM or PM
422
- a: function(e, a, t) {
423
- const r = e.getHours() / 12 >= 1 ? "pm" : "am";
424
- switch (a) {
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, a, t) {
450
- const n = e.getHours();
451
- let r;
452
- switch (n === 12 ? r = O.noon : n === 0 ? r = O.midnight : r = n / 12 >= 1 ? "pm" : "am", a) {
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, a, t) {
478
- const n = e.getHours();
479
- let r;
480
- switch (n >= 17 ? r = O.evening : n >= 12 ? r = O.afternoon : n >= 4 ? r = O.morning : r = O.night, a) {
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, a, t) {
502
- if (a === "ho") {
503
- let n = e.getHours() % 12;
504
- return n === 0 && (n = 12), t.ordinalNumber(n, { unit: "hour" });
505
- }
506
- return b.h(e, a);
507
- },
508
- // Hour [0-23]
509
- H: function(e, a, t) {
510
- return a === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : b.H(e, a);
511
- },
512
- // Hour [0-11]
513
- K: function(e, a, t) {
514
- const n = e.getHours() % 12;
515
- return a === "Ko" ? t.ordinalNumber(n, { unit: "hour" }) : s(n, a.length);
516
- },
517
- // Hour [1-24]
518
- k: function(e, a, t) {
519
- let n = e.getHours();
520
- return n === 0 && (n = 24), a === "ko" ? t.ordinalNumber(n, { unit: "hour" }) : s(n, a.length);
521
- },
522
- // Minute
523
- m: function(e, a, t) {
524
- return a === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : b.m(e, a);
525
- },
526
- // Second
527
- s: function(e, a, t) {
528
- return a === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : b.s(e, a);
529
- },
530
- // Fraction of second
531
- S: function(e, a) {
532
- return b.S(e, a);
533
- },
534
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
535
- X: function(e, a, t) {
536
- const n = e.getTimezoneOffset();
537
- if (n === 0)
538
- return "Z";
539
- switch (a) {
540
- // Hours and optional minutes
541
- case "X":
542
- return Q(n);
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 p(n);
549
- // Hours and minutes with `:` delimiter
550
- default:
551
- return p(n, ":");
552
- }
553
- },
554
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
555
- x: function(e, a, t) {
556
- const n = e.getTimezoneOffset();
557
- switch (a) {
558
- // Hours and optional minutes
559
- case "x":
560
- return Q(n);
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 p(n);
567
- // Hours and minutes with `:` delimiter
568
- default:
569
- return p(n, ":");
570
- }
571
- },
572
- // Timezone (GMT)
573
- O: function(e, a, t) {
574
- const n = e.getTimezoneOffset();
575
- switch (a) {
576
- // Short
577
- case "O":
578
- case "OO":
579
- case "OOO":
580
- return "GMT" + W(n, ":");
581
- default:
582
- return "GMT" + p(n, ":");
583
- }
584
- },
585
- // Timezone (specific non-location)
586
- z: function(e, a, t) {
587
- const n = e.getTimezoneOffset();
588
- switch (a) {
589
- // Short
590
- case "z":
591
- case "zz":
592
- case "zzz":
593
- return "GMT" + W(n, ":");
594
- default:
595
- return "GMT" + p(n, ":");
596
- }
597
- },
598
- // Seconds timestamp
599
- t: function(e, a, t) {
600
- const n = Math.trunc(+e / 1e3);
601
- return s(n, a.length);
602
- },
603
- // Milliseconds timestamp
604
- T: function(e, a, t) {
605
- return s(+e, a.length);
606
- }
607
- };
608
- function W(e, a = "") {
609
- const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), i = n % 60;
610
- return i === 0 ? t + String(r) : t + String(r) + a + s(i, 2);
611
- }
612
- function Q(e, a) {
613
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2) : p(e, a);
614
- }
615
- function p(e, a = "") {
616
- const t = e > 0 ? "-" : "+", n = Math.abs(e), r = s(Math.trunc(n / 60), 2), i = s(n % 60, 2);
617
- return t + r + a + 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, a, t) {
621
- const n = be(), r = t?.locale ?? n.locale ?? he, i = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, u = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, m = L(e, t?.in);
622
- if (!Pe(m))
623
- throw new RangeError("Invalid time value");
624
- let g = a.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 (x[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, a, String(e));
655
- const f = x[l[0]];
656
- return f(m, l, r.localize, h);
657
- }).join("");
658
- }
659
- function Ye(e) {
660
- const a = e.match(Fe);
661
- return a ? a[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
- }, xe = 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
- * - variant: The type of calendar to display. Defaults to showing days.
721
- * - tooltipPosition: The position of the tooltip attached to the filter button
722
- * - tooltipText: The content of the tooltip attached to the filter button
723
- */
724
- options: {
725
- type: Object,
726
- default: void 0
727
- },
728
- /**
729
- * Current value of the filter
730
- */
731
- value: {
732
- type: Object,
733
- default: () => ({ startDate: void 0, endDate: void 0 })
734
- }
735
- },
736
- emits: [y.INPUT, y.UPDATE],
737
- setup(e, { emit: a }) {
738
- const { locale: t, t: n } = de({ messages: G }), r = Ee(t), { dateToInputDateString: i } = Me(), { internalFilterValue: u, isSecondaryButtonDisabled: m, isApplyButtonDisabled: g } = oe(
739
- N(e, "value"),
740
- N(e, "defaultValue")
741
- ), h = R(!1), c = M(() => e?.options?.quickSelectRanges && e.options.quickSelectRanges.map((o) => {
742
- const w = o.data.endDate ? void 0 : new Date(Date.now()).getTime() - o.data.startDate.getTime();
743
- return {
744
- ...o,
745
- data: {
746
- ...o.data,
747
- // Adding timeDifference to calculate an up-to-date endDate on range selection
748
- timeDifference: w
749
- }
750
- };
751
- })), l = R(null), f = R(!1), d = _({
752
- startDate: i(e.value?.startDate),
753
- endDate: i(e.value?.endDate),
754
- startTime: v(e.value?.startDate),
755
- endTime: v(e.value?.endDate)
756
- });
757
- ee(
758
- () => e.value,
759
- () => {
760
- d.startDate = i(e.value?.startDate), d.endDate = i(e.value?.endDate), d.startTime = v(e.value?.startDate), d.endTime = v(e.value?.endDate);
761
- }
762
- );
763
- function A(o) {
764
- return o?.length !== void 0;
765
- }
766
- const H = (o) => {
767
- if (!o || !o?.startDate && !o.endDate)
768
- return null;
769
- if (A(e.options?.quickSelectRanges) && e.options?.quickSelectRanges?.length > 0) {
770
- 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);
771
- if (w)
772
- return w.label;
773
- }
774
- return !o.startDate || !o.endDate ? null : ge(o.startDate, o.endDate) && e?.options?.allowTimeInput ? `${B(o.startDate, "dd MMM, yyyy HH:mm:ss", {
775
- locale: r.value
776
- })} - ${B(o.endDate, "HH:mm:ss", {
777
- locale: r.value
778
- })}` : `${B(o.startDate, "dd MMM, yyyy", {
779
- locale: r.value
780
- })} - ${B(o.endDate, "dd MMM, yyyy", {
781
- locale: r.value
782
- })}`;
783
- }, X = M(() => H(e.value)), U = M(() => e.label), S = () => {
784
- l.value.closePopover();
785
- const { onlySlot: o, ...w } = e;
786
- a(y.UPDATE, { ...w, value: u.value });
787
- }, I = () => {
788
- u.value = void 0, S();
789
- }, F = () => {
790
- u.value = e.defaultValue, S();
791
- }, $ = () => {
792
- u.value = e.value;
793
- }, j = () => {
794
- 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);
795
- }, C = (o) => {
796
- h.value = !1, u.value = o, d.startDate = i(o.startDate), d.endDate = i(o.endDate), a(y.INPUT, { ...e, value: u.value });
797
- }, Z = (o) => {
798
- o?.startDate && o?.endDate && (u.value = o, d.startDate = i(o.startDate), d.endDate = i(o.endDate), a(y.INPUT, { ...e, value: u.value }));
799
- }, K = (o) => {
800
- C(o), a(y.INPUT, { ...e, value: u.value });
801
- }, J = M(
802
- () => [
803
- {
804
- title: n("apply"),
805
- event: S,
806
- disabled: h.value || f.value || g.value
807
- },
808
- {
809
- title: e.defaultValue ? n("reset") : n("clear"),
810
- event: e.defaultValue ? F : I,
811
- disabled: f.value && m.value
812
- }
813
- ]
814
- );
815
- return {
816
- // Refs
817
- baseFilter: l,
818
- // Values
819
- actions: J,
820
- formData: d,
821
- internalFilterValue: u,
822
- isApplyButtonDisabled: g,
823
- isSecondaryButtonDisabled: m,
824
- isSelectingDate: h,
825
- buttonLabel: U,
826
- buttonSecondaryLabel: X,
827
- adjustedQuickSelectRanges: c,
828
- // Events
829
- onCancel: j,
830
- onDateSelected: C,
831
- openFilter: $,
832
- clearFilter: I,
833
- resetFilter: F,
834
- updateFilter: S,
835
- onDatePickerRangeError: () => {
836
- f.value = !0, u.value = { startDate: void 0, endDate: void 0 }, a(y.INPUT, { ...e, value: u.value });
837
- },
838
- onDatePickerRangeFormDateInputUpdate: (o) => {
839
- f.value = !1, o.startTime && (d.startTime = o.startTime), o.endTime && (d.endTime = o.endTime);
840
- },
841
- onDateInputSelected: K,
842
- onRangeSelectorInput: Z
843
- };
844
- }
845
- }), We = {
846
- key: 1,
847
- class: "b-date-range-filter"
848
- };
849
- function Qe(e, a, t, n, r, i) {
850
- 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");
851
- return P(), Y(l, {
852
- ref: "baseFilter",
853
- class: "b-base-filter-date-range-filter",
854
- "button-label": e.buttonLabel,
855
- "button-secondary-label": e.buttonSecondaryLabel,
856
- controlled: !e.onlySlot,
857
- disabled: e.disabled,
858
- "disable-apply-button": e.isApplyButtonDisabled,
859
- "disable-secondary-button": e.isSecondaryButtonDisabled,
860
- "default-value": e.defaultValue,
861
- field: e.field,
862
- label: e.label,
863
- "only-slot": e.onlySlot,
864
- "tooltip-position": e.options?.tooltipPosition,
865
- "tooltip-text": e.options?.tooltipText,
866
- value: e.value,
867
- "fit-content": "",
868
- onOpen: e.openFilter,
869
- onClear: e.clearFilter,
870
- onReset: e.resetFilter,
871
- onCancel: e.onCancel
872
- }, {
873
- default: T(() => [
874
- e.onlySlot ? (P(), Y(u, {
875
- key: 0,
876
- "allow-time-input": e.options?.allowTimeInput,
877
- "model-value": e.internalFilterValue,
878
- "first-day-of-week": e.options?.firstDayOfWeek,
879
- "is-date-disabled": e.options?.isDateDisabled,
880
- "number-of-months": e.options?.numberOfMonths,
881
- "quick-select-ranges": e.options?.quickSelectRanges,
882
- variant: e.options?.variant,
883
- "year-range": e.options?.yearRange,
884
- disabled: e.disabled,
885
- granularities: e.options?.granularities,
886
- "max-range": e.options?.maxRange,
887
- min: e.options?.min,
888
- max: e.options?.max,
889
- "date-form-data": e.formData,
890
- "show-end-date-on-open": e.options?.showEndDateOnOpen,
891
- "aria-labelledby": e.$attrs?.["aria-labelledby"],
892
- "onUpdate:modelValue": e.onDateInputSelected
893
- }, 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", "aria-labelledby", "onUpdate:modelValue"])) : (P(), te("div", We, [
894
- E(c, {
895
- "allow-time-input": e.options?.allowTimeInput,
896
- "first-day-of-week": e.options?.firstDayOfWeek,
897
- "is-date-disabled": e.options?.isDateDisabled,
898
- granularities: e.options?.granularities,
899
- "max-range": e.options?.maxRange,
900
- min: e.options?.min,
901
- max: e.options?.max,
902
- "number-of-months": e.options?.numberOfMonths,
903
- "quick-select-ranges": e.adjustedQuickSelectRanges,
904
- value: e.internalFilterValue,
905
- "date-form-data": e.formData,
906
- "show-end-date-on-open": e.options?.showEndDateOnOpen,
907
- variant: e.options?.variant,
908
- "year-range": e.options?.yearRange,
909
- onInput: e.onDateSelected,
910
- onCustomRange: e.onRangeSelectorInput,
911
- onError: e.onDatePickerRangeError,
912
- onFormDate: e.onDatePickerRangeFormDateInputUpdate,
913
- onStartDateSelected: a[0] || (a[0] = (f) => e.isSelectingDate = !0)
914
- }, {
915
- title: T(() => [
916
- E(m, {
917
- strongest: "",
918
- variant: "body",
919
- el: "span"
920
- }, {
921
- default: T(() => [
922
- ae(ne(e.label), 1)
923
- ]),
924
- _: 1
925
- })
926
- ]),
927
- actions: T(() => [
928
- E(g, { class: "b-date-range-filter__divider" }),
929
- E(h, {
930
- class: "b-date-range-filter__actions",
931
- actions: e.actions,
932
- layout: "space-between"
933
- }, null, 8, ["actions"])
934
- ]),
935
- _: 1
936
- }, 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", "variant", "year-range", "onInput", "onCustomRange", "onError", "onFormDate"])
937
- ]))
938
- ]),
939
- _: 1
940
- }, 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"]);
941
- }
942
- const tt = /* @__PURE__ */ Be(xe, [["render", Qe], ["__scopeId", "data-v-3a493e39"]]);
943
- export {
944
- tt as default
945
- };
946
- //# sourceMappingURL=date-range-filter.J5p9ECm7.js.map