@adyen/bento-vue2 1.34.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/@types/index.d.ts +2 -2
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-input.css +1 -1
  13. package/dist/assets/checkbox.css +1 -1
  14. package/dist/assets/code-snippet.css +1 -1
  15. package/dist/assets/copy.css +1 -1
  16. package/dist/assets/currency.css +1 -0
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/date-range-picker.css +1 -1
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/dropdown.css +1 -1
  21. package/dist/assets/error-message.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/header.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/link.css +1 -1
  26. package/dist/assets/loading-button.css +1 -1
  27. package/dist/assets/menu.css +1 -1
  28. package/dist/assets/modal-fullscreen.css +1 -1
  29. package/dist/assets/pagination.css +1 -1
  30. package/dist/assets/popover.css +1 -1
  31. package/dist/assets/sidepanel.css +1 -1
  32. package/dist/assets/step.css +1 -1
  33. package/dist/assets/structured-list-item.css +1 -1
  34. package/dist/assets/timeline-item.css +1 -1
  35. package/dist/assets/tutorial.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +4 -4
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +3 -3
  41. package/dist/chunks/accordion-item.C0EeQmpM.js +116 -0
  42. package/dist/chunks/accordion-item.C0EeQmpM.js.map +1 -0
  43. package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CTS-sRPZ.js} +52 -38
  44. package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CTS-sRPZ.js.map} +1 -1
  45. package/dist/chunks/{alert.DtT7BRdr.js → alert.BOAVcKqt.js} +30 -23
  46. package/dist/chunks/alert.BOAVcKqt.js.map +1 -0
  47. package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
  48. package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
  49. package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.HSuNJt-7.js} +18 -12
  50. package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.HSuNJt-7.js.map} +1 -1
  51. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.GyJNwaZ5.js} +4 -4
  52. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.GyJNwaZ5.js.map} +1 -1
  53. package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.fnn5w4Jz.js} +3 -3
  54. package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.fnn5w4Jz.js.map} +1 -1
  55. package/dist/chunks/{button.79klAcOK.js → button.B1JELmx-.js} +2 -2
  56. package/dist/chunks/{button.79klAcOK.js.map → button.B1JELmx-.js.map} +1 -1
  57. package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BBQUZ8xu.js} +230 -230
  58. package/dist/chunks/calendar.BBQUZ8xu.js.map +1 -0
  59. package/dist/chunks/card.DqxilNhb.js +123 -0
  60. package/dist/chunks/card.DqxilNhb.js.map +1 -0
  61. package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.CdMkjLu1.js} +4 -4
  62. package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.CdMkjLu1.js.map} +1 -1
  63. package/dist/chunks/{checkbox-input.BH7MGdMj.js → checkbox-input.Ce0AY_e_.js} +14 -13
  64. package/dist/chunks/checkbox-input.Ce0AY_e_.js.map +1 -0
  65. package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.CVSzcaHk.js} +38 -28
  66. package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.CVSzcaHk.js.map} +1 -1
  67. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.By9RNf5T.js} +4 -4
  68. package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.By9RNf5T.js.map} +1 -1
  69. package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
  70. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  71. package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.CvIsaXjZ.js} +6 -6
  72. package/dist/chunks/chevron-left.CvIsaXjZ.js.map +1 -0
  73. package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.DqJmLciO.js} +6 -6
  74. package/dist/chunks/chevron-up.DqJmLciO.js.map +1 -0
  75. package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BcZJFqdH.js} +45 -36
  76. package/dist/chunks/code-snippet.BcZJFqdH.js.map +1 -0
  77. package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.BES2y5Y7.js} +2 -2
  78. package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.BES2y5Y7.js.map} +1 -1
  79. package/dist/chunks/{copy.B1DYKX_q.js → copy.qAUSogPB.js} +35 -26
  80. package/dist/chunks/copy.qAUSogPB.js.map +1 -0
  81. package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
  82. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  83. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.BawVYNw7.js} +4 -4
  84. package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.BawVYNw7.js.map} +1 -1
  85. package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
  86. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  87. package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
  88. package/dist/chunks/{cross.CsUPDmaA.js.map → cross.CJ5EEL2c.js.map} +1 -1
  89. package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
  90. package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
  91. package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.QTsJqS-s.js} +3 -3
  92. package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.QTsJqS-s.js.map} +1 -1
  93. package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.BnBP41jp.js} +2 -2
  94. package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.BnBP41jp.js.map} +1 -1
  95. package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.CY3uHWRY.js} +3 -3
  96. package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.CY3uHWRY.js.map} +1 -1
  97. package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.CZjS7HUz.js} +483 -436
  98. package/dist/chunks/data-grid.CZjS7HUz.js.map +1 -0
  99. package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.C5uid7SP.js} +91 -83
  100. package/dist/chunks/date-picker.C5uid7SP.js.map +1 -0
  101. package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.R5v1ZX-X.js} +265 -243
  102. package/dist/chunks/date-range-picker.R5v1ZX-X.js.map +1 -0
  103. package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
  104. package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
  105. package/dist/chunks/{dialog-page.bmDDYmn9.js → dialog-page.j_L6c9ZP.js} +5 -4
  106. package/dist/chunks/dialog-page.j_L6c9ZP.js.map +1 -0
  107. package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js → dropdown-default-textbox.BFx4TF5u.js} +4 -4
  108. package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js.map → dropdown-default-textbox.BFx4TF5u.js.map} +1 -1
  109. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.B8A03Cck.js} +3 -3
  110. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.B8A03Cck.js.map} +1 -1
  111. package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.h_j0DsN2.js} +159 -139
  112. package/dist/chunks/dropdown.h_j0DsN2.js.map +1 -0
  113. package/dist/chunks/{empty-state.C2ba_wDp.js → empty-state.CaQuZx7L.js} +2 -2
  114. package/dist/chunks/{empty-state.C2ba_wDp.js.map → empty-state.CaQuZx7L.js.map} +1 -1
  115. package/dist/chunks/{error-message.BnFyGbR7.js → error-message.3tVTq0sW.js} +28 -14
  116. package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.3tVTq0sW.js.map} +1 -1
  117. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  118. package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
  119. package/dist/chunks/{expand.CwwKq7Uc.js.map → expand.C263WARj.js.map} +1 -1
  120. package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.DgiUmFql.js} +605 -589
  121. package/dist/chunks/filter-bar.DgiUmFql.js.map +1 -0
  122. package/dist/chunks/{fixed-scroller.CQWDnydO.js → fixed-scroller.DcdAycgk.js} +3 -3
  123. package/dist/chunks/{fixed-scroller.CQWDnydO.js.map → fixed-scroller.DcdAycgk.js.map} +1 -1
  124. package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.C1TgWA9J.js} +3 -3
  125. package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.C1TgWA9J.js.map} +1 -1
  126. package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DW8y285m.js} +2 -2
  127. package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DW8y285m.js.map} +1 -1
  128. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  129. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  130. package/dist/chunks/{header.BmNDoXio.js → header.Nh_SoSJP.js} +80 -74
  131. package/dist/chunks/{header.BmNDoXio.js.map → header.Nh_SoSJP.js.map} +1 -1
  132. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  133. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  134. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  135. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  136. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  137. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  138. package/dist/chunks/{info-icon.DNn4oZsB.js → info-icon.bQl_RleE.js} +2 -2
  139. package/dist/chunks/{info-icon.DNn4oZsB.js.map → info-icon.bQl_RleE.js.map} +1 -1
  140. package/dist/chunks/{info.CyeBsLgt.js → info.D4SG-AIm.js} +4 -4
  141. package/dist/chunks/{info.CyeBsLgt.js.map → info.D4SG-AIm.js.map} +1 -1
  142. package/dist/chunks/{input-field.S5HIZtYA.js → input-field.nBUtoYwF.js} +3 -3
  143. package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.nBUtoYwF.js.map} +1 -1
  144. package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.DJTWyZ9x.js} +19 -11
  145. package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.DJTWyZ9x.js.map} +1 -1
  146. package/dist/chunks/{link.Xce4kDGy.js → link.BKxmPIV5.js} +4 -3
  147. package/dist/chunks/link.BKxmPIV5.js.map +1 -0
  148. package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.CsaWlmzb.js} +40 -26
  149. package/dist/chunks/loading-button.CsaWlmzb.js.map +1 -0
  150. package/dist/chunks/{menu.DSOJEn4v.js → menu.BhT5t7Ev.js} +7 -6
  151. package/dist/chunks/{menu.DSOJEn4v.js.map → menu.BhT5t7Ev.js.map} +1 -1
  152. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.BlqMgvmn.js} +27 -21
  153. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.BlqMgvmn.js.map} +1 -1
  154. package/dist/chunks/{modal.ClqkmzVZ.js → modal.DCtgRb44.js} +26 -20
  155. package/dist/chunks/modal.DCtgRb44.js.map +1 -0
  156. package/dist/chunks/{pagination.he0lQGAV.js → pagination.CM_9J0dZ.js} +6 -5
  157. package/dist/chunks/pagination.CM_9J0dZ.js.map +1 -0
  158. package/dist/chunks/{popover.UmNw_M-C.js → popover.DFWeWyxd.js} +4 -4
  159. package/dist/chunks/{popover.UmNw_M-C.js.map → popover.DFWeWyxd.js.map} +1 -1
  160. package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.o2Kroy4O.js} +3 -3
  161. package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.o2Kroy4O.js.map} +1 -1
  162. package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
  163. package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.Bc9FzGjJ.js.map} +1 -1
  164. package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.BRlauT9L.js} +16 -8
  165. package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.BRlauT9L.js.map} +1 -1
  166. package/dist/chunks/{search.CBKhp7zB.js → search.pVu-JVAN.js} +4 -4
  167. package/dist/chunks/{search.CBKhp7zB.js.map → search.pVu-JVAN.js.map} +1 -1
  168. package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.lWetIbb8.js} +2 -2
  169. package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.lWetIbb8.js.map} +1 -1
  170. package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BWZOX7l7.js} +4 -4
  171. package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BWZOX7l7.js.map} +1 -1
  172. package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.B5CKqH1u.js} +25 -19
  173. package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.B5CKqH1u.js.map} +1 -1
  174. package/dist/chunks/{step.CjJtlBk6.js → step.vF0pNW-K.js} +7 -6
  175. package/dist/chunks/step.vF0pNW-K.js.map +1 -0
  176. package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.IElHaBHs.js} +24 -18
  177. package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.IElHaBHs.js.map} +1 -1
  178. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.CMsS1kro.js} +3 -3
  179. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.CMsS1kro.js.map} +1 -1
  180. package/dist/chunks/{tabs.D4ORafqH.js → tabs.D8Ni3Zfb.js} +2 -2
  181. package/dist/chunks/{tabs.D4ORafqH.js.map → tabs.D8Ni3Zfb.js.map} +1 -1
  182. package/dist/chunks/{textarea.BRMpTWKS.js → textarea.2RrKj5Mr.js} +4 -4
  183. package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.2RrKj5Mr.js.map} +1 -1
  184. package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.fF0fFDb9.js} +58 -51
  185. package/dist/chunks/timeline-item.fF0fFDb9.js.map +1 -0
  186. package/dist/chunks/{toast.3LxCDPiT.js → toast.CMdDpqMg.js} +3 -3
  187. package/dist/chunks/{toast.3LxCDPiT.js.map → toast.CMdDpqMg.js.map} +1 -1
  188. package/dist/chunks/{toggle-button.bt3zBzdC.js → toggle-button.CGvkVs_H.js} +2 -2
  189. package/dist/chunks/{toggle-button.bt3zBzdC.js.map → toggle-button.CGvkVs_H.js.map} +1 -1
  190. package/dist/chunks/{toggle.CLgGH4Jr.js → toggle.yiNF7ndg.js} +2 -2
  191. package/dist/chunks/{toggle.CLgGH4Jr.js.map → toggle.yiNF7ndg.js.map} +1 -1
  192. package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D2msGkwn.js} +86 -73
  193. package/dist/chunks/tutorial.D2msGkwn.js.map +1 -0
  194. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.it4ENg3q.js} +62 -47
  195. package/dist/chunks/use-cached-selected-values.it4ENg3q.js.map +1 -0
  196. package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
  197. package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.Cd0kVWwa.js.map} +1 -1
  198. package/dist/code-snippet.js +1 -1
  199. package/dist/currency.js +1 -1
  200. package/dist/dashboard-template.js +1 -1
  201. package/dist/dashed-underline.js +1 -1
  202. package/dist/data-grid-template.js +1 -1
  203. package/dist/data-grid.js +1 -1
  204. package/dist/date-picker.js +2 -2
  205. package/dist/date-range-picker.js +2 -2
  206. package/dist/date.js +1 -1
  207. package/dist/dropdown.js +4 -4
  208. package/dist/empty-state.js +1 -1
  209. package/dist/filter-bar.js +1 -1
  210. package/dist/form-layout.js +1 -1
  211. package/dist/header.js +1 -1
  212. package/dist/index.js +54 -54
  213. package/dist/info-icon.js +1 -1
  214. package/dist/input-field.js +1 -1
  215. package/dist/inspector.js +1 -1
  216. package/dist/internal.js +7 -7
  217. package/dist/link.js +1 -1
  218. package/dist/menu.js +1 -1
  219. package/dist/modal-fullscreen.js +1 -1
  220. package/dist/modal.js +2 -2
  221. package/dist/pagination.js +1 -1
  222. package/dist/popover.js +1 -1
  223. package/dist/radio-group.js +1 -1
  224. package/dist/search-bar.js +2 -2
  225. package/dist/secondary-nav.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/styles/bento.css +3 -0
  231. package/dist/styles/legacy.css +3 -0
  232. package/dist/styles/styleguide.css +3 -0
  233. package/dist/summary-grid.js +1 -1
  234. package/dist/tabs.js +1 -1
  235. package/dist/textarea.js +1 -1
  236. package/dist/timeline.js +1 -1
  237. package/dist/toast.js +1 -1
  238. package/dist/toggle.js +1 -1
  239. package/dist/tutorial.js +1 -1
  240. package/dist/web-types.json +1 -1
  241. package/package.json +4 -4
  242. package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
  243. package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
  244. package/dist/chunks/alert.DtT7BRdr.js.map +0 -1
  245. package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
  246. package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
  247. package/dist/chunks/card.ignL7-CH.js +0 -115
  248. package/dist/chunks/card.ignL7-CH.js.map +0 -1
  249. package/dist/chunks/checkbox-input.BH7MGdMj.js.map +0 -1
  250. package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
  251. package/dist/chunks/chevron-left.CtnrsqUy.js.map +0 -1
  252. package/dist/chunks/chevron-up.B2uWhZf7.js.map +0 -1
  253. package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
  254. package/dist/chunks/copy.B1DYKX_q.js.map +0 -1
  255. package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
  256. package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
  257. package/dist/chunks/data-grid.CUn6MrZz.js.map +0 -1
  258. package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
  259. package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
  260. package/dist/chunks/dialog-page.bmDDYmn9.js.map +0 -1
  261. package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
  262. package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
  263. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  264. package/dist/chunks/link.Xce4kDGy.js.map +0 -1
  265. package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
  266. package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
  267. package/dist/chunks/pagination.he0lQGAV.js.map +0 -1
  268. package/dist/chunks/step.CjJtlBk6.js.map +0 -1
  269. package/dist/chunks/timeline-item.jh7UnviR.js.map +0 -1
  270. package/dist/chunks/tutorial.DERGsCkg.js.map +0 -1
  271. package/dist/chunks/use-cached-selected-values.B39-iEp4.js.map +0 -1
  272. /package/dist/assets/{cross.css → main.css} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter-bar.DGBvcKsz.js","sources":["../../src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue","../../src/components/filter-bar/components/base-filter/base-filter.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/utils/ts/truncate.ts","../../src/components/filter-bar/components/input-filter/input-filter.vue","../../src/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.vue","../../src/components/filter-bar/components/date-filter/date-filter.vue","../../src/components/filter-bar/components/date-range-filter/date-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/select-filter/variants/select-avatar-filter/select-avatar-filter.vue","../../src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue","../../src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue","../../src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue","../../src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue","../../src/components/filter-bar/components/boolean-filter/boolean-filter.vue","../../src/components/filter-bar/components/range-filter/range-filter.vue","../../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","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/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":["<template>\n <base-button\n ref=\"filterBarButtonRef\"\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 <slot />\n </bento-typography>\n <bento-typography\n v-if=\"secondaryLabel\"\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\n <template #iconRight>\n <bento-typography\n v-if=\"appliedFiltersCount && !hasChevron\"\n class=\"b-filter-bar-button__counter\"\n el=\"span\"\n variant=\"body\"\n stronger\n >\n {{ appliedFiltersCount }}\n </bento-typography>\n <div v-if=\"hasChevron\" class=\"b-filter-bar-button__chevron\">\n <chevron-up-icon v-if=\"isFilterOpen\" aria-hidden=\"true\" />\n <chevron-down-icon v-else aria-hidden=\"true\" />\n </div>\n </template>\n </base-button>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { computed, ref, useAttrs, useSlots } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useHasSlot } from '@/composables';\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 const props = defineProps({\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 * 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 * 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 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 conditionalClasses = computed(() => ({\n 'b-filter-bar-button--filter-open': props.isFilterOpen,\n 'b-filter-bar-button--active': props.appliedFiltersCount || props.secondaryLabel || props.hasChevron,\n 'b-filter-bar-button--with-secondary-label': props.secondaryLabel,\n 'b-filter-bar-button--with-chevron': props.hasChevron,\n }));\n\n const onClickButton = (event: MouseEvent) => {\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: { BaseFilterButton },\n * template: `\n * <base-filter-button disabled>\n * Filter\n * </base-filter-button>\n * `,\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar-button.scss\" />\n","export enum BaseFilterEvent {\n APPLY = 'apply',\n CLEAR = 'clear',\n OPEN = 'open',\n CLOSE = 'close',\n RESET = 'reset',\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\n ref=\"filterButtonRef\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"isFilterOpen ? popoverId : null\"\n :has-chevron=\"isPersistentFilter\"\n :is-filter-open=\"isFilterOpen\"\n :applied-filters-count=\"appliedFiltersCount\"\n :secondary-label=\"buttonSecondaryLabel\"\n @click=\"onClickFilter\"\n @keydown.esc=\"closePopover\"\n >\n {{ computedButtonText }}\n </filter-bar-button>\n\n <bento-teleport v-if=\"filterButtonRef\">\n <bento-popover\n v-if=\"filterButtonRef\"\n :id=\"popoverId\"\n ref=\"popoverRef\"\n class=\"b-base-filter__popover\"\n divider\n :open=\"isFilterOpen\"\n :actions=\"controlled ? null : actions\"\n actions-layout=\"space-between\"\n :target-element=\"filterButtonRef\"\n :title=\"controlled ? null : label\"\n :fit-content=\"fitContent\"\n position=\"bottom-start\"\n :without-space=\"controlled\"\n :fallback-position=\"['bottom-end']\"\n >\n <div @keydown.esc=\"closePopover\">\n <slot></slot>\n </div>\n </bento-popover>\n </bento-teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, watch } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoClickOutsideDirective, BentoTooltipPosition } from '@/directives';\n import { FilterBarButton } from '../filter-bar-button';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoFilterBarValue } from '@/components/filter-bar/filter-bar.types';\n import { BaseFilterEvent } from './base-filter.types';\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useClickOutside } from '@/composables';\n import { BentoTeleport } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-base-filter',\n components: {\n BentoPopover,\n BentoTeleport,\n FilterBarButton,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: [String, Number], default: null },\n\n /**\n * Overrides the label of the popover visibility toggle button text.\n */\n buttonLabel: { type: String, default: undefined },\n\n /**\n * Sets the secondary label text of the popover visibility toggle button text.\n */\n buttonSecondaryLabel: { type: String, default: undefined },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String] as PropType<BentoFilterBarValue>,\n default: null,\n },\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 * Allows to handle the controls (apply/clear) from outside\n * of the component\n */\n controlled: { type: Boolean, default: false },\n\n /**\n * Disable the \"apply\" button\n */\n disableApplyButton: { type: Boolean, default: false },\n\n /**\n * Disable the secondary button action.\n */\n disableSecondaryButton: { type: Boolean, default: false },\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 * Sets the size of the container to fit its content\n */\n fitContent: BentoPopover.props.fitContent,\n },\n emits: [\n BaseFilterEvent.APPLY,\n BaseFilterEvent.CLEAR,\n BaseFilterEvent.OPEN,\n BaseFilterEvent.CLOSE,\n BaseFilterEvent.RESET,\n ],\n setup(props, { emit }) {\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 isPersistentFilter = computed(() => props.defaultValue !== null);\n\n const computedAriaLabel = computed(() =>\n isPersistentFilter.value\n ? t('filterButton', {\n function: props.label,\n })\n : computedButtonText.value\n );\n\n const computedButtonText = computed(() => props.buttonLabel || props.label);\n\n const closePopover = () => {\n if (!isFilterOpen.value) {\n return;\n }\n\n isFilterOpen.value = false;\n nextTick(() => {\n filterButtonRef.value?.$el?.focus();\n });\n emit(BaseFilterEvent.CLOSE);\n };\n const onClickSecondaryAction = () => {\n closePopover();\n if (isPersistentFilter.value) {\n emit(BaseFilterEvent.RESET);\n } else {\n emit(BaseFilterEvent.CLEAR);\n }\n };\n const onClickOutside = () => closePopover();\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 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 return {\n // Values\n actions,\n popoverId,\n isFilterOpen,\n isPersistentFilter,\n computedAriaLabel,\n computedButtonText,\n\n // Enums\n BentoTooltipPosition,\n\n // Events\n onClickFilter,\n onClickApply,\n onClickSecondaryAction,\n onClickOutside,\n closePopover,\n\n // Refs\n filterButtonRef,\n popoverRef,\n };\n },\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\ntype 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 { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';\nimport {\n BentoListboxEmptyStateProps,\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSearchOptions,\n BentoListboxSelectedValue,\n BentoListboxVirtulisationOptions,\n OmitStrict,\n} from '@/types';\nimport { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';\nimport { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';\nimport { BentoCountryVariant } from '@/components/country';\nimport { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';\nimport { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';\nimport {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldValue,\n} from '@/components/input-field';\nimport { BentoDatePickerFirstDayOfWeek, BentoDatePickerIsDateDisabled } from '../date-picker/date-picker.types';\nimport { BentoDateRangePickerGranularityConfig, BentoDateRangePickerValue } from '@/components/date-range-picker';\nimport { DateRangePickerCalendarRangeSelectorItems } from '../date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.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 translation object to handle any custom transations. e.g. perisistent filter labels.\n */\n messages?: {\n [key: string]: {\n persistentButtonLabelPartiallySelected?: string;\n persistentButtonLabelAllSelected?: string;\n [key: string]: string;\n };\n };\n\n /**\n * The unique key to use in the messages translation object to use for the persistent button label\n * when the select filter has partially selected items.\n */\n messagesPersistentButtonLabelPartiallySelectedKey?: string;\n\n /**\n * The unique key to use in the messages translation object to use for the persistent button label\n * when the select filter has all items selected.\n */\n messagesPersistentButtonLabelAllSelectedKey?: string;\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 * 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}\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 type BentoBooleanFilterOption = { label: string; value: string | boolean };\n\nexport type BentoBooleanFilterOptions = {\n positiveOption: BentoBooleanFilterOption;\n negativeOption: BentoBooleanFilterOption;\n};\n\nexport type BentoInputWithDropdownFilterOptions = {\n dropdown: OmitStrict<BentoInputDropdownProps, 'value'>;\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n};\n\nexport type BentoInputFilterOptions = {\n // Left to avoid colliding with the props of BentoInputWithDropdownFilterOptions.\n // TODO: Will be used to add `placeholder` to input filter\n};\n\n// Date\nexport interface BentoDateFilterOptions {\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n}\nexport interface BentoDateRangeFilterOptions {\n allowTimeInput?: boolean;\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n granularities?: Array<BentoDateRangePickerGranularityConfig>;\n maxRange?: number;\n min?: Date;\n max?: Date;\n numberOfMonths?: number;\n showEndDateOnOpen?: boolean;\n quickSelectRanges?: DateRangePickerCalendarRangeSelectorItems | boolean;\n}\n\nexport type BentoInpuWithDropdowntFilterValue = {\n inputValue: BentoInputFieldValue;\n dropdownValue: BentoInputDropdownProps['value'];\n};\n/**\n * @deprecated from version 2.0.0. Use BentoFilterItemType.INPUT_DROPDOWN instead.\n */\nexport type BentoInputFilterInputAndDropdownValues = { inputValue: string | null; dropdownValue?: string };\nexport type BentoInputFilterValue = string | null | BentoInputFilterInputAndDropdownValues;\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\nexport type BentoFilterOptions =\n | BentoSelectFilterOptions\n | BentoSelectAvatarFilterOptions\n | BentoSelectCountryFilterOptions\n | BentoSelectCurrencyFilterOptions\n | BentoSelectPaymentMethodFilterOptions\n | BentoSelectTagFilterOptions\n | BentoDateFilterOptions\n | BentoDateRangeFilterOptions\n | BentoBooleanFilterOptions\n | BentoInputWithDropdownFilterOptions\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 = 'update:filter-values',\n}\n\nexport enum BentoFilterItemType {\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}\n\nexport interface BentoFilterValue {\n field: string;\n value?: BentoFilterBarValue;\n}\n\nexport interface BentoFilterModel extends BentoFilterValue {\n label: string;\n description?: string;\n type: BentoFilterItemType;\n options?: BentoFilterOptions;\n defaultValue?: BentoFilterBarValue;\n visible?: boolean;\n\n /**\n * @deprecated This property will be removed in version 2.0, please use `config` & `filter-values` properties.\n */\n value?: BentoFilterBarValue;\n}\n\nexport type BentoFilterBarModel = Array<BentoFilterModel>;\nexport type BentoFilterValues = Array<BentoFilterValue>;\n","/**\n * Trunctes a string if it goes over a certain character limit.\n * @param aString the string or number to truncate.\n * @param characterLimit the character limit to start truncating at.\n * @returns a string that is truncated if it's length is over the limit.\n */\nexport const truncate = (aStringOrNumber: string | number, characterLimit: number) => {\n const aString = aStringOrNumber?.toString();\n return aString?.length > characterLimit ? `${aString?.slice(0, characterLimit)}...` : aString;\n};\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 :popover-overflow-visible=\"isDropdownVariant\"\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 :dropdown=\"dropdownProp\"\n :dropdown-position=\"options?.dropdownPosition\"\n :variant=\"inputVariant\"\n :value=\"internalFilterValue\"\n @input=\"setInternalFilterValue\"\n @dropdown-input=\"onDropdownInput\"\n />\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, PropType, provide, ref, toRef, watch } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import {\n BentoFilterEvent,\n BentoInputFilterInputAndDropdownValues,\n BentoInputFilterOptions,\n BentoInputFilterValue,\n } from '../../filter-bar.types';\n import { BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n import { BentoListboxSelectedValue } from '@/types';\n import { INPUT_FILTER_POPOVER_INJECTION_KEY } from '@/components/filter-bar/components/input-filter/input-filter.keys';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n *\n */\n export default defineComponent({\n name: 'bento-input-filter',\n components: {\n BentoBaseFilter,\n BentoInputField,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: String, 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 * If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.\n */\n value: { type: [String, Object] as PropType<BentoInputFilterValue>, 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 * - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.\n * - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.\n */\n options: {\n type: Object as PropType<BentoInputFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const inputTextRef = ref(null);\n\n // Dropdown\n const dropdownValue = ref<BentoListboxSelectedValue>(props?.options?.dropdown?.value);\n const isDropdownVariant = computed(\n () => props?.options?.variant === 'dropdown' && props?.options?.dropdown !== undefined\n );\n const dropdownProp = computed(() =>\n isDropdownVariant.value ? { ...props?.options?.dropdown, value: dropdownValue.value } : undefined\n );\n // For now we only allow the dropdown or the default variant for the input field.\n const inputVariant = computed(() => (props?.options?.variant === 'dropdown' ? 'dropdown' : 'default'));\n\n // Computed value as the input value location will be different if it is a dropdown variant\n const valueProp = computed(() =>\n isDropdownVariant.value\n ? (props.value as BentoInputFilterInputAndDropdownValues)?.inputValue\n : (props?.value as string)\n );\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter<string>(\n valueProp,\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null ? props.label : truncate(valueProp.value, 18)\n );\n const buttonSecondaryLabel = computed(() =>\n props.defaultValue === null ? truncate(valueProp.value, 12) : null\n );\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 = valueProp.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(BentoFilterEvent.UPDATE, {\n ...props,\n value: isDropdownVariant.value\n ? { inputValue: internalFilterValue.value, dropdownValue: dropdownValue.value }\n : 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 const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const setInternalFilterValue = (event: string) => {\n internalFilterValue.value = event;\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n dropdownValue.value = selectedValue;\n };\n\n // We need to change the base filter's popover to have overflow visible so the dropdown options is\n // not hidden inside the filter when opened.\n provide(INPUT_FILTER_POPOVER_INJECTION_KEY, isDropdownVariant.value);\n\n // Verify that no unsopported attributes are passed to the component\n watch(\n () => props.options,\n () => {\n if (props.options?.dropdown || props.options?.dropdownPosition || props.options?.variant) {\n deprecate(\n 'BentoInputFilter \"options\" property',\n `BentoInputFilter \"options\" no longer supports \"dropdown\", \"dropdownPosition\" or \"variant\" attributes.\n Use the \"BentoFilterItemType.INPUT_DROPDOWN\" instead of \"BentoFilterItemType.INPUT\"\n <bento-filter-bar \n :config=\"[{\n field: 'name',\n label: 'Name',\n type: BentoFilterItemType.INPUT_DROPDOWN,\n options: [...],\n }]\" \n />`,\n '2.0.0'\n );\n }\n },\n { immediate: true }\n );\n\n return {\n // Values\n buttonLabel,\n buttonSecondaryLabel,\n conditionalClasses,\n dropdownProp,\n inputVariant,\n internalFilterValue,\n isApplyButtonDisabled,\n isDropdownVariant,\n isSecondaryButtonDisabled,\n\n // Refs\n inputTextRef,\n\n // Events\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n onDropdownInput,\n onInput,\n setInternalFilterValue,\n };\n },\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=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :disable-apply-button=\"shouldDisableApply\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div\n class=\"b-input-with-dropdown-filter\"\n :class=\"conditionalClasses\"\n @keydown.enter=\"updateFilter\"\n @input=\"onInput\"\n >\n <bento-input-field\n ref=\"inputTextRef\"\n :dropdown=\"dropdownOptions\"\n :dropdown-position=\"options?.dropdownPosition\"\n variant=\"dropdown\"\n :value=\"internalFilterValue?.inputValue\"\n @input=\"setInternalFilterValue\"\n @dropdown-input=\"onDropdownInput\"\n />\n </div>\n </bento-base-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onBeforeUpdate, provide, ref, toRef, watch } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import {\n BentoFilterEvent,\n BentoInputWithDropdownFilterOptions,\n BentoInpuWithDropdowntFilterValue,\n } from '../../filter-bar.types';\n import { BentoInputDropdownProps, BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n import { BentoListboxSelectedValue } from '@/types';\n import { INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY } from '@/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.keys';\n\n const props = defineProps({\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([BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE]);\n\n const inputTextRef = ref(null);\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } =\n useBaseFilter<BentoInpuWithDropdowntFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n\n const buttonLabel = computed(() =>\n !props.defaultValue?.inputValue ? props.label : truncate(props.value?.inputValue, 18)\n );\n const buttonSecondaryLabel = computed(() =>\n !props.defaultValue?.inputValue ? truncate(props.value?.inputValue, 12) : null\n );\n\n const dropdownOptions = computed<BentoInputDropdownProps>(() => ({\n ...((props.options?.dropdown || {}) as BentoInputDropdownProps),\n value: internalFilterValue.value?.dropdownValue,\n }));\n\n const conditionalClasses = computed(() => ({\n [`b-input-with-dropdown-filter--only-slot`]: props.onlySlot,\n }));\n\n const shouldDisableApply = computed(() => {\n const allFieldsAreSet = !!internalFilterValue.value?.inputValue && !!internalFilterValue.value?.dropdownValue;\n return !allFieldsAreSet || isApplyButtonDisabled.value;\n });\n\n onBeforeUpdate(() => {\n // Set value to null when the string is empty\n if (internalFilterValue.value?.inputValue === '') {\n internalFilterValue.value = { ...internalFilterValue.value, inputValue: undefined };\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?.inputValue && props.defaultValue !== null) {\n // If value set to empty, reset back to default value\n internalFilterValue.value = { ...props.defaultValue };\n }\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 = null;\n updateFilter();\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const setInternalFilterValue = (event: string) => {\n internalFilterValue.value = { ...internalFilterValue.value, inputValue: event };\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n internalFilterValue.value = { ...internalFilterValue.value, dropdownValue: selectedValue };\n };\n\n // We need to change the base filter's popover to have overflow visible so the dropdown options is\n // not hidden inside the filter when opened.\n provide(INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY, true);\n</script>\n\n<script lang=\"ts\">\n /**\n *\n */\n export default {\n name: 'bento-input-with-dropdown-filter',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-with-dropdown-filter.scss\" />\n","<template>\n <bento-base-filter\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :default-value=\"defaultValue\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :field=\"field\"\n :label=\"label\"\n :only-slot=\"onlySlot\"\n fit-content\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <bento-date-picker\n v-if=\"onlySlot\"\n :value=\"internalFilterValue\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n @input=\"onDateInputSelected\"\n />\n <template v-else>\n <bento-divider class=\"b-date-filter__divider\" />\n\n <div class=\"b-date-filter\">\n <calendar\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"internalFilterValue\"\n @input=\"onDateSelected\"\n />\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateFilterOptions, BentoDateFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { Calendar } from '@/internal';\n import { BentoDivider } from '@/components/divider';\n import { BentoDatePicker } from '@/components/date-picker';\n import format from 'date-fns/format';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateFilter },\n * template: `\n * <bento-date-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 defineComponent({\n name: 'bento-date-filter',\n components: {\n BentoBaseFilter,\n BentoDatePicker,\n BentoDivider,\n Calendar,\n },\n props: {\n isDateInput: { type: Boolean, default: true },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Date as PropType<BentoDateFilterValue>, 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 * 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 * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n */\n options: {\n type: Object as PropType<BentoDateFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: { type: Date as PropType<BentoDateFilterValue>, default: undefined },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale } = useI18n(undefined, true);\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const formattedButtonDateText = computed(() =>\n props.value\n ? format(props.value, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : null\n );\n const buttonLabel = computed(() =>\n props.defaultValue === null ? props.label : formattedButtonDateText.value\n );\n const buttonSecondaryLabel = computed(() =>\n props.defaultValue === null ? formattedButtonDateText.value : null\n );\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n // Update internal date and emit selected date when using date-picker input\n const onDateInputSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n onDateSelected(selectedDate);\n updateFilter();\n };\n\n return {\n // Values\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n buttonSecondaryLabel,\n\n // Events\n clearFilter,\n onDateSelected,\n openFilter,\n updateFilter,\n resetFilter,\n onDateInputSelected,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-filter.scss\" />\n","<template>\n <bento-base-filter\n ref=\"baseFilter\"\n class=\"b-base-filter-date-range-filter\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :controlled=\"!onlySlot\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :default-value=\"defaultValue\"\n :field=\"field\"\n :label=\"label\"\n :only-slot=\"onlySlot\"\n fit-content\n @open=\"openFilter\"\n >\n <bento-date-range-picker\n v-if=\"onlySlot\"\n :allow-time-input=\"options?.allowTimeInput\"\n :value=\"internalFilterValue\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"options?.numberOfMonths\"\n :quick-select-ranges=\"options?.quickSelectRanges\"\n @input=\"onDateInputSelected\"\n />\n\n <template v-else>\n <div class=\"b-date-range-filter\">\n <date-range-picker-calendar\n :allow-time-input=\"options?.allowTimeInput\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :granularities=\"options?.granularities\"\n :max-range=\"options?.maxRange\"\n :min=\"options?.min\"\n :max=\"options?.max\"\n :number-of-months=\"options?.numberOfMonths\"\n :quick-select-ranges=\"options?.quickSelectRanges\"\n :value=\"internalFilterValue\"\n :date-form-data=\"formData\"\n :show-end-date-on-open=\"options?.showEndDateOnOpen\"\n @input=\"onDateSelected\"\n @custom-range=\"onRangeSelectorInput\"\n @error=\"onDatePickerRangeError\"\n @form-date=\"onDatePickerRangeFormDateInputUpdate\"\n @start-date-selected=\"isSelectingDate = true\"\n >\n <template #title>\n <bento-typography strongest variant=\"body\" el=\"span\">\n {{ label }}\n </bento-typography>\n </template>\n <template #actions>\n <bento-divider class=\"b-date-range-filter__divider\" />\n\n <bento-button-actions\n class=\"b-date-range-filter__actions\"\n :actions=\"actions\"\n layout=\"space-between\"\n />\n </template>\n </date-range-picker-calendar>\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, reactive, ref, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateRangeFilterOptions, BentoDateRangeFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { DateRangePickerCalendar } from '@/components/date-range-picker/components/date-range-picker-calendar';\n import { BentoDateRangePicker, BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoDivider } from '@/components/divider';\n import { BentoTypography } from '@/components/typography';\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button/components/button-actions';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n import { DateFormat } from '@/types';\n import isEqual from 'date-fns/isEqual';\n import isSameDay from 'date-fns/isSameDay';\n import format from 'date-fns/format';\n\n import messages from './messages.json';\n import {\n DateRangePickerCalendarFormData,\n DateRangePickerCalendarRangeSelectorItems,\n } from '@/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateRangeFilter },\n * template: `\n * <bento-date-range-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 defineComponent({\n i18n: { messages },\n name: 'bento-date-range-filter',\n components: {\n BentoBaseFilter,\n BentoButtonActions,\n BentoDateRangePicker,\n BentoTypography,\n BentoDivider,\n DateRangePickerCalendar,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Object as PropType<BentoDateRangeFilterValue>, 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 * 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 * - allowTimeInput: Allows user to enter time values in the form\n * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - maxRange: Set a maximum number of dates to be selectable by the range\n * - numberOfMonths: Number of months rendered on pane\n * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker\n * - showEndDateOnOpen: Upon opening date range picker, end date's month will be pre-selected.\n */\n options: {\n type: Object as PropType<BentoDateRangeFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: {\n type: Object as PropType<BentoDateRangeFilterValue>,\n default: () => ({ startDate: undefined, endDate: undefined }),\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n const isSelectingDate = ref(false);\n\n const formatFormDate = (date: Date) =>\n date\n ? format(date, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : undefined;\n\n const formatFormTime = (dateToFormat?: Date) => {\n if (!dateToFormat) {\n return '';\n }\n\n return format(dateToFormat, DateFormat.HOUR_MINUTE_SECONDS, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\n };\n\n const baseFilter = ref(null);\n const isDateIncorrect = ref(false);\n const formData = reactive({\n startDate: formatFormDate(props.value?.startDate),\n endDate: formatFormDate(props.value?.endDate),\n startTime: formatFormTime(props.value?.startDate),\n endTime: formatFormTime(props.value?.endDate),\n });\n\n function isQuickSelectAnArray(\n quickSelectRanges: BentoDateRangeFilterOptions['quickSelectRanges']\n ): quickSelectRanges is DateRangePickerCalendarRangeSelectorItems {\n return (quickSelectRanges as DateRangePickerCalendarRangeSelectorItems)?.length !== undefined;\n }\n\n const formattedButtonDateText = computed(() => {\n if (!props.value?.startDate && !props.value.endDate) {\n return null;\n }\n // If quick select range selected then display it's label\n if (\n isQuickSelectAnArray(props.options?.quickSelectRanges) &&\n props.options?.quickSelectRanges?.length > 0\n ) {\n const customRangeSelected = props.options?.quickSelectRanges?.find(\n ({ data }) =>\n isEqual(data?.startDate, props.value.startDate) &&\n isEqual(data?.endDate, props.value.endDate)\n );\n if (customRangeSelected) {\n return customRangeSelected.label;\n }\n }\n\n return isSameDay(props.value?.startDate, props.value?.endDate) && props?.options?.allowTimeInput\n ? `${format(props.value.startDate, 'dd MMM, yyyy HH:mm:ss', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })} - ${format(props.value.endDate, 'HH:mm:ss', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })}`\n : `${format(props.value.startDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })} - ${format(props.value.endDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })}`;\n });\n const buttonLabel = computed(() =>\n props.defaultValue === null ? props.label : formattedButtonDateText.value\n );\n\n const buttonSecondaryLabel = computed(() =>\n props.defaultValue === null ? formattedButtonDateText.value : null\n );\n\n const updateFilter = () => {\n baseFilter.value.closePopover();\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = undefined;\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: BentoDateRangePickerValue) => {\n isSelectingDate.value = false;\n internalFilterValue.value = selectedDate;\n formData.startDate = formatFormDate(selectedDate.startDate);\n formData.endDate = formatFormDate(selectedDate.endDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const onRangeSelectorInput = (quickSelectRanges?: { startDate: Date; endDate: Date }) => {\n if (quickSelectRanges?.startDate && quickSelectRanges?.endDate) {\n internalFilterValue.value = quickSelectRanges;\n formData.startDate = formatFormDate(quickSelectRanges.startDate);\n formData.endDate = formatFormDate(quickSelectRanges.endDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n }\n };\n\n // Need to update the internal value and emit the date when using the date-picker input\n const onDateInputSelected = (selectedDate: BentoDateRangePickerValue) => {\n onDateSelected(selectedDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const actions = computed(\n () =>\n [\n {\n title: t('apply') as string,\n event: updateFilter,\n disabled: isSelectingDate.value || isDateIncorrect.value || isApplyButtonDisabled.value,\n },\n {\n title: (props.defaultValue ? t('reset') : t('clear')) as string,\n event: (props.defaultValue ? resetFilter : clearFilter) as () => void,\n disabled: isDateIncorrect.value && isSecondaryButtonDisabled.value,\n },\n ] as BentoButtonActionsList\n );\n\n const onDatePickerRangeError = () => {\n isDateIncorrect.value = true;\n internalFilterValue.value = { startDate: undefined, endDate: undefined };\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const onDatePickerRangeFormDateInputUpdate = (dateFormDate: DateRangePickerCalendarFormData) => {\n isDateIncorrect.value = false;\n\n if (dateFormDate.startTime) {\n formData.startTime = dateFormDate.startTime;\n }\n\n if (dateFormDate.endTime) {\n formData.endTime = dateFormDate.endTime;\n }\n };\n\n return {\n // Refs\n baseFilter,\n\n // Values\n actions,\n formData,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n isSelectingDate,\n buttonLabel,\n buttonSecondaryLabel,\n\n // Events\n onDateSelected,\n openFilter,\n updateFilter,\n onDatePickerRangeError,\n onDatePickerRangeFormDateInputUpdate,\n onDateInputSelected,\n onRangeSelectorInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-range-filter.scss\" />\n","<template>\n <bento-base-filter\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 :default-value=\"defaultValue\"\n :label=\"label\"\n :field=\"field\"\n :only-slot=\"false\"\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\">\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\n <bento-listbox\n :id=\"listboxFilterId\"\n :aria-label=\"label\"\n class=\"b-select-filter-button__wrapper\"\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, PropType, ref, toRef, useSlots, watch } from 'vue';\n\n // Components\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { BentoDivider } from '@/components/divider';\n import { BentoListbox, useCachedSelectedValues } from '@/internal';\n import { BentoListboxOptionItem, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';\n import { BentoBaseFilter, useBaseFilter } from '../../../base-filter';\n\n // Types\n import { BentoFilterEvent, BentoSelectFilterOptions } from '../../../../filter-bar.types';\n\n // Utilities\n import { generateUid } from '@/utils/ts/unique-id';\n import { truncate } from '@/utils/ts/truncate';\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 slots = useSlots();\n\n const emit = defineEmits([\"input\", \"update\"]);\n\n const props = defineProps({\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] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n });\n\n const { t, locale } = 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(() => {\n if (props.defaultValue === null) {\n return props.label;\n }\n if (props.options.multiple) {\n const itemsSelected = (props.value as unknown[])?.length;\n if (itemsSelected === props.options.listboxItems.length) {\n return props?.options?.messagesPersistentButtonLabelAllSelectedKey\n ? props?.options?.messages[locale.value][\n props?.options?.messagesPersistentButtonLabelAllSelectedKey\n ]\n : props?.options?.messages[locale.value].persistentButtonLabelAllSelected;\n }\n\n const messageTranslationValue = props?.options?.messagesPersistentButtonLabelPartiallySelectedKey\n ? props?.options?.messages[locale.value][\n props?.options?.messagesPersistentButtonLabelPartiallySelectedKey\n ]\n : props?.options?.messages[locale.value].persistentButtonLabelPartiallySelected;\n const messageTranslation = messageTranslationValue.split('|').map(message => message.trim());\n if (itemsSelected === 1) {\n return messageTranslation[0].replace('{count}', itemsSelected as unknown as string);\n }\n return messageTranslation[1].replace('{count}', itemsSelected as unknown as string);\n }\n\n return cachedSelectedListboxOptions.value?.length\n ? truncate(cachedSelectedListboxOptions.value[0].label, 18)\n : '';\n });\n\n const buttonSecondaryLabel = computed(() => {\n if (\n props.defaultValue === null &&\n (!props.options.multiple || (props.value as Array<string | number>)?.length === 1)\n ) {\n const flatListboxItems = props.options.listboxItems.flatMap(x => (x.items ? x.items : x));\n\n return truncate(\n flatListboxItems.find(({ value }) =>\n Array.isArray(props.value) ? props?.value?.includes(value) : value === props.value\n )?.label,\n 12\n );\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 const { onlySlot, ...cleanedProps } = props;\n // Return null if there are no selected values\n if (props.options.multiple) {\n const value = selectedValue.length ? internalFilterValue.value.map(({ value }) => value) : null;\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value });\n return;\n }\n\n const value = selectedValue.length ? selectedValue[0].value : null;\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 fitler 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 unknown[])?.length === 0) {\n internalFilterValue.value =\n props.defaultValue !== null ? cachedDefaultSelectedListboxOptions.value : undefined;\n }\n const value = internalFilterValue.value?.length\n ? internalFilterValue.value?.map(({ value }) => value)\n : null;\n emit(BentoFilterEvent.UPDATE, {\n ...cleanedProps,\n value,\n });\n return;\n }\n\n const value = internalFilterValue.value.length ? internalFilterValue.value[0].value : undefined;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = cachedSelectedListboxOptions.value;\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.defaultValue !== 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 :value=\"internalFilterValue\"\n :items=\"options.listboxItems\"\n :multiple=\"options?.multiple\"\n :static-categories=\"options?.staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :is-option-disabled=\"options.isOptionDisabled\"\n :dynamic-filtering=\"true\"\n :empty-state=\"options?.emptyState\"\n @input=\"onOptionSelected\"\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, 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 { BentoListboxSelectedValue } from '@/types';\n import { BentoFilterEvent, 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 * 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 searchTerm = ref('');\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';\nimport type { BentoSelectFilterOptions } from '@/components/filter-bar/filter-bar.types';\n\nexport const SelectFilterProps = {\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\nexport default SelectFilterProps;\n","<template>\n <select-filter-dropdown\n v-if=\"onlySlot\"\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 :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 <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-avatar :username=\"slotLabel\" :src=\"data\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectAvatarFilterOptions } from '@/components/filter-bar';\n import { BentoAvatar } from '@/components/avatar';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n /**\n * The Select Avatar filter displays a listbox of avatar items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectAvatarFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectAvatarFilter },\n * template: `\n * <bento-select-avatar-filter\n * :field=\"avatar\"\n * :label=\"Avatar\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Avatar 1',\n * value: 'avatar-2'\n * }, {\n * label: 'Avatar 2',\n * value: 'avatar-2'\n * }],\n * :multiple=\"false\"\n * }\"\n * value=\"avatar-2\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-avatar-filter',\n components: {\n BentoSelectFilter,\n BentoAvatar,\n },\n props: {\n ...SelectFilterProps,\n\n /**\n * List of options that are needed to setup the country 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 {@see BentoSelectCountryFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectAvatarFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"slotProps\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { ListboxOptionTag } from '@/internal';\n import { BentoFilterEvent, BentoSelectCurrencyFilterOptions } from '@/components/filter-bar';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoSelectCurrencyFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCurrencyFilter },\n * template: `\n * <bento-select-currency-filter\n * :field=\"currency\"\n * :label=\"Currency\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Euro',\n * value: BentoCurrencyISOCode.EUR,\n * }, {\n * label: 'US Dollars',\n * value: BentoCurrencyISOCode.USD,\n * }],\n * multiple=\"false\",\n * isOptionsDisabled=\"option => option.value === BentoCurrencyISOCode.USD\"\n * }\"\n * :value=\"BentoCurrencyISOCode.EUR\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...SelectFilterProps,\n\n /**\n * List of options that are needed to setup the country 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 {@see BentoSelectCurrencyFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectCurrencyFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => {\n emit(BentoFilterEvent.UPDATE, selectedValue);\n };\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel }\"\n v-bind=\"props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-typography el=\"span\">{{ slotLabel }}</bento-typography>\n </bento-select-filter>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, watch } from 'vue';\n import { useCountryItems } from '@/components/dropdown/components/variants/dropdown-country/composables/use-country-items';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoFilterEvent, BentoSelectCountryFilterOptions } from '@/components/filter-bar';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoTypography } from '@/components/typography';\n import BentoSelectFilter from '../../select-filter.vue';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n const props = defineProps({\n ...SelectFilterProps,\n\n /**\n * List of options that are needed to setup the country 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 {@see BentoSelectCountryFilterOptions}\n * - variant: Which label variant to display for the option item.\n */\n options: {\n type: Object as PropType<BentoSelectCountryFilterOptions>,\n default: undefined,\n },\n });\n\n const emit = defineEmits([BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE]);\n\n const variant = ref(props.options.variant);\n const listboxItems = ref(props.options.listboxItems);\n\n watch([() => props.options.variant, () => props.options.listboxItems], () => {\n variant.value = props.options.variant;\n listboxItems.value = props.options.listboxItems;\n });\n\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const countryItems = useCountryItems(variant, listboxItems);\n const countryOptions = computed(() => {\n return {\n ...(props?.options ? props.options : {}),\n listboxItems: countryItems.value,\n };\n });\n\n if (!variant.value || variant.value === 'custom') {\n deprecate(\n 'BentoSelectCountryFilter type with `options.variant===\"custom\"`',\n 'Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels',\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectCountryFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCountryFilter },\n * template: `\n * <bento-select-country-filter\n * :field=\"country\"\n * :label=\"Country\"\n * :options=\"{\n * listboxItems: [{\n * value: \"NL\",\n * }, {\n * value: \"BE\",\n * }],\n * variant: 'capital'\n * }\"\n * :value=\"BE\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default {\n name: 'bento-select-country-filter',\n };\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ value, label: slotLabel }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-payment-method :type=\"value\" :label=\"slotLabel\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectPaymentMethodFilterOptions } from '@/components/filter-bar';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n /**\n * The Select Payment Method filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property to be used in the FilterBar component.\n *\n * @example\n * import { BentoSelectPaymentMethodFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectPaymentMethodFilter },\n * template: `\n * <bento-select-paymnent-method-filter\n * :field=\"paymentMethod\"\n * :label=\"Payment method\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Option 1', value: 'Ideal' },\n * { label: 'Option 2', value: 'Visa' },\n * ],\n * }\"\n * value=\"Ideal\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-payment-method-filter',\n components: {\n BentoSelectFilter,\n BentoPaymentMethod,\n },\n props: {\n ...SelectFilterProps,\n\n /**\n * List of options that are needed to setup the payment method 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 {@see BentoSelectPaymentMethodFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectPaymentMethodFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"{ value: slotLabel, data, label: '' }\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectTagFilterOptions } from '@/components/filter-bar';\n import { ListboxOptionTag } from '@/internal';\n import SelectFilterProps from '@/components/filter-bar/components/select-filter/select-filter.props';\n\n /**\n * The Select Tag filter displays a listbox of tag items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectTagFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectTagFilter },\n * template: `\n * <bento-select-tag-filter\n * :field=\"tag\"\n * :label=\"Tag\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * { label: 'Standby', value: 'unique-id-3', variant: 'orange' },\n * { label: 'Busy with things', value: 'unique-id-4', variant: 'blue' },\n * ]\n * }\"\n * :value=\"'unique-id-4'\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...SelectFilterProps,\n\n /**\n * List of options that are needed to setup the tag 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 {@see BentoSelectTagFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectTagFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const tagItems = computed(() =>\n props?.options?.listboxItems?.map(({ label, value, variant }) => ({ label, value, data: variant }))\n );\n const countryOptions = computed(() => ({\n ...props.options,\n listboxItems: tagItems.value,\n }));\n\n return {\n // Values\n countryOptions,\n\n // Methods\n onUpdate,\n\n // Enums\n BentoFilterEvent,\n };\n },\n });\n</script>\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 @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 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, 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 { BentoBooleanFilterOptions, BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Example description of the component...\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 * 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 * - listboxItems: The option elements to populate the filter with.\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(() =>\n props.defaultValue === null\n ? props.label\n : truncate(items.value.find(({ value }) => value === translatedValue.value).label, 18)\n );\n const buttonSecondaryLabel = computed(() =>\n props.defaultValue === null\n ? truncate(items.value.find(({ value }) => value === translatedValue.value)?.label, 12)\n : null\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 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 :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :button-secondary-label=\"buttonSecondaryLabel\"\n :only-slot=\"onlySlot\"\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=\"inputTextRef\"\n :value=\"internalFilterValue ? internalFilterValue[0] : ''\"\n type=\"number\"\n :aria-label=\"t('from').toString()\"\n @input=\"updateFrom\"\n >\n {{ t('from') }}\n </bento-input-field>\n <bento-input-field\n class=\"b-range-filter__input-field\"\n :value=\"internalFilterValue ? internalFilterValue[1] : ''\"\n type=\"number\"\n :aria-label=\"t('to')\"\n @input=\"updateTo\"\n >\n {{ t('to') }}\n </bento-input-field>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, toRef } from 'vue';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\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 defineComponent({\n name: 'bento-range-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoInputField },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Array as PropType<string[]>, 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: Array as PropType<string[]>, default: () => ['', ''] },\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 emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const inputTextRef = ref(null);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\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 rangeFromLabel = props.value?.[0] ? `${truncate(props.value[0], 5)}` : '';\n const seperator = props.value?.[0] && props.value?.[1] ? ' - ' : '';\n const rangeToLabel = props.value?.[1] ? `${truncate(props.value[1], 5)}` : '';\n\n return `${prefix}${rangeFromLabel}${seperator}${rangeToLabel}`;\n });\n const buttonLabel = computed(() =>\n props.defaultValue === null ? props.label : truncatedRangeValues.value\n );\n const buttonSecondaryLabel = computed(() =>\n props.defaultValue === null ? truncatedRangeValues.value : null\n );\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(() => inputTextRef.value.focusInput());\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const updateFrom = newValue => {\n internalFilterValue.value = [newValue, internalFilterValue.value[1]];\n onInput();\n };\n\n const updateTo = newValue => {\n internalFilterValue.value = [internalFilterValue.value[0], newValue];\n onInput();\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\n return {\n // Values\n inputTextRef,\n conditionalClasses,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n buttonSecondaryLabel,\n\n // Events\n updateFrom,\n updateTo,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n\n // Translations\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./range-filter.scss\" />\n","export enum AllFiltersModalEvent {\n INPUT = 'input',\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","\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=\"#00112C\" 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=\"#00112C\" 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>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div class=\"b-all-filters-modal\">\n <filter-bar-button\n :is-filter-open=\"isModalOpen\"\n :applied-filters-count=\"numberOfActiveFilters\"\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 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 <div\n ref=\"allFiltersModalFiltersSection\"\n class=\"b-all-filters-modal__filters\"\n @keydown.right=\"onKeydownRight\"\n >\n <bento-search-bar\n class=\"b-all-filters-modal__search-bar\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"t('searchBar').toString()\"\n @input=\"searchTerm = $event\"\n @clear=\"onSearchbarClear\"\n />\n <div v-if=\"isEmptyResultForSearchFilter\" class=\"b-all-filters-modal__empty-search-message\">\n <bento-typography el=\"span\"> {{ t('noFiltersMatchThisSearch') }}</bento-typography>\n </div>\n <div v-if=\"activeFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n :id=\"`active-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n el=\"span\"\n variant=\"caption\"\n >\n {{ t('activeFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`active-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in activeFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n <div v-if=\"otherFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n v-if=\"activeFilters.length\"\n :id=\"`other-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n el=\"span\"\n variant=\"caption\"\n >\n {{ t('otherFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`other-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in otherFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n </div>\n </template>\n <template #content-col-2>\n <div class=\"b-all-filters-modal__selected-filter-content\" @keydown.left=\"onKeydownLeft\">\n <div class=\"b-all-filters-modal__selected-filter-text\">\n <bento-typography el=\"div\" variant=\"title\" medium>{{ selectedFilter.label }}</bento-typography>\n <bento-typography v-if=\"selectedFilter.description\" el=\"div\" variant=\"body\" wide>\n {{ selectedFilter.description }}\n </bento-typography>\n </div>\n <div class=\"b-all-filters-modal__selected-filter-component\">\n <component\n :is=\"selectedFilter.type\"\n ref=\"selectedFilterRef\"\n :key=\"selectedFilter.field\"\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 @input=\"updateFilter\"\n />\n </div>\n <div class=\"b-all-filters-modal__clear-button\">\n <bento-button variant=\"secondary\" :disabled=\"!isClearButtonEnabled\" @click=\"clearFilter\">{{\n t('clear')\n }}</bento-button>\n </div>\n </div>\n </template>\n </bento-modal>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, onMounted, PropType, reactive, ref, toRef, watch } from 'vue';\n import { BentoModal, BentoModalEvent } from '@/components/modal';\n import { BentoButton } from '@/components/button';\n import {\n BentoFilterBarModel,\n BentoFilterItemType,\n BentoFilterModel,\n BentoSelectFilterOptions,\n } from '@/components/filter-bar/filter-bar.types';\n import {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from '../index';\n import { BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { FilterBarButton } from '../filter-bar-button';\n import { AllFiltersModalEvent } from './all-filters-modal.types';\n import { useI18n } from '@/utils/ts/i18n';\n import AllFiltersModalButton from './components/all-filters-modal-button/all-filters-modal-button.vue';\n import SlidersIcon from '@adyen/ui-assets-icons-16/vue/sliders-1';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\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 defineComponent({\n i18n: { messages },\n name: 'all-filters-modal',\n components: {\n AllFiltersModalButton,\n BentoBooleanFilter,\n BentoButton,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoModal,\n BentoRangeFilter,\n BentoSearchBar,\n BentoSelectAvatarFilter,\n BentoSelectCurrencyFilter,\n BentoSelectCountryFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n BentoTypography,\n FilterBarButton,\n SlidersIcon,\n },\n props: {\n /**\n * Array of filters based on {@see FilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the AllFiltersModal.\n *\n * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n },\n emits: [AllFiltersModalEvent.INPUT],\n setup(props, { emit }) {\n const filters = reactive({ value: props.value });\n const filtersInModal = ref(filters.value);\n const allFiltersModalUniqueId = generateUid('all-filters-modal');\n const allFiltersModalFiltersSection = ref([]);\n const isModalOpen = ref(false);\n const selectedFilterIndex = ref(0);\n const selectedFilterRef = ref(null);\n const searchTerm = ref<string>('');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const filteredItems = useSearchBarFilter<BentoFilterModel>(searchTerm, toRef(filtersInModal, 'value'));\n\n const allFiltersModalFilterButtons = ref({});\n onBeforeUpdate(() => {\n allFiltersModalFilterButtons.value = [];\n });\n\n watch(\n () => props.value,\n () => {\n filters.value = props.value;\n filtersInModal.value = props.value;\n }\n );\n\n const sortAlphabetically = (array: BentoFilterBarModel) =>\n /* eslint-disable-next-line no-nested-ternary */\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)\n ? el.value?.length === 0 || el.value?.every(item => item === '')\n : !el.value\n )\n )\n );\n\n const isEmptyResultForSearchFilter = computed(() => searchTerm.value && filteredItems.value?.length === 0);\n\n const selectedFilter = computed(() => filtersInModal.value[selectedFilterIndex.value]);\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 onMounted(() => {\n selectOpenedFilter();\n });\n\n const computeCounts = (filterValue: BentoFilterBarModel) =>\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.INPUT:\n case BentoFilterItemType.BOOLEAN:\n case BentoFilterItemType.DATE:\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 isClearButtonEnabled = computed(() =>\n Array.isArray(selectedFilter.value.value)\n ? selectedFilter.value?.value.length && selectedFilter.value.value.find(item => item !== '')\n : !!filtersInModal.value[selectedFilterIndex.value].value\n );\n\n const numberOfActiveFilters = computed(\n () => computeCounts(filters.value)?.filter(({ count }) => !!count).length\n );\n\n const onClickAllFiltersModal = () => {\n if (!isModalOpen.value) {\n isModalOpen.value = true;\n } else {\n isModalOpen.value = false;\n }\n };\n\n const getFilterCount = (filter: BentoFilterModel) => {\n const filterCount = computeCounts(filtersInModal.value).find(el => el.field === filter.field).count;\n\n if (\n filter.type.includes('BentoSelect') &&\n (filter.options as BentoSelectFilterOptions)?.multiple &&\n filterCount === (filter.options as BentoSelectFilterOptions)?.listboxItems?.length\n ) {\n return t('all');\n }\n\n return 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 };\n\n const onSearchbarClear = () => {\n searchTerm.value = '';\n };\n\n const cancel = () => {\n isModalOpen.value = false;\n filters.value = props.value;\n filtersInModal.value = props.value;\n onSearchbarClear();\n selectOpenedFilter();\n // TODO: scrol filters section to top\n };\n\n const updateFilter = (updatedFilter: BentoFilterModel) => {\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 clearFilter = () => {\n updateFilter({\n field: selectedFilter.value.field,\n label: selectedFilter.value.label,\n type: selectedFilter.value.type,\n value: undefined,\n });\n };\n\n const clearAll = () => {\n filtersInModal.value = filters.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n };\n\n const applyAll = () => {\n emit(AllFiltersModalEvent.INPUT, filtersInModal.value);\n isModalOpen.value = false;\n };\n\n const isApplyAllButtonDisabled = computed(\n () => JSON.stringify(filtersInModal.value) === JSON.stringify(props.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('clearAll'),\n disabled: !numberOfActiveFilters.value,\n event: clearAll,\n },\n ]);\n\n const onKeydownRight = () => {\n const focusableEl = getNextFocusableElement(1, selectedFilterRef.value.$el);\n focusableEl.focus();\n };\n\n const onKeydownLeft = () => {\n allFiltersModalFilterButtons.value[selectedFilter.value.label].$el.focus();\n };\n\n return {\n // Enums\n BentoModalEvent,\n\n // Values\n allFiltersModalUniqueId,\n allFiltersModalFiltersSection,\n allFiltersModalFilterButtons,\n numberOfActiveFilters,\n isEmptyResultForSearchFilter,\n isModalOpen,\n isClearButtonEnabled,\n activeFilters,\n otherFilters,\n modalActions,\n selectedFilter,\n selectedFilterRef,\n filters,\n searchTerm,\n\n // Methods\n onClickAllFiltersModal,\n getFilterCount,\n cancel,\n selectFilter,\n clearFilter,\n updateFilter,\n onSearchbarClear,\n onKeydownRight,\n onKeydownLeft,\n\n // Translations\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal.scss\" />\n","<template>\n <div class=\"b-filter-bar\">\n <div class=\"b-filter-bar__container\">\n <div\n v-if=\"isSearchBarEnabled || hasHiddenFilters || isClearAllVisible || isResetAllVisible\"\n class=\"b-filter-bar__before-filters\"\n >\n <bento-search-bar\n v-if=\"isSearchBarEnabled\"\n class=\"b-filter-bar__search-bar\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n condensed\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\n\n <!-- All filters button -->\n <all-filters-modal\n v-if=\"hasHiddenFilters\"\n class=\"b-filter-bar__all-filters-modal\"\n :value=\"valueAndFilterValuesPropsMerged\"\n @input=\"updateAllFilters\"\n />\n\n <!-- Clear all filters button -->\n <filter-bar-button v-show=\"isClearAllVisible\" class=\"b-filter-bar__clear-all\" @click=\"clearAllFilters\">\n {{ t('clearAll') }}\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-show=\"isResetAllVisible\" class=\"b-filter-bar__reset-all\" @click=\"resetAllFilters\">\n {{ t('resetAll') }}\n <template #iconLeft>\n <refresh-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n </div>\n <div class=\"b-filter-bar__filters-container\">\n <div class=\"b-filter-bar__filters\">\n <fixed-scroller class=\"b-filter-bar__fixed-scroller\" condensed>\n <div class=\"b-filter-bar__scroller-content\">\n <bento-search-bar\n v-if=\"isSearchBarEnabled\"\n class=\"b-filter-bar__search-bar\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n condensed\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\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 :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 :options=\"filter.options\"\n :value=\"filter.value\"\n @update=\"updateFilterHandler\"\n />\n </div>\n </fixed-scroller>\n </div>\n <div v-if=\"hasHiddenFilters || isClearAllVisible || isResetAllVisible\" class=\"b-filter-bar__actions\">\n <!-- All filters button -->\n <all-filters-modal\n v-if=\"hasHiddenFilters\"\n class=\"b-filter-bar__all-filters-modal\"\n :value=\"valueAndFilterValuesPropsMerged\"\n @input=\"updateAllFilters\"\n />\n\n <!-- Clear all filters button -->\n <filter-bar-button\n v-show=\"isClearAllVisible\"\n class=\"b-filter-bar__clear-all\"\n @click=\"clearAllFilters\"\n >\n {{ t('clearAll') }}\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\n v-show=\"isResetAllVisible\"\n class=\"b-filter-bar__reset-all\"\n @click=\"resetAllFilters\"\n >\n {{ t('resetAll') }}\n <template #iconLeft>\n <refresh-icon aria-hidden=\"true\" />\n </template>\n </filter-bar-button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType } from 'vue';\n import { FilterBarButton } from './components/filter-bar-button';\n import { BentoFilterBarEvent, BentoFilterBarModel, BentoFilterModel, BentoFilterValues } from './filter-bar.types';\n import { BentoSearchBar, BentoSearchBarEvent } from '@/components/search-bar';\n import { useBentoToastController } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { FixedScroller } from '@/internal';\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 const props = defineProps({\n /**\n * Array of filters based on {@see 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: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\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 */\n searchTerm: {\n type: BentoSearchBar.props.value.type,\n default: undefined,\n },\n\n /**\n * @deprecated from version 2.0.0. Use the config property instead.\n */\n /**\n * Array of filters based on {@see 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 * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n\n /**\n * An array of the values for each filter in the filter bar.\n * {@see BentoFilterValues}\n *\n * @example\n * [{\n * field: 'company',\n * value: '200',\n * }, {\n * field: 'name',\n * value: 'some text',\n * }]\n */\n filterValues: {\n type: Array as PropType<BentoFilterValues>,\n default: () => [],\n },\n\n /**\n * Will show all applied filters even if their visibility is set to false.\n */\n showAppliedHiddenFilters: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits([\n BentoFilterBarEvent.INPUT,\n BentoFilterBarEvent.UPDATE_FILTER_VALUES,\n BentoSearchBarEvent.CLEAR,\n BentoSearchBarEvent.INPUT,\n BentoSearchBarEvent.UPDATE,\n ]);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const valueAndFilterValuesPropsMerged = computed<BentoFilterBarModel>(() =>\n (props.config?.length > 0 ? props.config : props.value)?.map(filterModel => {\n let filterValue = props.filterValues.find(({ field }) => field === filterModel.field)?.value;\n if (filterValue === undefined) {\n // If the filter is using the deprecated `config` value prop use that\n // But if that is also not set then check if a default value exists set it to that if it is defined.\n filterValue =\n filterModel?.value === undefined && filterModel?.defaultValue !== undefined\n ? filterModel?.defaultValue\n : filterModel?.value;\n }\n\n return { ...filterModel, value: filterValue !== undefined ? filterValue : filterModel?.value };\n })\n );\n const { addToast } = useBentoToastController();\n\n const searchBarAriaLabel = computed(() => t('searchBar') as string);\n\n const hasHiddenFilters = computed(() => {\n // Has props with visible set\n const hasVisibleSet = valueAndFilterValuesPropsMerged.value.some(\n ({ visible }) => visible !== undefined && visible !== null\n );\n return hasVisibleSet ? 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(({ defaultValue }) => defaultValue !== undefined)\n );\n // Show non-persistent & visible filters\n const regularFilters = computed(() => {\n const hasVisibleSet = valueAndFilterValuesPropsMerged.value.some(\n ({ visible }) => visible !== undefined && visible !== null\n );\n // If no filter has the `visible` prop set then all are visible, otherwise search for the \"visible: true\" elements\n return hasVisibleSet\n ? valueAndFilterValuesPropsMerged.value.filter(\n ({ defaultValue, visible, value }) =>\n (defaultValue === undefined && visible) || (props.showAppliedHiddenFilters && value != undefined)\n )\n : valueAndFilterValuesPropsMerged.value.filter(\n ({ defaultValue, value }) =>\n defaultValue === undefined || (props.showAppliedHiddenFilters && value != undefined)\n );\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(() => persistentFilters.value.length === 0 && hasActiveFilters.value);\n\n const isResetAllVisible = computed(() => {\n if (persistentFilters.value.length === 0) {\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: BentoFilterBarModel) => {\n emit(BentoFilterBarEvent.INPUT, newFilters);\n emit(\n BentoFilterBarEvent.UPDATE_FILTER_VALUES,\n newFilters\n ?.filter(({ value }) => value !== null || value !== undefined)\n .map(({ field, value }) => ({ field, value }))\n );\n };\n\n const updateFilterHandler = (updatedFilter: BentoFilterModel) => {\n const filterIndex = valueAndFilterValuesPropsMerged.value.findIndex(\n filter => filter.field === updatedFilter.field\n );\n const newFilters = valueAndFilterValuesPropsMerged.value.slice();\n newFilters[filterIndex].value = updatedFilter.value;\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 {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoInputWithDropdownFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from './components';\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 * filters: [{\n * field: 'name',\n * label: 'Name',\n * value: null,\n * options: { ... },\n * type: FilterType.TEXT,\n * }]\n * }),\n * template: `\n * <bento-filter-bar\n * v-model=\"filter\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-filter-bar',\n components: {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoInputWithDropdownFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar.scss\" />\n"],"names":["__default__$6","slots","useSlots","attrs","useAttrs","hasSlot","useHasSlot","labelSlot","computed","getSlotText","computedAriaLabel","useAriaLabel","filterBarButtonRef","ref","ariaAttributes","_a","conditionalClasses","props","event","emit","BaseFilterEvent","BaseFilterEvent2","_sfc_main$j","defineComponent","messages$7","BentoPopover","BentoTeleport","FilterBarButton","BentoClickOutsideDirective","useI18n","popoverId","generateUid","isFilterOpen","filterButtonRef","popoverRef","isPersistentFilter","computedButtonText","closePopover","nextTick","_b","onClickSecondaryAction","onClickOutside","onClickFilter","onClickApply","actions","watch","value","prevValue","useClickOutside","BentoTooltipPosition","isArray","isValueEmpty","el","isEqual","first","second","useBaseFilter","appliedFilter","defaultFilter","internalFilterValue","isFilterInactive","isSecondaryButtonDisabled","isApplyButtonDisabled","BentoFilterEvent","BentoFilterEvent2","BentoFilterBarEvent","BentoFilterBarEvent2","BentoFilterItemType","BentoFilterItemType2","truncate","aStringOrNumber","characterLimit","aString","_sfc_main$i","BentoBaseFilter","BentoInputField","inputTextRef","dropdownValue","isDropdownVariant","dropdownProp","inputVariant","valueProp","toRef","buttonLabel","buttonSecondaryLabel","onBeforeUpdate","openFilter","updateFilter","resetFilter","clearFilter","onInput","setInternalFilterValue","onDropdownInput","selectedValue","provide","INPUT_FILTER_POPOVER_INJECTION_KEY","_c","deprecate","__default__$5","dropdownOptions","shouldDisableApply","INPUT_FILTER_WITH_DROPDOWN_POPOVER_INJECTION_KEY","_sfc_main$g","BentoDatePicker","BentoDivider","Calendar","locale$3","locales","locale$1","locale","locale$2","formattedButtonDateText","format","onDateSelected","selectedDate","_sfc_main$f","messages$6","BentoButtonActions","BentoDateRangePicker","BentoTypography","DateRangePickerCalendar","t","isSelectingDate","formatFormDate","date","DateFormat","formatFormTime","dateToFormat","baseFilter","isDateIncorrect","formData","reactive","_d","isQuickSelectAnArray","quickSelectRanges","customRangeSelected","_f","_e","data","isEqual$1","isSameDay","_g","_h","_i","onlySlot","cleanedProps","onRangeSelectorInput","onDateInputSelected","dateFormDate","__default__$4","messages$5","searchTerm","optionsRef","itemsRef","cachedSelectedListboxOptions","setCachedValues","resetCache","useCachedSelectedValues","cachedDefaultSelectedListboxOptions","filteredItems","useSearchBarFilter","noResultsMessage","itemsSelected","messageTranslation","message","_j","flatListboxItems","x","listboxFilterId","onOptionSelected","value2","value3","closeFilter","appliedFiltersCount","allSelectableItemsCount","acc","item","selectedAmount","__default__$3","messages$4","SelectFilterProps","__default__$2","updatedProps","_sfc_main$b","BentoSelectFilter","BentoAvatar","_","_sfc_main$a","ListboxOptionTag","__default__$1","variant","listboxItems","onUpdate","countryItems","useCountryItems","countryOptions","_sfc_main$8","BentoPaymentMethod","_props","_sfc_main$7","tagItems","label","_sfc_main$6","messages$3","BentoRadioGroup","translateBooleanToString","aStringOrBooleanValue","translateBackToOriginalValueType","translatedDefaultValue","translatedValue","items","_sfc_main$5","messages$2","truncatedRangeValues","prefix","rangeFromLabel","seperator","rangeToLabel","updateFrom","newValue","updateTo","AllFiltersModalEvent","AllFiltersModalEvent2","_sfc_main$4","BaseButton","ChevronUpIcon","ChevronDownIcon","BentoBaseButtonEvent","baseFilterButtonRef","_sfc_main$3","BaseFilterButton","uuid","_sfc_main$2","_sfc_main$1","messages$1","AllFiltersModalButton","BentoBooleanFilter","BentoButton","BentoDateFilter","BentoDateRangeFilter","BentoInputFilter","BentoModal","BentoRangeFilter","BentoSearchBar","BentoSelectAvatarFilter","BentoSelectCurrencyFilter","BentoSelectCountryFilter","BentoSelectPaymentMethodFilter","BentoSelectTagFilter","SlidersIcon","filters","filtersInModal","allFiltersModalUniqueId","allFiltersModalFiltersSection","isModalOpen","selectedFilterIndex","selectedFilterRef","allFiltersModalFilterButtons","sortAlphabetically","array","a","b","activeFilters","otherFilters","isEmptyResultForSearchFilter","selectedFilter","selectOpenedFilter","openedFilter","openedFilterIndex","onMounted","computeCounts","filterValue","filter","isClearButtonEnabled","numberOfActiveFilters","count","onClickAllFiltersModal","getFilterCount","filterCount","selectFilter","filterLabel","filterField","onSearchbarClear","cancel","updatedFilter","updatedFilters","otherFields","index","clearAll","applyAll","isApplyAllButtonDisabled","modalActions","BentoModalEvent","getNextFocusableElement","__default__","messages","BentoInputWithDropdownFilter","valueAndFilterValuesPropsMerged","filterModel","field","addToast","useBentoToastController","searchBarAriaLabel","hasHiddenFilters","visible","persistentFilters","defaultValue","regularFilters","isSearchBarEnabled","hasActiveFilters","isClearAllVisible","isResetAllVisible","updateAllFilters","newFilters","updateFilterHandler","filterIndex","clearAllFilters","previousFilters","clearedFilters","resetAllFilters","resetFilters","onSearchbarInput","newSearchTerm","BentoSearchBarEvent","expose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqII,MAAAA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxCAC,IAAAC,GAAA,GACAC,IAAAC,GAAA,GACAC,IAAAC,GAAAL,CAAA,GACAM,IAAAC,EAAA,MAAAP,EAAA,UAAAQ,GAAAR,CAAA,EAAA,SAAA,IAAA,IAAA,GACAS,IAAAC,GAAA,EAAA,WAAAJ,EAAA,CAAA,GACAK,IAAAC,EAAA,IAAA,GAEAC,IAAAN,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAO,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACe;AAAA,KAAA,GAGtDC,IAAAR,EAAA,OAAA;AAAA,MAA2C,oCAAAS,EAAA;AAAA,MACG,+BAAAA,EAAA,uBAAAA,EAAA,kBAAAA,EAAA;AAAA,MACgD,6CAAAA,EAAA;AAAA,MACvC,qCAAAA,EAAA;AAAA,IACR,EAAA;+LAG/C,CAAAC,MAAA;AACI,MAAAD,EAAA,YACIE,EAAA,SAAAD,CAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;AClHI,IAAAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC2DZE,KAAAC,EAAA;AAAA,EAAA,MAAA,EAAA,UA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