@adyen/bento-vue2 2.1.1 → 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.
- package/dist/@types/index.d.ts +67 -10
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-filter.css +1 -0
- package/dist/assets/date-range-filter.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-with-dropdown-filter.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.D29UQHoA.js → action-bar.DCknEWYe.js} +3 -3
- package/dist/chunks/{action-bar.D29UQHoA.js.map → action-bar.DCknEWYe.js.map} +1 -1
- package/dist/chunks/{ai-tag.BLi-Xoh_.js → ai-tag.DfnRfKPR.js} +2 -2
- package/dist/chunks/{ai-tag.BLi-Xoh_.js.map → ai-tag.DfnRfKPR.js.map} +1 -1
- package/dist/chunks/{alert.BddJPWMN.js → alert.DNS4RH4N.js} +52 -70
- package/dist/chunks/alert.DNS4RH4N.js.map +1 -0
- package/dist/chunks/{anchor-scroller.Clb_9RNz.js → anchor-scroller.BQc3CyTV.js} +2 -2
- package/dist/chunks/{anchor-scroller.Clb_9RNz.js.map → anchor-scroller.BQc3CyTV.js.map} +1 -1
- package/dist/chunks/{base-modal._-Cc6jfi.js → base-modal.BDLjv1Nd.js} +5 -5
- package/dist/chunks/{base-modal._-Cc6jfi.js.map → base-modal.BDLjv1Nd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.1vZJWN1K.js → button-actions-with-menu.DnzDde3w.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.1vZJWN1K.js.map → button-actions-with-menu.DnzDde3w.js.map} +1 -1
- package/dist/chunks/{button-actions.CdetBz3J.js → button-actions.B332AjJp.js} +2 -2
- package/dist/chunks/button-actions.B332AjJp.js.map +1 -0
- package/dist/chunks/{calendar.BalfhApP.js → calendar.BZDISQai.js} +18 -18
- package/dist/chunks/{calendar.BalfhApP.js.map → calendar.BZDISQai.js.map} +1 -1
- package/dist/chunks/{card.BhhC01dV.js → card.CW8CUymm.js} +3 -3
- package/dist/chunks/{card.BhhC01dV.js.map → card.CW8CUymm.js.map} +1 -1
- package/dist/chunks/{checkbox-group.C-1v4X3c.js → checkbox-group.4OUTLAFJ.js} +3 -3
- package/dist/chunks/{checkbox-group.C-1v4X3c.js.map → checkbox-group.4OUTLAFJ.js.map} +1 -1
- package/dist/chunks/{checkbox.CnuIUi4-.js → checkbox.D-S3f_zM.js} +2 -2
- package/dist/chunks/{checkbox.CnuIUi4-.js.map → checkbox.D-S3f_zM.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bkd8R0vf.js → code-snippet.D9BVc5mO.js} +4 -4
- package/dist/chunks/{code-snippet.Bkd8R0vf.js.map → code-snippet.D9BVc5mO.js.map} +1 -1
- package/dist/chunks/{controls-group.Bku83Fm_.js → controls-group.Bj-gJZ6W.js} +2 -2
- package/dist/chunks/{controls-group.Bku83Fm_.js.map → controls-group.Bj-gJZ6W.js.map} +1 -1
- package/dist/chunks/{copy.B12-P_8A.js → copy.Cmu6Z-5X.js} +3 -3
- package/dist/chunks/{copy.B12-P_8A.js.map → copy.Cmu6Z-5X.js.map} +1 -1
- package/dist/chunks/{dashboard-section.yS2FNoIV.js → dashboard-section.BJGzt3yh.js} +3 -3
- package/dist/chunks/{dashboard-section.yS2FNoIV.js.map → dashboard-section.BJGzt3yh.js.map} +1 -1
- package/dist/chunks/{dashed-underline.RcRbre03.js → dashed-underline.CCGmjCty.js} +3 -3
- package/dist/chunks/{dashed-underline.RcRbre03.js.map → dashed-underline.CCGmjCty.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B5A9whlD.js → data-grid-template.BMdKtfXm.js} +4 -4
- package/dist/chunks/{data-grid-template.B5A9whlD.js.map → data-grid-template.BMdKtfXm.js.map} +1 -1
- package/dist/chunks/{data-grid.Pg5iM8CJ.js → data-grid.DP4IQ00C.js} +20 -20
- package/dist/chunks/{data-grid.Pg5iM8CJ.js.map → data-grid.DP4IQ00C.js.map} +1 -1
- package/dist/chunks/date-filter.DbgzfI2t.js +117 -0
- package/dist/chunks/date-filter.DbgzfI2t.js.map +1 -0
- package/dist/chunks/{date-picker.RFus1MVJ.js → date-picker.DxcdtoNh.js} +7 -7
- package/dist/chunks/{date-picker.RFus1MVJ.js.map → date-picker.DxcdtoNh.js.map} +1 -1
- package/dist/chunks/date-range-filter.DNYsTcZy.js +869 -0
- package/dist/chunks/date-range-filter.DNYsTcZy.js.map +1 -0
- package/dist/chunks/{date-range-picker.B2B4hO6R.js → date-range-picker.Pz5NFYCO.js} +34 -34
- package/dist/chunks/{date-range-picker.B2B4hO6R.js.map → date-range-picker.Pz5NFYCO.js.map} +1 -1
- package/dist/chunks/{date-time-picker.DJxDa81N.js → date-time-picker.DfE8jCuG.js} +5 -5
- package/dist/chunks/{date-time-picker.DJxDa81N.js.map → date-time-picker.DfE8jCuG.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BM07OVdH.js → draggable-handle.De5DnjDK.js} +2 -2
- package/dist/chunks/{draggable-handle.BM07OVdH.js.map → draggable-handle.De5DnjDK.js.map} +1 -1
- package/dist/chunks/{draggable.BczXedk7.js → draggable.B1opQncT.js} +2 -2
- package/dist/chunks/{draggable.BczXedk7.js.map → draggable.B1opQncT.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BmUNKoNw.js → dropdown-tag.B5vttt56.js} +3 -3
- package/dist/chunks/{dropdown-tag.BmUNKoNw.js.map → dropdown-tag.B5vttt56.js.map} +1 -1
- package/dist/chunks/{dropdown.CpZQYisR.js → dropdown.Dd8RNGXv.js} +963 -918
- package/dist/chunks/dropdown.Dd8RNGXv.js.map +1 -0
- package/dist/chunks/{empty-state.L3DTfiY7.js → empty-state.jbVOuwyN.js} +2 -2
- package/dist/chunks/{empty-state.L3DTfiY7.js.map → empty-state.jbVOuwyN.js.map} +1 -1
- package/dist/chunks/{field-label.BQaDr37D.js → field-label.Bz2PGQ-8.js} +2 -2
- package/dist/chunks/{field-label.BQaDr37D.js.map → field-label.Bz2PGQ-8.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bo17jWtf.js → file-uploader.DmSy3J1u.js} +7 -6
- package/dist/chunks/{file-uploader.Bo17jWtf.js.map → file-uploader.DmSy3J1u.js.map} +1 -1
- package/dist/chunks/filter-bar.U5VrFM6-.js +1865 -0
- package/dist/chunks/filter-bar.U5VrFM6-.js.map +1 -0
- package/dist/chunks/{fixed-scroller.CHmrgoTQ.js → fixed-scroller.CkoOFRzH.js} +3 -3
- package/dist/chunks/{fixed-scroller.CHmrgoTQ.js.map → fixed-scroller.CkoOFRzH.js.map} +1 -1
- package/dist/chunks/{focus-trap.fd6_d2EW.js → focus-trap.BDpcWIxI.js} +1 -2
- package/dist/chunks/{focus-trap.fd6_d2EW.js.map → focus-trap.BDpcWIxI.js.map} +1 -1
- package/dist/chunks/{footer-actions.B8f-gEQV.js → footer-actions.CQYJ8Xvw.js} +2 -2
- package/dist/chunks/{footer-actions.B8f-gEQV.js.map → footer-actions.CQYJ8Xvw.js.map} +1 -1
- package/dist/chunks/{form-layout-title.b2BMYjnl.js → form-layout-title.MjuCRO9t.js} +2 -2
- package/dist/chunks/{form-layout-title.b2BMYjnl.js.map → form-layout-title.MjuCRO9t.js.map} +1 -1
- package/dist/chunks/grid-layout.m-5ySv9K.js +77 -0
- package/dist/chunks/grid-layout.m-5ySv9K.js.map +1 -0
- package/dist/chunks/{header-with-views.BJCjvhem.js → header-with-views.CvcWBdKH.js} +209 -209
- package/dist/chunks/{header-with-views.BJCjvhem.js.map → header-with-views.CvcWBdKH.js.map} +1 -1
- package/dist/chunks/{header.CDiold9n.js → header.CVKe-1fx.js} +4 -4
- package/dist/chunks/{header.CDiold9n.js.map → header.CVKe-1fx.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.BzGVcMqy.js → info-icon-with-popover.BtholUjs.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.BzGVcMqy.js.map → info-icon-with-popover.BtholUjs.js.map} +1 -1
- package/dist/chunks/{info-icon.D11usblr.js → info-icon.D_VTjUV3.js} +3 -3
- package/dist/chunks/{info-icon.D11usblr.js.map → info-icon.D_VTjUV3.js.map} +1 -1
- package/dist/chunks/{input-field-password.D4Jn2yCi.js → input-field-password.DhFP1D1o.js} +4 -4
- package/dist/chunks/{input-field-password.D4Jn2yCi.js.map → input-field-password.DhFP1D1o.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.lV7yePoJ.js → input-field-phone-number.BRxttmou.js} +2 -2
- package/dist/chunks/{input-field-phone-number.lV7yePoJ.js.map → input-field-phone-number.BRxttmou.js.map} +1 -1
- package/dist/chunks/{input-field.90DWNO1a.js → input-field.FsFuEZ1l.js} +3 -3
- package/dist/chunks/{input-field.90DWNO1a.js.map → input-field.FsFuEZ1l.js.map} +1 -1
- package/dist/chunks/{input-time.D7IsprlH.js → input-time.DMBL8dyh.js} +3 -3
- package/dist/chunks/{input-time.D7IsprlH.js.map → input-time.DMBL8dyh.js.map} +1 -1
- package/dist/chunks/input-with-dropdown-filter.DtYX8oGX.js +80 -0
- package/dist/chunks/input-with-dropdown-filter.DtYX8oGX.js.map +1 -0
- package/dist/chunks/{inspector-page.IoC9naSV.js → inspector-page.DvS0wYuG.js} +2 -2
- package/dist/chunks/{inspector-page.IoC9naSV.js.map → inspector-page.DvS0wYuG.js.map} +1 -1
- package/dist/chunks/{inspector.BwtV4rE9.js → inspector.DZau1W4j.js} +2 -2
- package/dist/chunks/{inspector.BwtV4rE9.js.map → inspector.DZau1W4j.js.map} +1 -1
- package/dist/chunks/{list-item.ByyA5h1d.js → list-item.DTHD5vRf.js} +3 -3
- package/dist/chunks/{list-item.ByyA5h1d.js.map → list-item.DTHD5vRf.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cp_W_p4z.js → listbox-option-tag.JQxyZV07.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cp_W_p4z.js.map → listbox-option-tag.JQxyZV07.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.DG8Q-jHL.js → modal-fullscreen.DdlC1oF4.js} +3 -3
- package/dist/chunks/{modal-fullscreen.DG8Q-jHL.js.map → modal-fullscreen.DdlC1oF4.js.map} +1 -1
- package/dist/chunks/{modal.UkzON4bz.js → modal.CcyPb4mE.js} +4 -4
- package/dist/chunks/{modal.UkzON4bz.js.map → modal.CcyPb4mE.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.BzKRuhrd.js → navigation-menu-group.Syx9ckwd.js} +2 -2
- package/dist/chunks/{navigation-menu-group.BzKRuhrd.js.map → navigation-menu-group.Syx9ckwd.js.map} +1 -1
- package/dist/chunks/{pagination.DZEVT-CA.js → pagination.BVGAPUhn.js} +2 -2
- package/dist/chunks/{pagination.DZEVT-CA.js.map → pagination.BVGAPUhn.js.map} +1 -1
- package/dist/chunks/popover.types.CoDfZgDc.js +6 -0
- package/dist/chunks/{popover.types.DvIwSAAp.js.map → popover.types.CoDfZgDc.js.map} +1 -1
- package/dist/chunks/{popper-container.Cj3AWXSd.js → popper-container.Co4j6qME.js} +2 -2
- package/dist/chunks/{popper-container.Cj3AWXSd.js.map → popper-container.Co4j6qME.js.map} +1 -1
- package/dist/chunks/{progress-bar.CaurNYsc.js → progress-bar.BVQrgM_5.js} +2 -2
- package/dist/chunks/{progress-bar.CaurNYsc.js.map → progress-bar.BVQrgM_5.js.map} +1 -1
- package/dist/chunks/promo-banner.CcYpFY9b.js.map +1 -1
- package/dist/chunks/{radio-group.CLbYlzD7.js → radio-group.Do6wZ8p5.js} +3 -3
- package/dist/chunks/{radio-group.CLbYlzD7.js.map → radio-group.Do6wZ8p5.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.5SMm2BbC.js → rich-text-editor.CTJGGcFd.js} +5 -5
- package/dist/chunks/{rich-text-editor.5SMm2BbC.js.map → rich-text-editor.CTJGGcFd.js.map} +1 -1
- package/dist/chunks/{search-bar.DrIwlAQj.js → search-bar.DFvrkNTD.js} +3 -3
- package/dist/chunks/{search-bar.DrIwlAQj.js.map → search-bar.DFvrkNTD.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DRs5yAve.js → secondary-nav.BMsZqzdr.js} +3 -3
- package/dist/chunks/{secondary-nav.DRs5yAve.js.map → secondary-nav.BMsZqzdr.js.map} +1 -1
- package/dist/chunks/{segmented-control.CcQoBTfT.js → segmented-control.CgQbt9HC.js} +2 -2
- package/dist/chunks/{segmented-control.CcQoBTfT.js.map → segmented-control.CgQbt9HC.js.map} +1 -1
- package/dist/chunks/select-avatar-filter.DzuDTc_M.js +51 -0
- package/dist/chunks/select-avatar-filter.DzuDTc_M.js.map +1 -0
- package/dist/chunks/select-country-filter.DfLRX6oH.js +55 -0
- package/dist/chunks/select-country-filter.DfLRX6oH.js.map +1 -0
- package/dist/chunks/select-currency-filter.DZdYgqq3.js +89 -0
- package/dist/chunks/select-currency-filter.DZdYgqq3.js.map +1 -0
- package/dist/chunks/select-payment-method-filter.8NdbJiG5.js +51 -0
- package/dist/chunks/select-payment-method-filter.8NdbJiG5.js.map +1 -0
- package/dist/chunks/select-tag-filter.CTiPiXzG.js +59 -0
- package/dist/chunks/select-tag-filter.CTiPiXzG.js.map +1 -0
- package/dist/chunks/{selection-card-group.BYBAG8ig.js → selection-card-group.BhbzoA3X.js} +3 -3
- package/dist/chunks/{selection-card-group.BYBAG8ig.js.map → selection-card-group.BhbzoA3X.js.map} +1 -1
- package/dist/chunks/{sidepanel.CLbVkH7v.js → sidepanel.CbFGBFMX.js} +8 -8
- package/dist/chunks/sidepanel.CbFGBFMX.js.map +1 -0
- package/dist/chunks/{structured-list-item.BgcR0XlO.js → structured-list-item.C-9xk326.js} +4 -4
- package/dist/chunks/{structured-list-item.BgcR0XlO.js.map → structured-list-item.C-9xk326.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Do2PZQGm.js → summary-grid.types.C4-lY9Xr.js} +6 -6
- package/dist/chunks/{summary-grid.types.Do2PZQGm.js.map → summary-grid.types.C4-lY9Xr.js.map} +1 -1
- package/dist/chunks/{tab.zeRxc-3T.js → tab.BHaKwojJ.js} +3 -3
- package/dist/chunks/{tab.zeRxc-3T.js.map → tab.BHaKwojJ.js.map} +1 -1
- package/dist/chunks/{tag.CgsX8v2m.js → tag.DSyMRETc.js} +2 -2
- package/dist/chunks/{tag.CgsX8v2m.js.map → tag.DSyMRETc.js.map} +1 -1
- package/dist/chunks/{textarea.DMBnJaB1.js → textarea.DFKus3jR.js} +2 -2
- package/dist/chunks/{textarea.DMBnJaB1.js.map → textarea.DFKus3jR.js.map} +1 -1
- package/dist/chunks/{timeline-item.CS7TCdoU.js → timeline-item.bXwmfW79.js} +80 -68
- package/dist/chunks/timeline-item.bXwmfW79.js.map +1 -0
- package/dist/chunks/{title-details.BhR2nis-.js → title-details.cMpPBjrP.js} +2 -2
- package/dist/chunks/{title-details.BhR2nis-.js.map → title-details.cMpPBjrP.js.map} +1 -1
- package/dist/chunks/{tooltip.BOe7LOfD.js → tooltip.BeDzwoCN.js} +3 -3
- package/dist/chunks/{tooltip.BOe7LOfD.js.map → tooltip.BeDzwoCN.js.map} +1 -1
- package/dist/chunks/{tutorial.DSbBx_2h.js → tutorial.C8ApuHSy.js} +4 -4
- package/dist/chunks/{tutorial.DSbBx_2h.js.map → tutorial.C8ApuHSy.js.map} +1 -1
- package/dist/chunks/typography.Cd386LC_.js.map +1 -1
- package/dist/chunks/{use-date-input-formatter.CouOE5tF.js → use-date-input-formatter.DgTh6Zx4.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CouOE5tF.js.map → use-date-input-formatter.DgTh6Zx4.js.map} +1 -1
- package/dist/chunks/warning-filled.DI6aB6vH.js +26 -0
- package/dist/chunks/warning-filled.DI6aB6vH.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +57 -57
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +13 -13
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/progress-bar.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +74 -10
- package/package.json +7 -7
- package/dist/chunks/alert.BddJPWMN.js.map +0 -1
- package/dist/chunks/button-actions.CdetBz3J.js.map +0 -1
- package/dist/chunks/dropdown.CpZQYisR.js.map +0 -1
- package/dist/chunks/filter-bar.Bio9nf9V.js +0 -3132
- package/dist/chunks/filter-bar.Bio9nf9V.js.map +0 -1
- package/dist/chunks/grid-layout.BeCrjPgT.js +0 -75
- package/dist/chunks/grid-layout.BeCrjPgT.js.map +0 -1
- package/dist/chunks/popover.types.DvIwSAAp.js +0 -6
- package/dist/chunks/sidepanel.CLbVkH7v.js.map +0 -1
- package/dist/chunks/timeline-item.CS7TCdoU.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-bar.U5VrFM6-.js","sources":["../../src/composables/use-bento-base-filter/utils/utils.ts","../../src/composables/use-bento-base-filter/use-bento-base-filter.ts","../../src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue","../../src/components/filter-bar/components/filter-bar-button-group/filter-bar-button-group.vue","../../src/components/filter-bar/components/base-filter/base-filter.internal.types.ts","../../src/components/filter-bar/components/base-filter/base-filter.vue","../../src/components/filter-bar/components/base-filter/composables/use-base-filter.ts","../../src/components/filter-bar/filter-bar.types.ts","../../src/components/filter-bar/components/boolean-filter/boolean-filter.vue","../../src/components/filter-bar/components/checkbox-group-filter/checkbox-group-filter.vue","../../src/components/filter-bar/components/input-filter/input-filter.vue","../../src/components/filter-bar/components/radio-group-filter/radio-group-filter.vue","../../src/composables/use-numeric-input/use-numeric-input.ts","../../src/components/filter-bar/components/range-filter/range-filter.vue","../../src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue","../../src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue","../../src/components/filter-bar/components/select-filter/select-filter.props.ts","../../src/components/filter-bar/components/select-filter/select-filter.vue","../../src/components/filter-bar/components/toggle-filter/toggle-filter.vue","../../src/components/filter-bar/filter-bar-filter-components.ts","../../src/components/filter-bar/composables/use-container-size-options-layout/use-container-size-options-layout.ts","../../src/components/filter-bar/components/all-filters-modal/all-filters-modal.types.ts","../../src/components/filter-bar/components/base-filter-button/base-filter-button.vue","../../src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue","../../src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-filter-selection/all-filters-modal-filter-selection.vue","../../src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-selected-filter/all-filters-modal-selected-filter.vue","../../../ui-assets/icons-16/dist/vue/sliders-1.vue","../../src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue","../../src/components/filter-bar/filter-bar.vue"],"sourcesContent":["/**\n * Checks if a value is a plain object.\n *\n * @param value The value to check.\n * @returns Whether the value is a plain object.\n */\nexport const isPlainObject = (value: unknown) => {\n if (value === null || typeof value !== 'object') {\n return false;\n }\n\n return Object.prototype.toString.call(value) === '[object Object]';\n};\n\n/**\n * Checks if a value is an array.\n *\n * @param value The value to check.\n * @returns Whether the value is an array.\n */\nexport const isArray = <T>(value: T) => Array.isArray(value);\n\n/**\n * Checks if a value is empty.\n * If the value is an array, it checks if the array is empty or if all elements are empty strings.\n * If the value is not an array, it checks if the value is falsy.\n *\n * @param value The value to check.\n * @returns Whether the value is empty.\n */\nexport const isValueEmpty = <T>(value: T) =>\n isArray(value) ? (value as []).length === 0 || (value as Array<T>).every(el => el === '') : !value;\n\n/**\n * Checks if two objects are deeply equal by comparing their JSON string representations.\n *\n * @param first The first value.\n * @param second The second value.\n * @returns Whether the values are equal.\n */\nexport const isEqual = <T>(first: T, second: T) => JSON.stringify(first) === JSON.stringify(second);\n\n/**\n * Creates a deep copy of a value.\n * Recursively copies an object or array to return the original value.\n * Otherwise, it returns the value as is.\n *\n * @param value The value to copy.\n * @returns The deep copied value or the original value if it's not a plain object or array.\n */\nexport const deepCopy = <T>(value: T) => {\n if (!isPlainObject(value)) {\n return value;\n }\n\n // If it's a Date, make a copy\n if (value instanceof Date) {\n return new Date(value.getTime()) as T;\n }\n\n // If it's an array, map over it and deep copy each item\n if (isArray(value)) {\n return value.map(item => deepCopy(item)) as T;\n }\n\n // If it's an object, iterate over its keys and deep copy each value\n return Object.keys(value).reduce((acc, key) => {\n acc[key] = deepCopy(value[key]);\n return acc;\n }, {});\n};\n\n/**\n * Copies the structure of a plain object, setting all values to `undefined`.\n * If the value is not a plain object, it returns `undefined`.\n *\n * @param value The object whose structure to copy.\n * @returns An object with the same keys as the input object but with all values set to `undefined`, or `undefined` if the input is not a plain object.\n */\nexport const copyStructure = <T>(value: T) =>\n isPlainObject(value) ? Object.fromEntries(Object.keys(value).map(key => [key, undefined])) : undefined;\n","import { computed, onMounted, ref, watch } from 'vue';\nimport type { Ref } from 'vue';\nimport { copyStructure, deepCopy, isEqual, isValueEmpty } from './utils';\n\n/**\n * A composable to wire the `bento-base-filter` component for the mandatory fields and events.\n *\n * @usage\n * ```vue\n * <template>\n * <bento-base-filter\n * :disable-apply-button=\"isApplyButtonDisabled\"\n * :disable-secondary-button=\"isSecondaryButtonDisabled\"\n * @ apply=\"updateFilter\"\n * @ clear=\"clearFilter(updateFilter)\"\n * @ open=\"openFilter\"\n * @ reset=\"resetFilter(updateFilter)\"\n * >\n * <!-- CONTENT HERE -->\n * </bento-base-filter>\n * </template>\n * <script>\n * import { ref } from 'vue'\n * import { useBentoBaseFilter, BentoBaseFilter, BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * type CustomFilterValue = boolean\n * const props = defineProps<BentoBaseFilterProps<CustomFilterValue>>();\n *\n * const {\n * // Values\n * internalFilterValue,\n * isSecondaryButtonDisabled,\n * isApplyButtonDisabled,\n *\n * // Methods\n * clearFilter,\n * resetFilter,\n * openFilter,\n * } = useBentoBaseFilter<CustomFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n * </script>\n * ```\n *\n * @param appliedFilter The currently applied filter value.\n * @param defaultFilter The default filter value (if available).\n * @returns An object containing refs and functions:\n * - `internalFilterValue`: The temporary state of the filter before it's applied.\n * - `isSecondaryButtonDisabled`: `true` if the secondary (clear/reset) button should be disabled.\n * - `isApplyButtonDisabled`: `true` if the apply button should be disabled.\n * - `clearFilter`: Clears the filter to its initial or default state.\n * - `resetFilter`: Resets the filter to its default state.\n * - `openFilter`: Syncs the internal state with the applied filter.\n */\nexport function useBentoBaseFilter<T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>) {\n /**\n * Handles the internal value. Kept in sync when the new value is applied\n */\n const internalFilterValue = ref<T>();\n const initialStructureOrValue = ref<T>();\n\n onMounted(() => {\n /**\n * Copy initial structure as long as the value is not \"undefined\"\n */\n if (appliedFilter.value != null) {\n initialStructureOrValue.value = copyStructure<T>(appliedFilter.value) as T;\n }\n });\n\n watch(\n () => appliedFilter.value,\n newValue => {\n internalFilterValue.value = deepCopy<T>(newValue);\n },\n { immediate: true }\n );\n\n /**\n * Indicates if the filter has a value applied (active).\n * - inactive (`true`): `appliedFilter` is empty (`undefined`) or all of its properties are empty for object values\n */\n const isFilterInactive = computed(\n () => isValueEmpty(appliedFilter.value) || isEqual<T>(appliedFilter.value, initialStructureOrValue.value)\n );\n\n /**\n * Indicates if the secondary (clear/reset) button should be disabled.\n * - disabled (`true`): No filter value is applied or `appliedFilter` value is the same as the `defaultFilter` (persistent) value\n */\n const isSecondaryButtonDisabled = computed(() =>\n defaultFilter.value != null ? isEqual<T>(defaultFilter.value, appliedFilter.value) : isFilterInactive.value\n );\n\n const isApplyButtonDisabled = computed(() => {\n const isValueUnchanged = isEqual<T>(internalFilterValue.value, appliedFilter.value);\n return isValueUnchanged || (isValueEmpty(internalFilterValue.value) && isFilterInactive.value);\n });\n\n /**\n * Clears the non-persistent filters (not used in persistent filters).\n *\n * Receives a callback to execute additional tasks required when clearing a filter\n *\n * - `object`: Sets all properties to `undefined`\n * - non-`object`: Sets to `undefined`\n * @param callback Function to be called when clearing a filter\n */\n function clearFilter(callback?: (newValue: T) => void) {\n internalFilterValue.value = deepCopy<T>(initialStructureOrValue.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n /**\n * Resets the persistent filters (not used in non-persistent filters).\n * Sets the `internalFilterValue`\n *\n * Receives a callback to execute additional tasks required when resetting a filter.\n * @param callback Function to be called when resetting a filter\n */\n function resetFilter(callback?: (newValue: T) => void) {\n internalFilterValue.value = deepCopy<T>(defaultFilter.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n /**\n * Sets the value to what is applied when opening a filter.\n * @param callback Function to be called when opening a filter\n */\n function openFilter(callback?: (newValue: T) => void) {\n // Reset value every time it opens\n internalFilterValue.value = deepCopy<T>(appliedFilter.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n return {\n // Values\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n\n // Methods\n clearFilter,\n resetFilter,\n openFilter,\n };\n}\n","<template>\n <base-button\n ref=\"filterBarButtonRef\"\n v-bind=\"$attrs\"\n class=\"b-filter-bar-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"ariaAttributes['aria-controls']\"\n type=\"button\"\n @click=\"onClickButton\"\n >\n <div class=\"b-filter-bar-button__container\">\n <template v-if=\"hasSlot('iconLeft')\">\n <slot name=\"iconLeft\" />\n </template>\n\n <div class=\"b-filter-bar-button__label-container\">\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-filter-bar-button__label\">\n <span>\n <slot />\n </span>\n <bento-typography\n v-if=\"secondaryLabel && !isIconOnly\"\n el=\"span\"\n variant=\"body\"\n stronger\n class=\"b-filter-bar-button__label\"\n >:</bento-typography\n >\n </bento-typography>\n <bento-typography\n v-if=\"appliedFiltersCount && !isIconOnly\"\n class=\"b-filter-bar-button__counter\"\n el=\"span\"\n variant=\"body\"\n stronger\n >\n {{ appliedFiltersCount }}\n </bento-typography>\n <bento-typography\n v-if=\"secondaryLabel && !isIconOnly\"\n el=\"span\"\n variant=\"body\"\n stronger\n class=\"b-filter-bar-button__secondary-label\"\n >\n {{ secondaryLabel }}\n </bento-typography>\n </div>\n </div>\n </base-button>\n</template>\n\n<script setup lang=\"ts\">\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { computed, ref, useAttrs, useSlots } from 'vue';\n\n const props = defineProps({\n /**\n * Allows to set the button as active without setting a \"secondaryLabel\"\n */\n active: { type: Boolean, default: false },\n\n /**\n * The number of applied values within the filter.\n * Text can also be applied here such as 'All'.\n * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.\n */\n appliedFiltersCount: { type: [String, Number], default: null },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Signifies if the filter is open or closed.\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Signifies if the filter is a persistent filter\n */\n isPersistentFilter: { type: Boolean, default: false },\n\n /**\n * Renders the button without the applied state styles\n */\n noAppliedStateStyles: { type: Boolean, default: false },\n\n /**\n * A secondary label to be added next to the primary for additional filtering information.\n * i.e. Can be used to show the set value for said filter.\n */\n secondaryLabel: { type: String, default: null },\n });\n\n const emit = defineEmits([\"click\"]);\n\n const slots = useSlots();\n const attrs = useAttrs();\n const hasSlot = useHasSlot(slots);\n const labelSlot = computed((): string => (slots.default ? getSlotText(slots)('default') : null));\n const isIconOnly = computed(() => !hasSlot('default') && hasSlot('iconLeft'));\n const computedAriaLabel = useAriaLabel({ ariaLabel: labelSlot });\n const filterBarButtonRef = ref(null);\n\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n }));\n\n const isAppliedFilter = computed(\n () =>\n (props.appliedFiltersCount || props.secondaryLabel || props.isPersistentFilter) &&\n !props.noAppliedStateStyles\n );\n\n const conditionalClasses = computed(() => ({\n 'b-filter-bar-button--applied': isAppliedFilter.value || props.active,\n 'b-filter-bar-button--filter-open': props.isFilterOpen && !isAppliedFilter.value,\n 'b-filter-bar-button--filter-open-applied': props.isFilterOpen && isAppliedFilter.value,\n 'b-filter-bar-button--with-secondary-label': props.secondaryLabel,\n 'b-filter-bar-button--with-counter': props.appliedFiltersCount,\n 'b-filter-bar-button--icon-only': isIconOnly.value,\n }));\n\n const onClickButton = (event: MouseEvent) => {\n event.preventDefault();\n if (!props.disabled) {\n emit('click', event);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A filter button used as a base to extend all sorts of filter buttons.\n * Used in the bento-filter-bar and all-filter-modals components.\n *\n * @usage\n * export default {\n * components: { FilterBarButton },\n * template: `\n * <filter-bar-button>\n * Filter\n * </filter-bar-button>\n * `,\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar-button.scss\" />\n","<template>\n <div class=\"b-filter-bar-button-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { type BentoFilterBarButtonGroupProps } from './filter-bar-button-group.types';\n import { computed } from 'vue';\n\n const props = defineProps({\n isActive: { type: Boolean, default: false },\n skipGrouping: { type: Boolean, default: false }\n});\n\n const conditionalClasses = computed(() => ({\n 'b-filter-bar-button-group--active': props.isActive,\n 'b-filter-bar-button-group--grouped': !props.skipGrouping,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * A button group used to group buttons in the filter bar.\n *\n * @usage\n * import { FilterBarButtonGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { FilterBarButtonGroup },\n * template: `\n * <filter-bar-button-group>\n * <filter-bar-button>Filter</filter-bar-button>\n * <filter-bar-button>Clear</filter-bar-button>\n * </filter-bar-button-group>\n * `,\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar-button-group.scss\" />\n","export enum BaseFilterEvent {\n APPLY = 'apply',\n CLEAR = 'clear',\n OPEN = 'open',\n CLOSE = 'close',\n RESET = 'reset',\n CANCEL = 'cancel',\n}\n","<template>\n <div v-if=\"onlySlot\">\n <slot></slot>\n </div>\n <div v-else class=\"b-base-filter\">\n <filter-bar-button-group\n v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\"\n :is-active=\"isFilterOpen\"\n :skip-grouping=\"!isValueChanged\"\n >\n <filter-bar-button\n ref=\"filterButtonRef\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"isFilterOpen ? popoverId : null\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disabled=\"disabled\"\n :is-persistent-filter=\"isPersistentFilter\"\n :is-filter-open=\"isFilterOpen\"\n :secondary-label=\"buttonSecondaryLabel\"\n @click=\"onClickFilter\"\n @keydown.esc=\"closePopover\"\n >\n {{ computedButtonText }}\n </filter-bar-button>\n\n <filter-bar-button\n v-if=\"isValueChanged\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disabled=\"disabled\"\n :is-persistent-filter=\"isPersistentFilter\"\n :is-filter-open=\"isFilterOpen\"\n :secondary-label=\"buttonSecondaryLabel\"\n @click=\"resetFilter\"\n >\n <template #iconLeft>\n <cross-small-icon :svg-title=\"computedClearButtonLabel\"></cross-small-icon>\n </template>\n </filter-bar-button>\n </filter-bar-button-group>\n\n <bento-teleport v-if=\"filterButtonEl\">\n <bento-popover\n :id=\"popoverId\"\n :ref=\"setPopoverRef\"\n class=\"b-base-filter__popover\"\n divider\n :aria-label=\"label\"\n :open=\"isFilterOpen\"\n :actions=\"controlled ? null : actions\"\n actions-layout=\"space-between\"\n :target-element=\"filterButtonEl\"\n :title=\"controlled ? null : label\"\n :fit-content=\"fitContent\"\n position=\"bottom-start\"\n :without-space=\"controlled\"\n :fallback-position=\"['bottom-end']\"\n overflow-visible\n >\n <div @keydown.esc=\"onCancel\">\n <slot></slot>\n </div>\n </bento-popover>\n </bento-teleport>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, watch } from 'vue';\n import BentoPopover from '@/components/popover/popover.vue';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip/tooltip';\n import { FilterBarButton } from '../filter-bar-button';\n import FilterBarButtonGroup from '../filter-bar-button-group/filter-bar-button-group.vue';\n import { useI18n } from '@/utils/ts/i18n';\n import { BaseFilterEvent } from './base-filter.internal.types';\n import { type BentoBaseFilterProps } from './base-filter.types';\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/generate-uid';\n import { useClickOutside } from '@/composables/use-click-outside';\n import BentoTeleport from '@/internal/teleport/teleport.vue';\n import type { BentoFilterBarValue } from '../../filter-bar.types';\n import CrossSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-small';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits([\n BaseFilterEvent.APPLY,\n BaseFilterEvent.CLEAR,\n BaseFilterEvent.OPEN,\n BaseFilterEvent.CLOSE,\n BaseFilterEvent.RESET,\n BaseFilterEvent.CANCEL,\n ]);\n\n const props = defineProps({\n appliedFiltersCount: { default: null },\n buttonLabel: { default: undefined },\n buttonSecondaryLabel: { default: undefined },\n disabled: { type: Boolean, default: false },\n defaultValue: { default: null },\n onlySlot: { type: Boolean, default: false },\n controlled: { type: Boolean, default: false },\n disableApplyButton: { type: Boolean, default: false },\n disableSecondaryButton: { type: Boolean, default: false },\n field: null,\n label: null,\n fitContent: { type: Boolean, default: undefined },\n tooltipText: { default: undefined },\n tooltipPosition: { default: undefined },\n value: { default: undefined }\n});\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const popoverId = generateUid('base-filter-popover');\n const isFilterOpen = ref(false);\n const filterButtonRef = ref(null);\n const popoverRef = ref(null);\n\n const filterButtonEl = computed(() => filterButtonRef.value?.$el ?? null);\n\n const setPopoverRef = (instance: unknown) => {\n popoverRef.value = instance ?? null;\n };\n\n const isPersistentFilter = computed(() => props.defaultValue !== null);\n\n const isValueChanged = computed(() => {\n // If it's not a persistent filter, its value can't have changed.\n if (!isPersistentFilter.value) {\n return props.appliedFiltersCount || props.buttonSecondaryLabel;\n }\n\n // Use JSON.stringify for a simple but effective deep comparison\n // of objects, arrays, and primitives.\n return JSON.stringify(props.value) !== JSON.stringify(props.defaultValue);\n });\n\n const computedAriaLabel = computed(() => {\n let ariaLabelValuePart = props.buttonSecondaryLabel ? `: ${props.buttonSecondaryLabel}` : '';\n\n if (props.appliedFiltersCount) {\n ariaLabelValuePart = `: ${t('numberSelected', { numberOfItemsSelected: props.appliedFiltersCount })}`;\n }\n\n return (isPersistentFilter.value ? props.label : computedButtonText.value) + ariaLabelValuePart;\n });\n\n const computedClearButtonLabel = computed(() =>\n isPersistentFilter.value\n ? t('resetFilter', {\n function: computedButtonText.value,\n })\n : t('clearFilter', {\n function: computedButtonText.value,\n })\n );\n\n const computedButtonText = computed(() => props.buttonLabel || props.label);\n\n const resetFocus = async () => {\n await nextTick();\n filterButtonRef.value?.$el?.focus();\n };\n\n const closePopover = () => {\n if (!isFilterOpen.value) {\n return;\n }\n\n isFilterOpen.value = false;\n resetFocus();\n emit(BaseFilterEvent.CLOSE);\n };\n\n const resetFilter = () => {\n if (isPersistentFilter.value) {\n emit(BaseFilterEvent.RESET);\n } else {\n emit(BaseFilterEvent.CLEAR);\n }\n\n resetFocus();\n };\n\n const onClickSecondaryAction = () => {\n closePopover();\n resetFilter();\n };\n\n const onClickFilter = () => {\n if (isFilterOpen.value) {\n closePopover();\n } else {\n isFilterOpen.value = true;\n emit(BaseFilterEvent.OPEN);\n }\n };\n const onClickApply = () => {\n closePopover();\n emit(BaseFilterEvent.APPLY);\n };\n\n const onCancel = () => {\n closePopover();\n emit(BaseFilterEvent.CANCEL);\n };\n\n const onClickOutside = () => onCancel();\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onClickApply,\n disabled: props.disableApplyButton,\n },\n {\n title: isPersistentFilter.value ? (t('reset') as string) : (t('clear') as string),\n event: onClickSecondaryAction,\n disabled: props.disableSecondaryButton,\n },\n ]);\n\n watch(\n () => isFilterOpen.value,\n (value, prevValue) => {\n if (!value && prevValue) {\n if (filterButtonRef.value?.filterBarButtonRef?.bentoBaseButtonRef) {\n filterButtonRef.value.filterBarButtonRef.bentoBaseButtonRef.focus();\n }\n }\n }\n );\n\n // Ignore the events inside the Button and the Popover\n useClickOutside(popoverRef, onClickOutside, { ignore: [filterButtonRef] });\n\n defineExpose({\n closePopover,\n });\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n name: 'bento-base-filter',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter.scss\"></style>\n","import { computed, ref, watch } from 'vue';\nimport type { ComputedRef, Ref, UnwrapRef } from 'vue';\n\nconst isArray = <T>(value: T) => value instanceof Array;\nconst isValueEmpty = <T>(value: T) =>\n isArray(value) ? (value as []).length === 0 || (value as Array<T>).every(el => el === '') : !value;\nconst isEqual = <T>(first: T, second: T) => JSON.stringify(first) === JSON.stringify(second);\n\ninterface UseBaseFilterReturn<T> {\n internalFilterValue: Ref<T> | Ref<UnwrapRef<T>>;\n isSecondaryButtonDisabled: ComputedRef<boolean>;\n isApplyButtonDisabled: ComputedRef<boolean>;\n}\n\nexport const useBaseFilter = <T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>): UseBaseFilterReturn<T> => {\n const internalFilterValue = ref<T>(appliedFilter.value as T);\n\n watch(\n () => appliedFilter.value,\n () => {\n (internalFilterValue as Ref<T>).value = appliedFilter.value as T;\n }\n );\n\n const isFilterInactive = computed(() => isValueEmpty(appliedFilter.value));\n\n const isSecondaryButtonDisabled = computed(() =>\n defaultFilter.value !== null ? isEqual<T>(defaultFilter.value, appliedFilter.value) : isFilterInactive.value\n );\n const isApplyButtonDisabled = computed(() => {\n const isValueUnchanged = isEqual((internalFilterValue as Ref<T>).value, appliedFilter.value as T);\n return isValueUnchanged || (isValueEmpty(internalFilterValue.value) && isFilterInactive.value);\n });\n\n return {\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n };\n};\n","import { type BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';\nimport {\n type BentoListboxEmptyStateProps,\n type BentoListboxIsOptionDisabled,\n type BentoListboxLazyLoadType,\n type BentoListboxOptions,\n type BentoListboxSearchOptions,\n type BentoListboxSelectedValue,\n type BentoListboxVirtulisationOptions,\n} from '@/types/listbox';\nimport { type OmitStrict } from '@/types/omit-strict';\nimport { type VueNodeElement } from '@/types/elements';\nimport { type BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';\nimport { type BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';\nimport { type BentoCountryVariant } from '@/components/country';\nimport { type BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';\nimport { type BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';\nimport {\n type BentoInputDropdownProps,\n type BentoInputFieldElementPosition,\n type BentoInputFieldValue,\n} from '@/components/input-field';\nimport {\n type BentoDatePickerFirstDayOfWeek,\n type BentoDatePickerIsDateDisabled,\n type BentoDatePickerVariant,\n type BentoDatePickerYearRange,\n} from '@/components/date-picker';\nimport {\n type BentoDateRangePickerGranularityConfig,\n type BentoDateRangePickerValue,\n type BentoDateRangePickerVariant,\n type BentoDateRangePickerYearRange,\n} from '@/components/date-range-picker';\nimport {\n type BentoRadioGroupFilterOptions,\n type BentoRadioGroupFilterValue,\n} from './components/radio-group-filter/radio-group-filter.types';\nimport { type DateRangePickerCalendarRangeSelectorItems } from '../date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\nimport { type BentoSearchBarProps } from '@/components/search-bar/search-bar.types';\nimport type { BentoInputFilterOptions, BentoInputFilterValue } from './components/input-filter/input-filter.types';\nimport type { BentoToggleFilterOptions, BentoToggleFilterValue } from './components/toggle-filter/toggle-filter.types';\nimport type { BentoTooltipPosition } from '@/directives';\nimport {\n type BentoCheckboxGroupFilterOptions,\n type BentoCheckboxGroupFilterValue,\n} from './components/checkbox-group-filter/checkbox-group-filter.types';\n\n/**\n * Re-export filter component types\n */\nexport type * from './components/input-filter/input-filter.types';\nexport type * from './components/radio-group-filter/radio-group-filter.types';\nexport type * from './components/toggle-filter/toggle-filter.types';\n\nexport interface BentoSelectFilterOptions {\n /**\n * Empty state props that will be used with the inner empty state component to be displayed when no search results are found.\n */\n emptyState?: BentoListboxEmptyStateProps;\n\n /**\n * Option items for the list-box\n */\n listboxItems: BentoListboxOptions;\n\n /**\n * Defines if the list-box should be a multi-select filter\n */\n multiple?: boolean;\n\n /**\n * The event fire when the filter is opened.\n */\n onOpen?: () => void;\n\n lazy?: {\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: boolean;\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n\n /**\n * Indicates if new options are loading.\n */\n loading: boolean;\n\n /**\n * The click event that fires when the user press on the \"show more\" button OR when the user\n * scrolls down to bottom of the select filter box.\n */\n showMoreEvent?: () => void;\n };\n\n /**\n * Toggles the loading state of the listbox.\n */\n loading?: boolean;\n\n /**\n * Search options and events for the listbox filtering.\n */\n search?: BentoListboxSearchOptions;\n\n /**\n * Defines if the list-box should support static categories\n */\n staticCategories?: boolean;\n\n /**\n * A function that defines which option in the list-box is disabled\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll?: BentoListboxVirtulisationOptions;\n\n /**\n * Attaches a `BentoTooltip` if present. Text showed in the tooltip on hover.\n */\n tooltipText?: string;\n\n /**\n * Position the tooltip should take if space is available.\n */\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n\n /**\n * Enables value/label value handling. When `true`, the component expects and emits value/label\n * pair objects instead of primitive values.\n *\n * This affects both the `value` prop and the `input` event payload.\n *\n * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).\n * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.\n *\n * This is particularly useful when a selected item's label is not available in the `items` prop,\n * allowing the component to display the correct label for values loaded from external sources.\n * @default false\n */\n enableValueLabelPair?: boolean;\n\n /**\n * Enables a search bar that dynamically filters values\n * @default true\n */\n dynamicFiltering?: boolean;\n}\nexport type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoAvatarListboxOptions;\n};\nexport type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCountryListboxOptions;\n variant?: BentoCountryVariant | `${BentoCountryVariant}`;\n};\nexport type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCurrencyListboxOptions;\n};\nexport type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoTagListboxOptions;\n};\n\nexport type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoPaymentMethodListboxOptions;\n};\n\nexport interface BentoBooleanFilterOption {\n label: string;\n value: string | boolean;\n}\n\nexport interface BentoBooleanFilterOptions {\n positiveOption?: BentoBooleanFilterOption;\n negativeOption?: BentoBooleanFilterOption;\n tooltipText?: string;\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n}\n\nexport interface BentoInputWithDropdownFilterOptions {\n dropdown: BentoInputDropdownProps;\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n tooltipText?: string;\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n}\n\nexport interface BentoRangeFilterOptions {\n tooltipText?: string;\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n}\n\n// Date\nexport interface BentoDateFilterOptions {\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n yearRange?: BentoDatePickerYearRange;\n variant?: `${BentoDatePickerVariant}`;\n tooltipText?: string;\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n}\nexport interface BentoDateRangeFilterOptions {\n allowTimeInput?: boolean;\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n yearRange?: BentoDateRangePickerYearRange;\n granularities?: Array<BentoDateRangePickerGranularityConfig>;\n maxRange?: number;\n min?: Date;\n max?: Date;\n numberOfMonths?: number;\n showEndDateOnOpen?: boolean;\n quickSelectRanges?: DateRangePickerCalendarRangeSelectorItems | boolean;\n timeInterval?: number;\n variant?: `${BentoDateRangePickerVariant}`;\n tooltipText?: string;\n tooltipPosition?: BentoTooltipPosition | `${BentoTooltipPosition}`;\n}\n\nexport interface BentoInpuWithDropdowntFilterValue {\n inputValue: BentoInputFieldValue;\n dropdownValue: BentoInputDropdownProps['modelValue'];\n}\n\nexport type BentoSelectFilterValue = BentoListboxSelectedValue;\nexport type BentoBooleanFilterValue = string | null;\nexport type BentoDateFilterValue = Date | null;\nexport type BentoDateRangeFilterValue = BentoDateRangePickerValue | null;\nexport type BentoFilterBarValue =\n | BentoInputFilterValue\n | BentoInpuWithDropdowntFilterValue\n | BentoSelectFilterValue\n | BentoBooleanFilterValue\n | BentoDateFilterValue\n | BentoDateRangeFilterValue\n | BentoRadioGroupFilterValue\n | BentoCheckboxGroupFilterValue\n | BentoToggleFilterValue;\n\nexport type BentoFilterOptions =\n | BentoSelectFilterOptions\n | BentoSelectAvatarFilterOptions\n | BentoSelectCountryFilterOptions\n | BentoSelectCurrencyFilterOptions\n | BentoSelectPaymentMethodFilterOptions\n | BentoSelectTagFilterOptions\n | BentoDateFilterOptions\n | BentoDateRangeFilterOptions\n | BentoBooleanFilterOptions\n | BentoInputFilterOptions\n | BentoInputWithDropdownFilterOptions\n | BentoRadioGroupFilterOptions\n | BentoCheckboxGroupFilterOptions\n | BentoToggleFilterOptions\n | undefined;\n\nexport enum BentoFilterEvent {\n // Fires upon the user interacting with the filter\n INPUT = 'input',\n // Fires on the (new) filter values being applied\n UPDATE = 'update',\n}\n\nexport enum BentoFilterBarEvent {\n INPUT = 'input',\n UPDATE_FILTER_VALUES_OBJECT = 'update:filter-values-object',\n UPDATE_FILTER_VALUES_ARRAY = 'update:filter-values',\n}\n\nexport enum BentoFilterItemType {\n /**\n * @deprecated Since v3.0.0. Use `BentoFilterItemType.RADIO_GROUP` instead.\n */\n BOOLEAN = 'BentoBooleanFilter',\n RANGE = 'BentoRangeFilter',\n // Input\n INPUT = 'BentoInputFilter',\n INPUT_DROPDOWN = 'BentoInputWithDropdownFilter',\n // Select\n SELECT = 'BentoSelectFilter',\n SELECT_AVATAR = 'BentoSelectAvatarFilter',\n SELECT_COUNTRY = 'BentoSelectCountryFilter',\n SELECT_CURRENCY = 'BentoSelectCurrencyFilter',\n SELECT_PAYMENT_METHOD = 'BentoSelectPaymentMethodFilter',\n SELECT_TAG = 'BentoSelectTagFilter',\n // Date\n DATE = 'BentoDateFilter',\n DATE_RANGE = 'BentoDateRangeFilter',\n // Radio group\n RADIO_GROUP = 'BentoRadioGroupFilter',\n // Checkbox\n CHECKBOX_GROUP = 'BentoCheckboxGroupFilter',\n // Toggle\n TOGGLE = 'BentoToggleFilter',\n}\n\nexport interface BentoFilterValue {\n field: string;\n value?: BentoFilterBarValue;\n}\n\nexport interface BentoFilterModel<CustomOptions = any> {\n field: BentoFilterValue['field'];\n label: string;\n description?: string;\n options?: BentoFilterOptions | CustomOptions;\n disabled?: boolean;\n defaultValue?: BentoFilterBarValue;\n visible?: boolean;\n\n /**\n * Defines the filter to be used.\n *\n * Can be one filter defined in the {@link BentoFilterItemType} enum or a\n * custom filter component defined as a {@link VueNodeElement}\n */\n type: BentoFilterItemType | VueNodeElement;\n}\n\n/**\n * A filter model combined with its current value.\n */\nexport type BentoFilterBarFilterWithValue = BentoFilterModel & BentoFilterValue;\n\n/**\n * An array of filter models combined with their current values.\n */\nexport type BentoFilterBarFiltersWithValues = Array<BentoFilterBarFilterWithValue>;\n\nexport type BentoFilterBarModel<CustomOptions = any> = Array<BentoFilterModel<CustomOptions>>;\nexport type BentoFilterValues = Array<BentoFilterValue>;\nexport type BentoFilterValueObject<T extends PropertyKey = string, CustomValue = BentoFilterBarValue> = Record<\n T,\n CustomValue\n>;\n\nexport type BentoFilterBarSearchBarProps = OmitStrict<BentoSearchBarProps, 'value' | 'condensed'> & {\n /**\n * CSS width value applied to the search box element (e.g. `'200px'`, `'50%'`).\n */\n width?: string;\n};\nexport type BentoFilterBarSearchTerm = BentoSearchBarProps['value'];\n\nexport type BentoFilterBarScreenOptionsLayout = 'one-line' | 'multi-line';\n\nexport interface BentoFilterBarContainerSizeLayout {\n /**\n * @default 'multi-line'\n */\n large?: BentoFilterBarScreenOptionsLayout;\n /**\n * @default 'one-line'\n */\n medium?: BentoFilterBarScreenOptionsLayout;\n /**\n * @default 'multi-line'\n */\n small?: BentoFilterBarScreenOptionsLayout;\n}\n\nexport interface BentoFilterBarProps<CustomValue = BentoFilterBarValue | any, CustomOptions = any> {\n /**\n * Array of filters based on @see {@link BentoFilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the FilterBar.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * type: FilterType.TEXT,\n * }]\n */\n config?: BentoFilterBarModel<CustomOptions>;\n\n /**\n * An array of the values for each filter in the filter bar.\n * @see {@link BentoFilterValues}\n *\n * @example\n * [{\n * field: 'company',\n * value: '200',\n * }, {\n * field: 'name',\n * value: 'some text',\n * }]\n */\n filterValues?: BentoFilterValues;\n\n /**\n * Defines the layout (multi-line or one-line) to be used in the filter bar for different\n * container sizes:\n * - Large (>=700px)\n * - Medium (>=430px & <700px)\n * - Small (<430px)\n *\n * @example\n * {\n * large: 'multi-line',\n * medium: 'multi-line',\n * small: 'one-line'\n * }\n */\n containerSizeLayout?: BentoFilterBarContainerSizeLayout;\n\n /**\n * Search bar properties with which the placeholder, hint and other\n * \"bento-search-bar\" properties can be set. @see {@link BentoFilterBarSearchBarProps}\n */\n search?: BentoFilterBarSearchBarProps;\n\n /**\n * Search term useful to filter all the data by text.\n * If the value is non-existant (null or undefined) the search bar won't be enabled.\n * Can be used with `.sync`\n */\n searchTerm?: BentoFilterBarSearchTerm;\n\n /**\n * Will show all applied filters even if their visibility is set to false.\n */\n showAppliedHiddenFilters?: boolean;\n\n /**\n * An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.\n *\n * @example\n * {\n * 'company': '200',\n * 'name': 'some text'\n * },\n */\n filterValuesObject?: BentoFilterValueObject<string, CustomValue>;\n}\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :value=\"translatedValue\"\n :default-value=\"translatedDefaultValue\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :only-slot=\"onlySlot\"\n :tooltip-position=\"options?.tooltipPosition\"\n :tooltip-text=\"options?.tooltipText\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-boolean-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-radio-group\n :items=\"items\"\n :label=\"label\"\n :model-value=\"internalFilterValue\"\n :disabled=\"disabled\"\n hide-label\n @update:model-value=\"onInput\"\n ></bento-radio-group>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, onMounted, type PropType } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoRadioGroup } from '@/components/radio-group';\n import { useI18n } from '@/utils/ts/i18n';\n import { truncate } from '@/utils/ts/truncate';\n import { deprecate } from '@/utils/ts/deprecate';\n import { type BentoBooleanFilterOptions, BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Boolean filter\n *\n * @deprecated Since v3.0.0. Use `BentoFilterItemType.RADIO_GROUP` instead.\n *\n * @example\n * import { BentoBooleanFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoBooleanFilter },\n * template: `\n * <bento-boolean-filter>\n * ...Example code of the component\n * </bento-boolean-filter>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-boolean-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoRadioGroup },\n props: {\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: [String, Boolean], default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: [String, Boolean], default: null },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - positiveOption: The positive option label/value\n * - negativeOption: The positive option label/value\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options: {\n type: Object as PropType<BentoBooleanFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n /**\n * Translates a value, that possibly is a boolean, always to a string.\n */\n const translateBooleanToString = (aStringOrBooleanValue?: string | boolean) => {\n if (typeof aStringOrBooleanValue === 'boolean') {\n return aStringOrBooleanValue?.toString();\n }\n return aStringOrBooleanValue;\n };\n\n /**\n * Translates a value that back to a boolean if the value property was given as a boolean.\n */\n const translateBackToOriginalValueType = (aStringOrBooleanValue: string | boolean) => {\n if (\n props?.options?.positiveOption?.value !== undefined &&\n props?.options?.negativeOption?.value !== undefined &&\n typeof props.options.positiveOption.value === 'boolean' &&\n typeof props.options.negativeOption.value === 'boolean' &&\n typeof aStringOrBooleanValue === 'string'\n ) {\n return aStringOrBooleanValue === 'true';\n }\n return aStringOrBooleanValue;\n };\n\n const translatedDefaultValue = computed(() => translateBooleanToString(props.defaultValue));\n const translatedValue = computed(() => translateBooleanToString(props.value));\n const items = computed(() => {\n if (props.options && props.options.positiveOption && props.options.negativeOption) {\n return [\n {\n ...props.options.positiveOption,\n value: translateBooleanToString(props.options.positiveOption.value),\n },\n {\n ...props.options.negativeOption,\n value: translateBooleanToString(props.options.negativeOption.value),\n },\n ];\n }\n return [\n { value: 'yes', label: t('yes') as string },\n { value: 'no', label: t('no') as string },\n ];\n });\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n translatedValue,\n translatedDefaultValue\n );\n\n const buttonLabel = computed(() => props.label);\n const buttonSecondaryLabel = computed(() =>\n truncate(items.value.find(({ value }) => value === translatedValue.value)?.label, 12)\n );\n\n const conditionalClasses = computed(() => ({\n [`b-boolean-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the value is unset\n if (!internalFilterValue.value) {\n internalFilterValue.value = null;\n }\n });\n\n const onInput = event => {\n internalFilterValue.value = event;\n emit(BentoFilterEvent.INPUT, {\n ...props,\n value: translateBackToOriginalValueType(internalFilterValue.value),\n });\n };\n\n const openFilter = () => {\n internalFilterValue.value = translatedValue.value;\n };\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, {\n ...props,\n value: translateBackToOriginalValueType(internalFilterValue.value),\n });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n /**\n * Deprecations\n */\n\n onMounted(() => {\n deprecate(\n 'Boolean filter \"BentoFilterItemType.BOOLEAN\"',\n `Use the Radio group filter type \"BentoFilterItemType.RADIO_GROUP\" instead.`,\n '3.0.0'\n );\n });\n\n return {\n // Values\n items,\n conditionalClasses,\n buttonLabel,\n buttonSecondaryLabel,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n translatedValue,\n translatedDefaultValue,\n\n // Events\n onInput,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./boolean-filter.scss\" />\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :tooltip-position=\"options?.tooltipPosition\"\n :tooltip-text=\"options?.tooltipText\"\n @apply=\"updateFilter(internalFilterValue)\"\n @clear=\"clearFilter(updateFilter)\"\n @open=\"openFilter\"\n @reset=\"resetFilter(updateFilter)\"\n >\n <div\n class=\"b-checkbox-group-filter\"\n :class=\"conditionalClasses\"\n @keydown.enter=\"updateFilter(internalFilterValue)\"\n >\n <bento-checkbox-group\n :model-value=\"internalFilterValue\"\n :items=\"options?.checkboxItems\"\n :label=\"label\"\n :disabled=\"disabled\"\n hide-label\n @update:model-value=\"onModelValueUpdate\"\n />\n </div>\n </bento-base-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, toRef, watch } from 'vue';\n import BentoCheckboxGroup from '../../../checkbox/components/checkbox-group/checkbox-group.vue';\n import { BentoBaseFilter } from '../base-filter';\n import { useBentoBaseFilter } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { truncate } from '@/utils/ts/truncate';\n import {\n type BentoCheckboxGroupFilterProps,\n type BentoCheckboxGroupFilterValue,\n } from './checkbox-group-filter.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n disabled: { type: Boolean, default: false },\n defaultValue: { default: undefined },\n field: null,\n label: null,\n onlySlot: { type: Boolean, default: false },\n options: { default: undefined },\n value: { default: undefined }\n});\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const {\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n clearFilter,\n resetFilter,\n openFilter,\n } = useBentoBaseFilter<BentoCheckboxGroupFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n\n const displayedValues = ref<BentoCheckboxGroupFilterValue>(internalFilterValue.value ?? []);\n watch(\n () => props.value,\n newValue => {\n displayedValues.value = newValue ?? [];\n }\n );\n\n const conditionalClasses = computed(() => ({\n [`b-checkbox-group-filter--only-slot`]: props.onlySlot,\n }));\n\n const buttonLabel = computed(() => props.label);\n\n const buttonSecondaryLabel = computed(() =>\n displayedValues.value.length === 1\n ? truncate(\n props.options?.checkboxItems.find(item => displayedValues.value[0] === item.value)?.label ?? '',\n 12\n )\n : null\n );\n\n const appliedFiltersCount = computed(() => {\n if (!displayedValues.value.length || buttonSecondaryLabel.value) {\n return null;\n }\n\n if (displayedValues.value.length === props.options?.checkboxItems.length) {\n return t('all');\n }\n\n return displayedValues.value.length;\n });\n\n const updateFilter = (value: BentoCheckboxGroupFilterValue) => {\n displayedValues.value = value ?? [];\n emit('update', { ...props, value });\n };\n\n const onModelValueUpdate = (value: BentoCheckboxGroupFilterValue) => {\n internalFilterValue.value = value;\n emit('input', { ...props, value: internalFilterValue.value });\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * The Checkbox Group filter displays a group of checkboxes that allows\n * to select multiple values.\n *\n * @example\n * import { BentoCheckboxGroupFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckboxGroupFilter },\n * template: `\n * <bento-checkbox-group-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * />\n * `\n * }\n */\n export default {\n name: 'bento-checkbox-group-filter',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox-group-filter.scss\" />\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :only-slot=\"onlySlot\"\n :tooltip-position=\"options?.tooltipPosition\"\n :tooltip-text=\"options?.tooltipText\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-input-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\" @input=\"onInput\">\n <bento-input-field\n ref=\"inputTextRef\"\n :placeholder=\"options?.placeholder\"\n :model-value=\"internalFilterValue\"\n :disabled=\"disabled\"\n @update:model-value=\"setInternalFilterValue\"\n />\n </div>\n </bento-base-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onBeforeUpdate, ref, toRef, watch } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n import { type BentoInputFilterProps } from './input-filter.types';\n\n const props = defineProps({\n defaultValue: { default: null },\n disabled: { type: Boolean, default: false },\n field: null,\n label: null,\n onlySlot: { type: Boolean, default: false },\n options: { default: undefined },\n value: { default: null }\n});\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const inputTextRef = ref(null);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter<string>(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() => props.label);\n const buttonSecondaryLabel = computed(() => truncate(props.value, 12));\n\n const conditionalClasses = computed(() => ({\n [`b-input-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the string is empty\n if (internalFilterValue.value === '') {\n internalFilterValue.value = null;\n }\n });\n\n watch(inputTextRef, () => {\n // Focus on the input when it's opened\n inputTextRef.value?.focusInput();\n });\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const updateFilter = () => {\n if (!internalFilterValue.value && props.defaultValue !== null) {\n // If value set to empty, reset back to default value\n internalFilterValue.value = props.defaultValue;\n }\n\n emit('update', {\n ...props,\n value: internalFilterValue.value,\n });\n };\n\n const resetFilter = () => emit('update', { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const onInput = () => {\n emit('input', { ...props, value: internalFilterValue.value });\n };\n\n const setInternalFilterValue = (event: string) => {\n internalFilterValue.value = event;\n };\n</script>\n\n<script lang=\"ts\">\n export default {\n name: 'bento-input-filter',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-filter.scss\" />\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :button-label=\"label\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter(updateFilter)\"\n @open=\"openFilter\"\n @reset=\"resetFilter(updateFilter)\"\n >\n <div class=\"b-radio-group-filter\" :class=\"conditionalClasses\">\n <bento-radio-group\n v-model=\"internalFilterValue\"\n :items=\"options?.items\"\n :label=\"label\"\n :disabled=\"disabled\"\n hide-label\n variant=\"vertical\"\n @update:model-value=\"onInput\"\n />\n </div>\n </bento-base-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoRadioGroup } from '@/components/radio-group';\n import { BentoBaseFilter } from '../base-filter';\n import { computed, toRef } from 'vue';\n import { useBentoBaseFilter } from '@/composables/use-bento-base-filter';\n import { truncate } from '@/utils/ts/truncate';\n import { type BentoRadioGroupFilterProps, type BentoRadioGroupFilterValue } from './radio-group-filter.types';\n\n const props = defineProps({\n disabled: { type: Boolean },\n defaultValue: { default: undefined },\n field: null,\n label: null,\n options: { default: () => ({\n items: [],\n }) },\n onlySlot: { type: Boolean },\n value: { default: undefined }\n});\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const {\n // Fields\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n // Methods\n clearFilter,\n openFilter,\n resetFilter,\n } = useBentoBaseFilter<BentoRadioGroupFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n\n // Used to truncate the label of the selected option\n const buttonSecondaryLabel = computed(() => {\n const selectedValueLabel = props.options.items.find(item => item.value === props.value)?.label || '';\n return truncate(selectedValueLabel, 12);\n });\n\n const conditionalClasses = computed(() => ({\n [`b-radio-group-filter--only-slot`]: props.onlySlot,\n }));\n\n function onInput(newValue: BentoRadioGroupFilterValue) {\n internalFilterValue.value = newValue;\n // Emitted for the filter bar all filters modal\n emit('input', { ...props, value: internalFilterValue.value });\n }\n\n function updateFilter() {\n // Emitted for the filter bar\n emit('update', { ...props, value: internalFilterValue.value });\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Radio group filter component\n *\n * @example\n * import { BentoRadioGroupFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRadioGroupFilter },\n * template: `\n * <bento-radio-group-filter\n * :label=\"label\"\n * :options=\"{\n * items: [\n * { value: 'value1', label: 'Label 1' },\n * { value: 'value2', label: 'Label 2' },\n * ],\n * }\"\n * value=\"value1\"\n * defaultValue=\"value2\"\n * />\n * `\n * }\n */\n export default {\n name: 'bento-radio-group-filter',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group-filter.scss\" />\n","import { computed, nextTick, ref, unref, watch } from 'vue';\nimport type { NumericInputEvent, NumericKeyDownEvent, UseNumericInputOptions } from './use-numeric-input.types';\nimport { useI18n } from '@/utils/ts/i18n';\n\nconst isDigit = (value: string) => /^\\d$/.test(value);\n\n/**\n * Composable to handle localized numeric input with live formatting and caret management.\n */\nexport function useNumericInput(options: UseNumericInputOptions) {\n const { value, onInput } = options;\n const prettyOutput = computed(() => unref(options.prettyOutput) ?? false);\n const { n, locale } = useI18n();\n\n const inputRef = ref<HTMLInputElement | null>(null);\n const isFocused = ref(false);\n const negative = ref(false);\n const focusedDecimalPart = ref<string | null>(null);\n const privateValue = ref<number | null>(null);\n\n // Detect locale-specific separators\n const decimalSeparator = computed(() => {\n const parts = new Intl.NumberFormat(locale.value, { style: 'decimal' }).formatToParts(0.1);\n return parts.find(p => p.type === 'decimal')?.value || '.';\n });\n\n const maximumFractionDigits = computed(() => {\n return new Intl.NumberFormat(locale.value, { style: 'decimal' }).resolvedOptions().maximumFractionDigits;\n });\n\n const invalidPattern = computed(() => new RegExp(`[^\\\\d${decimalSeparator.value}]`, 'g'));\n\n const getEventTargetValue = (event: NumericInputEvent) => {\n if (typeof event === 'string') {\n return event.trim();\n }\n\n const target = event.target as HTMLInputElement | { value?: string } | null | undefined;\n return target?.value?.trim() ?? '';\n };\n\n // Sanitize once, then keep both the numeric value and the typed decimal text.\n const parseInputValue = (inputValue: string) => {\n const isNegative = inputValue.startsWith('-');\n const sanitizedValue = inputValue.slice(isNegative ? 1 : 0).replace(invalidPattern.value, '');\n const decimalSeparatorIndex = sanitizedValue.indexOf(decimalSeparator.value);\n const hasSingleDecimalSeparator =\n decimalSeparatorIndex !== -1 &&\n decimalSeparatorIndex === sanitizedValue.lastIndexOf(decimalSeparator.value);\n // Only preserve partial decimals when there is exactly one separator; \"1..2\" should stay invalid.\n const decimalPart = hasSingleDecimalSeparator\n ? sanitizedValue.slice(decimalSeparatorIndex + decimalSeparator.value.length)\n : null;\n // Intl decimal formatting caps fractions by default; mirror that for continued typing past the limit.\n const shouldCapDecimalPart = prettyOutput.value && isFocused.value && focusedDecimalPart.value !== null;\n const cappedDecimalPart =\n shouldCapDecimalPart && decimalPart !== null\n ? decimalPart.slice(0, maximumFractionDigits.value)\n : decimalPart;\n const cappedSanitizedValue =\n cappedDecimalPart !== null\n ? `${sanitizedValue.slice(0, decimalSeparatorIndex)}${decimalSeparator.value}${cappedDecimalPart}`\n : sanitizedValue;\n const normalizedValue =\n decimalSeparator.value === '.'\n ? cappedSanitizedValue\n : cappedSanitizedValue.split(decimalSeparator.value).join('.');\n const numberValue = normalizedValue.length > 0 ? Number(normalizedValue) : null;\n const shouldPreserveNegative =\n isNegative &&\n (Number.isFinite(numberValue) ||\n sanitizedValue.length === 0 ||\n (hasSingleDecimalSeparator && sanitizedValue.slice(0, decimalSeparatorIndex).length === 0));\n\n return {\n decimalPart: cappedDecimalPart,\n isNegative: shouldPreserveNegative,\n numberValue: Number.isFinite(numberValue) ? numberValue : null,\n };\n };\n\n /**\n * Formats a raw number for display according to the locale.\n */\n const getOutputValue = (val: number): string => {\n if (!prettyOutput.value) {\n return String(val);\n }\n return n(val, { style: 'decimal' });\n };\n\n const getFocusedOutputValue = (val: number): string => {\n const integerValue = Math.trunc(val);\n const formattedInteger = prettyOutput.value ? n(integerValue, { style: 'decimal' }) : String(integerValue);\n return `${formattedInteger}${decimalSeparator.value}${focusedDecimalPart.value}`;\n };\n\n const displayValue = computed(() => {\n if (privateValue.value === null) {\n if (isFocused.value && negative.value) {\n return focusedDecimalPart.value !== null\n ? `-${decimalSeparator.value}${focusedDecimalPart.value}`\n : '-';\n }\n\n return '';\n }\n\n const formattedValue =\n isFocused.value && focusedDecimalPart.value !== null\n ? getFocusedOutputValue(privateValue.value)\n : getOutputValue(privateValue.value);\n\n return negative.value ? `-${formattedValue}` : formattedValue;\n });\n\n /**\n * Updates the internal state and emits the new value.\n */\n const setValue = (inputValue: string) => {\n const { decimalPart, isNegative, numberValue } = parseInputValue(inputValue);\n\n negative.value = isNegative;\n // Keep the typed fractional part while focused: Number('1.') and Number('1.0') both collapse to 1.\n focusedDecimalPart.value = decimalPart;\n\n if (numberValue !== null) {\n privateValue.value = numberValue;\n const finalValue = negative.value ? -numberValue : numberValue;\n onInput?.(finalValue);\n } else {\n privateValue.value = null;\n onInput?.(null);\n }\n };\n\n // Synchronize external value changes\n watch(\n value,\n newValue => {\n const isNumber = typeof newValue === 'number';\n const isNegative = isNumber && (newValue < 0 || Object.is(newValue, -0));\n const absValue = isNumber ? Math.abs(newValue) : null;\n\n if (privateValue.value !== absValue || negative.value !== isNegative) {\n negative.value = isNegative;\n focusedDecimalPart.value = null;\n privateValue.value = absValue;\n }\n },\n { immediate: true }\n );\n\n /* Caret Management */\n\n const getCaretPosition = () => {\n return inputRef.value?.selectionStart || 0;\n };\n\n const setCaretPosition = (pos: number) => {\n if (inputRef.value) {\n inputRef.value.setSelectionRange(pos, pos);\n }\n };\n\n const getDigitsBeforeCaret = (fieldValue: string, caretPosition: number) => {\n let digits = 0;\n for (let i = 0; i < caretPosition; i++) {\n if (isDigit(fieldValue[i])) {\n digits++;\n }\n }\n return digits;\n };\n\n const setCaretAfterNthDigit = (nDigits: number) => {\n let digits = 0;\n let position = 0;\n const currentDisplay = displayValue.value;\n\n if (currentDisplay.length) {\n while (digits < nDigits && position < currentDisplay.length) {\n if (isDigit(currentDisplay[position])) {\n digits++;\n }\n position++;\n }\n }\n setCaretPosition(position);\n };\n\n const handlePrettyInput = async (inputValue: string) => {\n const oldCaretPosition = getCaretPosition();\n const isInputAtTheEnd = oldCaretPosition === inputValue.length;\n\n if (!isInputAtTheEnd) {\n const nDigitsBefore = getDigitsBeforeCaret(inputValue, oldCaretPosition);\n setValue(inputValue);\n await nextTick();\n setCaretAfterNthDigit(nDigitsBefore);\n } else {\n setValue(inputValue);\n }\n };\n\n /* Public Handlers */\n\n const handleInput = (event: NumericInputEvent) => {\n const inputValue = getEventTargetValue(event);\n\n if (prettyOutput.value && isFocused.value) {\n handlePrettyInput(inputValue);\n } else {\n setValue(inputValue);\n }\n\n // We don't emit or store letters that the user types in the input.\n // However, Vue doesn't strip them away either, so we need to force it.\n // In Composition API, we can manually sync the input value.\n if (inputRef.value && inputRef.value.value !== displayValue.value) {\n inputRef.value.value = displayValue.value;\n }\n };\n\n const handleKeyDown = (event: NumericKeyDownEvent) => {\n const target = event.target as\n | HTMLInputElement\n | { value?: string; selectionStart?: number | null; selectionEnd?: number | null }\n | null\n | undefined;\n\n if (!target) {\n return;\n }\n\n // Avoid invalid partial numbers such as \".\" or \"1..\".\n if (event.key === decimalSeparator.value) {\n const selectionStart = target.selectionStart ?? 0;\n const selectionEnd = target.selectionEnd ?? 0;\n const targetValue = target.value ?? '';\n const valueWithoutSelection = targetValue.slice(0, selectionStart) + targetValue.slice(selectionEnd);\n\n if (!valueWithoutSelection || valueWithoutSelection.includes(decimalSeparator.value)) {\n event.preventDefault?.();\n }\n }\n };\n\n return {\n inputRef,\n displayValue,\n isFocused,\n handleInput,\n handleKeyDown,\n onFocus: () => {\n isFocused.value = true;\n },\n onBlur: () => {\n isFocused.value = false;\n focusedDecimalPart.value = null;\n },\n };\n}\n","<template>\n <bento-base-filter\n v-bind=\"props\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :only-slot=\"props.onlySlot\"\n :tooltip-position=\"props.options?.tooltipPosition\"\n :tooltip-text=\"props.options?.tooltipText\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-range-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-input-field\n ref=\"fromFieldRef\"\n :model-value=\"displayFrom\"\n type=\"text\"\n inputmode=\"numeric\"\n :aria-label=\"t('from').toString()\"\n :disabled=\"props.disabled\"\n @update:model-value=\"handleModelValueFrom\"\n @keydown=\"handleKeyDownFrom\"\n @focus=\"onFocusFrom\"\n @blur=\"onBlurFrom\"\n >\n {{ t('from') }}\n </bento-input-field>\n <bento-input-field\n ref=\"toFieldRef\"\n class=\"b-range-filter__input-field\"\n :model-value=\"displayTo\"\n type=\"text\"\n inputmode=\"numeric\"\n :aria-label=\"t('to')\"\n :disabled=\"props.disabled\"\n @update:model-value=\"handleModelValueTo\"\n @keydown=\"handleKeyDownTo\"\n @focus=\"onFocusTo\"\n @blur=\"onBlurTo\"\n >\n {{ t('to') }}\n </bento-input-field>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n /**\n * Range filter used in the filter-bar component.\n *\n * @example\n * import { BentoRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRangeFilter },\n * template: `\n * <bento-range-filter field=\"filter-field\" label=\"Filter label\" value=\"['0', '1']\"/>\n * `\n * }\n */\n export default {\n name: 'bento-range-filter',\n i18n: { messages },\n };\n</script>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, ref, toRef, watch } from 'vue';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import type { BentoRangeFilterProps, BentoRangeFilterValue } from './range-filter.types';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoInputField, type BentoInputFieldValue } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n import { useI18n } from '@/utils/ts/i18n';\n import { useNumericInput } from '@/composables/use-numeric-input/use-numeric-input';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n interface RangeFilterInputField {\n inputFieldElement: HTMLInputElement | null;\n focusInput: () => void;\n }\n\n const props = defineProps({\n disabled: { type: Boolean, default: false },\n defaultValue: { default: null },\n field: null,\n label: null,\n value: { default: () => ['', ''] },\n onlySlot: { type: Boolean, default: false },\n options: { default: undefined }\n});\n\n const emit = defineEmits([BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE]);\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n const fromFieldRef = ref<RangeFilterInputField | null>(null);\n const toFieldRef = ref<RangeFilterInputField | null>(null);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } =\n useBaseFilter<BentoRangeFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n\n const fromNum = ref<number | null>(null);\n const toNum = ref<number | null>(null);\n const stringifyInputValue = (val: number | null) =>\n val !== null ? (Object.is(val, -0) ? '-0' : val.toString()) : '';\n\n const {\n displayValue: displayFrom,\n handleInput: handleInputFrom,\n handleKeyDown: handleKeyDownFrom,\n onFocus: onFocusFrom,\n onBlur: onBlurFrom,\n inputRef: inputRefFrom,\n } = useNumericInput({\n value: fromNum,\n prettyOutput: true,\n onInput: val => {\n const currentValue = internalFilterValue.value ?? ['', ''];\n internalFilterValue.value = [stringifyInputValue(val), currentValue[1]];\n onInput();\n },\n });\n const handleModelValueFrom = (val: BentoInputFieldValue) => handleInputFrom(String(val));\n\n const {\n displayValue: displayTo,\n handleInput: handleInputTo,\n handleKeyDown: handleKeyDownTo,\n onFocus: onFocusTo,\n onBlur: onBlurTo,\n inputRef: inputRefTo,\n } = useNumericInput({\n value: toNum,\n prettyOutput: true,\n onInput: val => {\n const currentValue = internalFilterValue.value ?? ['', ''];\n internalFilterValue.value = [currentValue[0], stringifyInputValue(val)];\n onInput();\n },\n });\n const handleModelValueTo = (val: BentoInputFieldValue) => handleInputTo(String(val));\n\n onMounted(() => {\n inputRefFrom.value = fromFieldRef.value?.inputFieldElement ?? null;\n inputRefTo.value = toFieldRef.value?.inputFieldElement ?? null;\n });\n\n watch(\n () => internalFilterValue.value,\n newVal => {\n const nextFrom = newVal?.[0] ? parseFloat(newVal[0]) : null;\n const nextTo = newVal?.[1] ? parseFloat(newVal[1]) : null;\n\n if (fromNum.value !== nextFrom) {\n fromNum.value = nextFrom;\n }\n if (toNum.value !== nextTo) {\n toNum.value = nextTo;\n }\n },\n { immediate: true }\n );\n\n const truncatedRangeValues = computed(() => {\n if (!props.value?.[0] && !props.value?.[1]) {\n return null;\n }\n\n // Set prefix is one range value is not set\n let prefix = '';\n if (!props.value?.[0]) {\n prefix = '≤';\n } else if (!props.value?.[1]) {\n prefix = '≥';\n }\n\n const fromVal = props.value?.[0] ? parseFloat(props.value[0]) : null;\n const toVal = props.value?.[1] ? parseFloat(props.value[1]) : null;\n\n const rangeFromLabel = fromVal !== null ? n(fromVal, { style: 'decimal' }) : '';\n const seperator = props.value?.[0] && props.value?.[1] ? ' - ' : '';\n const rangeToLabel = toVal !== null ? n(toVal, { style: 'decimal' }) : '';\n\n return `${prefix}${truncate(rangeFromLabel, 10)}${seperator}${truncate(rangeToLabel, 10)}`;\n });\n const buttonLabel = computed(() => props.label);\n const buttonSecondaryLabel = computed(() => truncatedRangeValues.value);\n\n const conditionalClasses = computed(() => ({\n [`b-range-filter--only-slot`]: props.onlySlot,\n }));\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n\n nextTick(() => fromFieldRef.value?.focusInput());\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const updateFilter = () => {\n if (!internalFilterValue.value?.some(x => x)) {\n // If both range values are empty,\n // If persistent filter, reset back to default value, else reset back to undefined\n internalFilterValue.value = props.defaultValue !== null ? props.defaultValue : undefined;\n }\n emit(BentoFilterEvent.UPDATE, {\n ...props,\n value: internalFilterValue.value,\n });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = ['', ''];\n updateFilter();\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./range-filter.scss\" />\n","<template>\n <bento-base-filter\n :applied-filters-count=\"appliedFiltersCount\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disabled=\"disabled\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :default-value=\"defaultValue\"\n :label=\"label\"\n :field=\"field\"\n :only-slot=\"false\"\n :tooltip-position=\"options?.tooltipPosition\"\n :tooltip-text=\"options?.tooltipText\"\n :value=\"value\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @reset=\"resetFilter\"\n @open=\"openFilter\"\n @close=\"closeFilter\"\n >\n <div class=\"b-select-filter-button__search-bar-wrapper\">\n <div v-if=\"options?.dynamicFiltering ?? true\" class=\"b-select-filter-button__search-bar\">\n <bento-search-bar\n :debounce-time=\"options?.search?.debounceTime\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"t('searchFilter', { filter: label.toLocaleLowerCase() })\"\n @input=\"searchTerm = $event\"\n />\n </div>\n\n <div class=\"b-select-filter-button__divider\">\n <bento-divider />\n </div>\n </div>\n\n <bento-listbox\n :id=\"listboxFilterId\"\n :aria-label=\"label\"\n class=\"b-select-filter-button__wrapper\"\n :component-loading=\"options?.loading\"\n :empty-state=\"options?.emptyState\"\n :has-more-items=\"options?.lazy?.hasMoreItems\"\n :items=\"filteredItems\"\n :is-option-disabled=\"options?.isOptionDisabled\"\n :lazy-load-type=\"options?.lazy?.lazyLoadType\"\n :loading=\"options?.lazy?.loading\"\n :multiple=\"options?.multiple\"\n :static-categories=\"options?.staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :selected-value=\"internalFilterValue\"\n :virtual-scroll=\"options?.virtualScroll\"\n @select=\"onOptionSelected\"\n @space-pressed=\"onOptionSelected\"\n @enter-pressed=\"onOptionSelected\"\n @show-more=\"options?.lazy?.showMoreEvent()\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </bento-base-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, ref, toRef, useSlots, watch } from 'vue';\n\n // Components\n import BentoSearchBar from '@/components/search-bar/search-bar.vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoListbox, useCachedSelectedValues } from '@/internal';\n import {\n type BentoListboxMultiSelectValue,\n type BentoListboxOptionItem,\n type BentoListboxOptions,\n type BentoListboxSelectedValue,\n type BentoListboxSelectedValueLabelPair,\n type BentoListboxValue,\n } from '@/types/listbox';\n import { BentoBaseFilter, useBaseFilter } from '../../../base-filter';\n\n // Types\n import { BentoFilterEvent, type BentoSelectFilterOptions } from '../../../../filter-bar.types';\n\n // Utilities\n import { useSearchBarFilter } from '@/components/search-bar';\n import { generateUid } from '@/utils/ts/generate-uid';\n import { truncate } from '@/utils/ts/truncate';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const props = defineProps({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n *\n */\n defaultValue: {\n type: [String, Number, Array] as PropType<BentoListboxSelectedValue>,\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with.\n *\n * @default undefined\n */\n options: {\n type: Object as PropType<BentoSelectFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n *\n * @default undefined\n */\n value: {\n type: [String, Number, Array, Object] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const searchTerm = ref('');\n const optionsRef = toRef(props, 'options');\n const itemsRef = ref(props.options.listboxItems ?? []);\n\n const { cachedSelectedListboxOptions, setCachedValues, resetCache } = useCachedSelectedValues(\n itemsRef,\n toRef(props, 'value'),\n toRef(optionsRef.value, 'multiple')\n );\n\n const { cachedSelectedListboxOptions: cachedDefaultSelectedListboxOptions } = useCachedSelectedValues(\n itemsRef,\n toRef(props, 'defaultValue'),\n toRef(optionsRef.value, 'multiple')\n );\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } =\n useBaseFilter<BentoListboxOptions>(cachedSelectedListboxOptions, cachedDefaultSelectedListboxOptions);\n\n // We need to make sure to update the items if the consumer updates them manually\n watch(optionsRef, () => {\n itemsRef.value = optionsRef.value.listboxItems ?? [];\n });\n\n const filteredItems = useSearchBarFilter<BentoListboxOptionItem>(\n searchTerm,\n itemsRef,\n props.options?.search?.searchEvent\n );\n const noResultsMessage = computed(() => t('noFiltersMatchThisSearch') as string);\n\n const buttonLabel = computed(() => props.label);\n\n const buttonSecondaryLabel = computed(() => {\n const isSingleSelectAndOneItemSelected = !props?.options?.multiple && props.value != null;\n const isMultiSelectedAndOneItemSelected =\n props?.options?.multiple && Array.isArray(props.value) && props.value.length === 1;\n\n // When only 1 item is selected: Display the Label of the selected value or use value as Label\n if (isSingleSelectAndOneItemSelected || isMultiSelectedAndOneItemSelected) {\n // If enableValueLabelPair is enabled then \"value\" has the label, no need to search for it.\n if (props.options?.enableValueLabelPair) {\n let displayValue =\n (props.value as Array<BentoListboxSelectedValueLabelPair>)?.length > 0\n ? (props.value[0] as BentoListboxSelectedValueLabelPair).label\n : (props.value as BentoListboxSelectedValueLabelPair).label;\n\n if (!displayValue) {\n displayValue = props.value as string;\n printDevelopmentWarning(\n 'BentoFilterBar Select filter (single & multi): The \"value\" provided is incorrect. The \"value\" must be of type \"BentoListboxSelectedValueLabelPair\" or \"Array<BentoListboxSelectedValueLabelPair>\" when \"enableValueLabelPair\" is set to true'\n );\n }\n return truncate(displayValue as string, 12);\n }\n\n const flatListboxItems = props.options.listboxItems.flatMap(x => (x.items ? x.items : x));\n // If the value is not in the list of Items set the value as secondary label.\n // This happens on external filtering\n let displayValue = flatListboxItems.find(({ value }) =>\n Array.isArray(props.value)\n ? (props?.value as BentoListboxMultiSelectValue)?.includes(value as BentoListboxValue)\n : value === props.value\n )?.label;\n\n if (!displayValue && props.value) {\n displayValue = (props.value as BentoListboxMultiSelectValue)[0] as string;\n }\n\n return truncate(displayValue, 12);\n }\n return null;\n });\n\n const listboxFilterId = computed(() => generateUid(`filter-listbox-${props.field}`));\n\n const onOptionSelected = (selectedValue: BentoListboxOptions) => {\n internalFilterValue.value = selectedValue;\n\n const { onlySlot, ...cleanedProps } = props;\n // Return null if there are no selected values\n if (props.options?.multiple) {\n let value: BentoListboxSelectedValue;\n\n if (props.options?.enableValueLabelPair) {\n value = selectedValue.length ? internalFilterValue.value : null;\n } else {\n value = selectedValue.length ? internalFilterValue.value.map(({ value }) => value) : null;\n }\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value });\n return;\n }\n\n let value: BentoListboxSelectedValue;\n if (props.options?.enableValueLabelPair) {\n value = selectedValue.length ? selectedValue[0] : null;\n } else {\n value = selectedValue.length ? selectedValue[0].value : null;\n }\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value });\n };\n\n const updateFilter = () => {\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n\n if (props.options.multiple) {\n // If multi select filter and all items unchecked,\n // If persistent filter, reset back to default value, else reset back to undefined\n if (internalFilterValue.value && (internalFilterValue.value as Array<unknown>)?.length === 0) {\n internalFilterValue.value =\n props.defaultValue !== null ? cachedDefaultSelectedListboxOptions.value : undefined;\n }\n\n let value: BentoListboxSelectedValue;\n if (props.options?.enableValueLabelPair) {\n value = internalFilterValue.value?.length ? internalFilterValue.value : null;\n } else {\n value = internalFilterValue.value?.length ? internalFilterValue.value?.map(({ value }) => value) : null;\n }\n emit(BentoFilterEvent.UPDATE, {\n ...cleanedProps,\n value,\n });\n return;\n }\n\n let value: BentoListboxSelectedValue;\n if (props.options?.enableValueLabelPair) {\n value = internalFilterValue.value.length ? internalFilterValue.value[0] : undefined;\n } else {\n value = internalFilterValue.value.length ? internalFilterValue.value[0].value : undefined;\n }\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = cachedSelectedListboxOptions.value;\n props.options?.onOpen?.();\n };\n\n const closeFilter = () => {\n // If the search term is set, reset it to \"empty\"\n if (searchTerm.value) {\n searchTerm.value = '';\n }\n };\n\n const resetFilter = () => {\n setCachedValues(cachedDefaultSelectedListboxOptions.value);\n internalFilterValue.value = cachedDefaultSelectedListboxOptions.value;\n updateFilter();\n };\n\n const clearFilter = () => {\n resetCache();\n internalFilterValue.value = [];\n updateFilter();\n };\n\n const appliedFiltersCount = computed(() => {\n // Don't show if no filter applied or peristent filter or not multiple select\n if (props.value == null || !props.options.multiple) {\n return null;\n }\n\n /*\n * Show amount of items selceted (props.value) or 'All' if all items selected\n */\n\n // If nested we need to get the correct count\n const allSelectableItemsCount = props.options.listboxItems?.reduce((acc, item) => {\n // eslint-disable-next-line no-param-reassign\n acc += item?.items?.length ? item.items.length : 1;\n return acc;\n }, 0);\n\n const selectedAmount = (props.value as Array<string | number>)?.length;\n\n if (selectedAmount === 1) {\n return null;\n }\n\n return selectedAmount === allSelectableItemsCount ? t('all') : selectedAmount;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * The Listbox filter displays a listbox of items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectFilter },\n * template: `\n * <bento-select-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./select-filter-button.scss\" />\n","<template>\n <bento-dropdown\n :model-value=\"internalFilterValue\"\n :items=\"options.listboxItems\"\n :search=\"options?.search\"\n :multiple=\"options?.multiple\"\n :static-categories=\"options?.staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :is-option-disabled=\"options.isOptionDisabled\"\n :dynamic-filtering=\"options?.dynamicFiltering ?? true\"\n :component-loading=\"options?.loading\"\n :empty-state=\"options?.emptyState\"\n :disabled=\"disabled\"\n :enable-value-label-pair=\"options?.enableValueLabelPair\"\n @update:model-value=\"onOptionSelected\"\n @open=\"() => options?.onOpen?.()\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, ref, toRef, useSlots, watch } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n\n // Composables\n import { useBaseFilter } from '../../../base-filter';\n\n // Types\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { BentoFilterEvent, type BentoSelectFilterOptions } from '../../../../filter-bar.types';\n\n // Utils\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const props = defineProps({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n *\n */\n defaultValue: {\n type: [String, Number, Array] as PropType<BentoListboxSelectedValue>,\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n *\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with.\n *\n * @default undefined\n */\n options: {\n type: Object as PropType<BentoSelectFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n *\n * @default undefined\n */\n value: {\n type: [String, Number, Array] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n });\n\n const { internalFilterValue } = useBaseFilter(toRef(props, 'value'), toRef(props, 'defaultValue'));\n\n const optionsRef = toRef(props, 'options');\n const itemsRef = ref(props.options.listboxItems);\n\n // We need to make sure to update the items if the consumer updates them manually\n watch(optionsRef, () => {\n itemsRef.value = optionsRef.value.listboxItems;\n });\n\n const noResultsMessage = computed(() => t('noFiltersMatchThisSearch') as string);\n\n const onOptionSelected = (selectedValue: BentoListboxSelectedValue) => {\n internalFilterValue.value = selectedValue;\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value: internalFilterValue.value });\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * The Listbox filter displays a listbox of items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectFilter },\n * template: `\n * <bento-select-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'select-filter-dropdown',\n };\n</script>\n","import type { PropType } from 'vue';\nimport type { BentoListboxSelectedValue } from '@/types/listbox';\nimport type { BentoSelectFilterOptions } from '@/components/filter-bar/filter-bar.types';\n\nexport const SelectFilterProps = {\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n *\n */\n defaultValue: {\n type: [String, Number, Array, Object] as PropType<BentoListboxSelectedValue>,\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n *\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with.\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n *\n * @default undefined\n */\n options: {\n type: Object as PropType<BentoSelectFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n *\n * @default undefined\n */\n value: {\n type: [String, Number, Array, Object] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n};\n\nexport default SelectFilterProps;\n","<template>\n <select-filter-dropdown\n v-if=\"onlySlot\"\n :disabled=\"disabled\"\n :default-value=\"defaultValue\"\n :field=\"field\"\n :label=\"label\"\n :options=\"options\"\n :value=\"value\"\n @input=\"onInput\"\n @update=\"onUpdate\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </select-filter-dropdown>\n\n <select-filter-button\n v-else\n :disabled=\"disabled\"\n :default-value=\"defaultValue\"\n :field=\"field\"\n :label=\"label\"\n :options=\"options\"\n :value=\"value\"\n @input=\"onInput\"\n @update=\"onUpdate\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </select-filter-button>\n</template>\n\n<script setup lang=\"ts\">\n import { SelectFilterButton, SelectFilterDropdown } from './components';\n import { useSlots } from 'vue';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n const slots = useSlots();\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n defineProps(SelectFilterProps);\n\n const onInput = (updatedProps: any) => emit('input', updatedProps);\n const onUpdate = (updatedProps: any) => emit('update', updatedProps);\n</script>\n\n<script lang=\"ts\">\n /**\n * The Listbox filter displays a listbox of items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectFilter },\n * template: `\n * <bento-select-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default {};\n</script>\n","<template>\n <filter-bar-button-group\n v-if=\"!onlySlot\"\n v-bento-tooltip-directive:[options?.tooltipPosition]=\"options?.tooltipText\"\n :skip-grouping=\"!internalValue\"\n >\n <filter-bar-button\n :aria-pressed=\"internalValue ? 'true' : 'false'\"\n :active=\"internalValue\"\n :disabled=\"disabled\"\n @click=\"toggleFilter\"\n >\n <div class=\"b-toggle-filter\">\n {{ label }}\n <checkmark-icon v-show=\"internalValue\" aria-hidden=\"true\" class=\"b-toggle-filter__checkmark\" />\n </div>\n </filter-bar-button>\n\n <filter-bar-button\n v-if=\"internalValue\"\n :aria-label=\"t('resetFilter', { filterName: label })\"\n :disabled=\"disabled\"\n :active=\"internalValue\"\n @click=\"resetFilter\"\n >\n <template #iconLeft>\n <cross-small-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n </filter-bar-button-group>\n\n <label v-else class=\"b-toggle-filter__only-slot\" :class=\"onlySlotConditionalClasses\">\n <checkbox-input\n :aria-labelledby=\"checkboxLabelId\"\n :aria-describedby=\"checkboxDescriptionId\"\n :disabled=\"disabled\"\n class=\"b-toggle-filter__checkbox\"\n :model-value=\"internalValue\"\n @update:model-value=\"onInput\"\n ></checkbox-input>\n <div class=\"b-toggle-filter__content\">\n <bento-typography :id=\"checkboxLabelId\" variant=\"title\" medium>{{ label }}</bento-typography>\n <bento-typography v-if=\"description\" :id=\"checkboxDescriptionId\">{{ description }}</bento-typography>\n </div>\n </label>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, watch } from 'vue';\n import { BentoTooltipDirective as vBentoTooltipDirective } from '@/directives/tooltip/tooltip';\n import { FilterBarButtonGroup } from '../filter-bar-button-group';\n import { FilterBarButton } from '../filter-bar-button';\n import { type BentoToggleFilterProps, type BentoToggleFilterValue } from './toggle-filter.types';\n import { CheckboxInput } from '@/internal/checkbox-input';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/utils/ts/generate-uid';\n import { useI18n } from '@/utils/ts/i18n';\n import CheckmarkIcon from '@adyen/ui-assets-icons-16/vue/checkmark';\n import CrossSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-small';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n /**\n * IDs used for the checkbox a11y\n */\n const checkboxLabelId = generateUid('toggle-filter-checkbox-label');\n const checkboxDescriptionId = generateUid('toggle-filter-checkbox-description');\n\n const props = defineProps({\n description: null,\n disabled: { type: Boolean, default: false },\n field: null,\n label: null,\n onlySlot: { type: Boolean, default: false },\n options: { default: undefined },\n value: { type: Boolean, default: false }\n});\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n /**\n * Toggle internal field in sync with props.value\n */\n const internalValue = ref<BentoToggleFilterValue>(props.value);\n watch(\n () => props.value,\n value => {\n internalValue.value = value;\n }\n );\n\n const onlySlotConditionalClasses = computed(() => ({\n 'b-toggle-filter__only-slot--disabled': props.disabled,\n }));\n\n /**\n * Used only for the checkbox.\n * Input emitted for the `all filters` modal\n * @param value new checkbox value\n */\n const onInput = (value: BentoToggleFilterValue) => {\n internalValue.value = value;\n emit('input', { ...props, value });\n };\n\n /**\n * Applies the filter.\n * Update emitted for the filter bar. Updates all props\n */\n const updateProps = () => {\n emit('update', { ...props, value: internalValue.value });\n };\n\n /**\n * Toggles filter with the main part (left side button)\n */\n const toggleFilter = () => {\n internalValue.value = !internalValue.value;\n updateProps();\n };\n\n /**\n * Resets filter with the main part (left side button).\n * Has no persistent filter functionality.\n */\n const resetFilter = () => {\n internalValue.value = false;\n updateProps();\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Toggle filter.\n *\n * @example\n * import { BentoToggleFilter } from './toggle-filter';\n *\n * export default {\n * components: { BentoToggleFilter },\n * template: `\n * <bento-toggle-filter\n * label=\"Toggle filter\"\n * field=\"toggle-filter\"\n * only-slot\n * disabled\n * :value=\"true\"\n * :tooltip-text=\"Tooltip text\"\n * tooltip-position=\"top\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-toggle-filter',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./toggle-filter.scss\" />\n","import BentoLoadingIndicator from '@/components/loading-indicator/loading-indicator.vue';\nimport BentoBooleanFilter from './components/boolean-filter/boolean-filter.vue';\nimport BentoCheckboxGroupFilter from './components/checkbox-group-filter/checkbox-group-filter.vue';\nimport BentoInputFilter from './components/input-filter/input-filter.vue';\nimport BentoRadioGroupFilter from './components/radio-group-filter/radio-group-filter.vue';\nimport BentoRangeFilter from './components/range-filter/range-filter.vue';\nimport BentoSelectFilter from './components/select-filter/select-filter.vue';\nimport BentoToggleFilter from './components/toggle-filter/toggle-filter.vue';\nimport { defineAsyncComponent } from 'vue';\n\nimport { type BentoAsyncFilterLoader } from './filter-bar-filter-components.types';\n\nconst defineAsyncFilter = (loader: BentoAsyncFilterLoader) =>\n defineAsyncComponent({\n loader,\n loadingComponent: BentoLoadingIndicator,\n delay: 200,\n timeout: 30_000,\n onError: (_, retry, fail, attempts) => (attempts <= 2 ? retry() : fail()),\n });\n\nexport const filterBarFilterComponents = {\n BentoBooleanFilter,\n BentoCheckboxGroupFilter,\n BentoDateFilter: defineAsyncFilter(() => import('./components/date-filter/date-filter.vue')),\n BentoDateRangeFilter: defineAsyncFilter(() => import('./components/date-range-filter/date-range-filter.vue')),\n BentoInputFilter,\n BentoInputWithDropdownFilter: defineAsyncFilter(\n () => import('./components/input-with-dropdown-filter/input-with-dropdown-filter.vue')\n ),\n BentoRadioGroupFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter: defineAsyncFilter(\n () => import('./components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue')\n ),\n BentoSelectCountryFilter: defineAsyncFilter(\n () => import('./components/select-filter/variants/select-country-filter/select-country-filter.vue')\n ),\n BentoSelectCurrencyFilter: defineAsyncFilter(\n () => import('./components/select-filter/variants/select-currency-filter/select-currency-filter.vue')\n ),\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter: defineAsyncFilter(\n () =>\n import('./components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue')\n ),\n BentoSelectTagFilter: defineAsyncFilter(\n () => import('./components/select-filter/variants/select-tag-filter/select-tag-filter.vue')\n ),\n BentoToggleFilter,\n};\n","import { computed, type Ref, ref, shallowRef, watch } from 'vue';\nimport { FixedScroller } from '@/internal';\nimport { type BentoFilterBarContainerSizeLayout } from '../../filter-bar.types';\nimport { useResizeObserver } from '@vueuse/core';\n\nconst SMALL_SIZE_THRESHOLD = 430;\nconst LARGE_SIZE_THRESHOLD = 700;\n\n/**\n * Calculates the layout of the filter bar based on the options provided by the user\n * for each container size. This allows to hot-swap the container component from a \"div\" to the \"Fixed Scroller\"\n * to display a \"one-line\" to a \"multi-line\" layout.\n *\n * Container sizes:\n * - Large: >700\n * - Medium: >430 & <700\n * - Small: <430\n *\n * @param target Container element that has the container-query and can be resized.\n * @param containerSizeLayoutOptions User layout options for each container size\n * @returns Components and their respective classes that allows to swap between a wrap container and the fixed scroller.\n */\nexport function useContainerSizeOptionsLayout(\n target: Ref<HTMLDivElement>,\n containerSizeLayoutOptions: Ref<BentoFilterBarContainerSizeLayout>\n) {\n /**\n * Stores the Component to be rendered (\"div\" or \"fixed-scroller\") and\n * the classes required for each component to work/display correctly.\n * Uses `shallowRef` because component definitions should not be made\n * deeply reactive (Vue 3.5+ warns about this and it can cause infinite\n * update loops when the component's reactive proxy is rendered).\n */\n const screenLayoutComponent = shallowRef<'div' | typeof FixedScroller>('div');\n\n /**\n * Indicates if the layout is one-line based on the current\n * container size and the \"containerSizeLayoutOptions\" prop\n */\n const isOneLineLayout = ref(false);\n\n /**\n * Stores the container width.\n * Updated when the resize event on \"target\" happens\n */\n const containerWidth = ref<number>(0);\n\n /**\n * Indicates if the search bar should be inside or outside the \"Fixed scroller\".\n * Only needed for the \"Small\" size.\n *\n * Always indicates that the search bar should be inside the container.\n * Only outside if \"small\" & \"multi-line\".\n */\n const showSearchbarInsideContainer = computed<boolean>(() => {\n if (containerWidth.value < SMALL_SIZE_THRESHOLD && containerSizeLayoutOptions.value.small === 'multi-line') {\n return false;\n }\n\n return true;\n });\n\n /**\n * Sets the configuration (Component & classes)\n * required for the \"multi-line\" layout.\n */\n function setMultiLineConfig() {\n isOneLineLayout.value = false;\n screenLayoutComponent.value = 'div';\n }\n\n /**\n * Sets the configuration (Component & classes)\n * required for the \"one-line\" layout\n */\n function setOneLineConfig() {\n isOneLineLayout.value = true;\n screenLayoutComponent.value = FixedScroller;\n }\n\n /**\n * Sets the configuration required for given the current\n * container size (Large, Medium, Small)\n */\n function calculateConfig() {\n if (containerWidth.value >= LARGE_SIZE_THRESHOLD) {\n // Large screen: customizable, defaults to multi-line\n if (containerSizeLayoutOptions.value?.large === 'one-line') {\n setOneLineConfig();\n } else {\n setMultiLineConfig();\n }\n } else if (containerWidth.value >= SMALL_SIZE_THRESHOLD) {\n // Medium screen: customizable, defaults to one-line\n if (containerSizeLayoutOptions.value?.medium === 'multi-line') {\n setMultiLineConfig();\n } else {\n setOneLineConfig();\n }\n } else {\n // Small screen: always one-line (the \"small\" prop only controls search bar placement)\n setOneLineConfig();\n }\n }\n\n /**\n * Allows the component to be reactive.\n * It updates configuration if the options are changed.\n */\n watch(() => containerSizeLayoutOptions.value, calculateConfig);\n\n useResizeObserver(target, entries => {\n // Observing only one entry.\n // Updated every time a resize occurs\n containerWidth.value = entries[0].contentRect.width;\n\n // Calculate the config based on the new width.\n calculateConfig();\n });\n\n const isLargeLayout = computed(() => containerWidth.value >= LARGE_SIZE_THRESHOLD);\n const rootElementConditionalClasses = computed(() => ({ 'b-filter-bar--large-layout': isLargeLayout.value }));\n\n return {\n screenLayoutComponent,\n showSearchbarInsideContainer,\n isOneLineLayout,\n isLargeLayout,\n rootElementConditionalClasses,\n };\n}\n","import type { BentoFilterBarFilterWithValue, BentoFilterModel } from '../../filter-bar.types';\n\nexport enum AllFiltersModalEvent {\n INPUT = 'input',\n}\n\nexport interface BentoAllFiltersModalSelectedFilter extends BentoFilterBarFilterWithValue {\n labelId: string;\n}\n\nexport type BentoAllFiltersModalGetFilterCount = (filter: BentoFilterModel) => string | number | null;\n\nexport interface BentoAllFiltersModalButtonInstance {\n $el: HTMLElement;\n}\n\nexport interface BentoAllFiltersModalFilterSelectionInstance {\n focusFilter: (label: string) => void;\n}\n\nexport interface BentoAllFiltersModalSelectedFilterContentInstance {\n focusFirstInput: () => void;\n}\n\nexport interface BentoAllFiltersModalSelectedFilterInstance {\n $el: HTMLElement;\n}\n","<template>\n <base-button\n ref=\"baseFilterButtonRef\"\n class=\"b-base-filter-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"ariaAttributes['aria-controls']\"\n type=\"button\"\n @click=\"onClickButton\"\n >\n <div class=\"b-base-filter-button__default-container\">\n <div class=\"b-base-filter-button__label-container\">\n <bento-typography el=\"span\" variant=\"body\" :stronger=\"bold\" class=\"b-base-filter-button__label\">\n <slot />\n </bento-typography>\n </div>\n\n <div v-if=\"amountAppliedValues && !hasChevron\" class=\"b-base-filter-button__counter-wrapper\">\n <bento-typography class=\"b-base-filter-button__counter\" el=\"span\" variant=\"body\" stronger>\n {{ amountAppliedValues }}\n </bento-typography>\n </div>\n </div>\n <template v-if=\"hasChevron\" #iconRight>\n <chevron-up-icon v-if=\"isFilterOpen\" aria-hidden=\"true\" />\n <chevron-down-icon v-else aria-hidden=\"true\" />\n </template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useHasSlot } from '@/composables';\n import { computed, defineComponent, ref } from 'vue';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n\n /**\n * A filter button used as a base to extend all sorts of filter buttons.\n * Used in the bento-filter-bar and all-filter-modals components.\n *\n * @usage\n * export default {\n * components: { BaseFilterButton },\n * template: `\n * <base-filter-button disabled>\n * Filter\n * </base-filter-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'base-filter-button',\n components: { BaseButton, BentoTypography, ChevronUpIcon, ChevronDownIcon },\n props: {\n /**\n * The number of applies values within the filter.\n * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.\n */\n amountAppliedValues: { type: [Number, String], default: null },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Signifies if the filter is open or closed.\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Toggles if a chevron icon should be displayed in the button.\n * The chevron will change depending on the open state of the filter.\n */\n hasChevron: { type: Boolean, default: false },\n\n /**\n * Renders the text in a stronger variant.\n */\n bold: { type: Boolean, default: false },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { slots, emit, attrs }) {\n const labelSlot = computed((): string => (slots.default ? getSlotText(slots)('default') : null));\n const computedAriaLabel = useAriaLabel({ ariaLabel: labelSlot });\n const baseFilterButtonRef = ref(null);\n\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n }));\n\n const conditionalClasses = computed(() => ({\n [`b-base-filter-button--with-chevron`]: props.hasChevron,\n [`b-base-filter-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClickButton = () => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK);\n }\n };\n\n return {\n // Values\n ariaAttributes,\n computedAriaLabel,\n conditionalClasses,\n\n // Methods\n onClickButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n baseFilterButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter-button.scss\" />\n","<template>\n <base-filter-button\n class=\"b-all-filters-modal-button\"\n :class=\"conditionalClasses\"\n :amount-applied-values=\"appliedFiltersCount\"\n :is-filter-open=\"isFilterOpen\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n {{ label }}\n </base-filter-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import BaseFilterButton from '../../../base-filter-button/base-filter-button.vue';\n\n export default defineComponent({\n name: 'all-filters-modal-button',\n components: { BaseFilterButton },\n props: {\n /**\n * Button label to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: [Number, String], default: null },\n\n /**\n * Indicates whether the filter popover tied to this button is showing\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n },\n emits: ['click'],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-all-filters-modal-button--with-counter`]: props.appliedFiltersCount,\n [`b-all-filters-modal-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n conditionalClasses,\n\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal-button.scss\" />\n","<template>\n <div\n class=\"b-all-filters-modal-filter-selection\"\n :class=\"conditionalClasses\"\n @keydown.right=\"$emit('keydown-right')\"\n >\n <bento-search-bar\n class=\"b-all-filters-modal-filter-selection__search-bar\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n @input=\"$emit('update:search-term', $event)\"\n @clear=\"$emit('clear-search')\"\n />\n <div v-if=\"emptySearchMessage\" class=\"b-all-filters-modal-filter-selection__empty-search-message\">\n <bento-typography el=\"span\">{{ emptySearchMessage }}</bento-typography>\n </div>\n <div v-if=\"activeFilters.length\" class=\"b-all-filters-modal-filter-selection__filters-section\">\n <bento-typography\n :id=\"`active-filters-${screenIdPrefix}${uniqueId}`\"\n class=\"b-all-filters-modal-filter-selection__filters-section-title\"\n el=\"span\"\n variant=\"caption\"\n >\n {{ activeFiltersLabel }}\n </bento-typography>\n <ul\n class=\"b-all-filters-modal-filter-selection__filters-list\"\n :aria-labelledby=\"`active-filters-${screenIdPrefix}${uniqueId}`\"\n >\n <li v-for=\"item in activeFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"element => setFilterButtonRef(element, item.label)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item)\"\n :is-filter-open=\"!smallScreen && selectedFilterLabel === item.label\"\n :disabled=\"item.disabled\"\n @click=\"$emit('select-filter', item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n <div v-if=\"otherFilters.length\" class=\"b-all-filters-modal-filter-selection__filters-section\">\n <bento-typography\n v-if=\"activeFilters.length\"\n :id=\"`other-filters-${screenIdPrefix}${uniqueId}`\"\n class=\"b-all-filters-modal-filter-selection__filters-section-title\"\n el=\"span\"\n variant=\"caption\"\n >\n {{ otherFiltersLabel }}\n </bento-typography>\n <ul\n class=\"b-all-filters-modal-filter-selection__filters-list\"\n :aria-labelledby=\"`other-filters-${screenIdPrefix}${uniqueId}`\"\n >\n <li v-for=\"item in otherFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"element => setFilterButtonRef(element, item.label)\"\n :label=\"item.label\"\n :disabled=\"item.disabled\"\n :applied-filters-count=\"getFilterCount(item)\"\n :is-filter-open=\"!smallScreen && selectedFilterLabel === item.label\"\n @click=\"$emit('select-filter', item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n <bento-button-actions\n v-if=\"smallScreen\"\n class=\"b-all-filters-modal-filter-selection__actions\"\n :actions=\"actions\"\n layout=\"vertical-stack\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onBeforeUpdate, ref } from 'vue';\n\n import { BentoButtonActions } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import BentoSearchBar from '@/components/search-bar/search-bar.vue';\n\n import { type BentoAllFiltersModalButtonInstance } from '../../all-filters-modal.types';\n import AllFiltersModalButton from '../all-filters-modal-button/all-filters-modal-button.vue';\n import {\n type BentoAllFiltersModalFilterSelectionEmits,\n type BentoAllFiltersModalFilterSelectionProps,\n } from './all-filters-modal-filter-selection.types';\n\n const props = defineProps({\n activeFilters: null,\n actions: { default: () => [] },\n activeFiltersLabel: null,\n emptySearchMessage: { default: '' },\n getFilterCount: { type: Function },\n otherFilters: null,\n otherFiltersLabel: null,\n selectedFilterLabel: null,\n searchBarAriaLabel: null,\n searchTerm: null,\n smallScreen: { type: Boolean, default: false },\n uniqueId: null\n});\n\n defineEmits([\"clear-search\", \"keydown-right\", \"select-filter\", \"update:search-term\"]);\n\n const conditionalClasses = computed(() => ({\n 'b-all-filters-modal-filter-selection--small-screen': props.smallScreen,\n }));\n\n const filterButtons = ref<Record<string, BentoAllFiltersModalButtonInstance>>({});\n\n const screenIdPrefix = computed(() => (props.smallScreen ? 'small-screen-' : ''));\n\n onBeforeUpdate(() => {\n filterButtons.value = {};\n });\n\n const setFilterButtonRef = (element: BentoAllFiltersModalButtonInstance | null, label: string) => {\n if (element) {\n filterButtons.value[label] = element;\n }\n };\n\n const focusFilter = (label: string) => {\n filterButtons.value[label]?.$el?.focus();\n };\n\n defineExpose({ focusFilter });\n</script>\n\n<script lang=\"ts\">\n export default {\n name: 'all-filters-modal-filter-selection',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal-filter-selection.scss\" />\n","<template>\n <div class=\"b-all-filters-modal-selected-filter\" :class=\"conditionalClasses\" @keydown.left=\"$emit('keydown-left')\">\n <div v-if=\"smallScreen || shouldShowFilterTitle\" class=\"b-all-filters-modal-selected-filter__text\">\n <bento-typography :id=\"selectedFilter.labelId\" el=\"div\" variant=\"title\" medium>\n {{ selectedFilter.label }}\n </bento-typography>\n <bento-typography v-if=\"selectedFilter.description\" el=\"div\" variant=\"body\" wide>\n {{ selectedFilter.description }}\n </bento-typography>\n </div>\n <div ref=\"selectedFilterRef\" class=\"b-all-filters-modal-selected-filter__component\">\n <component\n :is=\"selectedFilter.type\"\n :key=\"selectedFilter.field\"\n :description=\"selectedFilter.description\"\n :field=\"selectedFilter.field\"\n :label=\"selectedFilter.label\"\n :options=\"selectedFilter.options\"\n :value=\"selectedFilter.value\"\n :default-value=\"selectedFilter.defaultValue\"\n :only-slot=\"true\"\n :disabled=\"selectedFilter.disabled\"\n :aria-labelledby=\"selectedFilter.labelId\"\n @input=\"$emit('input', $event)\"\n />\n </div>\n <bento-button-actions\n v-if=\"smallScreen\"\n class=\"b-all-filters-modal-selected-filter__actions\"\n :actions=\"actions\"\n layout=\"vertical-stack\"\n />\n <div v-else class=\"b-all-filters-modal-selected-filter__clear-button\">\n <bento-button variant=\"secondary\" :disabled=\"isClearButtonDisabled\" @click=\"$emit('clear')\">\n {{ clearButtonLabel }}\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, ref, watch } from 'vue';\n\n import { BentoButton, BentoButtonActions, type BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n\n import { useEventListener, useMutationObserver } from '@vueuse/core';\n import { getFocusableIn } from 'focus-lock';\n\n import { type BentoFilterModel } from '@/components/filter-bar/filter-bar.types';\n import { type BentoAllFiltersModalSelectedFilter } from '../../all-filters-modal.types';\n\n const props = defineProps({\n actions: { default: () => [] },\n clearButtonLabel: null,\n isClearButtonDisabled: { type: Boolean },\n selectedFilter: null,\n smallScreen: { type: Boolean, default: false },\n shouldShowFilterTitle: { type: Boolean }\n});\n\n defineEmits([\"clear\", \"input\", \"keydown-left\"]);\n\n const conditionalClasses = computed(() => ({\n 'b-all-filters-modal-selected-filter--small-screen': props.smallScreen,\n }));\n\n const selectedFilterRef = ref<HTMLElement | null>(null);\n // Element holding the focus while waiting for the filter to render, `null` when nothing is pending.\n let pendingFocusSource: Element | null = null;\n\n const getFirstFocusable = () => {\n const selectedFilterElement = selectedFilterRef.value;\n return selectedFilterElement\n ? getFocusableIn(selectedFilterElement).find(({ node }) => node !== selectedFilterElement)\n : undefined;\n };\n\n const focusPendingInput = () => {\n if (!pendingFocusSource || pendingFocusSource !== document.activeElement) {\n return;\n }\n\n const firstFocusable = getFirstFocusable();\n if (firstFocusable) {\n pendingFocusSource = null;\n firstFocusable.node.focus();\n }\n };\n\n const focusFirstInput = () => {\n const firstFocusable = getFirstFocusable();\n // Async filters render after the focus is requested, so the focus is retried once they appear.\n pendingFocusSource = firstFocusable ? null : document.activeElement;\n firstFocusable?.node.focus();\n };\n\n const cancelPendingFocus = () => {\n pendingFocusSource = null;\n };\n\n // Initialize after mount so VueUse observes the populated template ref before an async filter renders.\n onMounted(() => useMutationObserver(selectedFilterRef, focusPendingInput, { childList: true, subtree: true }));\n\n useEventListener(document, 'focusin', () => {\n if (document.activeElement !== pendingFocusSource) {\n cancelPendingFocus();\n }\n });\n\n watch(() => props.selectedFilter.field, cancelPendingFocus);\n\n defineExpose({ focusFirstInput });\n</script>\n\n<script lang=\"ts\">\n import { filterBarFilterComponents } from '@/components/filter-bar/filter-bar-filter-components';\n\n export default {\n name: 'all-filters-modal-selected-filter',\n components: filterBarFilterComponents,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal-selected-filter.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H1.25V6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14.75V4.58337H12.6465ZM11.25 5.33337C11.25 6.02373 10.6904 6.58337 10 6.58337C9.30964 6.58337 8.75 6.02373 8.75 5.33337C8.75 4.64302 9.30964 4.08337 10 4.08337C10.6904 4.08337 11.25 4.64302 11.25 5.33337Z\"/><path fill=\"#001222\" d=\"M4 7.91687C5.25878 7.91687 6.32002 8.76262 6.64648 9.91687H14.75V11.4169H6.64648C6.32002 12.5711 5.25878 13.4169 4 13.4169C2.48122 13.4169 1.25 12.1857 1.25 10.6669C1.25 9.14809 2.48122 7.91687 4 7.91687ZM5.25 10.6669C5.25 9.97651 4.69036 9.41687 4 9.41687C3.30964 9.41687 2.75 9.97651 2.75 10.6669C2.75 11.3572 3.30964 11.9169 4 11.9169C4.69036 11.9169 5.25 11.3572 5.25 10.6669Z\"/></svg>\n</template>\n<script setup>\n import { getCurrentInstance } from 'vue';\n import '../css/main.css';\n\n const instance = getCurrentInstance();\n const uuid = String(instance?.uid ?? instance?.proxy?._uid);\n</script>\n","<template>\n <div class=\"b-all-filters-modal\">\n <filter-bar-button\n :is-filter-open=\"isModalOpen\"\n :applied-filters-count=\"numberOfActiveFilters\"\n no-applied-state-styles\n @click=\"onClickAllFiltersModal\"\n >\n {{ t('allFilters') }}\n\n <template #iconLeft>\n <sliders-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n <bento-modal\n v-if=\"!isSmallScreen\"\n class=\"b-all-filters-modal__modal\"\n :is-open=\"isModalOpen\"\n :with-column-layout=\"true\"\n size=\"large\"\n :actions=\"modalActions\"\n :is-dismissible=\"false\"\n hide-close-button\n @close-modal=\"cancel\"\n >\n <template #default>\n {{ t('allFilters') }}\n </template>\n <template #content-col-1>\n <all-filters-modal-filter-selection\n ref=\"filterSelectionRef\"\n :active-filters=\"activeFilters\"\n :actions=\"modalActions\"\n :active-filters-label=\"t('activeFilters')\"\n :empty-search-message=\"isEmptyResultForSearchFilter ? t('noFiltersMatchThisSearch') : ''\"\n :get-filter-count=\"getFilterCount\"\n :other-filters=\"otherFilters\"\n :other-filters-label=\"t('otherFilters')\"\n :search-bar-aria-label=\"t('searchBar')\"\n :search-term=\"searchTerm\"\n :selected-filter-label=\"selectedFilter.label\"\n :unique-id=\"allFiltersModalUniqueId\"\n @clear-search=\"onSearchbarClear\"\n @keydown-right=\"onKeydownRight\"\n @select-filter=\"selectFilter\"\n @update:search-term=\"searchTerm = $event\"\n />\n </template>\n <template #content-col-2>\n <all-filters-modal-selected-filter\n ref=\"selectedFilterContentRef\"\n :actions=\"modalActions\"\n :clear-button-label=\"t(isSelectedFilterPersistent ? 'reset' : 'clear')\"\n :is-clear-button-disabled=\"isClearButtonDisabled\"\n :selected-filter=\"selectedFilter\"\n :should-show-filter-title=\"shouldShowFilterTitle\"\n @clear=\"clearSelectedFilter\"\n @input=\"updateFilter\"\n @keydown-left=\"onKeydownLeft\"\n />\n </template>\n </bento-modal>\n <bento-modal-fullscreen\n v-else\n class=\"b-all-filters-modal__modal b-all-filters-modal__modal--small-screen\"\n :active-page=\"smallScreenActivePage\"\n :is-open=\"isModalOpen\"\n @before-close=\"cancel\"\n @update:active-page=\"smallScreenActivePage = $event\"\n >\n <bento-modal-fullscreen-page\n :page-id=\"FILTER_SELECTION_PAGE_ID\"\n :previous-page=\"null\"\n :title=\"t('allFilters')\"\n >\n <all-filters-modal-filter-selection\n :active-filters=\"activeFilters\"\n :actions=\"modalActions\"\n :active-filters-label=\"t('activeFilters')\"\n :empty-search-message=\"isEmptyResultForSearchFilter ? t('noFiltersMatchThisSearch') : ''\"\n :get-filter-count=\"getFilterCount\"\n :other-filters=\"otherFilters\"\n :other-filters-label=\"t('otherFilters')\"\n :search-bar-aria-label=\"t('searchBar')\"\n :search-term=\"searchTerm\"\n :selected-filter-label=\"selectedFilter.label\"\n :unique-id=\"allFiltersModalUniqueId\"\n small-screen\n @clear-search=\"onSearchbarClear\"\n @select-filter=\"selectFilter\"\n @update:search-term=\"searchTerm = $event\"\n />\n </bento-modal-fullscreen-page>\n <bento-modal-fullscreen-page\n :page-id=\"FILTER_APPLICATION_PAGE_ID\"\n :previous-page=\"FILTER_SELECTION_PAGE_ID\"\n :title=\"t('allFilters')\"\n >\n <all-filters-modal-selected-filter\n :actions=\"modalActions\"\n :clear-button-label=\"t(isSelectedFilterPersistent ? 'reset' : 'clear')\"\n :is-clear-button-disabled=\"isClearButtonDisabled\"\n :selected-filter=\"selectedFilter\"\n :should-show-filter-title=\"shouldShowFilterTitle\"\n small-screen\n @input=\"updateFilter\"\n />\n </bento-modal-fullscreen-page>\n </bento-modal-fullscreen>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, toRef, watch } from 'vue';\n import { useMediaQuery } from '@vueuse/core';\n\n import { type BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoModalFullscreen, BentoModalFullscreenPage } from '@/components/modal-fullscreen';\n import BentoModal from '@/components/modal/modal.vue';\n import { useSearchBarFilter } from '@/components/search-bar';\n\n import { generateUid } from '@/utils/ts/generate-uid';\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n type BentoFilterBarFiltersWithValues,\n type BentoFilterBarFilterWithValue,\n BentoFilterItemType,\n type BentoSelectFilterOptions,\n } from '@/components/filter-bar/filter-bar.types';\n import { FilterBarButton } from '../filter-bar-button';\n import {\n AllFiltersModalEvent,\n type BentoAllFiltersModalFilterSelectionInstance,\n type BentoAllFiltersModalSelectedFilterContentInstance,\n } from './all-filters-modal.types';\n import AllFiltersModalFilterSelection from './components/all-filters-modal-filter-selection/all-filters-modal-filter-selection.vue';\n import AllFiltersModalSelectedFilter from './components/all-filters-modal-selected-filter/all-filters-modal-selected-filter.vue';\n import SlidersIcon from '@adyen/ui-assets-icons-16/vue/sliders-1';\n import { type BentoCheckboxGroupFilterOptions } from '../checkbox-group-filter';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const FILTER_SELECTION_PAGE_ID = 'filter-selection';\n const FILTER_APPLICATION_PAGE_ID = 'filter-application';\n\n const props = defineProps({\n value: { default: () => [] }\n});\n\n const emit = defineEmits([AllFiltersModalEvent.INPUT]);\n\n const filtersInModal = ref<BentoFilterBarFiltersWithValues>(props.value);\n const allFiltersModalUniqueId = generateUid('all-filters-modal');\n const filterSelectionRef = ref<BentoAllFiltersModalFilterSelectionInstance | null>(null);\n const isModalOpen = ref(false);\n const selectedFilterIndex = ref(0);\n const selectedFilterContentRef = ref<BentoAllFiltersModalSelectedFilterContentInstance | null>(null);\n const searchTerm = ref<string>('');\n const smallScreenActivePage = ref(FILTER_SELECTION_PAGE_ID);\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n const isSmallScreen = useMediaQuery('(max-width: 599px)');\n const filteredItems = useSearchBarFilter<BentoFilterBarFilterWithValue>(searchTerm, toRef(filtersInModal, 'value'));\n\n watch(\n () => props.value,\n () => {\n /**\n * Values need to be preserve when the modal is opened given that\n * when the \"select\" filter is enabled with external filtering inside the modal\n * the \"searchTerm\" gets reset and doing so resets all the unsaved values of the array\n */\n if (isModalOpen.value) {\n filtersInModal.value = props.value.map((filter, index) => {\n return { ...filter, value: filtersInModal.value[index].value };\n });\n } else {\n filtersInModal.value = props.value;\n }\n }\n );\n\n const sortAlphabetically = (array: BentoFilterBarFiltersWithValues) =>\n array.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n\n const activeFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value) ? el.value?.length && el.value?.find(item => item !== '') : el.value\n )\n )\n );\n\n const otherFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value) ? el.value?.length === 0 || el.value?.every(item => item === '') : !el.value\n )\n )\n );\n\n const isEmptyResultForSearchFilter = computed(() => searchTerm.value && filteredItems.value?.length === 0);\n\n const selectedFilter = computed(() => ({\n ...filtersInModal.value[selectedFilterIndex.value],\n labelId: generateUid(filtersInModal.value[selectedFilterIndex.value]?.field),\n }));\n\n const selectOpenedFilter = () => {\n const openedFilter = activeFilters.value.length ? activeFilters.value[0] : otherFilters.value[0];\n const openedFilterIndex = filtersInModal.value.findIndex(\n el => el.label === openedFilter.label && el.field === openedFilter.field\n );\n selectedFilterIndex.value = openedFilterIndex;\n };\n\n watch(\n () => isModalOpen.value,\n isOpen => {\n if (isOpen) {\n selectOpenedFilter();\n }\n }\n );\n\n const computeCounts = (filterValue: BentoFilterBarFiltersWithValues) =>\n filterValue.map(filter => {\n switch (filter.type) {\n case BentoFilterItemType.SELECT:\n case BentoFilterItemType.SELECT_AVATAR:\n case BentoFilterItemType.SELECT_COUNTRY:\n case BentoFilterItemType.SELECT_CURRENCY:\n case BentoFilterItemType.SELECT_PAYMENT_METHOD:\n case BentoFilterItemType.SELECT_TAG:\n switch ((filter.options as BentoSelectFilterOptions)?.multiple) {\n case true:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string | number>)?.length\n ? (filter.value as Array<string | number>)?.length\n : null,\n };\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value == null ? null : 1,\n };\n }\n case BentoFilterItemType.DATE_RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count:\n (filter.value as BentoDateRangePickerValue)?.startDate != null &&\n (filter.value as BentoDateRangePickerValue)?.endDate != null\n ? 1\n : null,\n };\n case BentoFilterItemType.RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string>)?.find(el => el !== '') ? 1 : null,\n };\n case BentoFilterItemType.CHECKBOX_GROUP:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string | number>)?.length\n ? (filter.value as Array<string | number>)?.length\n : null,\n };\n case BentoFilterItemType.TOGGLE:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value ? 1 : null,\n };\n case BentoFilterItemType.INPUT:\n case BentoFilterItemType.BOOLEAN:\n case BentoFilterItemType.DATE:\n case BentoFilterItemType.RADIO_GROUP:\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value != null ? 1 : null,\n };\n }\n });\n\n const selectedFilterValue = computed(() => selectedFilter.value.value);\n\n const hasValueSelected = computed(() =>\n Array.isArray(selectedFilterValue.value)\n ? selectedFilterValue.value.length && selectedFilterValue.value.find(item => item !== '')\n : !!selectedFilterValue.value\n );\n\n const hasPersistentFilters = computed(() =>\n filtersInModal.value.some(({ defaultValue }) => defaultValue !== undefined)\n );\n\n const isSelectedFilterPersistent = computed(() => selectedFilter.value.defaultValue !== undefined);\n\n /**\n * Hides filter title if the selected filter is Toggle.\n * The Toggle filter shows a checkbox next to the \"title\".\n */\n const shouldShowFilterTitle = computed(() => {\n return selectedFilter.value.type !== BentoFilterItemType.TOGGLE;\n });\n\n const isClearButtonDisabled = computed(\n () =>\n selectedFilter.value.disabled ||\n (isSelectedFilterPersistent.value\n ? JSON.stringify(selectedFilter.value.value) === JSON.stringify(selectedFilter.value.defaultValue)\n : !hasValueSelected.value)\n );\n\n const filtersIncludedInActiveCount = computed(() =>\n props.value.filter(\n filter =>\n filter.defaultValue === undefined ||\n (filter.visible === false && JSON.stringify(filter.value) !== JSON.stringify(filter.defaultValue))\n )\n );\n\n const numberOfActiveFilters = computed(\n () => computeCounts(filtersIncludedInActiveCount.value)?.filter(({ count }) => !!count).length\n );\n\n const onClickAllFiltersModal = () => {\n if (!isModalOpen.value) {\n smallScreenActivePage.value = FILTER_SELECTION_PAGE_ID;\n isModalOpen.value = true;\n } else {\n isModalOpen.value = false;\n }\n };\n\n const filterCounts = computed(\n () => new Map(computeCounts(filtersInModal.value).map(({ field, count }) => [field, count]))\n );\n\n const getFilterCount = (filter: BentoFilterBarFilterWithValue) => {\n const filterCount = filterCounts.value.get(filter.field);\n\n const isBentoSelectFilter =\n typeof filter.type === 'string' && // Type guard to avoid casting\n filter.type.includes('BentoSelect') &&\n (filter.options as BentoSelectFilterOptions)?.multiple &&\n filterCount === (filter.options as BentoSelectFilterOptions)?.listboxItems?.length;\n\n const isBentoCheckboxGroupFilter =\n typeof filter.type === 'string' &&\n filter.type === BentoFilterItemType.CHECKBOX_GROUP &&\n filterCount === (filter.options as BentoCheckboxGroupFilterOptions)?.checkboxItems?.length;\n\n if (isBentoSelectFilter || isBentoCheckboxGroupFilter) {\n return t('all');\n }\n return filterCount == null ? null : n(filterCount);\n };\n\n const selectFilter = (filterLabel: string, filterField: string) => {\n selectedFilterIndex.value = filtersInModal.value.findIndex(\n el => el.label === filterLabel && el.field === filterField\n );\n if (isSmallScreen.value) {\n smallScreenActivePage.value = FILTER_APPLICATION_PAGE_ID;\n }\n };\n\n const onSearchbarClear = () => {\n searchTerm.value = '';\n };\n\n const cancel = () => {\n isModalOpen.value = false;\n filtersInModal.value = props.value;\n onSearchbarClear();\n };\n\n const updateFilter = (updatedFilter: BentoFilterBarFilterWithValue) => {\n const updatedFilters = filtersInModal.value.map(({ value, ...otherFields }, index) => {\n if (index === selectedFilterIndex.value) {\n return { value: updatedFilter.value, ...otherFields };\n }\n return { value, ...otherFields };\n });\n\n filtersInModal.value = updatedFilters;\n };\n\n const clearSelectedFilter = () => {\n updateFilter({\n field: selectedFilter.value.field,\n label: selectedFilter.value.label,\n type: selectedFilter.value.type,\n value: isSelectedFilterPersistent.value ? selectedFilter.value.defaultValue : undefined,\n });\n };\n\n const clearAll = () => {\n filtersInModal.value = props.value.map(filter => ({\n ...filter,\n value: filter.defaultValue,\n }));\n };\n\n const applyAll = () => {\n emit(AllFiltersModalEvent.INPUT, filtersInModal.value);\n isModalOpen.value = false;\n smallScreenActivePage.value = FILTER_SELECTION_PAGE_ID;\n };\n\n const isApplyAllButtonDisabled = computed(\n () => JSON.stringify(filtersInModal.value) === JSON.stringify(props.value)\n );\n\n const isClearAllButtonDisabled = computed(() =>\n hasPersistentFilters.value\n ? filtersInModal.value.every(filter => JSON.stringify(filter.value) === JSON.stringify(filter.defaultValue))\n : !numberOfActiveFilters.value\n );\n\n const modalActions = computed(() => [\n {\n title: t('applyAll'),\n disabled: isApplyAllButtonDisabled.value,\n event: applyAll,\n },\n\n {\n title: t('cancel'),\n event: cancel,\n },\n {\n title: t(hasPersistentFilters.value ? 'resetAll' : 'clearAll'),\n disabled: isClearAllButtonDisabled.value,\n event: clearAll,\n },\n ]);\n\n const onKeydownRight = () => {\n selectedFilterContentRef.value?.focusFirstInput();\n };\n\n const onKeydownLeft = () => {\n filterSelectionRef.value?.focusFilter(selectedFilter.value.label);\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A modal that acts as sort of filter manager for the BentoFilterBar.\n *\n * @example\n * import { BentoAllFiltersModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAllFiltersModal },\n * template: `\n * <bento-all-filters-modal>\n * ...Example code of the component\n * </bento-all-filters-modal>\n * `\n * }\n */\n export default {\n name: 'all-filters-modal',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal.scss\" />\n","<template>\n <div ref=\"filterBarRef\" class=\"b-filter-bar\" :class=\"rootElementConditionalClasses\">\n <div v-if=\"!showSearchbarInsideContainer && isSearchBarEnabled\" class=\"b-filter-bar__search-external-container\">\n <bento-search-bar\n class=\"b-filter-bar__search-bar\"\n v-bind=\"searchBarProps\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n condensed\n :style=\"searchBarWidthStyle\"\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\n </div>\n\n <component :is=\"screenLayoutComponent\" :class=\"containerConditionalClasses\" condensed>\n <div :class=\"contentConditionalClasses\">\n <div\n v-if=\"showSearchbarInsideContainer && isSearchBarEnabled\"\n class=\"b-filter-bar__search-bar-container\"\n :style=\"searchBarWidthStyle\"\n >\n <bento-search-bar\n class=\"b-filter-bar__search-bar\"\n v-bind=\"searchBarProps\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n condensed\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\n </div>\n\n <template v-if=\"persistentFilters.length\">\n <component\n :is=\"filter.type\"\n v-for=\"filter in persistentFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :disabled=\"filter?.disabled\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n :default-value=\"filter.defaultValue\"\n @update=\"updateFilterHandler\"\n />\n </template>\n\n <component\n :is=\"filter.type\"\n v-for=\"filter in regularFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :disabled=\"filter?.disabled\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n @update=\"updateFilterHandler\"\n />\n\n <!-- All filters button -->\n <all-filters-modal\n v-if=\"hasHiddenFilters\"\n class=\"b-filter-bar__all-filters-modal\"\n :value=\"filtersInAllFiltersModal\"\n @input=\"updateFilterHandler\"\n />\n\n <!-- Clear all filters button -->\n <filter-bar-button v-if=\"isClearAllVisible\" class=\"b-filter-bar__clear-all\" @click=\"clearAllFilters\">\n {{ t('clearFilters') }}\n <template #iconLeft>\n <refresh-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n\n <!-- Reset all filters button -->\n <filter-bar-button v-if=\"isResetAllVisible\" class=\"b-filter-bar__reset-all\" @click=\"resetAllFilters\">\n {{ t('resetFilters') }}\n <template #iconLeft>\n <refresh-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n </div>\n </component>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { FilterBarButton } from './components/filter-bar-button';\n import {\n type BentoFilterBarContainerSizeLayout,\n BentoFilterBarEvent,\n type BentoFilterBarFiltersWithValues,\n type BentoFilterBarFilterWithValue,\n type BentoFilterBarProps,\n } from './filter-bar.types';\n import BentoSearchBar from '@/components/search-bar/search-bar.vue';\n import { BentoSearchBarEvent } from '@/components/search-bar/search-bar.types';\n import { useBentoToastController } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { useContainerSizeOptionsLayout } from './composables/use-container-size-options-layout/use-container-size-options-layout';\n import AllFiltersModal from './components/all-filters-modal/all-filters-modal.vue';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n // TODO: setup Vue3 generics in Bento 2.0.0\n const props = defineProps({\n config: { default: () => [] },\n filterValues: { default: () => [] },\n containerSizeLayout: { default: null },\n search: { default: undefined },\n searchTerm: { default: undefined },\n showAppliedHiddenFilters: { type: Boolean, default: false },\n filterValuesObject: { default: undefined }\n});\n\n const emit = defineEmits([\n BentoFilterBarEvent.INPUT,\n BentoFilterBarEvent.UPDATE_FILTER_VALUES_OBJECT,\n BentoFilterBarEvent.UPDATE_FILTER_VALUES_ARRAY,\n BentoSearchBarEvent.CLEAR,\n BentoSearchBarEvent.INPUT,\n BentoSearchBarEvent.UPDATE,\n ]);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const filterBarRef = ref<HTMLDivElement>(null);\n\n const valueAndFilterValuesPropsMerged = computed(\n () =>\n props.config?.map(filterModel => {\n let filterValue = props.filterValues.find(({ field }) => field === filterModel.field)?.value;\n if (props.filterValuesObject && filterModel.field in props.filterValuesObject) {\n filterValue = props.filterValuesObject[filterModel.field];\n }\n if (filterValue === undefined) {\n filterValue = filterModel?.defaultValue;\n }\n\n return { ...filterModel, value: filterValue };\n }) as BentoFilterBarFiltersWithValues\n );\n const { addToast } = useBentoToastController();\n\n /**\n * Container size layout.\n * Allows to change the layout from multi-line to one-line for each container size type:\n * - large: >=700\n * - medium: >=430 & <700\n * - small: <430\n */\n const DEFAULT_CONTAINER_SIZE_LAYOUT: Required<BentoFilterBarContainerSizeLayout> = {\n large: 'multi-line',\n medium: 'one-line',\n small: 'multi-line',\n };\n\n const mergedContainerSizeLayout = computed<Required<BentoFilterBarContainerSizeLayout>>(() => ({\n ...DEFAULT_CONTAINER_SIZE_LAYOUT,\n ...props.containerSizeLayout,\n }));\n\n const {\n screenLayoutComponent,\n showSearchbarInsideContainer,\n isOneLineLayout,\n isLargeLayout,\n rootElementConditionalClasses,\n } = useContainerSizeOptionsLayout(filterBarRef, mergedContainerSizeLayout);\n\n /**\n * Classes\n */\n\n /**\n * Handles the classes of the swappable component ('div' or 'fixed-scroller)\n */\n const containerConditionalClasses = computed(() => ({\n 'b-filter-bar__fixed-scroller': isOneLineLayout.value,\n 'b-filter-bar__container': !isOneLineLayout.value, // Multi-line\n }));\n\n /**\n * Handles the classes of the container inside the swappable component.\n */\n const contentConditionalClasses = computed(() => ({\n 'b-filter-bar__scroller-content': isOneLineLayout.value,\n 'b-filter-bar__filters': !isOneLineLayout.value, // Multi-line\n }));\n\n /**\n * Search bar pops\n */\n const searchBarAriaLabel = computed(() => props.search?.inputFieldAriaLabel || (t('searchBar') as string));\n const searchBarProps = computed(() => {\n if (!props.search) {\n return undefined;\n }\n\n const { debounceTime, disabled, inputFieldAriaLabel, hint, placeholder } = props.search;\n return { debounceTime, disabled, inputFieldAriaLabel, hint, placeholder };\n });\n\n const searchBarWidthStyle = computed(() =>\n props.search?.width && isLargeLayout.value\n ? { flexBasis: props.search.width, maxWidth: props.search.width }\n : undefined\n );\n\n const hasVisibleSet = computed(() =>\n valueAndFilterValuesPropsMerged.value.some(({ visible }) => visible !== undefined && visible !== null)\n );\n\n const hasHiddenFilters = computed(() =>\n hasVisibleSet.value ? valueAndFilterValuesPropsMerged.value.some(({ visible }) => !visible) : false\n );\n\n // Persistent filters i.e. filters with default value\n const persistentFilters = computed(() =>\n valueAndFilterValuesPropsMerged.value.filter(\n ({ defaultValue, visible }) => defaultValue !== undefined && visible !== false\n )\n );\n\n const filtersInAllFiltersModal = computed(() =>\n valueAndFilterValuesPropsMerged.value.filter(\n ({ defaultValue, visible }) => defaultValue === undefined || visible === false\n )\n );\n\n const hasPersistentFilters = computed(() =>\n valueAndFilterValuesPropsMerged.value.some(({ defaultValue }) => defaultValue !== undefined)\n );\n\n // Show non-persistent & visible filters\n const regularFilters = computed(() => {\n // If no filter has the `visible` prop set then all are visible, otherwise search for the \"visible: true\" elements\n return hasVisibleSet.value\n ? valueAndFilterValuesPropsMerged.value.filter(\n ({ defaultValue, visible, value }) =>\n defaultValue === undefined &&\n (visible || (props.showAppliedHiddenFilters && value !== undefined && value !== null))\n )\n : valueAndFilterValuesPropsMerged.value.filter(({ defaultValue }) => defaultValue === undefined);\n });\n\n // Enable search bar.\n // Soft equality to check for \"null\" and \"undefined\"\n // eslint-disable-next-line eqeqeq\n const isSearchBarEnabled = computed(() => props.searchTerm != undefined);\n\n const hasActiveFilters = computed(() =>\n valueAndFilterValuesPropsMerged.value\n .filter(({ defaultValue }) => defaultValue === undefined || defaultValue === null)\n // Disabling strict equality to check for both undefined and null\n // eslint-disable-next-line eqeqeq\n .some(({ value }) => value != undefined)\n );\n\n // Show the \"Clear all\" button (true) if at least one filter is active (contains a value)\n // and there are not persistent filters present.\n const isClearAllVisible = computed(() => !hasPersistentFilters.value && hasActiveFilters.value);\n\n const isResetAllVisible = computed(() => {\n if (!hasPersistentFilters.value) {\n return false;\n }\n const areAllValuesEqualToDefaults = valueAndFilterValuesPropsMerged.value\n .filter(({ defaultValue }) => defaultValue !== undefined || defaultValue !== null)\n .every(({ value, defaultValue }) => JSON.stringify(value) === JSON.stringify(defaultValue));\n\n return !areAllValuesEqualToDefaults || hasActiveFilters.value;\n });\n\n const updateAllFilters = (newFilters: BentoFilterBarFiltersWithValues) => {\n emit(BentoFilterBarEvent.INPUT, newFilters);\n emit(\n BentoFilterBarEvent.UPDATE_FILTER_VALUES_ARRAY,\n newFilters\n ?.filter(({ value }) => value !== null || value !== undefined)\n .map(({ field, value }) => ({ field, value }))\n );\n emit(\n BentoFilterBarEvent.UPDATE_FILTER_VALUES_OBJECT,\n newFilters\n ?.filter(({ value }) => value !== null || value !== undefined)\n .reduce((acc, filter) => {\n acc[filter.field] = filter.value;\n return acc;\n }, {})\n );\n };\n\n const updateFilterHandler = (updatedFilters: BentoFilterBarFilterWithValue | BentoFilterBarFiltersWithValues) => {\n const filtersArray = Array.isArray(updatedFilters) ? updatedFilters : [updatedFilters];\n const updatedFiltersMap = new Map(filtersArray.map(filter => [filter.field, filter.value]));\n\n const newFilters = valueAndFilterValuesPropsMerged.value.map(filter => {\n if (updatedFiltersMap.has(filter.field)) {\n return { ...filter, value: updatedFiltersMap.get(filter.field) };\n }\n return filter;\n });\n\n updateAllFilters(newFilters);\n };\n\n const clearAllFilters = () => {\n const previousFilters = valueAndFilterValuesPropsMerged.value.slice();\n const clearedFilters = valueAndFilterValuesPropsMerged.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n\n addToast({\n text: t('filtersHaveBeenCleared') as string,\n action: {\n handler: () => updateAllFilters(previousFilters),\n text: t('undo') as string,\n },\n });\n updateAllFilters(clearedFilters);\n };\n\n const resetAllFilters = () => {\n const previousFilters = valueAndFilterValuesPropsMerged.value.slice();\n const resetFilters = valueAndFilterValuesPropsMerged.value.map(({ defaultValue, ...otherFields }) => ({\n ...otherFields,\n defaultValue,\n value: defaultValue,\n }));\n\n addToast({\n text: t('filtersHaveBeenReset') as string,\n action: {\n handler: () => updateAllFilters(previousFilters),\n text: t('undo') as string,\n },\n });\n updateAllFilters(resetFilters);\n };\n\n const onSearchbarInput = (newSearchTerm: string) => {\n emit(BentoSearchBarEvent.INPUT, newSearchTerm);\n emit(BentoSearchBarEvent.UPDATE, newSearchTerm);\n };\n const onSearchbarClear = () => {\n emit(BentoSearchBarEvent.CLEAR);\n };\n\n // Expose methods for BentoDataGrid to access\n defineExpose({ isClearAllVisible, clearAllFilters, isResetAllVisible, resetAllFilters });\n</script>\n\n<script lang=\"ts\">\n import { BentoTeleport, FixedScroller } from '@/internal';\n\n import { filterBarFilterComponents } from './filter-bar-filter-components';\n\n /**\n * The filter bar filters item lists and tables according to various filter criteria.\n *\n * @example\n * import { BentoFilterBar } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoFilterBar },\n * data: () => ({\n * filtersConfig: [{\n * field: 'name',\n * label: 'Name',\n * options: { ... },\n * type: FilterType.TEXT,\n * }],\n * filterValues: [{\n * field: 'name',\n * value: null,\n * }],\n * }),\n * template: `\n * <bento-filter-bar\n * :config=\"filtersConfig\"\n * :filter-values=\"filterValues\"\n * @update:filter-values=\"filterValues = $event\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-filter-bar',\n components: {\n ...filterBarFilterComponents,\n BentoTeleport,\n FixedScroller,\n },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar.scss\" />\n"],"names":["isPlainObject","value","isArray$1","isValueEmpty$1","el","isEqual$1","first","second","deepCopy","item","acc","key","copyStructure","useBentoBaseFilter","appliedFilter","defaultFilter","internalFilterValue","ref","initialStructureOrValue","onMounted","watch","newValue","isFilterInactive","computed","isSecondaryButtonDisabled","isApplyButtonDisabled","clearFilter","callback","resetFilter","openFilter","__default__$e","slots","useSlots","attrs","useAttrs","hasSlot","useHasSlot","labelSlot","getSlotText","isIconOnly","computedAriaLabel","useAriaLabel","filterBarButtonRef","ariaAttributes","isAppliedFilter","props","conditionalClasses","event","emit","__default__$d","BaseFilterEvent","BaseFilterEvent2","__default__$c","messages$8","t","useI18n","popoverId","generateUid","isFilterOpen","filterButtonRef","popoverRef","filterButtonEl","setPopoverRef","instance","isPersistentFilter","isValueChanged","ariaLabelValuePart","computedButtonText","computedClearButtonLabel","resetFocus","nextTick","closePopover","onClickSecondaryAction","onClickFilter","onClickApply","onCancel","onClickOutside","actions","prevValue","useClickOutside","expose","isArray","isValueEmpty","isEqual","useBaseFilter","BentoFilterEvent","BentoFilterEvent2","BentoFilterBarEvent","BentoFilterBarEvent2","BentoFilterItemType","BentoFilterItemType2","_sfc_main$f","defineComponent","messages$7","BentoBaseFilter","BentoRadioGroup","translateBooleanToString","aStringOrBooleanValue","translateBackToOriginalValueType","translatedDefaultValue","translatedValue","items","buttonLabel","buttonSecondaryLabel","truncate","onBeforeUpdate","onInput","updateFilter","deprecate","__default__$b","messages$6","toRef","displayedValues","appliedFiltersCount","__default__$a","inputTextRef","__default__$9","selectedValueLabel","isDigit","useNumericInput","options","prettyOutput","unref","n","locale","inputRef","isFocused","negative","focusedDecimalPart","privateValue","decimalSeparator","p","maximumFractionDigits","invalidPattern","getEventTargetValue","parseInputValue","inputValue","isNegative","sanitizedValue","decimalSeparatorIndex","hasSingleDecimalSeparator","decimalPart","cappedDecimalPart","cappedSanitizedValue","normalizedValue","numberValue","shouldPreserveNegative","getOutputValue","val","getFocusedOutputValue","integerValue","displayValue","formattedValue","setValue","finalValue","isNumber","absValue","getCaretPosition","setCaretPosition","pos","getDigitsBeforeCaret","fieldValue","caretPosition","digits","i","setCaretAfterNthDigit","nDigits","position","currentDisplay","handlePrettyInput","oldCaretPosition","nDigitsBefore","target","selectionStart","selectionEnd","targetValue","valueWithoutSelection","__default__$8","messages$5","fromFieldRef","toFieldRef","fromNum","toNum","stringifyInputValue","displayFrom","handleInputFrom","handleKeyDownFrom","onFocusFrom","onBlurFrom","inputRefFrom","currentValue","handleModelValueFrom","displayTo","handleInputTo","handleKeyDownTo","onFocusTo","onBlurTo","inputRefTo","handleModelValueTo","newVal","nextFrom","nextTo","truncatedRangeValues","prefix","fromVal","toVal","rangeFromLabel","seperator","rangeToLabel","x","__default__$7","messages$4","searchTerm","optionsRef","itemsRef","cachedSelectedListboxOptions","setCachedValues","resetCache","useCachedSelectedValues","cachedDefaultSelectedListboxOptions","filteredItems","useSearchBarFilter","noResultsMessage","isSingleSelectAndOneItemSelected","isMultiSelectedAndOneItemSelected","displayValue2","printDevelopmentWarning","listboxFilterId","onOptionSelected","selectedValue","onlySlot","cleanedProps","value2","value3","closeFilter","allSelectableItemsCount","selectedAmount","__default__$6","messages$3","SelectFilterProps","__default__$5","updatedProps","__default__$4","messages$2","checkboxLabelId","checkboxDescriptionId","internalValue","onlySlotConditionalClasses","updateProps","defineAsyncFilter","loader","defineAsyncComponent","BentoLoadingIndicator","_","retry","fail","attempts","filterBarFilterComponents","BentoBooleanFilter","BentoCheckboxGroupFilter","BentoInputFilter","BentoRadioGroupFilter","BentoRangeFilter","BentoSelectFilter","BentoToggleFilter","SMALL_SIZE_THRESHOLD","LARGE_SIZE_THRESHOLD","useContainerSizeOptionsLayout","containerSizeLayoutOptions","screenLayoutComponent","shallowRef","isOneLineLayout","containerWidth","showSearchbarInsideContainer","setMultiLineConfig","setOneLineConfig","FixedScroller","calculateConfig","useResizeObserver","entries","isLargeLayout","rootElementConditionalClasses","AllFiltersModalEvent","AllFiltersModalEvent2","_sfc_main$6","BaseButton","BentoTypography","ChevronUpIcon","ChevronDownIcon","BentoBaseButtonEvent","baseFilterButtonRef","_sfc_main$5","BaseFilterButton","__default__$3","filterButtons","screenIdPrefix","setFilterButtonRef","element","label","focusFilter","__default__$2","selectedFilterRef","pendingFocusSource","getFirstFocusable","selectedFilterElement","getFocusableIn","node","focusPendingInput","firstFocusable","focusFirstInput","cancelPendingFocus","useMutationObserver","useEventListener","getCurrentInstance","uuid","__default__$1","messages$1","FILTER_SELECTION_PAGE_ID","FILTER_APPLICATION_PAGE_ID","filtersInModal","allFiltersModalUniqueId","filterSelectionRef","isModalOpen","selectedFilterIndex","selectedFilterContentRef","smallScreenActivePage","isSmallScreen","useMediaQuery","filter","index","sortAlphabetically","array","a","b","activeFilters","otherFilters","isEmptyResultForSearchFilter","selectedFilter","selectOpenedFilter","openedFilter","openedFilterIndex","isOpen","computeCounts","filterValue","selectedFilterValue","hasValueSelected","hasPersistentFilters","defaultValue","isSelectedFilterPersistent","shouldShowFilterTitle","isClearButtonDisabled","filtersIncludedInActiveCount","numberOfActiveFilters","count","onClickAllFiltersModal","filterCounts","field","getFilterCount","filterCount","isBentoSelectFilter","isBentoCheckboxGroupFilter","selectFilter","filterLabel","filterField","onSearchbarClear","cancel","updatedFilter","updatedFilters","otherFields","clearSelectedFilter","clearAll","applyAll","isApplyAllButtonDisabled","isClearAllButtonDisabled","modalActions","__default__","messages","BentoTeleport","filterBarRef","valueAndFilterValuesPropsMerged","filterModel","addToast","useBentoToastController","DEFAULT_CONTAINER_SIZE_LAYOUT","mergedContainerSizeLayout","containerConditionalClasses","contentConditionalClasses","searchBarAriaLabel","searchBarProps","debounceTime","disabled","inputFieldAriaLabel","hint","placeholder","searchBarWidthStyle","hasVisibleSet","visible","hasHiddenFilters","persistentFilters","filtersInAllFiltersModal","regularFilters","isSearchBarEnabled","hasActiveFilters","isClearAllVisible","isResetAllVisible","updateAllFilters","newFilters","updateFilterHandler","filtersArray","updatedFiltersMap","clearAllFilters","previousFilters","clearedFilters","resetAllFilters","resetFilters","onSearchbarInput","newSearchTerm","BentoSearchBarEvent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMO,MAAAA,KAAA,CAAAC,MACHA,MAAA,QAAA,OAAAA,KAAA,WACI,KAGJ,OAAA,UAAA,SAAA,KAAAA,CAAA,MAAA,mBASGC,KAAA,CAAAD,MAAA,MAAA,QAAAA,CAAA,GAUAE,KAAA,CAAAF,MAAAC,GAAAD,CAAA,IAAAA,EAAA,WAAA,KAAAA,EAAA,MAAA,CAAAG,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EAAA,OAAA1X,GAAA,GAAA+W,EAAA,OAAA;AAAA,QAAiG,GAAAA;AAAA,QAC1F,OAAA;AAAA,MACI,EAAA;AAGX,MAAAa,EAAA;AAAA,QAAS,MAAAvU,EAAA,wBAAA;AAAA,QAC2B,QAAA;AAAA,UACxB,SAAA,MAAA+V,EAAAM,CAAA;AAAA,UAC2C,MAAArW,EAAA,MAAA;AAAA,QACjC;AAAA,MAClB,CAAA,GAEJ+V,EAAAO,CAAA;AAAA,IAA+B,GAGnCC,IAAA,MAAA;AACI,YAAAF,IAAAhC,EAAA,MAAA,MAAA,GACAmC,IAAAnC,EAAA,MAAA,IAAA,CAAA,EAAA,cAAAhC,GAAA,GAAAqB,EAAA,OAAA;AAAA,QAAsG,GAAAA;AAAA,QAC/F,cAAArB;AAAA,QACH,OAAAA;AAAA,MACO,EAAA;AAGX,MAAAkC,EAAA;AAAA,QAAS,MAAAvU,EAAA,sBAAA;AAAA,QACyB,QAAA;AAAA,UACtB,SAAA,MAAA+V,EAAAM,CAAA;AAAA,UAC2C,MAAArW,EAAA,MAAA;AAAA,QACjC;AAAA,MAClB,CAAA,GAEJ+V,EAAAS,CAAA;AAAA,IAA6B,GAGjCC,IAAA,CAAAC,MAAA;AACI,MAAAhX,EAAAiX,GAAA,OAAAD,CAAA,GACAhX,EAAAiX,GAAA,QAAAD,CAAA;AAAA,IAA8C,GAElDpD,KAAA,MAAA;AACI,MAAA5T,EAAAiX,GAAA,KAAA;AAAA,IAA8B;AAIlC,WAAAjV,EAAA,EAAA,mBAAAmU,GAAA,iBAAAO,GAAA,mBAAAN,GAAA,iBAAAS,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -102,7 +102,7 @@ const O = 1, B = 40, E = ({
|
|
|
102
102
|
*/
|
|
103
103
|
extraPaddingTop: { type: Number, default: 0 },
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Vertically centers the scroll buttons in the container instead of spacing them from its top and bottom edges
|
|
106
106
|
*/
|
|
107
107
|
centered: { type: Boolean, default: !1 }
|
|
108
108
|
},
|
|
@@ -134,10 +134,10 @@ var P = function() {
|
|
|
134
134
|
q,
|
|
135
135
|
!1,
|
|
136
136
|
null,
|
|
137
|
-
"
|
|
137
|
+
"032eb2f8"
|
|
138
138
|
);
|
|
139
139
|
const H = M.exports;
|
|
140
140
|
export {
|
|
141
141
|
H as F
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=fixed-scroller.
|
|
143
|
+
//# sourceMappingURL=fixed-scroller.CkoOFRzH.js.map
|