@adyen/bento-vue2 1.27.0 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +403 -187
  3. package/dist/accordion.js +3 -101
  4. package/dist/accordion.js.map +1 -1
  5. package/dist/action-bar.js +2 -146
  6. package/dist/action-bar.js.map +1 -1
  7. package/dist/alert.js +5 -116
  8. package/dist/alert.js.map +1 -1
  9. package/dist/assets/{index9.css → accordion-item.css} +1 -1
  10. package/dist/assets/{index11.css → action-bar.css} +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/{index4.css → card.css} +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/{index47.css → dashboard-section.css} +1 -1
  16. package/dist/assets/dashed-underline.css +1 -0
  17. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  18. package/dist/assets/data-grid.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/dropdown-default-textbox.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -0
  23. package/dist/assets/listbox-option-tag.css +1 -1
  24. package/dist/assets/{index38.css → menu.css} +1 -1
  25. package/dist/assets/{index24.css → modal-fullscreen.css} +1 -1
  26. package/dist/assets/{index33.css → popover.css} +1 -1
  27. package/dist/assets/radio-input.css +1 -1
  28. package/dist/assets/segmented-control.css +1 -0
  29. package/dist/assets/selection-card-group.css +1 -0
  30. package/dist/assets/{index36.css → sidepanel.css} +1 -1
  31. package/dist/assets/status.css +1 -0
  32. package/dist/assets/toggle.css +1 -0
  33. package/dist/assets/tutorial.css +1 -0
  34. package/dist/avatar-image.js +1 -1
  35. package/dist/badge.js +22 -24
  36. package/dist/badge.js.map +1 -1
  37. package/dist/button.js +14 -94
  38. package/dist/button.js.map +1 -1
  39. package/dist/card.js +4 -114
  40. package/dist/card.js.map +1 -1
  41. package/dist/checkbox.js +8 -155
  42. package/dist/checkbox.js.map +1 -1
  43. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  44. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  45. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  46. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  47. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  48. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  49. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  50. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  51. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  52. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  53. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  54. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  55. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  56. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  57. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  58. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  59. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  60. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  61. package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
  62. package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
  63. package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
  64. package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
  65. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  66. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  67. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  68. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  69. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  70. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  71. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  72. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  73. package/dist/chunks/alert.CJyTM4Az.js +96 -0
  74. package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
  75. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  76. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  77. package/dist/chunks/{index.ccc7e8d7.js → avatar-image.DhlR-7Yg.js} +22 -24
  78. package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
  79. package/dist/chunks/base-button.DER7_IsF.js +86 -0
  80. package/dist/chunks/{base-button.852204dc.js.map → base-button.DER7_IsF.js.map} +1 -1
  81. package/dist/chunks/{base-modal.4fb7528b.js → base-modal.C5I7bR0d.js} +42 -46
  82. package/dist/chunks/{base-modal.4fb7528b.js.map → base-modal.C5I7bR0d.js.map} +1 -1
  83. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  84. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  85. package/dist/chunks/{button-actions-with-menu.bf968959.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
  86. package/dist/chunks/{button-actions-with-menu.bf968959.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
  87. package/dist/chunks/{button-actions.87e589e3.js → button-actions.Bg9ey0p6.js} +29 -31
  88. package/dist/chunks/{button-actions.87e589e3.js.map → button-actions.Bg9ey0p6.js.map} +1 -1
  89. package/dist/chunks/{button.cb90b55c.js → button.DhAUh5JA.js} +22 -24
  90. package/dist/chunks/{button.cb90b55c.js.map → button.DhAUh5JA.js.map} +1 -1
  91. package/dist/chunks/{calendar.f02e0a5a.js → calendar.B69z8gjb.js} +287 -332
  92. package/dist/chunks/{calendar.f02e0a5a.js.map → calendar.B69z8gjb.js.map} +1 -1
  93. package/dist/chunks/card.70Xvba2C.js +115 -0
  94. package/dist/chunks/card.70Xvba2C.js.map +1 -0
  95. package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
  96. package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
  97. package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
  98. package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
  99. package/dist/chunks/{checkbox.9f9c978a.js → checkbox.Bi2RDBEZ.js} +21 -23
  100. package/dist/chunks/{checkbox.9f9c978a.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
  101. package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
  102. package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
  103. package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
  104. package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
  105. package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
  106. package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
  107. package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
  108. package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
  109. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  110. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  111. package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
  112. package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
  113. package/dist/chunks/{controls-group.121a307d.js → controls-group.cSRFiEVO.js} +17 -19
  114. package/dist/chunks/{controls-group.121a307d.js.map → controls-group.cSRFiEVO.js.map} +1 -1
  115. package/dist/chunks/{copy.6808b2dc.js → copy.BtFWFG3q.js} +15 -19
  116. package/dist/chunks/{copy.6808b2dc.js.map → copy.BtFWFG3q.js.map} +1 -1
  117. package/dist/chunks/country.KayLT0zy.js +93 -0
  118. package/dist/chunks/country.KayLT0zy.js.map +1 -0
  119. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  120. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  121. package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
  122. package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
  123. package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
  124. package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
  125. package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
  126. package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
  127. package/dist/chunks/currency.H7n7RQiX.js +113 -0
  128. package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
  129. package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
  130. package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
  131. package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
  132. package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
  133. package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
  134. package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
  135. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  136. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  137. package/dist/chunks/data-grid.XsiB40Po.js +2022 -0
  138. package/dist/chunks/data-grid.XsiB40Po.js.map +1 -0
  139. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  140. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  141. package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
  142. package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
  143. package/dist/chunks/{index.854d6498.js → date-range-picker.DJPZi8ql.js} +113 -117
  144. package/dist/chunks/date-range-picker.DJPZi8ql.js.map +1 -0
  145. package/dist/chunks/{index.614a5138.js → date.DKjxxR6P.js} +44 -51
  146. package/dist/chunks/date.DKjxxR6P.js.map +1 -0
  147. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  148. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  149. package/dist/chunks/{dialog-page.7fd7d006.js → dialog-page.DAh0M4mT.js} +20 -24
  150. package/dist/chunks/{dialog-page.7fd7d006.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
  151. package/dist/chunks/divider.BZfeYmB9.js +30 -0
  152. package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
  153. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
  154. package/dist/chunks/{dropdown-default-textbox.d0f17d96.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
  155. package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
  156. package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
  157. package/dist/chunks/{dropdown.a8037bca.js → dropdown.yhhQCKve.js} +230 -240
  158. package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
  159. package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
  160. package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
  161. package/dist/chunks/error-message.BSxUoE3_.js +107 -0
  162. package/dist/chunks/{error-message.bdcc1020.js.map → error-message.BSxUoE3_.js.map} +1 -1
  163. package/dist/chunks/events.CMzGybJJ.js +47 -0
  164. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  165. package/dist/chunks/filter-bar.Cpimgf_J.js +2119 -0
  166. package/dist/chunks/filter-bar.Cpimgf_J.js.map +1 -0
  167. package/dist/chunks/{fixed-scroller.82ef6187.js → fixed-scroller.Bq1AgPnw.js} +18 -20
  168. package/dist/chunks/{fixed-scroller.82ef6187.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
  169. package/dist/chunks/{index.1deef79e.js → focus-trap.DSkLNO_i.js} +35 -37
  170. package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
  171. package/dist/chunks/{footer-actions.58d14a16.js → footer-actions.DqMRmlV_.js} +11 -13
  172. package/dist/chunks/{footer-actions.58d14a16.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
  173. package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
  174. package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
  175. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  176. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  177. package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
  178. package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
  179. package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
  180. package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
  181. package/dist/chunks/header.DmKHCmXh.js +245 -0
  182. package/dist/chunks/header.DmKHCmXh.js.map +1 -0
  183. package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
  184. package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
  185. package/dist/chunks/image.B3uqhFjl.js +82 -0
  186. package/dist/chunks/image.B3uqhFjl.js.map +1 -0
  187. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  188. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  189. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  190. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  191. package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
  192. package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
  193. package/dist/chunks/{index.561786f6.js → index.OCPp3NST.js} +3 -3
  194. package/dist/chunks/{index.561786f6.js.map → index.OCPp3NST.js.map} +1 -1
  195. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  196. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  197. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  198. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  199. package/dist/chunks/info-icon.CLguYHRt.js +41 -0
  200. package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
  201. package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
  202. package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
  203. package/dist/chunks/input-field.BnlEPPYr.js +218 -0
  204. package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
  205. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  206. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  207. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  208. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  209. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  210. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  211. package/dist/chunks/{index.bd1d28d0.js → link.DJ1A53gF.js} +20 -24
  212. package/dist/chunks/link.DJ1A53gF.js.map +1 -0
  213. package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
  214. package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
  215. package/dist/chunks/{loading-button.692dbdc8.js → loading-button.CoF1IhEU.js} +32 -34
  216. package/dist/chunks/{loading-button.692dbdc8.js.map → loading-button.CoF1IhEU.js.map} +1 -1
  217. package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
  218. package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
  219. package/dist/chunks/{index.a48e7f99.js → menu.2TwUMlA9.js} +82 -94
  220. package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
  221. package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
  222. package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
  223. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  224. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  225. package/dist/chunks/modal.DLwvcaRx.js +439 -0
  226. package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
  227. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  228. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  229. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  230. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  231. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  232. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  233. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  234. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  235. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  236. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  237. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  238. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  239. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  240. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  241. package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
  242. package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
  243. package/dist/chunks/{payment-method.c55dd352.js → payment-method.D9Qx-s4V.js} +19 -21
  244. package/dist/chunks/{payment-method.c55dd352.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
  245. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  246. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  247. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  248. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  249. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  250. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  251. package/dist/chunks/{index.0a30d358.js → popover.B8YH92W8.js} +31 -37
  252. package/dist/chunks/popover.B8YH92W8.js.map +1 -0
  253. package/dist/chunks/{index.c8621e8e.js → popper-container.Bt02N3o1.js} +12 -15
  254. package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
  255. package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
  256. package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
  257. package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
  258. package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
  259. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  260. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  261. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  262. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  263. package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
  264. package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
  265. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  266. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  267. package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
  268. package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
  269. package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
  270. package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
  271. package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
  272. package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
  273. package/dist/chunks/segmented-control.B49WbyTl.js +111 -0
  274. package/dist/chunks/segmented-control.B49WbyTl.js.map +1 -0
  275. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  276. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  277. package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
  278. package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
  279. package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
  280. package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
  281. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  282. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  283. package/dist/chunks/status.types.BhbOYpZx.js +36 -0
  284. package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
  285. package/dist/chunks/step.DY8Txb6a.js +234 -0
  286. package/dist/chunks/step.DY8Txb6a.js.map +1 -0
  287. package/dist/chunks/{index.3c69be27.js → structured-list-item.C9NTVDvT.js} +18 -22
  288. package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
  289. package/dist/chunks/success.DhioLvPD.js +5 -0
  290. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  291. package/dist/chunks/success.nNwxJRBS.js +5 -0
  292. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  293. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
  294. package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
  295. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  296. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  297. package/dist/chunks/tabs.CE65f3E_.js +140 -0
  298. package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
  299. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  300. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  301. package/dist/chunks/tag.bhKrZHTU.js +64 -0
  302. package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
  303. package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
  304. package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
  305. package/dist/chunks/textarea.CcKbtQBs.js +208 -0
  306. package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
  307. package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
  308. package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
  309. package/dist/chunks/toast.0EYDj8o-.js +165 -0
  310. package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
  311. package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
  312. package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
  313. package/dist/chunks/toggle.CiOVTWlk.js +121 -0
  314. package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
  315. package/dist/chunks/{tooltip.efddb5f3.js → tooltip.DR8rbIYw.js} +29 -32
  316. package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
  317. package/dist/chunks/tutorial.DMm12L0S.js +335 -0
  318. package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
  319. package/dist/chunks/{index.e29a6907.js → typography.Bjtu3Gca.js} +30 -32
  320. package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
  321. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  322. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  323. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  324. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  325. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  326. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  327. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
  328. package/dist/chunks/{use-bento-toast-controller.5dac1f3c.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
  329. package/dist/chunks/{use-cached-selected-values.98a9ed01.js → use-cached-selected-values.CVLzxvTi.js} +217 -237
  330. package/dist/chunks/{use-cached-selected-values.98a9ed01.js.map → use-cached-selected-values.CVLzxvTi.js.map} +1 -1
  331. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  332. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  333. package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
  334. package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
  335. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
  336. package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
  337. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  338. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  339. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  340. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  341. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  342. package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
  343. package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
  344. package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
  345. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  346. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  347. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  348. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  349. package/dist/click-outside.js +2 -20
  350. package/dist/click-outside.js.map +1 -1
  351. package/dist/code-snippet.js +5 -2052
  352. package/dist/code-snippet.js.map +1 -1
  353. package/dist/country.js +8 -97
  354. package/dist/country.js.map +1 -1
  355. package/dist/currency.js +3 -112
  356. package/dist/currency.js.map +1 -1
  357. package/dist/dashboard-template.js +3 -106
  358. package/dist/dashboard-template.js.map +1 -1
  359. package/dist/dashed-underline.js +5 -0
  360. package/dist/dashed-underline.js.map +1 -0
  361. package/dist/data-grid-template.js +2 -65
  362. package/dist/data-grid-template.js.map +1 -1
  363. package/dist/data-grid.js +8 -1986
  364. package/dist/data-grid.js.map +1 -1
  365. package/dist/date-picker.js +5 -197
  366. package/dist/date-picker.js.map +1 -1
  367. package/dist/date-range-picker.js +2 -2
  368. package/dist/date.js +1 -1
  369. package/dist/divider.js +1 -1
  370. package/dist/dropdown.js +12 -227
  371. package/dist/dropdown.js.map +1 -1
  372. package/dist/empty-state.js +5 -143
  373. package/dist/empty-state.js.map +1 -1
  374. package/dist/filter-bar.js +5 -2156
  375. package/dist/filter-bar.js.map +1 -1
  376. package/dist/focus-trap.js +1 -1
  377. package/dist/form-layout.js +5 -192
  378. package/dist/form-layout.js.map +1 -1
  379. package/dist/header.js +2 -246
  380. package/dist/header.js.map +1 -1
  381. package/dist/image.js +4 -81
  382. package/dist/image.js.map +1 -1
  383. package/dist/index.js +270 -266
  384. package/dist/index.js.map +1 -1
  385. package/dist/info-icon.js +2 -40
  386. package/dist/info-icon.js.map +1 -1
  387. package/dist/input-field.js +7 -217
  388. package/dist/input-field.js.map +1 -1
  389. package/dist/internal.js +15 -15
  390. package/dist/link.js +1 -1
  391. package/dist/loading-indicator.js +3 -47
  392. package/dist/loading-indicator.js.map +1 -1
  393. package/dist/menu.js +1 -1
  394. package/dist/modal-fullscreen.js +3 -197
  395. package/dist/modal-fullscreen.js.map +1 -1
  396. package/dist/modal.js +11 -451
  397. package/dist/modal.js.map +1 -1
  398. package/dist/pagination.js +2 -507
  399. package/dist/pagination.js.map +1 -1
  400. package/dist/payment-method.js +4 -4
  401. package/dist/payment-method.js.map +1 -1
  402. package/dist/popover.js +1 -1
  403. package/dist/popper-container.js +1 -1
  404. package/dist/radio-group.js +6 -213
  405. package/dist/radio-group.js.map +1 -1
  406. package/dist/search-bar.js +6 -90
  407. package/dist/search-bar.js.map +1 -1
  408. package/dist/secondary-nav.js +2 -100
  409. package/dist/secondary-nav.js.map +1 -1
  410. package/dist/segmented-control.js +4 -214
  411. package/dist/segmented-control.js.map +1 -1
  412. package/dist/selection-card.js +4 -248
  413. package/dist/selection-card.js.map +1 -1
  414. package/dist/sidepanel.js +4 -189
  415. package/dist/sidepanel.js.map +1 -1
  416. package/dist/status.js +3 -40
  417. package/dist/status.js.map +1 -1
  418. package/dist/stepper.js +5 -237
  419. package/dist/stepper.js.map +1 -1
  420. package/dist/structured-list.js +1 -1
  421. package/dist/summary-grid.js +9 -584
  422. package/dist/summary-grid.js.map +1 -1
  423. package/dist/tabs.js +3 -141
  424. package/dist/tabs.js.map +1 -1
  425. package/dist/tag.js +3 -63
  426. package/dist/tag.js.map +1 -1
  427. package/dist/textarea.js +2 -209
  428. package/dist/textarea.js.map +1 -1
  429. package/dist/timeline.js +7 -367
  430. package/dist/timeline.js.map +1 -1
  431. package/dist/toast.js +2 -168
  432. package/dist/toast.js.map +1 -1
  433. package/dist/toggle.js +4 -120
  434. package/dist/toggle.js.map +1 -1
  435. package/dist/tutorial.js +2 -340
  436. package/dist/tutorial.js.map +1 -1
  437. package/dist/typography.js +1 -1
  438. package/dist/web-types.json +308 -194
  439. package/package.json +5 -7
  440. package/dist/assets/index15.css +0 -1
  441. package/dist/assets/index32.css +0 -1
  442. package/dist/assets/index34.css +0 -1
  443. package/dist/assets/index35.css +0 -1
  444. package/dist/assets/index45.css +0 -1
  445. package/dist/assets/index48.css +0 -1
  446. package/dist/assets/index6.css +0 -1
  447. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  448. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  449. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  450. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  451. package/dist/chunks/2-generic-use.443db127.js +0 -5
  452. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  453. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  454. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  455. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  456. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  457. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  458. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  459. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  460. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  461. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  462. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  463. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
  464. package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
  465. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  466. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  467. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  468. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  469. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  470. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  471. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  472. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  473. package/dist/chunks/base-button.852204dc.js +0 -88
  474. package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
  475. package/dist/chunks/dropdown.a8037bca.js.map +0 -1
  476. package/dist/chunks/error-message.bdcc1020.js +0 -111
  477. package/dist/chunks/events.f14a214b.js +0 -50
  478. package/dist/chunks/index.0a30d358.js.map +0 -1
  479. package/dist/chunks/index.1deef79e.js.map +0 -1
  480. package/dist/chunks/index.3c69be27.js.map +0 -1
  481. package/dist/chunks/index.614a5138.js.map +0 -1
  482. package/dist/chunks/index.854d6498.js.map +0 -1
  483. package/dist/chunks/index.939dd5cf.js +0 -32
  484. package/dist/chunks/index.939dd5cf.js.map +0 -1
  485. package/dist/chunks/index.a48e7f99.js.map +0 -1
  486. package/dist/chunks/index.bd1d28d0.js.map +0 -1
  487. package/dist/chunks/index.c8621e8e.js.map +0 -1
  488. package/dist/chunks/index.ccc7e8d7.js.map +0 -1
  489. package/dist/chunks/index.e29a6907.js.map +0 -1
  490. package/dist/chunks/internal-error.35cbb071.js +0 -5
  491. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  492. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  493. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  494. package/dist/chunks/listbox-option-tag.8708be60.js +0 -107
  495. package/dist/chunks/listbox-option-tag.8708be60.js.map +0 -1
  496. package/dist/chunks/no-results-found.58856d70.js +0 -5
  497. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  498. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  499. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  500. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  501. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  502. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  503. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  504. package/dist/chunks/page-not-found.a500440d.js +0 -5
  505. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  506. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  507. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  508. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  509. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  510. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  511. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  512. package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
  513. package/dist/chunks/referrals.178ce0eb.js +0 -5
  514. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  515. package/dist/chunks/referrals.599047da.js +0 -5
  516. package/dist/chunks/referrals.599047da.js.map +0 -1
  517. package/dist/chunks/success.41981fe8.js +0 -5
  518. package/dist/chunks/success.41981fe8.js.map +0 -1
  519. package/dist/chunks/success.77fac78b.js +0 -5
  520. package/dist/chunks/success.77fac78b.js.map +0 -1
  521. package/dist/chunks/tooltip.efddb5f3.js.map +0 -1
  522. package/dist/chunks/upload-files.2708eca7.js +0 -5
  523. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  524. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  525. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  526. package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
  527. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  528. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  529. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  530. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  531. /package/dist/assets/{index.css → alert.css} +0 -0
  532. /package/dist/assets/{index2.css → avatar-image.css} +0 -0
  533. /package/dist/assets/{index8.css → badge.css} +0 -0
  534. /package/dist/assets/{index5.css → checkbox-group.css} +0 -0
  535. /package/dist/assets/{index10.css → code-snippet.css} +0 -0
  536. /package/dist/assets/{index7.css → country.css} +0 -0
  537. /package/dist/assets/{index13.css → date-picker.css} +0 -0
  538. /package/dist/assets/{index23.css → date-range-picker.css} +0 -0
  539. /package/dist/assets/{index16.css → divider.css} +0 -0
  540. /package/dist/assets/{index17.css → dropdown-tag.css} +0 -0
  541. /package/dist/assets/{index18.css → empty-state.css} +0 -0
  542. /package/dist/assets/{index27.css → focus-trap.css} +0 -0
  543. /package/dist/assets/{index19.css → form-layout-title.css} +0 -0
  544. /package/dist/assets/{index26.css → header.css} +0 -0
  545. /package/dist/assets/{index28.css → info-icon.css} +0 -0
  546. /package/dist/assets/{index44.css → input-field.css} +0 -0
  547. /package/dist/assets/{index29.css → link.css} +0 -0
  548. /package/dist/assets/{index30.css → loading-indicator.css} +0 -0
  549. /package/dist/assets/{index25.css → pagination.css} +0 -0
  550. /package/dist/assets/{index37.css → popper-container.css} +0 -0
  551. /package/dist/assets/{index40.css → radio-group.css} +0 -0
  552. /package/dist/assets/{index31.css → search-bar.css} +0 -0
  553. /package/dist/assets/{index39.css → secondary-nav.css} +0 -0
  554. /package/dist/assets/{index12.css → step.css} +0 -0
  555. /package/dist/assets/{index20.css → structured-list-item.css} +0 -0
  556. /package/dist/assets/{index21.css → summary-grid-item-custom.css} +0 -0
  557. /package/dist/assets/{index22.css → tabs.css} +0 -0
  558. /package/dist/assets/{index14.css → tag.css} +0 -0
  559. /package/dist/assets/{index41.css → textarea.css} +0 -0
  560. /package/dist/assets/{index42.css → timeline-item.css} +0 -0
  561. /package/dist/assets/{index43.css → toast.css} +0 -0
  562. /package/dist/assets/{index3.css → toggle-button.css} +0 -0
  563. /package/dist/assets/{index46.css → typography.css} +0 -0
@@ -1,2159 +1,8 @@
1
- import { n as I } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
- import { defineComponent as U, useSlots as ie, useAttrs as Je, computed as r, ref as P, watch as ee, nextTick as Be, toRef as w, onBeforeUpdate as fe, provide as ze, reactive as Ae, onMounted as Ge } from "vue";
3
- import { a as pe, I as We } from "./chunks/index.0a30d358.js";
4
- import { u as Z } from "./chunks/i18n.eb5b985b.js";
5
- import { g as _e } from "./chunks/unique-id.a2a2b458.js";
6
- import { u as Ze } from "./chunks/use-click-outside.941d1600.js";
7
- import "./chunks/index.4c062058.js";
8
- import { B as oe, d as Qe } from "./chunks/index.e29a6907.js";
9
- import { u as De } from "./chunks/aria-label.ac9651a5.js";
10
- import { B as Te, a as ye } from "./chunks/base-button.852204dc.js";
11
- import { g as Pe } from "./chunks/get-slot-text.99c3d860.js";
12
- import { u as Ee } from "./chunks/use-has-slot.fbeb19ec.js";
13
- import { a as xe, C as Ie } from "./chunks/chevron-up.81185563.js";
14
- import { B as Xe } from "./chunks/tooltip.efddb5f3.js";
15
- import { B as et } from "./chunks/teleport.84b0f20b.js";
16
- import { B as tt } from "./chunks/dropdown-default-textbox.d0f17d96.js";
17
- import { BentoRadioGroup as lt } from "./radio-group.js";
18
- import { BentoInputField as $e } from "./input-field.js";
19
- import { BentoSearchBar as re, BentoSearchBarEvent as le } from "./search-bar.js";
20
- import { BentoModal as at } from "./modal.js";
21
- import { g as nt } from "./chunks/base-modal.4fb7528b.js";
22
- import { a as st } from "./chunks/button.cb90b55c.js";
23
- import { u as Ue, B as ot } from "./chunks/dropdown.a8037bca.js";
24
- import { g as rt } from "./chunks/index.1deef79e.js";
25
- import { B as ve } from "./chunks/index.939dd5cf.js";
26
- import { BentoDatePicker as it } from "./date-picker.js";
27
- import { f as X } from "./chunks/index.614a5138.js";
28
- import { e as J, d as Re, f as Ve } from "./chunks/index.f55fdc32.js";
29
- import { C as ut, i as ct } from "./chunks/calendar.f02e0a5a.js";
30
- import { B as dt, D as ft, i as me } from "./chunks/index.854d6498.js";
31
- import { B as _t } from "./chunks/button-actions.87e589e3.js";
32
- import { D as Fe } from "./chunks/date-input.9186a0bf.js";
33
- import { a as he, B as vt } from "./chunks/use-cached-selected-values.98a9ed01.js";
34
- import { B as bt, L as ke } from "./chunks/listbox-option-tag.8708be60.js";
35
- import { u as pt } from "./chunks/use-country-items.6b7985bf.js";
36
- import { B as yt } from "./chunks/payment-method.c55dd352.js";
37
- import { R as mt } from "./chunks/refresh.71a03998.js";
38
- import { F as Ft } from "./chunks/fixed-scroller.82ef6187.js";
39
- import { u as ht } from "./chunks/use-bento-toast-controller.5dac1f3c.js";
40
- import "./assets/index32.css";
41
- const gt = {}, St = /* @__PURE__ */ U({
42
- ...gt,
43
- __name: "filter-bar-button",
44
- props: {
45
- /**
46
- * The number of applied values within the filter.
47
- * Text can also be applied here such as 'All'.
48
- * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
49
- */
50
- appliedFiltersCount: { type: [String, Number], default: null },
51
- /**
52
- * Disables button functionality.
53
- */
54
- disabled: { type: Boolean, default: !1 },
55
- /**
56
- * Signifies if the filter is open or closed.
57
- */
58
- isFilterOpen: { type: Boolean, default: !1 },
59
- /**
60
- * Toggles if a chevron icon should be displayed in the button.
61
- * The chevron will change depending on the open state of the filter.
62
- */
63
- hasChevron: { type: Boolean, default: !1 },
64
- /**
65
- * A secondary label to be added next to the primary for additional filtering information.
66
- * i.e. Can be used to show the set value for said filter.
67
- */
68
- secondaryLabel: { type: String, default: null }
69
- },
70
- emits: ["click"],
71
- setup(l, { emit: e }) {
72
- const t = l, a = ie(), n = Je(), s = Ee(a), i = r(() => a.default ? Pe(a)("default") : null), c = De({ ariaLabel: i }), o = P(null), y = r(() => {
73
- var h;
74
- return {
75
- "aria-controls": (h = n["aria-controls"]) == null ? void 0 : h.toString()
76
- };
77
- }), F = r(() => ({
78
- "b-filter-bar-button--filter-open": t.isFilterOpen,
79
- "b-filter-bar-button--active": t.appliedFiltersCount || t.secondaryLabel || t.hasChevron,
80
- "b-filter-bar-button--with-secondary-label": t.secondaryLabel,
81
- "b-filter-bar-button--with-chevron": t.hasChevron
82
- }));
83
- return { __sfc: !0, props: t, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: i, computedAriaLabel: c, filterBarButtonRef: o, ariaAttributes: y, conditionalClasses: F, onClickButton: (h) => {
84
- t.disabled || e("click", h);
85
- }, BentoTypography: oe, BaseButton: Te, ChevronUpIcon: xe, ChevronDownIcon: Ie };
86
- }
87
- });
88
- var Ct = function() {
89
- var e = this, t = e._self._c, a = e._self._setupProxy;
90
- return t(a.BaseButton, { ref: "filterBarButtonRef", staticClass: "b-filter-bar-button", class: a.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": a.computedAriaLabel, "aria-controls": a.ariaAttributes["aria-controls"], type: "button" }, on: { click: a.onClickButton }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
91
- return [e.appliedFiltersCount && !e.hasChevron ? t(a.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e(), e.hasChevron ? t("div", { staticClass: "b-filter-bar-button__chevron" }, [e.isFilterOpen ? t(a.ChevronUpIcon, { attrs: { "aria-hidden": "true" } }) : t(a.ChevronDownIcon, { attrs: { "aria-hidden": "true" } })], 1) : e._e()];
92
- }, proxy: !0 }]) }, [t("div", { staticClass: "b-filter-bar-button__container" }, [a.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), t("div", { staticClass: "b-filter-bar-button__label-container" }, [t(a.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._t("default")], 2), e.secondaryLabel ? t(a.BentoTypography, { staticClass: "b-filter-bar-button__secondary-label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.secondaryLabel) + " ")]) : e._e()], 1)], 2)]);
93
- }, Bt = [], At = /* @__PURE__ */ I(
94
- St,
95
- Ct,
96
- Bt,
97
- !1,
98
- null,
99
- "c9ee4993",
100
- null,
101
- null
102
- );
103
- const be = At.exports;
104
- var _ = /* @__PURE__ */ ((l) => (l.INPUT = "input", l.UPDATE = "update", l))(_ || {}), se = /* @__PURE__ */ ((l) => (l.INPUT = "input", l.UPDATE_FILTER_VALUES = "update:filter-values", l))(se || {}), H = /* @__PURE__ */ ((l) => (l.INPUT = "BentoInputFilter", l.BOOLEAN = "BentoBooleanFilter", l.RANGE = "BentoRangeFilter", l.SELECT = "BentoSelectFilter", l.SELECT_AVATAR = "BentoSelectAvatarFilter", l.SELECT_COUNTRY = "BentoSelectCountryFilter", l.SELECT_CURRENCY = "BentoSelectCurrencyFilter", l.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", l.SELECT_TAG = "BentoSelectTagFilter", l.DATE = "BentoDateFilter", l.DATE_RANGE = "BentoDateRangeFilter", l))(H || {}), q = /* @__PURE__ */ ((l) => (l.APPLY = "apply", l.CLEAR = "clear", l.OPEN = "open", l.CLOSE = "close", l.RESET = "reset", l))(q || {});
105
- const Dt = {
106
- "en-US": {
107
- clear: "Clear",
108
- apply: "Apply",
109
- reset: "Reset"
110
- },
111
- "de-DE": {
112
- clear: "Alle löschen",
113
- apply: "Bewerben"
114
- },
115
- "fr-FR": {
116
- clear: "Effacer",
117
- apply: "Postuler"
118
- },
119
- "ja-JP": {
120
- clear: "クリア",
121
- apply: "適用"
122
- },
123
- "pt-BR": {
124
- clear: "Limpar",
125
- apply: "Candidatar-se"
126
- },
127
- "es-ES": {
128
- clear: "Borrar",
129
- apply: "Aplicar"
130
- }
131
- }, Tt = U({
132
- i18n: { messages: Dt },
133
- name: "bento-base-filter",
134
- components: {
135
- BentoPopover: pe,
136
- BentoTeleport: et,
137
- FilterBarButton: be
138
- },
139
- directives: { BentoClickOutsideDirective: tt },
140
- props: {
141
- /**
142
- * Total count of applied filters
143
- */
144
- appliedFiltersCount: { type: [String, Number], default: null },
145
- /**
146
- * Overrides the label of the popover vsibility toggle button text.
147
- */
148
- buttonLabel: { type: String, default: void 0 },
149
- /**
150
- * Sets the secondary label text of the popover vsibility toggle button text.
151
- */
152
- buttonSecondaryLabel: { type: String, default: void 0 },
153
- /**
154
- * Default value of the filter to reset to.
155
- */
156
- defaultValue: {
157
- type: [Object, Number, Boolean, Array, String],
158
- default: null
159
- },
160
- /**
161
- * Renders the base filter's slot content only - leaving out the button and the popover.
162
- * Used for the allFiltersModal component.
163
- */
164
- onlySlot: { type: Boolean, default: !1 },
165
- /**
166
- * Allows to handle the controls (apply/clear) from outside
167
- * of the component
168
- */
169
- controlled: { type: Boolean, default: !1 },
170
- /**
171
- * Disable the "apply" button
172
- */
173
- disableApplyButton: { type: Boolean, default: !1 },
174
- /**
175
- * Disable the secondary button action.
176
- */
177
- disableSecondaryButton: { type: Boolean, default: !1 },
178
- /**
179
- * Filter name/key referencing the actual property name in the data set.
180
- * Should be unique per filter bar.
181
- */
182
- field: { type: String, required: !0 },
183
- /**
184
- * Label text to be displayed
185
- */
186
- label: { type: String, required: !0 },
187
- /**
188
- * Sets the size of the container to fit its content
189
- */
190
- fitContent: pe.props.fitContent
191
- },
192
- emits: [
193
- q.APPLY,
194
- q.CLEAR,
195
- q.OPEN,
196
- q.CLOSE,
197
- q.RESET
198
- ],
199
- setup(l, { emit: e }) {
200
- const { t } = Z(), a = _e("base-filter-popover"), n = P(!1), s = P(null), i = P(null), c = r(() => l.defaultValue !== null), o = () => {
201
- n.value && (n.value = !1, Be(() => {
202
- s.value.$el.focus();
203
- }), e(q.CLOSE));
204
- }, y = () => {
205
- o(), c.value ? e(q.RESET) : e(q.CLEAR);
206
- }, F = () => o(), C = () => {
207
- n.value ? o() : (n.value = !0, e(q.OPEN));
208
- }, h = () => {
209
- o(), e(q.APPLY);
210
- }, v = r(() => [
211
- {
212
- title: t("apply"),
213
- event: h,
214
- disabled: l.disableApplyButton
215
- },
216
- {
217
- title: c.value ? t("reset") : t("clear"),
218
- event: y,
219
- disabled: l.disableSecondaryButton
220
- }
221
- ]);
222
- return ee(
223
- () => n.value,
224
- (A, E) => {
225
- var T, g;
226
- !A && E && (g = (T = s.value) == null ? void 0 : T.filterBarButtonRef) != null && g.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
227
- }
228
- ), Ze(i, F, { ignore: [s] }), {
229
- // Values
230
- actions: v,
231
- popoverId: a,
232
- isFilterOpen: n,
233
- isPersistentFilter: c,
234
- // Enums
235
- BentoTooltipPosition: Xe,
236
- // Events
237
- onClickFilter: C,
238
- onClickApply: h,
239
- onClickSecondaryAction: y,
240
- onClickOutside: F,
241
- closePopover: o,
242
- // Refs
243
- filterButtonRef: s,
244
- popoverRef: i
245
- };
246
- }
247
- });
248
- var Pt = function() {
249
- var e = this, t = e._self._c;
250
- return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [t("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-controls": e.isFilterOpen ? e.popoverId : null, "has-chevron": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "applied-filters-count": e.appliedFiltersCount, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter, keydown: function(a) {
251
- return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
252
- } } }, [e._v(" " + e._s(e.buttonLabel || e.label) + " ")]), e.filterButtonRef ? t("bento-teleport", [e.filterButtonRef ? t("bento-popover", { ref: "popoverRef", staticClass: "b-base-filter__popover", attrs: { id: e.popoverId, divider: "", open: e.isFilterOpen, actions: e.controlled ? null : e.actions, "actions-layout": "space-between", "target-element": e.filterButtonRef, title: e.controlled ? null : e.label, "fit-content": e.fitContent, position: "bottom-start", "without-space": e.controlled, "fallback-position": ["bottom-end"] } }, [t("div", { on: { keydown: function(a) {
253
- return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
254
- } } }, [e._t("default")], 2)]) : e._e()], 1) : e._e()], 1);
255
- }, Et = [], xt = /* @__PURE__ */ I(
256
- Tt,
257
- Pt,
258
- Et,
259
- !1,
260
- null,
261
- "28a58201",
262
- null,
263
- null
264
- );
265
- const ae = xt.exports, It = (l) => l instanceof Array, ge = (l) => It(l) ? l.length === 0 || l.every((e) => e === "") : !l, Se = (l, e) => JSON.stringify(l) === JSON.stringify(e), te = (l, e) => {
266
- const t = P(l.value);
267
- ee(
268
- () => l.value,
269
- () => {
270
- t.value = l.value;
271
- }
272
- );
273
- const a = r(() => ge(l.value)), n = r(
274
- () => e.value !== null ? Se(e.value, l.value) : a.value
275
- ), s = r(() => Se(t.value, l.value) || ge(t.value) && a.value);
276
- return {
277
- internalFilterValue: t,
278
- isSecondaryButtonDisabled: n,
279
- isApplyButtonDisabled: s
280
- };
281
- }, W = (l, e) => {
282
- const t = l == null ? void 0 : l.toString();
283
- return (t == null ? void 0 : t.length) > e ? `${t == null ? void 0 : t.slice(0, e)}...` : t;
284
- }, $t = U({
285
- name: "bento-input-filter",
286
- components: {
287
- BentoBaseFilter: ae,
288
- BentoInputField: $e
289
- },
290
- props: {
291
- /**
292
- * Default value of the filter to reset to.
293
- */
294
- defaultValue: { type: String, default: null },
295
- /**
296
- * Filter name/key referencing the actual property name in the data set.
297
- * Should be unique per filter bar.
298
- */
299
- field: { type: String, required: !0 },
300
- /**
301
- * Label text to be displayed
302
- */
303
- label: { type: String, required: !0 },
304
- /**
305
- * Current value of the filter.
306
- * If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
307
- */
308
- value: { type: [String, Object], default: null },
309
- /**
310
- * Renders the base filter's slot content only - leaving out the button and the popover.
311
- * Used for the allFiltersModal component.
312
- */
313
- onlySlot: { type: Boolean, default: !1 },
314
- /**
315
- * List of options that are needed to setup the filter
316
- * Available options:
317
- * - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
318
- * - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
319
- */
320
- options: {
321
- type: Object,
322
- default: void 0
323
- }
324
- },
325
- emits: [_.INPUT, _.UPDATE],
326
- setup(l, { emit: e }) {
327
- var b, D;
328
- const t = P(null), a = P((D = (b = l == null ? void 0 : l.options) == null ? void 0 : b.dropdown) == null ? void 0 : D.value), n = r(
329
- () => {
330
- var S, N;
331
- return ((S = l == null ? void 0 : l.options) == null ? void 0 : S.variant) === "dropdown" && ((N = l == null ? void 0 : l.options) == null ? void 0 : N.dropdown) !== void 0;
332
- }
333
- ), s = r(
334
- () => {
335
- var S;
336
- return n.value ? { ...(S = l == null ? void 0 : l.options) == null ? void 0 : S.dropdown, value: a.value } : void 0;
337
- }
338
- ), i = r(() => {
339
- var S;
340
- return ((S = l == null ? void 0 : l.options) == null ? void 0 : S.variant) === "dropdown" ? "dropdown" : "default";
341
- }), c = r(
342
- () => {
343
- var S;
344
- return n.value ? (S = l.value) == null ? void 0 : S.inputValue : l == null ? void 0 : l.value;
345
- }
346
- ), { internalFilterValue: o, isSecondaryButtonDisabled: y, isApplyButtonDisabled: F } = te(
347
- c,
348
- w(l, "defaultValue")
349
- ), C = r(
350
- () => l.defaultValue === null ? l.label : W(c.value, 18)
351
- ), h = r(
352
- () => l.defaultValue === null ? W(c.value, 12) : null
353
- ), v = r(() => ({
354
- ["b-input-filter--only-slot"]: l.onlySlot
355
- }));
356
- fe(() => {
357
- o.value === "" && (o.value = null);
358
- }), ee(t, () => {
359
- var S;
360
- (S = t.value) == null || S.focusInput();
361
- });
362
- const A = () => {
363
- o.value = c.value;
364
- }, E = () => {
365
- !o.value && l.defaultValue !== null && (o.value = l.defaultValue), e(_.UPDATE, {
366
- ...l,
367
- value: n.value ? { inputValue: o.value, dropdownValue: a.value } : o.value
368
- });
369
- }, T = () => e(_.UPDATE, { ...l, value: l.defaultValue }), g = () => {
370
- o.value = null, E();
371
- }, R = () => {
372
- e(_.INPUT, { ...l, value: o.value });
373
- }, u = (S) => {
374
- o.value = S;
375
- }, m = (S) => {
376
- a.value = S;
377
- };
378
- return ze(We, n.value), {
379
- // Values
380
- buttonLabel: C,
381
- buttonSecondaryLabel: h,
382
- conditionalClasses: v,
383
- dropdownProp: s,
384
- inputVariant: i,
385
- internalFilterValue: o,
386
- isApplyButtonDisabled: F,
387
- isDropdownVariant: n,
388
- isSecondaryButtonDisabled: y,
389
- // Refs
390
- inputTextRef: t,
391
- // Events
392
- updateFilter: E,
393
- clearFilter: g,
394
- openFilter: A,
395
- resetFilter: T,
396
- onDropdownInput: m,
397
- onInput: R,
398
- setInternalFilterValue: u
399
- };
400
- }
401
- });
402
- var Ut = function() {
403
- var a;
404
- var e = this, t = e._self._c;
405
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": e.isDropdownVariant }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: e.conditionalClasses, on: { keydown: function(n) {
406
- return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
407
- }, input: e.onInput } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { dropdown: e.dropdownProp, "dropdown-position": (a = e.options) == null ? void 0 : a.dropdownPosition, variant: e.inputVariant, value: e.internalFilterValue }, on: { input: e.setInternalFilterValue, "dropdown-input": e.onDropdownInput } })], 1)]);
408
- }, Rt = [], Vt = /* @__PURE__ */ I(
409
- $t,
410
- Ut,
411
- Rt,
412
- !1,
413
- null,
414
- "9845c982",
415
- null,
416
- null
417
- );
418
- const Le = Vt.exports, kt = U({
419
- name: "bento-date-filter",
420
- components: {
421
- BentoBaseFilter: ae,
422
- BentoDatePicker: it,
423
- BentoDivider: ve,
424
- Calendar: ut
425
- },
426
- props: {
427
- isDateInput: { type: Boolean, default: !0 },
428
- /**
429
- * Default value of the filter to reset to.
430
- */
431
- defaultValue: { type: Date, default: null },
432
- /**
433
- * Filter name/key referencing the actual property name in the data set.
434
- * Should be unique per filter bar.
435
- */
436
- field: { type: String, required: !0 },
437
- /**
438
- * Label text to be displayed
439
- */
440
- label: { type: String, required: !0 },
441
- /**
442
- * Renders the base filter's slot content only - leaving out the button and the popover.
443
- * Used for the allFiltersModal component.
444
- */
445
- onlySlot: { type: Boolean, default: !1 },
446
- /**
447
- * List of options that are needed to setup the filter
448
- * Available options:
449
- * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
450
- * - isDateDisabled: Indicate if a date should be disabled or not
451
- */
452
- options: {
453
- type: Object,
454
- default: void 0
455
- },
456
- /**
457
- * Current value of the filter
458
- */
459
- value: { type: Date, default: void 0 }
460
- },
461
- emits: [_.INPUT, _.UPDATE],
462
- setup(l, { emit: e }) {
463
- const { locale: t } = Z(void 0, !0), a = { de: Re, enUS: J, fr: Ve }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i } = te(
464
- w(l, "value"),
465
- w(l, "defaultValue")
466
- ), c = r(
467
- () => l.value ? X(l.value, "dd MMM, yyyy", {
468
- locale: a[t.value.substring(0, 2)] || J
469
- }) : null
470
- ), o = r(
471
- () => l.defaultValue === null ? l.label : c.value
472
- ), y = r(
473
- () => l.defaultValue === null ? c.value : null
474
- ), F = () => {
475
- e(_.UPDATE, { ...l, value: n.value });
476
- }, C = () => {
477
- n.value = null, F();
478
- }, h = () => {
479
- n.value = l.defaultValue, F();
480
- }, v = () => {
481
- n.value = l.value;
482
- }, A = (T) => {
483
- n.value = T, e(_.INPUT, { ...l, value: n.value });
484
- };
485
- return {
486
- // Values
487
- internalFilterValue: n,
488
- isApplyButtonDisabled: i,
489
- isSecondaryButtonDisabled: s,
490
- buttonLabel: o,
491
- buttonSecondaryLabel: y,
492
- // Events
493
- clearFilter: C,
494
- onDateSelected: A,
495
- openFilter: v,
496
- updateFilter: F,
497
- resetFilter: h,
498
- onDateInputSelected: (T) => {
499
- n.value = T, A(T), F();
500
- }
501
- };
502
- }
503
- });
504
- var Lt = function() {
505
- var a, n, s, i;
506
- var e = this, t = e._self._c;
507
- return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (a = e.options) == null ? void 0 : a.firstDayOfWeek, "is-date-disabled": (n = e.options) == null ? void 0 : n.isDateDisabled }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue }, on: { input: e.onDateSelected } })], 1)]], 2);
508
- }, Ot = [], wt = /* @__PURE__ */ I(
509
- kt,
510
- Lt,
511
- Ot,
512
- !1,
513
- null,
514
- "3a27d7af",
515
- null,
516
- null
517
- );
518
- const Oe = wt.exports, Nt = {
519
- "en-US": {
520
- clear: "Clear",
521
- reset: "Reset",
522
- apply: "Apply"
523
- },
524
- "de-DE": {
525
- clear: "Alle löschen",
526
- apply: "Bewerben"
527
- },
528
- "fr-FR": {
529
- clear: "Effacer",
530
- apply: "Postuler"
531
- },
532
- "ja-JP": {
533
- clear: "クリア",
534
- apply: "適用"
535
- },
536
- "pt-BR": {
537
- clear: "Limpar",
538
- apply: "Candidatar-se"
539
- },
540
- "es-ES": {
541
- clear: "Borrar",
542
- apply: "Aplicar"
543
- }
544
- }, Mt = U({
545
- i18n: { messages: Nt },
546
- name: "bento-date-range-filter",
547
- components: {
548
- BentoBaseFilter: ae,
549
- BentoButtonActions: _t,
550
- BentoDateRangePicker: dt,
551
- BentoTypography: oe,
552
- BentoDivider: ve,
553
- DateRangePickerCalendar: ft
554
- },
555
- props: {
556
- /**
557
- * Default value of the filter to reset to.
558
- */
559
- defaultValue: { type: Object, default: null },
560
- /**
561
- * Filter name/key referencing the actual property name in the data set.
562
- * Should be unique per filter bar.
563
- */
564
- field: { type: String, required: !0 },
565
- /**
566
- * Label text to be displayed
567
- */
568
- label: { type: String, required: !0 },
569
- /**
570
- * Renders the base filter's slot content only - leaving out the button and the popover.
571
- * Used for the allFiltersModal component.
572
- */
573
- onlySlot: { type: Boolean, default: !1 },
574
- /**
575
- * List of options that are needed to setup the filter
576
- * Available options:
577
- * - allowTimeInput: Allows user to enter time values in the form
578
- * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
579
- * - isDateDisabled: Indicate if a date should be disabled or not
580
- * - maxRange: Set a maximum number of dates to be selectable by the range
581
- * - numberOfMonths: Number of months rendered on pane
582
- * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
583
- */
584
- options: {
585
- type: Object,
586
- default: void 0
587
- },
588
- /**
589
- * Current value of the filter
590
- */
591
- value: {
592
- type: Object,
593
- default: () => ({ startDate: void 0, endDate: void 0 })
594
- }
595
- },
596
- emits: [_.INPUT, _.UPDATE],
597
- setup(l, { emit: e }) {
598
- var K, Y, Q, V;
599
- const { locale: t, t: a } = Z(), n = { de: Re, enUS: J, fr: Ve }, { internalFilterValue: s, isSecondaryButtonDisabled: i, isApplyButtonDisabled: c } = te(
600
- w(l, "value"),
601
- w(l, "defaultValue")
602
- ), o = P(!1), y = (p) => p ? X(p, Fe.NUMERIC_DATE_YEAR_FIRST, {
603
- locale: n[t.value.substring(0, 2)] || J
604
- }) : void 0, F = (p) => p ? X(p, Fe.HOUR_MINUTE_SECONDS, {
605
- locale: n[t.value.substring(0, 2)] || J
606
- }) : "", C = P(null), h = P(!1), v = Ae({
607
- startDate: y((K = l.value) == null ? void 0 : K.startDate),
608
- endDate: y((Y = l.value) == null ? void 0 : Y.endDate),
609
- startTime: F((Q = l.value) == null ? void 0 : Q.startDate),
610
- endTime: F((V = l.value) == null ? void 0 : V.endDate)
611
- }), A = r(() => {
612
- var p, $, x, L, f, d, B, k;
613
- if (!((p = l.value) != null && p.startDate) && !l.value.endDate)
614
- return null;
615
- if (((x = ($ = l.options) == null ? void 0 : $.quickSelectRanges) == null ? void 0 : x.length) > 0) {
616
- const M = (f = (L = l.options) == null ? void 0 : L.quickSelectRanges) == null ? void 0 : f.find(
617
- ({ data: O }) => me(O == null ? void 0 : O.startDate, l.value.startDate) && me(O == null ? void 0 : O.endDate, l.value.endDate)
618
- );
619
- if (M)
620
- return M.label;
621
- }
622
- return ct((d = l.value) == null ? void 0 : d.startDate, (B = l.value) == null ? void 0 : B.endDate) && ((k = l == null ? void 0 : l.options) != null && k.allowTimeInput) ? `${X(l.value.startDate, "dd MMM, yyyy HH:mm:ss", {
623
- locale: n[t.value.substring(0, 2)] || J
624
- })} - ${X(l.value.endDate, "HH:mm:ss", {
625
- locale: n[t.value.substring(0, 2)] || J
626
- })}` : `${X(l.value.startDate, "dd MMM, yyyy", {
627
- locale: n[t.value.substring(0, 2)] || J
628
- })} - ${X(l.value.endDate, "dd MMM, yyyy", {
629
- locale: n[t.value.substring(0, 2)] || J
630
- })}`;
631
- }), E = r(
632
- () => l.defaultValue === null ? l.label : A.value
633
- ), T = r(
634
- () => l.defaultValue === null ? A.value : null
635
- ), g = () => {
636
- C.value.closePopover();
637
- const { onlySlot: p, ...$ } = l;
638
- e(_.UPDATE, { ...$, value: s.value });
639
- }, R = () => {
640
- s.value = void 0, g();
641
- }, u = () => {
642
- s.value = l.defaultValue, g();
643
- }, m = () => {
644
- s.value = l.value;
645
- }, b = (p) => {
646
- o.value = !1, s.value = p, v.startDate = y(p.startDate), v.endDate = y(p.endDate), e(_.INPUT, { ...l, value: s.value });
647
- }, D = (p) => {
648
- p != null && p.startDate && (p != null && p.endDate) && (s.value = p, v.startDate = y(p.startDate), v.endDate = y(p.endDate), e(_.INPUT, { ...l, value: s.value }));
649
- }, S = (p) => {
650
- b(p), e(_.INPUT, { ...l, value: s.value });
651
- }, N = r(
652
- () => [
653
- {
654
- title: a("apply"),
655
- event: g,
656
- disabled: o.value || h.value || c.value
657
- },
658
- {
659
- title: l.defaultValue ? a("reset") : a("clear"),
660
- event: l.defaultValue ? u : R,
661
- disabled: h.value && i.value
662
- }
663
- ]
664
- );
665
- return {
666
- // Refs
667
- baseFilter: C,
668
- // Values
669
- actions: N,
670
- formData: v,
671
- internalFilterValue: s,
672
- isApplyButtonDisabled: c,
673
- isSecondaryButtonDisabled: i,
674
- isSelectingDate: o,
675
- buttonLabel: E,
676
- buttonSecondaryLabel: T,
677
- // Events
678
- onDateSelected: b,
679
- openFilter: m,
680
- updateFilter: g,
681
- onDatePickerRangeError: () => {
682
- h.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(_.INPUT, { ...l, value: s.value });
683
- },
684
- onDatePickerRangeFormDateInputUpdate: (p) => {
685
- h.value = !1, p.startTime && (v.startTime = p.startTime), p.endTime && (v.endTime = p.endTime);
686
- },
687
- onDateInputSelected: S,
688
- onRangeSelectorInput: D
689
- };
690
- }
691
- });
692
- var Ht = function() {
693
- var a, n, s, i, c, o, y, F, C, h, v, A, E, T;
694
- var e = this, t = e._self._c;
695
- return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { open: e.openFilter } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (a = e.options) == null ? void 0 : a.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (n = e.options) == null ? void 0 : n.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, "number-of-months": (i = e.options) == null ? void 0 : i.numberOfMonths, "quick-select-ranges": (c = e.options) == null ? void 0 : c.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (o = e.options) == null ? void 0 : o.allowTimeInput, "first-day-of-week": (y = e.options) == null ? void 0 : y.firstDayOfWeek, "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled, granularities: (C = e.options) == null ? void 0 : C.granularities, "max-range": (h = e.options) == null ? void 0 : h.maxRange, min: (v = e.options) == null ? void 0 : v.min, max: (A = e.options) == null ? void 0 : A.max, "number-of-months": (E = e.options) == null ? void 0 : E.numberOfMonths, "quick-select-ranges": (T = e.options) == null ? void 0 : T.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(g) {
696
- e.isSelectingDate = !0;
697
- } }, scopedSlots: e._u([{ key: "title", fn: function() {
698
- return [t("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
699
- }, proxy: !0 }, { key: "actions", fn: function() {
700
- return [t("bento-divider", { staticClass: "b-date-range-filter__divider" }), t("bento-button-actions", { staticClass: "b-date-range-filter__actions", attrs: { actions: e.actions, layout: "space-between" } })];
701
- }, proxy: !0 }]) })], 1)]], 2);
702
- }, jt = [], qt = /* @__PURE__ */ I(
703
- Mt,
704
- Ht,
705
- jt,
706
- !1,
707
- null,
708
- "ac4735f4",
709
- null,
710
- null
711
- );
712
- const we = qt.exports, Kt = {
713
- "en-US": {
714
- all: "All",
715
- noFiltersMatchThisSearch: "No filters match this search",
716
- searchFilter: "Search {filter}"
717
- }
718
- }, Yt = {
719
- i18n: { messages: Kt }
720
- }, Jt = /* @__PURE__ */ U({
721
- ...Yt,
722
- __name: "select-filter-button",
723
- props: {
724
- /**
725
- * Default value of the filter to reset to.
726
- *
727
- */
728
- defaultValue: {
729
- type: [String, Number, Array],
730
- default: null
731
- },
732
- /**
733
- * Filter name/key referencing the actual property name in the data set.
734
- * Should be unique per filter bar.
735
- */
736
- field: { type: String, required: !0 },
737
- /**
738
- * Label text to be displayed
739
- */
740
- label: { type: String, required: !0 },
741
- /**
742
- * Renders the base filter's slot content only - leaving out the button and the popover.
743
- * Used for the allFiltersModal component.
744
- */
745
- onlySlot: { type: Boolean, default: !1 },
746
- /**
747
- * List of options that are needed to setup the filter
748
- * Available options:
749
- * - multiple: If "true", the user will be able to select multiple items.
750
- * - listboxItems: The option elements to populate the filter with.
751
- *
752
- * @default undefined
753
- */
754
- options: {
755
- type: Object,
756
- default: void 0
757
- },
758
- /**
759
- * Current value of the filter
760
- *
761
- * @default undefined
762
- */
763
- value: {
764
- type: [String, Number, Array],
765
- default: void 0
766
- }
767
- },
768
- emits: ["input", "update"],
769
- setup(l, { emit: e }) {
770
- var Y, Q;
771
- const t = l, a = ie(), { t: n, locale: s } = Z(), i = P(""), c = w(t, "options"), o = P(t.options.listboxItems), { cachedSelectedListboxOptions: y, setCachedValues: F, resetCache: C } = he(
772
- o,
773
- w(t, "value"),
774
- w(c.value, "multiple")
775
- ), { cachedSelectedListboxOptions: h } = he(
776
- o,
777
- w(t, "defaultValue"),
778
- w(c.value, "multiple")
779
- ), { internalFilterValue: v, isSecondaryButtonDisabled: A, isApplyButtonDisabled: E } = te(y, h);
780
- ee(c, () => {
781
- o.value = c.value.listboxItems;
782
- });
783
- const T = Ue(
784
- i,
785
- o,
786
- (Q = (Y = t.options) == null ? void 0 : Y.search) == null ? void 0 : Q.searchEvent
787
- ), g = r(() => n("noFiltersMatchThisSearch")), R = r(() => {
788
- var V, p, $, x, L, f, d, B, k, M;
789
- if (t.defaultValue === null)
790
- return t.label;
791
- if (t.options.multiple) {
792
- const O = (V = t.value) == null ? void 0 : V.length;
793
- if (O === t.options.listboxItems.length)
794
- return (p = t == null ? void 0 : t.options) != null && p.messagesPersistentButtonLabelAllSelectedKey ? (x = t == null ? void 0 : t.options) == null ? void 0 : x.messages[s.value][($ = t == null ? void 0 : t.options) == null ? void 0 : $.messagesPersistentButtonLabelAllSelectedKey] : (L = t == null ? void 0 : t.options) == null ? void 0 : L.messages[s.value].persistentButtonLabelAllSelected;
795
- const ne = ((f = t == null ? void 0 : t.options) != null && f.messagesPersistentButtonLabelPartiallySelectedKey ? (B = t == null ? void 0 : t.options) == null ? void 0 : B.messages[s.value][(d = t == null ? void 0 : t.options) == null ? void 0 : d.messagesPersistentButtonLabelPartiallySelectedKey] : (k = t == null ? void 0 : t.options) == null ? void 0 : k.messages[s.value].persistentButtonLabelPartiallySelected).split("|").map((ce) => ce.trim());
796
- return O === 1 ? ne[0].replace("{count}", O) : ne[1].replace("{count}", O);
797
- }
798
- return (M = y.value) != null && M.length ? W(y.value[0].label, 18) : "";
799
- }), u = r(() => {
800
- var V, p;
801
- if (t.defaultValue === null && (!t.options.multiple || ((V = t.value) == null ? void 0 : V.length) === 1)) {
802
- const $ = t.options.listboxItems.flatMap((x) => x.items ? x.items : x);
803
- return W(
804
- (p = $.find(
805
- ({ value: x }) => {
806
- var L;
807
- return Array.isArray(t.value) ? (L = t == null ? void 0 : t.value) == null ? void 0 : L.includes(x) : x === t.value;
808
- }
809
- )) == null ? void 0 : p.label,
810
- 12
811
- );
812
- }
813
- return null;
814
- }), m = r(() => _e(`filter-listbox-${t.field}`)), b = (V) => {
815
- v.value = V;
816
- const { onlySlot: p, ...$ } = t;
817
- if (t.options.multiple) {
818
- const L = V.length ? v.value.map(({ value: f }) => f) : null;
819
- e(_.INPUT, { ...$, value: L });
820
- return;
821
- }
822
- const x = V.length ? V[0].value : null;
823
- e(_.INPUT, { ...$, value: x });
824
- }, D = () => {
825
- var x, L, f;
826
- const { onlySlot: V, ...p } = t;
827
- if (t.options.multiple) {
828
- v.value && ((x = v.value) == null ? void 0 : x.length) === 0 && (v.value = t.defaultValue !== null ? h.value : void 0);
829
- const d = (L = v.value) != null && L.length ? (f = v.value) == null ? void 0 : f.map(({ value: B }) => B) : null;
830
- e(_.UPDATE, {
831
- ...p,
832
- value: d
833
- });
834
- return;
835
- }
836
- const $ = v.value.length ? v.value[0].value : void 0;
837
- e(_.UPDATE, { ...p, value: $ });
838
- }, S = () => {
839
- v.value = y.value;
840
- }, N = () => {
841
- i.value && (i.value = "");
842
- }, z = () => {
843
- F(h.value), v.value = h.value, D();
844
- }, G = () => {
845
- C(), v.value = [], D();
846
- }, K = r(() => {
847
- var $, x;
848
- if (t.value == null || t.defaultValue !== null || !t.options.multiple)
849
- return null;
850
- const V = ($ = t.options.listboxItems) == null ? void 0 : $.reduce((L, f) => {
851
- var d;
852
- return L += (d = f == null ? void 0 : f.items) != null && d.length ? f.items.length : 1, L;
853
- }, 0), p = (x = t.value) == null ? void 0 : x.length;
854
- return p === 1 ? null : p === V ? n("all") : p;
855
- });
856
- return { __sfc: !0, slots: a, emit: e, props: t, t: n, locale: s, searchTerm: i, optionsRef: c, itemsRef: o, cachedSelectedListboxOptions: y, setCachedValues: F, resetCache: C, cachedDefaultSelectedListboxOptions: h, internalFilterValue: v, isSecondaryButtonDisabled: A, isApplyButtonDisabled: E, filteredItems: T, noResultsMessage: g, buttonLabel: R, buttonSecondaryLabel: u, listboxFilterId: m, onOptionSelected: b, updateFilter: D, openFilter: S, closeFilter: N, resetFilter: z, clearFilter: G, appliedFiltersCount: K, BentoSearchBar: re, BentoDivider: ve, BentoListbox: vt, BentoBaseFilter: ae };
857
- }
858
- });
859
- var zt = function() {
860
- var n, s, i, c, o, y, F, C, h, v, A, E, T;
861
- var e = this, t = e._self._c, a = e._self._setupProxy;
862
- return t(a.BentoBaseFilter, { attrs: { "applied-filters-count": a.appliedFiltersCount, "button-label": a.buttonLabel, "button-secondary-label": a.buttonSecondaryLabel, "disable-apply-button": a.isApplyButtonDisabled, "disable-secondary-button": a.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1 }, on: { apply: a.updateFilter, clear: a.clearFilter, reset: a.resetFilter, open: a.openFilter, close: a.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(a.BentoSearchBar, { attrs: { "debounce-time": (s = (n = e.options) == null ? void 0 : n.search) == null ? void 0 : s.debounceTime, value: a.searchTerm, "input-field-aria-label": e.$t("searchFilter", { filter: e.label.toLocaleLowerCase() }).toString() }, on: { input: function(g) {
863
- a.searchTerm = g;
864
- } } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(a.BentoDivider)], 1), t(a.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: a.listboxFilterId, "aria-label": e.label, "empty-state": (i = e.options) == null ? void 0 : i.emptyState, "has-more-items": (o = (c = e.options) == null ? void 0 : c.lazy) == null ? void 0 : o.hasMoreItems, items: a.filteredItems, "is-option-disabled": (y = e.options) == null ? void 0 : y.isOptionDisabled, "lazy-load-type": (C = (F = e.options) == null ? void 0 : F.lazy) == null ? void 0 : C.lazyLoadType, loading: (v = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : v.loading, multiple: (A = e.options) == null ? void 0 : A.multiple, "static-categories": (E = e.options) == null ? void 0 : E.staticCategories, "no-results-message": a.noResultsMessage, searching: !!a.searchTerm, "selected-value": a.internalFilterValue, "virtual-scroll": (T = e.options) == null ? void 0 : T.virtualScroll }, on: { select: a.onOptionSelected, "show-more": function(g) {
865
- var R, u;
866
- (u = (R = e.options) == null ? void 0 : R.lazy) == null || u.showMoreEvent();
867
- } }, scopedSlots: e._u([e._l(a.slots, function(g, R) {
868
- return { key: R, fn: function(u) {
869
- return [e._t(R, null, null, u)];
870
- } };
871
- })], null, !0) })], 1);
872
- }, Gt = [], Wt = /* @__PURE__ */ I(
873
- Jt,
874
- zt,
875
- Gt,
876
- !1,
877
- null,
878
- "6c03a9a8",
879
- null,
880
- null
881
- );
882
- const Zt = Wt.exports, Qt = {
883
- "en-US": {
884
- noFiltersMatchThisSearch: "No filters match this search"
885
- }
886
- }, Xt = {
887
- i18n: { messages: Qt },
888
- name: "select-filter-dropdown"
889
- }, el = /* @__PURE__ */ U({
890
- ...Xt,
891
- props: {
892
- /**
893
- * Default value of the filter to reset to.
894
- *
895
- */
896
- defaultValue: {
897
- type: [String, Number, Array],
898
- default: null
899
- },
900
- /**
901
- * Filter name/key referencing the actual property name in the data set.
902
- * Should be unique per filter bar.
903
- */
904
- field: { type: String, required: !0 },
905
- /**
906
- * Label text to be displayed
907
- */
908
- label: { type: String, required: !0 },
909
- /**
910
- * Renders the base filter's slot content only - leaving out the button and the popover.
911
- * Used for the allFiltersModal component.
912
- *
913
- */
914
- onlySlot: { type: Boolean, default: !1 },
915
- /**
916
- * List of options that are needed to setup the filter
917
- * Available options:
918
- * - multiple: If "true", the user will be able to select multiple items.
919
- * - listboxItems: The option elements to populate the filter with.
920
- *
921
- * @default undefined
922
- */
923
- options: {
924
- type: Object,
925
- default: void 0
926
- },
927
- /**
928
- * Current value of the filter
929
- *
930
- * @default undefined
931
- */
932
- value: {
933
- type: [String, Number, Array],
934
- default: void 0
935
- }
936
- },
937
- emits: ["input", "update"],
938
- setup(l, { emit: e }) {
939
- const t = l, { t: a } = Z(), n = ie(), { internalFilterValue: s } = te(w(t, "value"), w(t, "defaultValue")), i = P(""), c = w(t, "options"), o = P(t.options.listboxItems);
940
- ee(c, () => {
941
- o.value = c.value.listboxItems;
942
- });
943
- const y = r(() => a("noFiltersMatchThisSearch"));
944
- return { __sfc: !0, t: a, slots: n, emit: e, props: t, internalFilterValue: s, searchTerm: i, optionsRef: c, itemsRef: o, noResultsMessage: y, onOptionSelected: (C) => {
945
- s.value = C;
946
- const { onlySlot: h, ...v } = t;
947
- e(_.INPUT, { ...v, value: s.value });
948
- }, BentoDropdown: ot };
949
- }
950
- });
951
- var tl = function() {
952
- var n, s, i;
953
- var e = this, t = e._self._c, a = e._self._setupProxy;
954
- return t(a.BentoDropdown, { attrs: { value: a.internalFilterValue, items: e.options.listboxItems, multiple: (n = e.options) == null ? void 0 : n.multiple, "static-categories": (s = e.options) == null ? void 0 : s.staticCategories, "no-results-message": a.noResultsMessage, searching: !!a.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "empty-state": (i = e.options) == null ? void 0 : i.emptyState }, on: { input: a.onOptionSelected }, scopedSlots: e._u([e._l(a.slots, function(c, o) {
955
- return { key: o, fn: function(y) {
956
- return [e._t(o, null, null, y)];
957
- } };
958
- })], null, !0) });
959
- }, ll = [], al = /* @__PURE__ */ I(
960
- el,
961
- tl,
962
- ll,
963
- !1,
964
- null,
965
- null,
966
- null,
967
- null
968
- );
969
- const nl = al.exports, sl = {}, ol = /* @__PURE__ */ U({
970
- ...sl,
971
- __name: "select-filter",
972
- props: {
973
- /**
974
- * Default value of the filter to reset to.
975
- *
976
- */
977
- defaultValue: {
978
- type: [String, Number, Array],
979
- default: null
980
- },
981
- /**
982
- * Filter name/key referencing the actual property name in the data set.
983
- * Should be unique per filter bar.
984
- */
985
- field: { type: String, required: !0 },
986
- /**
987
- * Label text to be displayed
988
- */
989
- label: { type: String, required: !0 },
990
- /**
991
- * Renders the base filter's slot content only - leaving out the button and the popover.
992
- * Used for the allFiltersModal component.
993
- *
994
- */
995
- onlySlot: { type: Boolean, default: !1 },
996
- /**
997
- * List of options that are needed to setup the filter
998
- * Available options:
999
- * - multiple: If "true", the user will be able to select multiple items.
1000
- * - listboxItems: The option elements to populate the filter with.
1001
- *
1002
- * @default undefined
1003
- */
1004
- options: {
1005
- type: Object,
1006
- default: void 0
1007
- },
1008
- /**
1009
- * Current value of the filter
1010
- *
1011
- * @default undefined
1012
- */
1013
- value: {
1014
- type: [String, Number, Array],
1015
- default: void 0
1016
- }
1017
- },
1018
- emits: ["input", "update"],
1019
- setup(l, { emit: e }) {
1020
- return { __sfc: !0, slots: ie(), emit: e, onInput: (s) => e("input", s), onUpdate: (s) => e("update", s), SelectFilterButton: Zt, SelectFilterDropdown: nl };
1021
- }
1022
- });
1023
- var rl = function() {
1024
- var e = this, t = e._self._c, a = e._self._setupProxy;
1025
- return e.onlySlot ? t(a.SelectFilterDropdown, { attrs: { "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: a.onInput, update: a.onUpdate }, scopedSlots: e._u([e._l(a.slots, function(n, s) {
1026
- return { key: s, fn: function(i) {
1027
- return [e._t(s, null, null, i)];
1028
- } };
1029
- })], null, !0) }) : t(a.SelectFilterButton, { attrs: { "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: a.onInput, update: a.onUpdate }, scopedSlots: e._u([e._l(a.slots, function(n, s) {
1030
- return { key: s, fn: function(i) {
1031
- return [e._t(s, null, null, i)];
1032
- } };
1033
- })], null, !0) });
1034
- }, il = [], ul = /* @__PURE__ */ I(
1035
- ol,
1036
- rl,
1037
- il,
1038
- !1,
1039
- null,
1040
- null,
1041
- null,
1042
- null
1043
- );
1044
- const j = ul.exports, cl = U({
1045
- name: "bento-select-avatar-filter",
1046
- components: {
1047
- BentoSelectFilter: j,
1048
- BentoAvatar: bt
1049
- },
1050
- props: {
1051
- ...j.props,
1052
- /**
1053
- * List of options that are needed to setup the country filter
1054
- * Available options:
1055
- * - multiple: If "true", the user will be able to select multiple items.
1056
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1057
- */
1058
- options: {
1059
- type: Object,
1060
- default: void 0
1061
- }
1062
- },
1063
- emits: [_.INPUT, _.UPDATE],
1064
- setup(l, { emit: e }) {
1065
- return {
1066
- // Enums
1067
- BentoFilterEvent: _,
1068
- // Methods
1069
- onUpdate: (a) => e(_.UPDATE, a)
1070
- };
1071
- }
1072
- });
1073
- var dl = function() {
1074
- var e = this, t = e._self._c;
1075
- return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
1076
- return [t("bento-avatar", { attrs: { username: a, src: n } })];
1077
- } }]) }, "bento-select-filter", e.$props, !1));
1078
- }, fl = [], _l = /* @__PURE__ */ I(
1079
- cl,
1080
- dl,
1081
- fl,
1082
- !1,
1083
- null,
1084
- null,
1085
- null,
1086
- null
1087
- );
1088
- const Ne = _l.exports, vl = U({
1089
- name: "bento-select-country-filter",
1090
- components: {
1091
- BentoSelectFilter: j,
1092
- ListboxOptionTag: ke
1093
- },
1094
- props: {
1095
- ...j.props,
1096
- /**
1097
- * List of options that are needed to setup the country filter
1098
- * Available options:
1099
- * - multiple: If "true", the user will be able to select multiple items.
1100
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}
1101
- */
1102
- options: {
1103
- type: Object,
1104
- default: void 0
1105
- }
1106
- },
1107
- emits: [_.INPUT, _.UPDATE],
1108
- setup(l, { emit: e }) {
1109
- return {
1110
- // Enums
1111
- BentoFilterEvent: _,
1112
- // Methods
1113
- onUpdate: (a) => {
1114
- e(_.UPDATE, a);
1115
- }
1116
- };
1117
- }
1118
- });
1119
- var bl = function() {
1120
- var e = this, t = e._self._c;
1121
- return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function(a) {
1122
- return [t("listbox-option-tag", { attrs: { option: a } })];
1123
- } }]) }, "bento-select-filter", e.$props, !1));
1124
- }, pl = [], yl = /* @__PURE__ */ I(
1125
- vl,
1126
- bl,
1127
- pl,
1128
- !1,
1129
- null,
1130
- null,
1131
- null,
1132
- null
1133
- );
1134
- const Me = yl.exports, ml = U({
1135
- name: "bento-select-country-filter",
1136
- components: {
1137
- BentoSelectFilter: j,
1138
- BentoTypography: oe
1139
- },
1140
- props: {
1141
- ...j.props,
1142
- /**
1143
- * List of options that are needed to setup the country filter
1144
- * Available options:
1145
- * - multiple: If "true", the user will be able to select multiple items.
1146
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1147
- * - variant: Which label variant to display for the option item.
1148
- */
1149
- options: {
1150
- type: Object,
1151
- default: void 0
1152
- }
1153
- },
1154
- emits: [_.INPUT, _.UPDATE],
1155
- setup(l, { emit: e }) {
1156
- const t = P(l.options.variant), a = P(l.options.listboxItems);
1157
- ee([() => l.options.variant, () => l.options.listboxItems], () => {
1158
- t.value = l.options.variant, a.value = l.options.listboxItems;
1159
- });
1160
- const n = (c) => e(_.UPDATE, c), s = pt(t, a), i = r(() => ({
1161
- ...l.options,
1162
- listboxItems: s.value
1163
- }));
1164
- return (!t.value || t.value === "custom") && Qe(
1165
- 'BentoSelectCountryFilter type with `options.variant==="custom"`',
1166
- "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1167
- "2.0.0"
1168
- ), {
1169
- // Values
1170
- countryOptions: i,
1171
- // Methods
1172
- onUpdate: n,
1173
- // Enums
1174
- BentoFilterEvent: _
1175
- };
1176
- }
1177
- });
1178
- var Fl = function() {
1179
- var e = this, t = e._self._c;
1180
- return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a }) {
1181
- return [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(a))])];
1182
- } }]) }, "bento-select-filter", e.$props, !1));
1183
- }, hl = [], gl = /* @__PURE__ */ I(
1184
- ml,
1185
- Fl,
1186
- hl,
1187
- !1,
1188
- null,
1189
- null,
1190
- null,
1191
- null
1192
- );
1193
- const He = gl.exports, Sl = U({
1194
- name: "bento-select-payment-method-filter",
1195
- components: {
1196
- BentoSelectFilter: j,
1197
- BentoPaymentMethod: yt
1198
- },
1199
- props: {
1200
- ...j.props,
1201
- /**
1202
- * List of options that are needed to setup the payment method filter
1203
- * Available options:
1204
- * - multiple: If "true", the user will be able to select multiple items.
1205
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}
1206
- */
1207
- options: {
1208
- type: Object,
1209
- default: void 0
1210
- }
1211
- },
1212
- emits: [_.INPUT, _.UPDATE],
1213
- setup(l, { emit: e }) {
1214
- return {
1215
- // Enums
1216
- BentoFilterEvent: _,
1217
- // Methods
1218
- onUpdate: (a) => e(_.UPDATE, a)
1219
- };
1220
- }
1221
- });
1222
- var Cl = function() {
1223
- var e = this, t = e._self._c;
1224
- return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ value: a, label: n }) {
1225
- return [t("bento-payment-method", { attrs: { type: a, label: n } })];
1226
- } }]) }, "bento-select-filter", e.$props, !1));
1227
- }, Bl = [], Al = /* @__PURE__ */ I(
1228
- Sl,
1229
- Cl,
1230
- Bl,
1231
- !1,
1232
- null,
1233
- null,
1234
- null,
1235
- null
1236
- );
1237
- const je = Al.exports, Dl = U({
1238
- name: "bento-select-country-filter",
1239
- components: {
1240
- BentoSelectFilter: j,
1241
- ListboxOptionTag: ke
1242
- },
1243
- props: {
1244
- ...j.props,
1245
- /**
1246
- * List of options that are needed to setup the tag filter
1247
- * Available options:
1248
- * - multiple: If "true", the user will be able to select multiple items.
1249
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}
1250
- */
1251
- options: {
1252
- type: Object,
1253
- default: void 0
1254
- }
1255
- },
1256
- emits: [_.INPUT, _.UPDATE],
1257
- setup(l, { emit: e }) {
1258
- const t = (s) => e(_.UPDATE, s), a = r(
1259
- () => {
1260
- var s, i;
1261
- return (i = (s = l == null ? void 0 : l.options) == null ? void 0 : s.listboxItems) == null ? void 0 : i.map(({ label: c, value: o, variant: y }) => ({ label: c, value: o, data: y }));
1262
- }
1263
- );
1264
- return {
1265
- // Values
1266
- countryOptions: r(() => ({
1267
- ...l.options,
1268
- listboxItems: a.value
1269
- })),
1270
- // Methods
1271
- onUpdate: t,
1272
- // Enums
1273
- BentoFilterEvent: _
1274
- };
1275
- }
1276
- });
1277
- var Tl = function() {
1278
- var e = this, t = e._self._c;
1279
- return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
1280
- return [t("listbox-option-tag", { attrs: { option: { value: a, data: n, label: "" } } })];
1281
- } }]) }, "bento-select-filter", e.$props, !1));
1282
- }, Pl = [], El = /* @__PURE__ */ I(
1283
- Dl,
1284
- Tl,
1285
- Pl,
1286
- !1,
1287
- null,
1288
- null,
1289
- null,
1290
- null
1291
- );
1292
- const qe = El.exports, xl = {
1293
- "en-US": {
1294
- yes: "Yes",
1295
- no: "No"
1296
- }
1297
- }, Il = U({
1298
- name: "bento-boolean-filter",
1299
- i18n: { messages: xl },
1300
- components: { BentoBaseFilter: ae, BentoRadioGroup: lt },
1301
- props: {
1302
- /**
1303
- * Default value of the filter to reset to.
1304
- */
1305
- defaultValue: { type: [String, Boolean], default: null },
1306
- /**
1307
- * Filter name/key referencing the actual property name in the data set.
1308
- * Should be unique per filter bar.
1309
- */
1310
- field: { type: String, required: !0 },
1311
- /**
1312
- * Label text to be displayed
1313
- */
1314
- label: { type: String, required: !0 },
1315
- /**
1316
- * Current value of the filter
1317
- */
1318
- value: { type: [String, Boolean], default: null },
1319
- /**
1320
- * Renders the base filter's slot content only - leaving out the button and the popover.
1321
- * Used for the allFiltersModal component.
1322
- */
1323
- onlySlot: { type: Boolean, default: !1 },
1324
- /**
1325
- * List of options that are needed to setup the filter
1326
- * Available options:
1327
- * - listboxItems: The option elements to populate the filter with.
1328
- */
1329
- options: {
1330
- type: Object,
1331
- default: void 0
1332
- }
1333
- },
1334
- emits: [_.INPUT, _.UPDATE],
1335
- setup(l, { emit: e }) {
1336
- const { t } = Z(), a = (u) => typeof u == "boolean" ? u == null ? void 0 : u.toString() : u, n = (u) => {
1337
- var m, b, D, S;
1338
- return ((b = (m = l == null ? void 0 : l.options) == null ? void 0 : m.positiveOption) == null ? void 0 : b.value) !== void 0 && ((S = (D = l == null ? void 0 : l.options) == null ? void 0 : D.negativeOption) == null ? void 0 : S.value) !== void 0 && typeof l.options.positiveOption.value == "boolean" && typeof l.options.negativeOption.value == "boolean" && typeof u == "string" ? u === "true" : u;
1339
- }, s = r(() => a(l.defaultValue)), i = r(() => a(l.value)), c = r(() => l.options && l.options.positiveOption && l.options.negativeOption ? [
1340
- {
1341
- ...l.options.positiveOption,
1342
- value: a(l.options.positiveOption.value)
1343
- },
1344
- {
1345
- ...l.options.negativeOption,
1346
- value: a(l.options.negativeOption.value)
1347
- }
1348
- ] : [
1349
- { value: "yes", label: t("yes") },
1350
- { value: "no", label: t("no") }
1351
- ]), { internalFilterValue: o, isSecondaryButtonDisabled: y, isApplyButtonDisabled: F } = te(
1352
- i,
1353
- s
1354
- ), C = r(
1355
- () => l.defaultValue === null ? l.label : W(c.value.find(({ value: u }) => u === i.value).label, 18)
1356
- ), h = r(
1357
- () => {
1358
- var u;
1359
- return l.defaultValue === null ? W((u = c.value.find(({ value: m }) => m === i.value)) == null ? void 0 : u.label, 12) : null;
1360
- }
1361
- ), v = r(() => ({
1362
- ["b-boolean-filter--only-slot"]: l.onlySlot
1363
- }));
1364
- fe(() => {
1365
- o.value || (o.value = null);
1366
- });
1367
- const A = (u) => {
1368
- o.value = u, e(_.INPUT, {
1369
- ...l,
1370
- value: n(o.value)
1371
- });
1372
- }, E = () => {
1373
- o.value = i.value;
1374
- }, T = () => {
1375
- e(_.UPDATE, {
1376
- ...l,
1377
- value: n(o.value)
1378
- });
1379
- };
1380
- return {
1381
- // Values
1382
- items: c,
1383
- conditionalClasses: v,
1384
- buttonLabel: C,
1385
- buttonSecondaryLabel: h,
1386
- internalFilterValue: o,
1387
- isApplyButtonDisabled: F,
1388
- isSecondaryButtonDisabled: y,
1389
- translatedValue: i,
1390
- translatedDefaultValue: s,
1391
- // Events
1392
- onInput: A,
1393
- updateFilter: T,
1394
- clearFilter: () => {
1395
- o.value = null, T();
1396
- },
1397
- openFilter: E,
1398
- resetFilter: () => e(_.UPDATE, { ...l, value: l.defaultValue })
1399
- };
1400
- }
1401
- });
1402
- var $l = function() {
1403
- var e = this, t = e._self._c;
1404
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(a) {
1405
- return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1406
- } } }, [t("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
1407
- }, Ul = [], Rl = /* @__PURE__ */ I(
1408
- Il,
1409
- $l,
1410
- Ul,
1411
- !1,
1412
- null,
1413
- "e6adae8e",
1414
- null,
1415
- null
1416
- );
1417
- const Ke = Rl.exports, Vl = {
1418
- "en-US": {
1419
- from: "From",
1420
- to: "To"
1421
- }
1422
- }, kl = U({
1423
- name: "bento-range-filter",
1424
- i18n: { messages: Vl },
1425
- components: { BentoBaseFilter: ae, BentoInputField: $e },
1426
- props: {
1427
- /**
1428
- * Default value of the filter to reset to.
1429
- */
1430
- defaultValue: { type: Array, default: null },
1431
- /**
1432
- * Filter name/key referencing the actual property name in the data set.
1433
- * Should be unique per filter bar.
1434
- */
1435
- field: { type: String, required: !0 },
1436
- /**
1437
- * Label text to be displayed
1438
- */
1439
- label: { type: String, required: !0 },
1440
- /**
1441
- * Current value of the filter
1442
- */
1443
- value: { type: Array, default: () => ["", ""] },
1444
- /**
1445
- * Renders the base filter's slot content only - leaving out the button and the popover.
1446
- * Used for the allFiltersModal component.
1447
- */
1448
- onlySlot: { type: Boolean, default: !1 }
1449
- },
1450
- emits: [_.INPUT, _.UPDATE],
1451
- setup(l, { emit: e }) {
1452
- const t = P(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = te(
1453
- w(l, "value"),
1454
- w(l, "defaultValue")
1455
- ), i = r(() => {
1456
- var b, D, S, N, z, G, K, Y;
1457
- if (!((b = l.value) != null && b[0]) && !((D = l.value) != null && D[1]))
1458
- return null;
1459
- let g = "";
1460
- (S = l.value) != null && S[0] ? (N = l.value) != null && N[1] || (g = "≥") : g = "≤";
1461
- const R = (z = l.value) != null && z[0] ? `${W(l.value[0], 5)}` : "", u = (G = l.value) != null && G[0] && ((K = l.value) != null && K[1]) ? " - " : "", m = (Y = l.value) != null && Y[1] ? `${W(l.value[1], 5)}` : "";
1462
- return `${g}${R}${u}${m}`;
1463
- }), c = r(
1464
- () => l.defaultValue === null ? l.label : i.value
1465
- ), o = r(
1466
- () => l.defaultValue === null ? i.value : null
1467
- ), y = r(() => ({
1468
- ["b-range-filter--only-slot"]: l.onlySlot
1469
- })), F = () => {
1470
- a.value = l.value, Be(() => t.value.focusInput());
1471
- }, C = () => {
1472
- e(_.INPUT, { ...l, value: a.value });
1473
- }, h = (g) => {
1474
- a.value = [g, a.value[1]], C();
1475
- }, v = (g) => {
1476
- a.value = [a.value[0], g], C();
1477
- }, A = () => {
1478
- a.value.some((g) => g) || (a.value = l.defaultValue !== null ? l.defaultValue : void 0), e(_.UPDATE, {
1479
- ...l,
1480
- value: a.value
1481
- });
1482
- };
1483
- return {
1484
- // Values
1485
- inputTextRef: t,
1486
- conditionalClasses: y,
1487
- internalFilterValue: a,
1488
- isApplyButtonDisabled: s,
1489
- isSecondaryButtonDisabled: n,
1490
- buttonLabel: c,
1491
- buttonSecondaryLabel: o,
1492
- // Events
1493
- updateFrom: h,
1494
- updateTo: v,
1495
- updateFilter: A,
1496
- clearFilter: () => {
1497
- a.value = ["", ""], A();
1498
- },
1499
- openFilter: F,
1500
- resetFilter: () => e(_.UPDATE, { ...l, value: l.defaultValue })
1501
- };
1502
- }
1503
- });
1504
- var Ll = function() {
1505
- var e = this, t = e._self._c;
1506
- return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(a) {
1507
- return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
1508
- } } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue ? e.internalFilterValue[0] : "", type: "number", "aria-label": e.$t("from").toString() }, on: { input: e.updateFrom } }, [e._v(" " + e._s(e.$t("from")) + " ")]), t("bento-input-field", { staticClass: "b-range-filter__input-field", attrs: { value: e.internalFilterValue ? e.internalFilterValue[1] : "", type: "number", "aria-label": e.$t("to").toString() }, on: { input: e.updateTo } }, [e._v(" " + e._s(e.$t("to")) + " ")])], 1)]);
1509
- }, Ol = [], wl = /* @__PURE__ */ I(
1510
- kl,
1511
- Ll,
1512
- Ol,
1513
- !1,
1514
- null,
1515
- "d9161521",
1516
- null,
1517
- null
1518
- );
1519
- const Ye = wl.exports;
1520
- var de = /* @__PURE__ */ ((l) => (l.INPUT = "input", l))(de || {});
1521
- const Nl = U({
1522
- name: "base-filter-button",
1523
- components: { BaseButton: Te, BentoTypography: oe, ChevronUpIcon: xe, ChevronDownIcon: Ie },
1524
- props: {
1525
- /**
1526
- * The number of applies values within the filter.
1527
- * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
1528
- */
1529
- amountAppliedValues: { type: [Number, String], default: null },
1530
- /**
1531
- * Disables button functionality.
1532
- */
1533
- disabled: { type: Boolean, default: !1 },
1534
- /**
1535
- * Signifies if the filter is open or closed.
1536
- */
1537
- isFilterOpen: { type: Boolean, default: !1 },
1538
- /**
1539
- * Toggles if a chevron icon should be displayed in the button.
1540
- * The chevron will change depending on the open state of the filter.
1541
- */
1542
- hasChevron: { type: Boolean, default: !1 },
1543
- /**
1544
- * Renders the text in a stronger variant.
1545
- */
1546
- bold: { type: Boolean, default: !1 }
1547
- },
1548
- emits: [ye.CLICK],
1549
- setup(l, { slots: e, emit: t, attrs: a }) {
1550
- const n = r(() => e.default ? Pe(e)("default") : null), s = De({ ariaLabel: n }), i = P(null), c = r(() => {
1551
- var F;
1552
- return {
1553
- "aria-controls": (F = a["aria-controls"]) == null ? void 0 : F.toString()
1554
- };
1555
- }), o = r(() => ({
1556
- ["b-base-filter-button--with-chevron"]: l.hasChevron,
1557
- ["b-base-filter-button--filter-open"]: l.isFilterOpen
1558
- }));
1559
- return {
1560
- // Values
1561
- ariaAttributes: c,
1562
- computedAriaLabel: s,
1563
- conditionalClasses: o,
1564
- // Methods
1565
- onClickButton: () => {
1566
- l.disabled || t(ye.CLICK);
1567
- },
1568
- hasSlot: Ee(e),
1569
- // Refs
1570
- baseFilterButtonRef: i
1571
- };
1572
- }
1573
- });
1574
- var Ml = function() {
1575
- var e = this, t = e._self._c;
1576
- return e._self._setupProxy, t("base-button", { ref: "baseFilterButtonRef", staticClass: "b-base-filter-button", class: e.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": e.computedAriaLabel, "aria-controls": e.ariaAttributes["aria-controls"], type: "button" }, on: { click: e.onClickButton }, scopedSlots: e._u([e.hasChevron ? { key: "iconRight", fn: function() {
1577
- return [e.isFilterOpen ? t("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
1578
- }, proxy: !0 } : null], null, !0) }, [t("div", { staticClass: "b-base-filter-button__default-container" }, [t("div", { staticClass: "b-base-filter-button__label-container" }, [t("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2)], 1), e.amountAppliedValues && !e.hasChevron ? t("div", { staticClass: "b-base-filter-button__counter-wrapper" }, [t("bento-typography", { staticClass: "b-base-filter-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.amountAppliedValues) + " ")])], 1) : e._e()])]);
1579
- }, Hl = [], jl = /* @__PURE__ */ I(
1580
- Nl,
1581
- Ml,
1582
- Hl,
1583
- !1,
1584
- null,
1585
- "66b170d4",
1586
- null,
1587
- null
1588
- );
1589
- const ql = jl.exports, Kl = U({
1590
- name: "all-filters-modal-button",
1591
- components: { BaseFilterButton: ql },
1592
- props: {
1593
- /**
1594
- * Button label to be displayed
1595
- */
1596
- label: { type: String, required: !0 },
1597
- /**
1598
- * Total count of applied filters
1599
- */
1600
- appliedFiltersCount: { type: [Number, String], default: null },
1601
- /**
1602
- * Indicates whether the filter popover tied to this button is showing
1603
- */
1604
- isFilterOpen: { type: Boolean, default: !1 },
1605
- /**
1606
- * Disables button functionality.
1607
- */
1608
- disabled: { type: Boolean, default: !1 }
1609
- },
1610
- emits: ["click"],
1611
- setup(l, { emit: e }) {
1612
- return {
1613
- conditionalClasses: r(() => ({
1614
- ["b-all-filters-modal-button--with-counter"]: l.appliedFiltersCount,
1615
- ["b-all-filters-modal-button--filter-open"]: l.isFilterOpen
1616
- })),
1617
- onClick: () => {
1618
- e("click");
1619
- }
1620
- };
1621
- }
1622
- });
1623
- var Yl = function() {
1624
- var e = this, t = e._self._c;
1625
- return e._self._setupProxy, t("base-filter-button", { staticClass: "b-all-filters-modal-button", class: e.conditionalClasses, attrs: { "amount-applied-values": e.appliedFiltersCount, "is-filter-open": e.isFilterOpen, disabled: e.disabled }, on: { click: e.onClick } }, [e._v(" " + e._s(e.label) + " ")]);
1626
- }, Jl = [], zl = /* @__PURE__ */ I(
1627
- Kl,
1628
- Yl,
1629
- Jl,
1630
- !1,
1631
- null,
1632
- "4c415ac7",
1633
- null,
1634
- null
1635
- );
1636
- const Gl = zl.exports;
1637
- let Ce = 0;
1638
- const Wl = {
1639
- beforeCreate() {
1640
- this.uuid = Ce.toString(), Ce += 1;
1641
- }
1642
- };
1643
- var Zl = function() {
1644
- var e = this, t = e._self._c;
1645
- return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { 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" } }), t("path", { attrs: { 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" } })]);
1646
- }, Ql = [], Xl = /* @__PURE__ */ I(
1647
- Wl,
1648
- Zl,
1649
- Ql,
1650
- !1,
1651
- null,
1652
- null,
1653
- null,
1654
- null
1655
- );
1656
- const ea = Xl.exports, ta = {
1657
- "en-US": {
1658
- all: "All",
1659
- activeFilters: "Active filters",
1660
- allFilters: "All filters",
1661
- applyAll: "Apply all",
1662
- cancel: "Cancel",
1663
- clear: "Clear",
1664
- clearAll: "Clear all",
1665
- noFiltersMatchThisSearch: "No filters match this search",
1666
- otherFilters: "Other filters",
1667
- searchBar: "Search bar"
1668
- }
1669
- }, la = U({
1670
- i18n: { messages: ta },
1671
- name: "all-filters-modal",
1672
- components: {
1673
- AllFiltersModalButton: Gl,
1674
- BentoBooleanFilter: Ke,
1675
- BentoButton: st,
1676
- BentoDateFilter: Oe,
1677
- BentoDateRangeFilter: we,
1678
- BentoInputFilter: Le,
1679
- BentoModal: at,
1680
- BentoRangeFilter: Ye,
1681
- BentoSearchBar: re,
1682
- BentoSelectAvatarFilter: Ne,
1683
- BentoSelectCurrencyFilter: Me,
1684
- BentoSelectCountryFilter: He,
1685
- BentoSelectFilter: j,
1686
- BentoSelectPaymentMethodFilter: je,
1687
- BentoSelectTagFilter: qe,
1688
- BentoTypography: oe,
1689
- FilterBarButton: be,
1690
- SlidersIcon: ea
1691
- },
1692
- props: {
1693
- /**
1694
- * Array of filters based on {@see FilterBarModel}.
1695
- * Each one of the elements in the array correspond to a filter that will
1696
- * be created and rendered in the AllFiltersModal.
1697
- *
1698
- * Can be used with v-model or independently with the @input event.
1699
- *
1700
- * @example
1701
- * [{
1702
- * field: 'company',
1703
- * label: 'Company',
1704
- * value: '200',
1705
- * type: FilterType.TEXT,
1706
- * }, {
1707
- * field: 'name',
1708
- * label: 'Name',
1709
- * value: null,
1710
- * type: FilterType.TEXT,
1711
- * }]
1712
- */
1713
- value: {
1714
- type: Array,
1715
- default: () => []
1716
- }
1717
- },
1718
- emits: [de.INPUT],
1719
- setup(l, { emit: e }) {
1720
- const t = Ae({ value: l.value }), a = P(t.value), n = _e("all-filters-modal"), s = P([]), i = P(!1), c = P(0), o = P(null), y = P(""), { t: F } = Z(), C = Ue(y, w(a, "value")), h = P({});
1721
- fe(() => {
1722
- h.value = [];
1723
- }), ee(
1724
- () => l.value,
1725
- () => {
1726
- t.value = l.value, a.value = l.value;
1727
- }
1728
- );
1729
- const v = (f) => (
1730
- /* eslint-disable-next-line no-nested-ternary */
1731
- f.sort((d, B) => d.label > B.label ? 1 : B.label > d.label ? -1 : 0)
1732
- ), A = r(
1733
- () => v(
1734
- C.value.filter(
1735
- (f) => {
1736
- var d, B;
1737
- return Array.isArray(f.value) ? ((d = f.value) == null ? void 0 : d.length) && ((B = f.value) == null ? void 0 : B.find((k) => k !== "")) : f.value;
1738
- }
1739
- )
1740
- )
1741
- ), E = r(
1742
- () => v(
1743
- C.value.filter(
1744
- (f) => {
1745
- var d, B;
1746
- return Array.isArray(f.value) ? ((d = f.value) == null ? void 0 : d.length) === 0 || ((B = f.value) == null ? void 0 : B.every((k) => k === "")) : !f.value;
1747
- }
1748
- )
1749
- )
1750
- ), T = r(() => {
1751
- var f;
1752
- return y.value && ((f = C.value) == null ? void 0 : f.length) === 0;
1753
- }), g = r(() => a.value[c.value]), R = () => {
1754
- const f = A.value.length ? A.value[0] : E.value[0], d = a.value.findIndex(
1755
- (B) => B.label === f.label && B.field === f.field
1756
- );
1757
- c.value = d;
1758
- };
1759
- Ge(() => {
1760
- R();
1761
- });
1762
- const u = (f) => f.map((d) => {
1763
- var B, k, M, O, ue, ne;
1764
- switch (d.type) {
1765
- case H.SELECT:
1766
- case H.SELECT_AVATAR:
1767
- case H.SELECT_COUNTRY:
1768
- case H.SELECT_CURRENCY:
1769
- case H.SELECT_PAYMENT_METHOD:
1770
- case H.SELECT_TAG:
1771
- switch ((B = d.options) == null ? void 0 : B.multiple) {
1772
- case !0:
1773
- return {
1774
- label: d.label,
1775
- field: d.field,
1776
- count: (k = d.value) != null && k.length ? (M = d.value) == null ? void 0 : M.length : null
1777
- };
1778
- default:
1779
- return {
1780
- label: d.label,
1781
- field: d.field,
1782
- count: d.value == null ? null : 1
1783
- };
1784
- }
1785
- case H.DATE_RANGE:
1786
- return {
1787
- label: d.label,
1788
- field: d.field,
1789
- count: ((O = d.value) == null ? void 0 : O.startDate) != null && ((ue = d.value) == null ? void 0 : ue.endDate) != null ? 1 : null
1790
- };
1791
- case H.RANGE:
1792
- return {
1793
- label: d.label,
1794
- field: d.field,
1795
- count: (ne = d.value) != null && ne.find((ce) => ce !== "") ? 1 : null
1796
- };
1797
- case H.INPUT:
1798
- case H.BOOLEAN:
1799
- case H.DATE:
1800
- default:
1801
- return {
1802
- label: d.label,
1803
- field: d.field,
1804
- count: d.value != null ? 1 : null
1805
- };
1806
- }
1807
- }), m = r(
1808
- () => {
1809
- var f;
1810
- return Array.isArray(g.value.value) ? ((f = g.value) == null ? void 0 : f.value.length) && g.value.value.find((d) => d !== "") : !!a.value[c.value].value;
1811
- }
1812
- ), b = r(
1813
- () => {
1814
- var f;
1815
- return (f = u(t.value)) == null ? void 0 : f.filter(({ count: d }) => !!d).length;
1816
- }
1817
- ), D = () => {
1818
- i.value ? i.value = !1 : i.value = !0;
1819
- }, S = (f) => {
1820
- var B, k, M;
1821
- const d = u(a.value).find((O) => O.field === f.field).count;
1822
- return f.type.includes("BentoSelect") && ((B = f.options) != null && B.multiple) && d === ((M = (k = f.options) == null ? void 0 : k.listboxItems) == null ? void 0 : M.length) ? F("all") : d;
1823
- }, N = (f, d) => {
1824
- c.value = a.value.findIndex(
1825
- (B) => B.label === f && B.field === d
1826
- );
1827
- }, z = () => {
1828
- y.value = "";
1829
- }, G = () => {
1830
- i.value = !1, t.value = l.value, a.value = l.value, z(), R();
1831
- }, K = (f) => {
1832
- const d = a.value.map(({ value: B, ...k }, M) => M === c.value ? { value: f.value, ...k } : { value: B, ...k });
1833
- a.value = d;
1834
- }, Y = () => {
1835
- K({
1836
- field: g.value.field,
1837
- label: g.value.label,
1838
- type: g.value.type,
1839
- value: void 0
1840
- });
1841
- }, Q = () => {
1842
- a.value = t.value.map(({ value: f, ...d }) => ({
1843
- ...d,
1844
- value: void 0
1845
- }));
1846
- }, V = () => {
1847
- e(de.INPUT, a.value), i.value = !1;
1848
- }, p = r(
1849
- () => JSON.stringify(a.value) === JSON.stringify(l.value)
1850
- ), $ = r(() => [
1851
- {
1852
- title: F("applyAll"),
1853
- disabled: p.value,
1854
- event: V
1855
- },
1856
- {
1857
- title: F("cancel"),
1858
- event: G
1859
- },
1860
- {
1861
- title: F("clearAll"),
1862
- disabled: !b.value,
1863
- event: Q
1864
- }
1865
- ]);
1866
- return {
1867
- // Enums
1868
- BentoModalEvent: nt,
1869
- // Values
1870
- allFiltersModalUniqueId: n,
1871
- allFiltersModalFiltersSection: s,
1872
- allFiltersModalFilterButtons: h,
1873
- numberOfActiveFilters: b,
1874
- isEmptyResultForSearchFilter: T,
1875
- isModalOpen: i,
1876
- isClearButtonEnabled: m,
1877
- activeFilters: A,
1878
- otherFilters: E,
1879
- modalActions: $,
1880
- selectedFilter: g,
1881
- selectedFilterRef: o,
1882
- filters: t,
1883
- searchTerm: y,
1884
- // Methods
1885
- onClickAllFiltersModal: D,
1886
- getFilterCount: S,
1887
- cancel: G,
1888
- selectFilter: N,
1889
- clearFilter: Y,
1890
- updateFilter: K,
1891
- onSearchbarClear: z,
1892
- onKeydownRight: () => {
1893
- rt(1, o.value.$el).focus();
1894
- },
1895
- onKeydownLeft: () => {
1896
- h.value[g.value.label].$el.focus();
1897
- }
1898
- };
1899
- }
1900
- });
1901
- var aa = function() {
1902
- var e = this, t = e._self._c;
1903
- return e._self._setupProxy, t("div", { staticClass: "b-all-filters-modal" }, [t("filter-bar-button", { attrs: { "is-filter-open": e.isModalOpen, "applied-filters-count": e.numberOfActiveFilters }, on: { click: e.onClickAllFiltersModal }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
1904
- return [t("sliders-icon", { attrs: { "aria-hidden": "true" } })];
1905
- }, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("allFilters")) + " ")]), t("bento-modal", { staticClass: "'b-all-filters-modal__modal'", attrs: { "is-open": e.isModalOpen, "with-column-layout": !0, size: "large", actions: e.modalActions, "is-dismissible": !1, "hide-close-button": "" }, on: { "close-modal": e.cancel }, scopedSlots: e._u([{ key: "default", fn: function() {
1906
- return [e._v(" " + e._s(e.$t("allFilters")) + " ")];
1907
- }, proxy: !0 }, { key: "content-col-1", fn: function() {
1908
- return [t("div", { ref: "allFiltersModalFiltersSection", staticClass: "b-all-filters-modal__filters", on: { keydown: function(a) {
1909
- return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.onKeydownRight.apply(null, arguments);
1910
- } } }, [t("bento-search-bar", { staticClass: "b-all-filters-modal__search-bar", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("searchBar").toString() }, on: { input: function(a) {
1911
- e.searchTerm = a;
1912
- }, clear: e.onSearchbarClear } }), e.isEmptyResultForSearchFilter ? t("div", { staticClass: "b-all-filters-modal__empty-search-message" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noFiltersMatchThisSearch")))])], 1) : e._e(), e.activeFilters.length ? t("div", { staticClass: "b-all-filters-modal__filters-section" }, [t("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `active-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("activeFilters")))]), t("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.activeFilters, function(a) {
1913
- return t("li", { key: `${a.label}-${a.field}` }, [t("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1914
- return e.selectFilter(a.label, a.field);
1915
- } } })], 1);
1916
- }), 0)], 1) : e._e(), e.otherFilters.length ? t("div", { staticClass: "b-all-filters-modal__filters-section" }, [e.activeFilters.length ? t("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `other-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("otherFilters")))]) : e._e(), t("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.otherFilters, function(a) {
1917
- return t("li", { key: `${a.label}-${a.field}` }, [t("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
1918
- return e.selectFilter(a.label, a.field);
1919
- } } })], 1);
1920
- }), 0)], 1) : e._e()], 1)];
1921
- }, proxy: !0 }, { key: "content-col-2", fn: function() {
1922
- return [t("div", { staticClass: "b-all-filters-modal__selected-filter-content", on: { keydown: function(a) {
1923
- return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.onKeydownLeft.apply(null, arguments);
1924
- } } }, [t("div", { staticClass: "b-all-filters-modal__selected-filter-text" }, [t("bento-typography", { attrs: { el: "div", variant: "title", medium: "" } }, [e._v(e._s(e.selectedFilter.label))]), e.selectedFilter.description ? t("bento-typography", { attrs: { el: "div", variant: "body", wide: "" } }, [e._v(" " + e._s(e.selectedFilter.description) + " ")]) : e._e()], 1), t("div", { staticClass: "b-all-filters-modal__selected-filter-component" }, [t(e.selectedFilter.type, { key: e.selectedFilter.field, ref: "selectedFilterRef", tag: "component", attrs: { field: e.selectedFilter.field, label: e.selectedFilter.label, options: e.selectedFilter.options, value: e.selectedFilter.value, "default-value": e.selectedFilter.defaultValue, "only-slot": !0 }, on: { input: e.updateFilter } })], 1), t("div", { staticClass: "b-all-filters-modal__clear-button" }, [t("bento-button", { attrs: { variant: "secondary", disabled: !e.isClearButtonEnabled }, on: { click: e.clearFilter } }, [e._v(e._s(e.$t("clear")))])], 1)])];
1925
- }, proxy: !0 }]) })], 1);
1926
- }, na = [], sa = /* @__PURE__ */ I(
1927
- la,
1928
- aa,
1929
- na,
1930
- !1,
1931
- null,
1932
- "a6a7d960",
1933
- null,
1934
- null
1935
- );
1936
- const oa = sa.exports, ra = {
1937
- "en-US": {
1938
- clearAll: "Clear filters",
1939
- filtersHaveBeenCleared: "Filters have been cleared.",
1940
- filtersHaveBeenReset: "Filters have been reset.",
1941
- undo: "Undo",
1942
- resetAll: "Reset filters",
1943
- searchBar: "Search bar"
1944
- }
1945
- }, ia = U({
1946
- i18n: { messages: ra },
1947
- name: "bento-filter-bar",
1948
- components: {
1949
- AllFiltersModal: oa,
1950
- BentoBooleanFilter: Ke,
1951
- BentoDateFilter: Oe,
1952
- BentoDateRangeFilter: we,
1953
- BentoRangeFilter: Ye,
1954
- BentoInputFilter: Le,
1955
- BentoSelectFilter: j,
1956
- BentoSelectAvatarFilter: Ne,
1957
- BentoSelectCountryFilter: He,
1958
- BentoSelectCurrencyFilter: Me,
1959
- BentoSelectPaymentMethodFilter: je,
1960
- BentoSelectTagFilter: qe,
1961
- BentoSearchBar: re,
1962
- FilterBarButton: be,
1963
- FixedScroller: Ft,
1964
- RefreshIcon: mt
1965
- },
1966
- props: {
1967
- /**
1968
- * Array of filters based on {@see BentoFilterBarModel}.
1969
- * Each one of the elements in the array correspond to a filter that will
1970
- * be created and rendered in the FilterBar.
1971
- *
1972
- * @example
1973
- * [{
1974
- * field: 'company',
1975
- * label: 'Company',
1976
- * type: FilterType.TEXT,
1977
- * }, {
1978
- * field: 'name',
1979
- * label: 'Name',
1980
- * type: FilterType.TEXT,
1981
- * }]
1982
- */
1983
- config: {
1984
- type: Array,
1985
- default: () => []
1986
- },
1987
- /**
1988
- * Search term useful to filter all the data by text.
1989
- * If the value is non-existant (null or undefined) the search bar won't be enabled.
1990
- */
1991
- searchTerm: {
1992
- type: re.props.value.type,
1993
- default: void 0
1994
- },
1995
- /**
1996
- * @deprecated from version 2.0.0. Use the config property instead.
1997
- */
1998
- /**
1999
- * Array of filters based on {@see BentoFilterBarModel}.
2000
- * Each one of the elements in the array correspond to a filter that will
2001
- * be created and rendered in the FilterBar.
2002
- *
2003
- * Can be used with v-model or independently with the @input event.
2004
- *
2005
- * @example
2006
- * [{
2007
- * field: 'company',
2008
- * label: 'Company',
2009
- * value: '200',
2010
- * type: FilterType.TEXT,
2011
- * }, {
2012
- * field: 'name',
2013
- * label: 'Name',
2014
- * value: null,
2015
- * type: FilterType.TEXT,
2016
- * }]
2017
- */
2018
- value: {
2019
- type: Array,
2020
- default: () => []
2021
- },
2022
- /**
2023
- * An array of the values for each filter in the filter bar.
2024
- * {@see BentoFilterValues}
2025
- *
2026
- * @example
2027
- * [{
2028
- * field: 'company',
2029
- * value: '200',
2030
- * }, {
2031
- * field: 'name',
2032
- * value: 'some text',
2033
- * }]
2034
- */
2035
- filterValues: {
2036
- type: Array,
2037
- default: () => []
2038
- }
2039
- },
2040
- emits: [
2041
- se.INPUT,
2042
- se.UPDATE_FILTER_VALUES,
2043
- le.CLEAR,
2044
- le.INPUT,
2045
- le.UPDATE
2046
- ],
2047
- setup(l, { emit: e }) {
2048
- const { t } = Z(), a = r(
2049
- () => {
2050
- var u, m;
2051
- return (m = ((u = l.config) == null ? void 0 : u.length) > 0 ? l.config : l.value) == null ? void 0 : m.map((b) => {
2052
- var S;
2053
- let D = (S = l.filterValues.find(({ field: N }) => N === b.field)) == null ? void 0 : S.value;
2054
- return D === void 0 && (D = (b == null ? void 0 : b.value) === void 0 && (b == null ? void 0 : b.defaultValue) !== void 0 ? b == null ? void 0 : b.defaultValue : b == null ? void 0 : b.value), { ...b, value: D !== void 0 ? D : b == null ? void 0 : b.value };
2055
- });
2056
- }
2057
- ), { addToast: n } = ht(), s = r(() => t("searchBar")), i = r(() => a.value.some(
2058
- ({ visible: m }) => m != null
2059
- ) ? a.value.some(({ visible: m }) => !m) : !1), c = r(
2060
- () => a.value.filter(({ defaultValue: u }) => u !== void 0)
2061
- ), o = r(() => a.value.some(
2062
- ({ visible: m }) => m != null
2063
- ) ? a.value.filter(
2064
- ({ defaultValue: m, visible: b }) => m === void 0 && b
2065
- ) : a.value.filter(({ defaultValue: m }) => m === void 0)), y = r(() => l.searchTerm != null), F = r(
2066
- () => a.value.filter(({ defaultValue: u }) => u == null).some(({ value: u }) => u != null)
2067
- ), C = r(() => c.value.length === 0 && F.value), h = r(() => c.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: m }) => m !== void 0 || m !== null).every(({ value: m, defaultValue: b }) => JSON.stringify(m) === JSON.stringify(b)) || F.value), v = (u) => {
2068
- e(se.INPUT, u), e(
2069
- se.UPDATE_FILTER_VALUES,
2070
- u == null ? void 0 : u.filter(({ value: m }) => m !== null || m !== void 0).map(({ field: m, value: b }) => ({ field: m, value: b }))
2071
- );
2072
- };
2073
- return {
2074
- // Values
2075
- hasHiddenFilters: i,
2076
- isClearAllVisible: C,
2077
- isSearchBarEnabled: y,
2078
- searchBarAriaLabel: s,
2079
- persistentFilters: c,
2080
- regularFilters: o,
2081
- isResetAllVisible: h,
2082
- valueAndFilterValuesPropsMerged: a,
2083
- // Events
2084
- updateAllFilters: v,
2085
- updateFilterHandler: (u) => {
2086
- const m = a.value.findIndex(
2087
- (D) => D.field === u.field
2088
- ), b = a.value.slice();
2089
- b[m].value = u.value, v(b);
2090
- },
2091
- clearAllFilters: () => {
2092
- const u = a.value.slice(), m = a.value.map(({ value: b, ...D }) => ({
2093
- ...D,
2094
- value: void 0
2095
- }));
2096
- n({
2097
- text: t("filtersHaveBeenCleared"),
2098
- action: {
2099
- handler: () => v(u),
2100
- text: t("undo")
2101
- }
2102
- }), v(m);
2103
- },
2104
- onSearchbarClear: () => {
2105
- e(le.CLEAR);
2106
- },
2107
- onSearchbarInput: (u) => {
2108
- e(le.INPUT, u), e(le.UPDATE, u);
2109
- },
2110
- resetAllFilters: () => {
2111
- const u = a.value.slice(), m = a.value.map(({ defaultValue: b, ...D }) => ({
2112
- ...D,
2113
- defaultValue: b,
2114
- value: b
2115
- }));
2116
- n({
2117
- text: t("filtersHaveBeenReset"),
2118
- action: {
2119
- handler: () => v(u),
2120
- text: t("undo")
2121
- }
2122
- }), v(m);
2123
- }
2124
- };
2125
- }
2126
- });
2127
- var ua = function() {
2128
- var e = this, t = e._self._c;
2129
- return e._self._setupProxy, t("div", { staticClass: "b-filter-bar" }, [t("div", { staticClass: "b-filter-bar__container" }, [e.isSearchBarEnabled || e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? t("div", { staticClass: "b-filter-bar__before-filters" }, [e.isSearchBarEnabled ? t("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e(), e.hasHiddenFilters ? t("all-filters-modal", { staticClass: "b-filter-bar__all-filters-modal", attrs: { value: e.valueAndFilterValuesPropsMerged }, on: { input: e.updateAllFilters } }) : e._e(), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], staticClass: "b-filter-bar__clear-all", on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2130
- return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
2131
- }, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("clearAll")) + " ")]), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: e.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2132
- return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
2133
- }, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 1) : e._e(), t("div", { staticClass: "b-filter-bar__filters-container" }, [t("div", { staticClass: "b-filter-bar__filters" }, [t("fixed-scroller", { staticClass: "b-filter-bar__fixed-scroller", attrs: { condensed: "" } }, [t("div", { staticClass: "b-filter-bar__scroller-content" }, [e.isSearchBarEnabled ? t("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e(), e.persistentFilters.length ? e._l(e.persistentFilters, function(a) {
2134
- return t(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value, "default-value": a.defaultValue }, on: { update: e.updateFilterHandler } });
2135
- }) : e._e(), e._l(e.regularFilters, function(a) {
2136
- return t(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value }, on: { update: e.updateFilterHandler } });
2137
- })], 2)])], 1), e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? t("div", { staticClass: "b-filter-bar__actions" }, [e.hasHiddenFilters ? t("all-filters-modal", { staticClass: "b-filter-bar__all-filters-modal", attrs: { value: e.valueAndFilterValuesPropsMerged }, on: { input: e.updateAllFilters } }) : e._e(), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], staticClass: "b-filter-bar__clear-all", on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2138
- return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
2139
- }, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("clearAll")) + " ")]), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: e.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
2140
- return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
2141
- }, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 1) : e._e()])])]);
2142
- }, ca = [], da = /* @__PURE__ */ I(
2143
- ia,
2144
- ua,
2145
- ca,
2146
- !1,
2147
- null,
2148
- "f8c09e65",
2149
- null,
2150
- null
2151
- );
2152
- const Za = da.exports;
1
+ import { B as r, b as a, a as B, c as n } from "./chunks/filter-bar.Cpimgf_J.js";
2153
2
  export {
2154
- Za as BentoFilterBar,
2155
- se as BentoFilterBarEvent,
2156
- _ as BentoFilterEvent,
2157
- H as BentoFilterItemType
3
+ r as BentoFilterBar,
4
+ a as BentoFilterBarEvent,
5
+ B as BentoFilterEvent,
6
+ n as BentoFilterItemType
2158
7
  };
2159
8
  //# sourceMappingURL=filter-bar.js.map