@adyen/bento-vue2 1.28.0 → 1.29.0

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