@adyen/bento-vue3 1.27.0 → 1.28.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 (578) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +91 -0
  3. package/dist/@types/packages/vue2/src/components/dashed-underline/index.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.d.ts +2 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.types.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +65 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/index.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +38 -42
  10. package/dist/@types/packages/vue2/src/components/internal/radio-input/index.d.ts +2 -2
  11. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +59 -85
  13. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.types.d.ts +3 -0
  14. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +48 -80
  15. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +19 -16
  16. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  17. package/dist/accordion.js +3 -125
  18. package/dist/accordion.js.map +1 -1
  19. package/dist/action-bar.js +2 -186
  20. package/dist/action-bar.js.map +1 -1
  21. package/dist/alert.js +5 -181
  22. package/dist/alert.js.map +1 -1
  23. package/dist/assets/{index2.css → accordion-item.css} +1 -1
  24. package/dist/assets/{index5.css → action-bar.css} +1 -1
  25. package/dist/assets/base-modal.css +1 -1
  26. package/dist/assets/button.css +1 -1
  27. package/dist/assets/{index18.css → card.css} +1 -1
  28. package/dist/assets/checkbox-input.css +1 -1
  29. package/dist/assets/{index39.css → dashboard-section.css} +1 -1
  30. package/dist/assets/dashed-underline.css +1 -0
  31. package/dist/assets/{index49.css → data-grid-template.css} +1 -1
  32. package/dist/assets/{index21.css → data-grid.css} +1 -1
  33. package/dist/assets/dialog-page.css +1 -1
  34. package/dist/assets/dropdown-default-textbox.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/filter-bar.css +1 -0
  37. package/dist/assets/link.css +1 -0
  38. package/dist/assets/listbox-option-tag.css +1 -1
  39. package/dist/assets/{index10.css → menu.css} +1 -1
  40. package/dist/assets/{index11.css → modal-fullscreen.css} +1 -1
  41. package/dist/assets/{index17.css → popover.css} +1 -1
  42. package/dist/assets/radio-input.css +1 -1
  43. package/dist/assets/segmented-control.css +1 -0
  44. package/dist/assets/selection-card-group.css +1 -0
  45. package/dist/assets/{index38.css → sidepanel.css} +1 -1
  46. package/dist/assets/status.css +1 -0
  47. package/dist/assets/toggle.css +1 -0
  48. package/dist/assets/tutorial.css +1 -0
  49. package/dist/avatar-image.js +1 -1
  50. package/dist/badge.js +13 -14
  51. package/dist/badge.js.map +1 -1
  52. package/dist/button.js +14 -89
  53. package/dist/button.js.map +1 -1
  54. package/dist/card.js +4 -203
  55. package/dist/card.js.map +1 -1
  56. package/dist/checkbox.js +8 -194
  57. package/dist/checkbox.js.map +1 -1
  58. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  59. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  60. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  61. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  62. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  63. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  64. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  65. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  66. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  67. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  68. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  69. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  70. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  71. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  72. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  73. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  74. package/dist/chunks/{_plugin-vue_export-helper.dad06003.js → _plugin-vue_export-helper.CHgC5LLL.js} +1 -1
  75. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  76. package/dist/chunks/accordion-item.BcfGYvjn.js +126 -0
  77. package/dist/chunks/accordion-item.BcfGYvjn.js.map +1 -0
  78. package/dist/chunks/action-bar.BvAtk-jI.js +188 -0
  79. package/dist/chunks/action-bar.BvAtk-jI.js.map +1 -0
  80. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  81. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  82. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  83. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  84. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  85. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  86. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  87. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  88. package/dist/chunks/alert.C0gIf7Ka.js +162 -0
  89. package/dist/chunks/alert.C0gIf7Ka.js.map +1 -0
  90. package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
  91. package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
  92. package/dist/chunks/avatar-image.DO4w_loj.js +61 -0
  93. package/dist/chunks/avatar-image.DO4w_loj.js.map +1 -0
  94. package/dist/chunks/{base-button.a0140a4c.js → base-button.ewkxHD6W.js} +24 -25
  95. package/dist/chunks/{base-button.a0140a4c.js.map → base-button.ewkxHD6W.js.map} +1 -1
  96. package/dist/chunks/{base-modal.4102f69d.js → base-modal.BgYlnM_Q.js} +81 -83
  97. package/dist/chunks/{base-modal.4102f69d.js.map → base-modal.BgYlnM_Q.js.map} +1 -1
  98. package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
  99. package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
  100. package/dist/chunks/{button-actions-with-menu.4f311411.js → button-actions-with-menu.C14zvgVo.js} +14 -15
  101. package/dist/chunks/{button-actions-with-menu.4f311411.js.map → button-actions-with-menu.C14zvgVo.js.map} +1 -1
  102. package/dist/chunks/{button-actions.82163994.js → button-actions.hGhRdgC2.js} +32 -33
  103. package/dist/chunks/{button-actions.82163994.js.map → button-actions.hGhRdgC2.js.map} +1 -1
  104. package/dist/chunks/{button.ae4760cd.js → button.DoqHEvPh.js} +34 -35
  105. package/dist/chunks/{button.ae4760cd.js.map → button.DoqHEvPh.js.map} +1 -1
  106. package/dist/chunks/{calendar.a9c5a68c.js → calendar.CwULNbSL.js} +285 -326
  107. package/dist/chunks/{calendar.a9c5a68c.js.map → calendar.CwULNbSL.js.map} +1 -1
  108. package/dist/chunks/card.C7zLKdcy.js +205 -0
  109. package/dist/chunks/card.C7zLKdcy.js.map +1 -0
  110. package/dist/chunks/checkbox-group.BcT-eZ2p.js +192 -0
  111. package/dist/chunks/checkbox-group.BcT-eZ2p.js.map +1 -0
  112. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.CR1lHf7f.js} +43 -43
  113. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.CR1lHf7f.js.map} +1 -1
  114. package/dist/chunks/{checkbox.9c30c07b.js → checkbox.xjIFibII.js} +38 -39
  115. package/dist/chunks/{checkbox.9c30c07b.js.map → checkbox.xjIFibII.js.map} +1 -1
  116. package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +44 -0
  117. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.D29b-JWj.js.map} +1 -1
  118. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.BCeGkayS.js} +9 -9
  119. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.BCeGkayS.js.map} +1 -1
  120. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.4JHuWe7i.js} +17 -17
  121. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.4JHuWe7i.js.map} +1 -1
  122. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.5-KtIp8i.js} +18 -18
  123. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.5-KtIp8i.js.map} +1 -1
  124. package/dist/chunks/click-outside.DABh6NLr.js +23 -0
  125. package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
  126. package/dist/chunks/code-snippet.e8bxDBCO.js +1052 -0
  127. package/dist/chunks/code-snippet.e8bxDBCO.js.map +1 -0
  128. package/dist/chunks/{controls-group.8357e3fd.js → controls-group.DWu8NqKL.js} +17 -18
  129. package/dist/chunks/{controls-group.8357e3fd.js.map → controls-group.DWu8NqKL.js.map} +1 -1
  130. package/dist/chunks/{copy.60ee6ac3.js → copy.BhO7oRgC.js} +39 -40
  131. package/dist/chunks/{copy.60ee6ac3.js.map → copy.BhO7oRgC.js.map} +1 -1
  132. package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
  133. package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
  134. package/dist/chunks/country.vX94O3uR.js +98 -0
  135. package/dist/chunks/country.vX94O3uR.js.map +1 -0
  136. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.vLaelNTN.js} +11 -11
  137. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.vLaelNTN.js.map} +1 -1
  138. package/dist/chunks/cross-small.48UCoOqB.js +29 -0
  139. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.48UCoOqB.js.map} +1 -1
  140. package/dist/chunks/cross.BlL0FyHo.js +29 -0
  141. package/dist/chunks/{cross.26509efc.js.map → cross.BlL0FyHo.js.map} +1 -1
  142. package/dist/chunks/currency.CgVd9fQN.js +121 -0
  143. package/dist/chunks/currency.CgVd9fQN.js.map +1 -0
  144. package/dist/chunks/dashboard-section.DKeDjvkB.js +167 -0
  145. package/dist/chunks/dashboard-section.DKeDjvkB.js.map +1 -0
  146. package/dist/chunks/dashed-underline.DGTW7Y_-.js +79 -0
  147. package/dist/chunks/dashed-underline.DGTW7Y_-.js.map +1 -0
  148. package/dist/chunks/data-grid-template.6Nls-D4o.js +89 -0
  149. package/dist/chunks/data-grid-template.6Nls-D4o.js.map +1 -0
  150. package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
  151. package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
  152. package/dist/chunks/data-grid.BwfZhc09.js +2733 -0
  153. package/dist/chunks/data-grid.BwfZhc09.js.map +1 -0
  154. package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
  155. package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
  156. package/dist/chunks/date-picker.CoPmllNh.js +273 -0
  157. package/dist/chunks/date-picker.CoPmllNh.js.map +1 -0
  158. package/dist/chunks/{index.2d7b4511.js → date-range-picker.CiwDo2jW.js} +217 -219
  159. package/dist/chunks/date-range-picker.CiwDo2jW.js.map +1 -0
  160. package/dist/chunks/{index.f9d081d2.js → date.2ndGvIGE.js} +36 -41
  161. package/dist/chunks/date.2ndGvIGE.js.map +1 -0
  162. package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
  163. package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
  164. package/dist/chunks/{dialog-page.cb6ce9b6.js → dialog-page.BLqqR73w.js} +48 -49
  165. package/dist/chunks/{dialog-page.cb6ce9b6.js.map → dialog-page.BLqqR73w.js.map} +1 -1
  166. package/dist/chunks/divider.CnwfddJD.js +22 -0
  167. package/dist/chunks/divider.CnwfddJD.js.map +1 -0
  168. package/dist/chunks/{dropdown-default-textbox.cda0798f.js → dropdown-default-textbox.-Oy2eT40.js} +75 -77
  169. package/dist/chunks/{dropdown-default-textbox.cda0798f.js.map → dropdown-default-textbox.-Oy2eT40.js.map} +1 -1
  170. package/dist/chunks/dropdown-tag.C-LxVWlt.js +201 -0
  171. package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +1 -0
  172. package/dist/chunks/{dropdown.0ae3b842.js → dropdown.CxBlK83Q.js} +237 -239
  173. package/dist/chunks/dropdown.CxBlK83Q.js.map +1 -0
  174. package/dist/chunks/empty-state.BBxgpI-D.js +185 -0
  175. package/dist/chunks/empty-state.BBxgpI-D.js.map +1 -0
  176. package/dist/chunks/{error-message.d2bdeb80.js → error-message.DyjHMyEZ.js} +30 -32
  177. package/dist/chunks/{error-message.d2bdeb80.js.map → error-message.DyjHMyEZ.js.map} +1 -1
  178. package/dist/chunks/events.CMzGybJJ.js +47 -0
  179. package/dist/chunks/{events.f14a214b.js.map → events.CMzGybJJ.js.map} +1 -1
  180. package/dist/chunks/filter-bar.U2ZcPmSU.js +2775 -0
  181. package/dist/chunks/filter-bar.U2ZcPmSU.js.map +1 -0
  182. package/dist/chunks/{fixed-scroller.7b42cb1e.js → fixed-scroller.DV7HtKDr.js} +20 -21
  183. package/dist/chunks/{fixed-scroller.7b42cb1e.js.map → fixed-scroller.DV7HtKDr.js.map} +1 -1
  184. package/dist/chunks/{index.9d7fb316.js → focus-trap.CwkbHfT8.js} +20 -20
  185. package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -0
  186. package/dist/chunks/{footer-actions.64f6f5d8.js → footer-actions.D9nQFagi.js} +20 -21
  187. package/dist/chunks/{footer-actions.64f6f5d8.js.map → footer-actions.D9nQFagi.js.map} +1 -1
  188. package/dist/chunks/form-layout-title.4Gz8-dJv.js +204 -0
  189. package/dist/chunks/form-layout-title.4Gz8-dJv.js.map +1 -0
  190. package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
  191. package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
  192. package/dist/chunks/{get-slot-text.bead058f.js → get-slot-text.D5WBGjic.js} +1 -1
  193. package/dist/chunks/{get-slot-text.bead058f.js.map → get-slot-text.D5WBGjic.js.map} +1 -1
  194. package/dist/chunks/{grid-layout.c2fe3057.js → grid-layout.CqLbbEzI.js} +15 -15
  195. package/dist/chunks/{grid-layout.c2fe3057.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
  196. package/dist/chunks/header.Cr7115vM.js +307 -0
  197. package/dist/chunks/header.Cr7115vM.js.map +1 -0
  198. package/dist/chunks/{i18n.f7e6533e.js → i18n.DY5YXG5f.js} +46 -89
  199. package/dist/chunks/{i18n.f7e6533e.js.map → i18n.DY5YXG5f.js.map} +1 -1
  200. package/dist/chunks/image.0KzfycGE.js +78 -0
  201. package/dist/chunks/image.0KzfycGE.js.map +1 -0
  202. package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
  203. package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
  204. package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
  205. package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
  206. package/dist/chunks/{index.fedbb4c2.js → index.Dytpif0G.js} +2 -2
  207. package/dist/chunks/{index.fedbb4c2.js.map → index.Dytpif0G.js.map} +1 -1
  208. package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
  209. package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
  210. package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
  211. package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
  212. package/dist/chunks/info-icon.DvL1e5Iu.js +45 -0
  213. package/dist/chunks/info-icon.DvL1e5Iu.js.map +1 -0
  214. package/dist/chunks/{info.550f9511.js → info.CNegCnli.js} +16 -16
  215. package/dist/chunks/{info.550f9511.js.map → info.CNegCnli.js.map} +1 -1
  216. package/dist/chunks/input-field.iH1ICJkQ.js +344 -0
  217. package/dist/chunks/input-field.iH1ICJkQ.js.map +1 -0
  218. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  219. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  220. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  221. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  222. package/dist/chunks/{keyboard-navigation.bbc3d15c.js → keyboard-navigation.Clz1jOaA.js} +2 -2
  223. package/dist/chunks/{keyboard-navigation.bbc3d15c.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
  224. package/dist/chunks/link.DeNN3Amu.js +111 -0
  225. package/dist/chunks/link.DeNN3Amu.js.map +1 -0
  226. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +94 -0
  227. package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +1 -0
  228. package/dist/chunks/{loading-button.6b81b546.js → loading-button.BI32pZiW.js} +19 -20
  229. package/dist/chunks/{loading-button.6b81b546.js.map → loading-button.BI32pZiW.js.map} +1 -1
  230. package/dist/chunks/loading-indicator.BFMEf39U.js +44 -0
  231. package/dist/chunks/loading-indicator.BFMEf39U.js.map +1 -0
  232. package/dist/chunks/{index.6bb6f38c.js → menu.DN-xhDQU.js} +80 -82
  233. package/dist/chunks/menu.DN-xhDQU.js.map +1 -0
  234. package/dist/chunks/modal-fullscreen.CeogBGfr.js +264 -0
  235. package/dist/chunks/modal-fullscreen.CeogBGfr.js.map +1 -0
  236. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
  237. package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
  238. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js +495 -0
  239. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map +1 -0
  240. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  241. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  242. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  243. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  244. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  245. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  246. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  247. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  248. package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
  249. package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
  250. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  251. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  252. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  253. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  254. package/dist/chunks/pagination.BwG1MF4j.js +633 -0
  255. package/dist/chunks/pagination.BwG1MF4j.js.map +1 -0
  256. package/dist/chunks/{payment-method.d5595a7c.js → payment-method.NCItxw1D.js} +26 -27
  257. package/dist/chunks/{payment-method.d5595a7c.js.map → payment-method.NCItxw1D.js.map} +1 -1
  258. package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
  259. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
  260. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  261. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  262. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  263. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  264. package/dist/chunks/{index.a001a0a8.js → popover.DRb2GW7t.js} +48 -49
  265. package/dist/chunks/popover.DRb2GW7t.js.map +1 -0
  266. package/dist/chunks/{index.6295e754.js → popper-container.B76aE-3-.js} +180 -182
  267. package/dist/chunks/popper-container.B76aE-3-.js.map +1 -0
  268. package/dist/chunks/radio-group.B9HCffiZ.js +296 -0
  269. package/dist/chunks/radio-group.B9HCffiZ.js.map +1 -0
  270. package/dist/chunks/{radio-input.1dd15424.js → radio-input.BEzK-fgR.js} +13 -14
  271. package/dist/chunks/radio-input.BEzK-fgR.js.map +1 -0
  272. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  273. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  274. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  275. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  276. package/dist/chunks/{refresh.bd60f6a8.js → refresh.BfxRdaQb.js} +12 -12
  277. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.BfxRdaQb.js.map} +1 -1
  278. package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
  279. package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
  280. package/dist/chunks/search-bar.DxskyM4e.js +107 -0
  281. package/dist/chunks/search-bar.DxskyM4e.js.map +1 -0
  282. package/dist/chunks/{search.ade93bda.js → search.0lh99z1F.js} +15 -15
  283. package/dist/chunks/{search.ade93bda.js.map → search.0lh99z1F.js.map} +1 -1
  284. package/dist/chunks/secondary-nav.D66nxbU-.js +112 -0
  285. package/dist/chunks/secondary-nav.D66nxbU-.js.map +1 -0
  286. package/dist/chunks/segmented-control.NnFfAdTq.js +142 -0
  287. package/dist/chunks/segmented-control.NnFfAdTq.js.map +1 -0
  288. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  289. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  290. package/dist/chunks/selection-card-group.C-YLePO4.js +385 -0
  291. package/dist/chunks/selection-card-group.C-YLePO4.js.map +1 -0
  292. package/dist/chunks/sidepanel.B-LtA15e.js +230 -0
  293. package/dist/chunks/sidepanel.B-LtA15e.js.map +1 -0
  294. package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
  295. package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
  296. package/dist/chunks/status.types.Bqdcr1WO.js +42 -0
  297. package/dist/chunks/status.types.Bqdcr1WO.js.map +1 -0
  298. package/dist/chunks/step.CVoaYmVZ.js +284 -0
  299. package/dist/chunks/step.CVoaYmVZ.js.map +1 -0
  300. package/dist/chunks/structured-list-item.DQiPKhOI.js +101 -0
  301. package/dist/chunks/structured-list-item.DQiPKhOI.js.map +1 -0
  302. package/dist/chunks/success.DhioLvPD.js +5 -0
  303. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  304. package/dist/chunks/success.nNwxJRBS.js +5 -0
  305. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  306. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js +720 -0
  307. package/dist/chunks/summary-grid-item-custom.B941Kdvq.js.map +1 -0
  308. package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
  309. package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
  310. package/dist/chunks/tabs.TNKpNgTM.js +185 -0
  311. package/dist/chunks/tabs.TNKpNgTM.js.map +1 -0
  312. package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
  313. package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
  314. package/dist/chunks/tag.CPhtHjDD.js +75 -0
  315. package/dist/chunks/tag.CPhtHjDD.js.map +1 -0
  316. package/dist/chunks/{teleport.afeb4c3b.js → teleport.L8qFCYpr.js} +20 -21
  317. package/dist/chunks/{teleport.afeb4c3b.js.map → teleport.L8qFCYpr.js.map} +1 -1
  318. package/dist/chunks/textarea.CJ8xiMjv.js +288 -0
  319. package/dist/chunks/textarea.CJ8xiMjv.js.map +1 -0
  320. package/dist/chunks/timeline-item.Cap9MXkH.js +531 -0
  321. package/dist/chunks/timeline-item.Cap9MXkH.js.map +1 -0
  322. package/dist/chunks/toast.Bwo57uNy.js +215 -0
  323. package/dist/chunks/toast.Bwo57uNy.js.map +1 -0
  324. package/dist/chunks/toggle-button.q9F2dsIi.js +79 -0
  325. package/dist/chunks/toggle-button.q9F2dsIi.js.map +1 -0
  326. package/dist/chunks/toggle.DmTjGY0a.js +161 -0
  327. package/dist/chunks/toggle.DmTjGY0a.js.map +1 -0
  328. package/dist/chunks/{tooltip.36172265.js → tooltip.CTR3s-Rm.js} +60 -61
  329. package/dist/chunks/tooltip.CTR3s-Rm.js.map +1 -0
  330. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js +408 -0
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map +1 -0
  332. package/dist/chunks/typography.D7onlQ9v.js +73 -0
  333. package/dist/chunks/typography.D7onlQ9v.js.map +1 -0
  334. package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
  335. package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
  336. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  337. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  338. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  339. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  340. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js → use-bento-toast-controller.C0A5tZgd.js} +3 -3
  341. package/dist/chunks/{use-bento-toast-controller.3dc4e113.js.map → use-bento-toast-controller.C0A5tZgd.js.map} +1 -1
  342. package/dist/chunks/{use-cached-selected-values.3c312296.js → use-cached-selected-values.BQBWFTvi.js} +271 -278
  343. package/dist/chunks/{use-cached-selected-values.3c312296.js.map → use-cached-selected-values.BQBWFTvi.js.map} +1 -1
  344. package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
  345. package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
  346. package/dist/chunks/{use-country-items.32e30471.js → use-country-items.CongYNiX.js} +4 -4
  347. package/dist/chunks/{use-country-items.32e30471.js.map → use-country-items.CongYNiX.js.map} +1 -1
  348. package/dist/chunks/{use-default-slot-validator.1169c221.js → use-default-slot-validator.O02rzsob.js} +1 -1
  349. package/dist/chunks/{use-default-slot-validator.1169c221.js.map → use-default-slot-validator.O02rzsob.js.map} +1 -1
  350. package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
  351. package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
  352. package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
  353. package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
  354. package/dist/chunks/{use-has-slot.4d98bf29.js → use-has-slot.B7eQSabc.js} +1 -1
  355. package/dist/chunks/{use-has-slot.4d98bf29.js.map → use-has-slot.B7eQSabc.js.map} +1 -1
  356. package/dist/chunks/warning-filled.DHw1rVWs.js +29 -0
  357. package/dist/chunks/warning-filled.DHw1rVWs.js.map +1 -0
  358. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  359. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  360. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  361. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  362. package/dist/click-outside.js +2 -20
  363. package/dist/click-outside.js.map +1 -1
  364. package/dist/code-snippet.js +5 -2133
  365. package/dist/code-snippet.js.map +1 -1
  366. package/dist/country.js +8 -101
  367. package/dist/country.js.map +1 -1
  368. package/dist/currency.js +3 -118
  369. package/dist/currency.js.map +1 -1
  370. package/dist/dashboard-template.js +3 -166
  371. package/dist/dashboard-template.js.map +1 -1
  372. package/dist/dashed-underline.js +5 -0
  373. package/dist/dashed-underline.js.map +1 -0
  374. package/dist/data-grid-template.js +2 -87
  375. package/dist/data-grid-template.js.map +1 -1
  376. package/dist/data-grid.js +8 -2651
  377. package/dist/data-grid.js.map +1 -1
  378. package/dist/date-picker.js +5 -272
  379. package/dist/date-picker.js.map +1 -1
  380. package/dist/date-range-picker.js +2 -2
  381. package/dist/date.js +1 -1
  382. package/dist/divider.js +1 -1
  383. package/dist/dropdown.js +12 -205
  384. package/dist/dropdown.js.map +1 -1
  385. package/dist/empty-state.js +5 -176
  386. package/dist/empty-state.js.map +1 -1
  387. package/dist/filter-bar.js +5 -2780
  388. package/dist/filter-bar.js.map +1 -1
  389. package/dist/focus-trap.js +1 -1
  390. package/dist/form-layout.js +5 -205
  391. package/dist/form-layout.js.map +1 -1
  392. package/dist/header.js +2 -306
  393. package/dist/header.js.map +1 -1
  394. package/dist/image.js +4 -75
  395. package/dist/image.js.map +1 -1
  396. package/dist/index.js +263 -259
  397. package/dist/index.js.map +1 -1
  398. package/dist/info-icon.js +2 -43
  399. package/dist/info-icon.js.map +1 -1
  400. package/dist/input-field.js +7 -342
  401. package/dist/input-field.js.map +1 -1
  402. package/dist/internal.js +15 -15
  403. package/dist/link.js +1 -1
  404. package/dist/loading-indicator.js +3 -41
  405. package/dist/loading-indicator.js.map +1 -1
  406. package/dist/menu.js +1 -1
  407. package/dist/modal-fullscreen.js +3 -263
  408. package/dist/modal-fullscreen.js.map +1 -1
  409. package/dist/modal.js +11 -501
  410. package/dist/modal.js.map +1 -1
  411. package/dist/pagination.js +2 -634
  412. package/dist/pagination.js.map +1 -1
  413. package/dist/payment-method.js +4 -4
  414. package/dist/payment-method.js.map +1 -1
  415. package/dist/popover.js +1 -1
  416. package/dist/popper-container.js +1 -1
  417. package/dist/radio-group.js +6 -296
  418. package/dist/radio-group.js.map +1 -1
  419. package/dist/search-bar.js +6 -107
  420. package/dist/search-bar.js.map +1 -1
  421. package/dist/secondary-nav.js +2 -112
  422. package/dist/secondary-nav.js.map +1 -1
  423. package/dist/segmented-control.js +4 -249
  424. package/dist/segmented-control.js.map +1 -1
  425. package/dist/selection-card.js +4 -384
  426. package/dist/selection-card.js.map +1 -1
  427. package/dist/sidepanel.js +4 -229
  428. package/dist/sidepanel.js.map +1 -1
  429. package/dist/status.js +3 -50
  430. package/dist/status.js.map +1 -1
  431. package/dist/stepper.js +5 -283
  432. package/dist/stepper.js.map +1 -1
  433. package/dist/structured-list.js +1 -1
  434. package/dist/summary-grid.js +9 -720
  435. package/dist/summary-grid.js.map +1 -1
  436. package/dist/tabs.js +3 -184
  437. package/dist/tabs.js.map +1 -1
  438. package/dist/tag.js +3 -73
  439. package/dist/tag.js.map +1 -1
  440. package/dist/textarea.js +2 -286
  441. package/dist/textarea.js.map +1 -1
  442. package/dist/timeline.js +7 -530
  443. package/dist/timeline.js.map +1 -1
  444. package/dist/toast.js +2 -215
  445. package/dist/toast.js.map +1 -1
  446. package/dist/toggle.js +4 -159
  447. package/dist/toggle.js.map +1 -1
  448. package/dist/tutorial.js +2 -407
  449. package/dist/tutorial.js.map +1 -1
  450. package/dist/typography.js +1 -1
  451. package/dist/web-types.json +1 -1
  452. package/package.json +4 -6
  453. package/dist/assets/index.css +0 -1
  454. package/dist/assets/index26.css +0 -1
  455. package/dist/assets/index30.css +0 -1
  456. package/dist/assets/index34.css +0 -1
  457. package/dist/assets/index37.css +0 -1
  458. package/dist/assets/index40.css +0 -1
  459. package/dist/assets/index6.css +0 -1
  460. package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
  461. package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
  462. package/dist/chunks/1-generic-use.ccca5813.js +0 -5
  463. package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
  464. package/dist/chunks/2-generic-use.443db127.js +0 -5
  465. package/dist/chunks/2-generic-use.443db127.js.map +0 -1
  466. package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
  467. package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
  468. package/dist/chunks/3-generic-use.9f74667f.js +0 -5
  469. package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
  470. package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
  471. package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
  472. package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
  473. package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
  474. package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
  475. package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
  476. package/dist/chunks/_plugin-vue_export-helper.dad06003.js.map +0 -1
  477. package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
  478. package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
  479. package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
  480. package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
  481. package/dist/chunks/adyen-giving.480913b5.js +0 -5
  482. package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
  483. package/dist/chunks/adyen-giving.54ed984c.js +0 -5
  484. package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
  485. package/dist/chunks/checkmark-circle-fill.c45a999d.js +0 -44
  486. package/dist/chunks/cross-small.b85406fe.js +0 -29
  487. package/dist/chunks/cross.26509efc.js +0 -29
  488. package/dist/chunks/dropdown.0ae3b842.js.map +0 -1
  489. package/dist/chunks/events.f14a214b.js +0 -50
  490. package/dist/chunks/index.2d7b4511.js.map +0 -1
  491. package/dist/chunks/index.2fcd1233.js +0 -103
  492. package/dist/chunks/index.2fcd1233.js.map +0 -1
  493. package/dist/chunks/index.6295e754.js.map +0 -1
  494. package/dist/chunks/index.6bb6f38c.js.map +0 -1
  495. package/dist/chunks/index.8aa536a8.js +0 -62
  496. package/dist/chunks/index.8aa536a8.js.map +0 -1
  497. package/dist/chunks/index.9d7fb316.js.map +0 -1
  498. package/dist/chunks/index.a001a0a8.js.map +0 -1
  499. package/dist/chunks/index.b18c78d6.js +0 -23
  500. package/dist/chunks/index.b18c78d6.js.map +0 -1
  501. package/dist/chunks/index.eb38a6c4.js +0 -118
  502. package/dist/chunks/index.eb38a6c4.js.map +0 -1
  503. package/dist/chunks/index.ee15db35.js +0 -74
  504. package/dist/chunks/index.ee15db35.js.map +0 -1
  505. package/dist/chunks/index.f9d081d2.js.map +0 -1
  506. package/dist/chunks/internal-error.35cbb071.js +0 -5
  507. package/dist/chunks/internal-error.35cbb071.js.map +0 -1
  508. package/dist/chunks/internal-error.9a4823ed.js +0 -5
  509. package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
  510. package/dist/chunks/listbox-option-tag.2aea037c.js +0 -129
  511. package/dist/chunks/listbox-option-tag.2aea037c.js.map +0 -1
  512. package/dist/chunks/no-results-found.58856d70.js +0 -5
  513. package/dist/chunks/no-results-found.58856d70.js.map +0 -1
  514. package/dist/chunks/no-results-found.cbb12f78.js +0 -5
  515. package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
  516. package/dist/chunks/notifications-cleared.71025c22.js +0 -5
  517. package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
  518. package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
  519. package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
  520. package/dist/chunks/page-not-found.a500440d.js +0 -5
  521. package/dist/chunks/page-not-found.a500440d.js.map +0 -1
  522. package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
  523. package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
  524. package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
  525. package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
  526. package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
  527. package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
  528. package/dist/chunks/radio-input.1dd15424.js.map +0 -1
  529. package/dist/chunks/referrals.178ce0eb.js +0 -5
  530. package/dist/chunks/referrals.178ce0eb.js.map +0 -1
  531. package/dist/chunks/referrals.599047da.js +0 -5
  532. package/dist/chunks/referrals.599047da.js.map +0 -1
  533. package/dist/chunks/success.41981fe8.js +0 -5
  534. package/dist/chunks/success.41981fe8.js.map +0 -1
  535. package/dist/chunks/success.77fac78b.js +0 -5
  536. package/dist/chunks/success.77fac78b.js.map +0 -1
  537. package/dist/chunks/tooltip.36172265.js.map +0 -1
  538. package/dist/chunks/upload-files.2708eca7.js +0 -5
  539. package/dist/chunks/upload-files.2708eca7.js.map +0 -1
  540. package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
  541. package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
  542. package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
  543. package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
  544. package/dist/chunks/wrong-environment.f890a237.js +0 -5
  545. package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
  546. /package/dist/@types/packages/{vue2/src/components/internal → core/src/components}/radio-input/radio-input.types.d.ts +0 -0
  547. /package/dist/assets/{index44.css → alert.css} +0 -0
  548. /package/dist/assets/{index15.css → avatar-image.css} +0 -0
  549. /package/dist/assets/{index3.css → badge.css} +0 -0
  550. /package/dist/assets/{index16.css → checkbox-group.css} +0 -0
  551. /package/dist/assets/{index46.css → code-snippet.css} +0 -0
  552. /package/dist/assets/{index19.css → country.css} +0 -0
  553. /package/dist/assets/{index22.css → date-picker.css} +0 -0
  554. /package/dist/assets/{index42.css → date-range-picker.css} +0 -0
  555. /package/dist/assets/{index14.css → divider.css} +0 -0
  556. /package/dist/assets/{index47.css → dropdown-tag.css} +0 -0
  557. /package/dist/assets/{index43.css → empty-state.css} +0 -0
  558. /package/dist/assets/{index7.css → focus-trap.css} +0 -0
  559. /package/dist/assets/{index45.css → form-layout-title.css} +0 -0
  560. /package/dist/assets/{index20.css → header.css} +0 -0
  561. /package/dist/assets/{index8.css → info-icon.css} +0 -0
  562. /package/dist/assets/{index41.css → input-field.css} +0 -0
  563. /package/dist/assets/{index9.css → loading-indicator.css} +0 -0
  564. /package/dist/assets/{index13.css → pagination.css} +0 -0
  565. /package/dist/assets/{index4.css → popper-container.css} +0 -0
  566. /package/dist/assets/{index23.css → radio-group.css} +0 -0
  567. /package/dist/assets/{index24.css → search-bar.css} +0 -0
  568. /package/dist/assets/{index25.css → secondary-nav.css} +0 -0
  569. /package/dist/assets/{index27.css → step.css} +0 -0
  570. /package/dist/assets/{index31.css → structured-list-item.css} +0 -0
  571. /package/dist/assets/{index33.css → summary-grid-item-custom.css} +0 -0
  572. /package/dist/assets/{index29.css → tabs.css} +0 -0
  573. /package/dist/assets/{index35.css → tag.css} +0 -0
  574. /package/dist/assets/{index28.css → textarea.css} +0 -0
  575. /package/dist/assets/{index32.css → timeline-item.css} +0 -0
  576. /package/dist/assets/{index36.css → toast.css} +0 -0
  577. /package/dist/assets/{index12.css → toggle-button.css} +0 -0
  578. /package/dist/assets/{index48.css → typography.css} +0 -0
@@ -1,2783 +1,8 @@
1
- import { defineComponent as J, useSlots as ke, useAttrs as Dt, computed as c, ref as V, openBlock as p, createBlock as I, unref as U, normalizeClass as Se, withCtx as y, createTextVNode as q, toDisplayString as N, createCommentVNode as Y, createElementBlock as K, createElementVNode as R, renderSlot as ie, createVNode as A, watch as me, nextTick as lt, resolveComponent as S, withKeys as ye, toRef as X, onBeforeUpdate as we, provide as It, mergeProps as re, Fragment as Be, reactive as at, createSlots as De, renderList as de, normalizeProps as Ue, guardReactiveProps as Pe, onMounted as Tt, resolveDynamicComponent as Re, withDirectives as Te, vShow as Ee } from "vue";
2
- import { _ as G } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as Ke, I as Et } from "./chunks/index.a001a0a8.js";
4
- import { B as Ut } from "./chunks/dropdown-default-textbox.cda0798f.js";
5
- import { B as Pt } from "./chunks/tooltip.36172265.js";
6
- import { u as be } from "./chunks/i18n.f7e6533e.js";
7
- import { g as Ne } from "./chunks/unique-id.a2a2b458.js";
8
- import { u as Vt } from "./chunks/use-click-outside.941d1600.js";
9
- import { B as ve, d as kt } from "./chunks/index.ee15db35.js";
10
- import { u as nt } from "./chunks/aria-label.ac9651a5.js";
11
- import { B as ot, a as je } from "./chunks/base-button.a0140a4c.js";
12
- import { g as st } from "./chunks/get-slot-text.bead058f.js";
13
- import { u as it } from "./chunks/use-has-slot.4d98bf29.js";
14
- import { C as rt, a as ut } from "./chunks/chevron-up.638a9f34.js";
15
- import { B as Lt } from "./chunks/teleport.afeb4c3b.js";
16
- import { BentoRadioGroup as Rt } from "./radio-group.js";
17
- import { BentoInputField as dt } from "./input-field.js";
18
- import { BentoSearchBar as Ve, BentoSearchBarEvent as ge } from "./search-bar.js";
19
- import { u as Ot } from "./chunks/use-bento-toast-controller.3dc4e113.js";
20
- import { BentoModal as wt } from "./modal.js";
21
- import { g as Nt } from "./chunks/base-modal.4102f69d.js";
22
- import { a as Mt } from "./chunks/button.ae4760cd.js";
23
- import { u as ct, B as Ht } from "./chunks/dropdown.0ae3b842.js";
24
- import { g as qt } from "./chunks/index.9d7fb316.js";
25
- import { B as Me } from "./chunks/index.b18c78d6.js";
26
- import { BentoDatePicker as Kt } from "./date-picker.js";
27
- import { f as pe } from "./chunks/index.f9d081d2.js";
28
- import { e as se, d as bt, f as ft } from "./chunks/index.f55fdc32.js";
29
- import { C as jt, i as Yt } from "./chunks/calendar.a9c5a68c.js";
30
- import { B as zt, D as Jt, i as Ye } from "./chunks/index.2d7b4511.js";
31
- import { D as ze } from "./chunks/date-input.9186a0bf.js";
32
- import { B as Gt } from "./chunks/button-actions.82163994.js";
33
- import { a as Je, B as Wt } from "./chunks/use-cached-selected-values.3c312296.js";
34
- import { B as Zt, L as pt } from "./chunks/listbox-option-tag.2aea037c.js";
35
- import { u as Qt } from "./chunks/use-country-items.32e30471.js";
36
- import { B as Xt } from "./chunks/payment-method.d5595a7c.js";
37
- import { R as xt } from "./chunks/refresh.bd60f6a8.js";
38
- import { F as el } from "./chunks/fixed-scroller.7b42cb1e.js";
39
- import "./assets/index6.css";
40
- const tl = { class: "b-filter-bar-button__container" }, ll = { class: "b-filter-bar-button__label-container" }, al = {
41
- key: 1,
42
- class: "b-filter-bar-button__chevron"
43
- }, nl = {}, ol = /* @__PURE__ */ J({
44
- ...nl,
45
- __name: "filter-bar-button",
46
- props: {
47
- /**
48
- * The number of applied values within the filter.
49
- * Text can also be applied here such as 'All'.
50
- * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
51
- */
52
- appliedFiltersCount: { type: [String, Number], default: null },
53
- /**
54
- * Disables button functionality.
55
- */
56
- disabled: { type: Boolean, default: !1 },
57
- /**
58
- * Signifies if the filter is open or closed.
59
- */
60
- isFilterOpen: { type: Boolean, default: !1 },
61
- /**
62
- * Toggles if a chevron icon should be displayed in the button.
63
- * The chevron will change depending on the open state of the filter.
64
- */
65
- hasChevron: { type: Boolean, default: !1 },
66
- /**
67
- * A secondary label to be added next to the primary for additional filtering information.
68
- * i.e. Can be used to show the set value for said filter.
69
- */
70
- secondaryLabel: { type: String, default: null }
71
- },
72
- emits: ["click"],
73
- setup(e, { emit: l }) {
74
- const t = e, a = ke(), u = Dt(), r = it(a), o = c(() => a.default ? st(a)("default") : null), s = nt({ ariaLabel: o }), n = V(null), d = c(() => {
75
- var C;
76
- return {
77
- "aria-controls": (C = u["aria-controls"]) == null ? void 0 : C.toString()
78
- };
79
- }), $ = c(() => ({
80
- "b-filter-bar-button--filter-open": t.isFilterOpen,
81
- "b-filter-bar-button--active": t.appliedFiltersCount || t.secondaryLabel || t.hasChevron,
82
- "b-filter-bar-button--with-secondary-label": t.secondaryLabel,
83
- "b-filter-bar-button--with-chevron": t.hasChevron
84
- })), F = (C) => {
85
- t.disabled || l("click", C);
86
- };
87
- return (C, i) => (p(), I(U(ot), {
88
- ref_key: "filterBarButtonRef",
89
- ref: n,
90
- class: Se(["b-filter-bar-button", U($)]),
91
- disabled: e.disabled,
92
- "aria-label": U(s),
93
- "aria-controls": U(d)["aria-controls"],
94
- type: "button",
95
- onClick: F
96
- }, {
97
- iconRight: y(() => [
98
- e.appliedFiltersCount && !e.hasChevron ? (p(), I(U(ve), {
99
- key: 0,
100
- class: "b-filter-bar-button__counter",
101
- el: "span",
102
- variant: "body",
103
- stronger: ""
104
- }, {
105
- default: y(() => [
106
- q(N(e.appliedFiltersCount), 1)
107
- ]),
108
- _: 1
109
- })) : Y("", !0),
110
- e.hasChevron ? (p(), K("div", al, [
111
- e.isFilterOpen ? (p(), I(U(rt), {
112
- key: 0,
113
- "aria-hidden": "true"
114
- })) : (p(), I(U(ut), {
115
- key: 1,
116
- "aria-hidden": "true"
117
- }))
118
- ])) : Y("", !0)
119
- ]),
120
- default: y(() => [
121
- R("div", tl, [
122
- U(r)("iconLeft") ? ie(C.$slots, "iconLeft", { key: 0 }, void 0, !0) : Y("", !0),
123
- R("div", ll, [
124
- A(U(ve), {
125
- el: "span",
126
- variant: "body",
127
- stronger: "",
128
- class: "b-filter-bar-button__label"
129
- }, {
130
- default: y(() => [
131
- ie(C.$slots, "default", {}, void 0, !0)
132
- ]),
133
- _: 3
134
- }),
135
- e.secondaryLabel ? (p(), I(U(ve), {
136
- key: 0,
137
- el: "span",
138
- variant: "body",
139
- stronger: "",
140
- class: "b-filter-bar-button__secondary-label"
141
- }, {
142
- default: y(() => [
143
- q(N(e.secondaryLabel), 1)
144
- ]),
145
- _: 1
146
- })) : Y("", !0)
147
- ])
148
- ])
149
- ]),
150
- _: 3
151
- }, 8, ["class", "disabled", "aria-label", "aria-controls"]));
152
- }
153
- });
154
- const He = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-fe3e2223"]]);
155
- var m = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE = "update", e))(m || {}), Ae = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE_FILTER_VALUES = "update:filter-values", e))(Ae || {}), x = /* @__PURE__ */ ((e) => (e.INPUT = "BentoInputFilter", e.BOOLEAN = "BentoBooleanFilter", e.RANGE = "BentoRangeFilter", e.SELECT = "BentoSelectFilter", e.SELECT_AVATAR = "BentoSelectAvatarFilter", e.SELECT_COUNTRY = "BentoSelectCountryFilter", e.SELECT_CURRENCY = "BentoSelectCurrencyFilter", e.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", e.SELECT_TAG = "BentoSelectTagFilter", e.DATE = "BentoDateFilter", e.DATE_RANGE = "BentoDateRangeFilter", e))(x || {}), le = /* @__PURE__ */ ((e) => (e.APPLY = "apply", e.CLEAR = "clear", e.OPEN = "open", e.CLOSE = "close", e.RESET = "reset", e))(le || {});
156
- const Ge = {
157
- "en-US": {
158
- clear: "Clear",
159
- apply: "Apply",
160
- reset: "Reset"
161
- },
162
- "de-DE": {
163
- clear: "Alle löschen",
164
- apply: "Bewerben"
165
- },
166
- "fr-FR": {
167
- clear: "Effacer",
168
- apply: "Postuler"
169
- },
170
- "ja-JP": {
171
- clear: "クリア",
172
- apply: "適用"
173
- },
174
- "pt-BR": {
175
- clear: "Limpar",
176
- apply: "Candidatar-se"
177
- },
178
- "es-ES": {
179
- clear: "Borrar",
180
- apply: "Aplicar"
181
- }
182
- }, sl = J({
183
- i18n: { messages: Ge },
184
- name: "bento-base-filter",
185
- components: {
186
- BentoPopover: Ke,
187
- BentoTeleport: Lt,
188
- FilterBarButton: He
189
- },
190
- directives: { BentoClickOutsideDirective: Ut },
191
- props: {
192
- /**
193
- * Total count of applied filters
194
- */
195
- appliedFiltersCount: { type: [String, Number], default: null },
196
- /**
197
- * Overrides the label of the popover vsibility toggle button text.
198
- */
199
- buttonLabel: { type: String, default: void 0 },
200
- /**
201
- * Sets the secondary label text of the popover vsibility toggle button text.
202
- */
203
- buttonSecondaryLabel: { type: String, default: void 0 },
204
- /**
205
- * Default value of the filter to reset to.
206
- */
207
- defaultValue: {
208
- type: [Object, Number, Boolean, Array, String],
209
- default: null
210
- },
211
- /**
212
- * Renders the base filter's slot content only - leaving out the button and the popover.
213
- * Used for the allFiltersModal component.
214
- */
215
- onlySlot: { type: Boolean, default: !1 },
216
- /**
217
- * Allows to handle the controls (apply/clear) from outside
218
- * of the component
219
- */
220
- controlled: { type: Boolean, default: !1 },
221
- /**
222
- * Disable the "apply" button
223
- */
224
- disableApplyButton: { type: Boolean, default: !1 },
225
- /**
226
- * Disable the secondary button action.
227
- */
228
- disableSecondaryButton: { type: Boolean, default: !1 },
229
- /**
230
- * Filter name/key referencing the actual property name in the data set.
231
- * Should be unique per filter bar.
232
- */
233
- field: { type: String, required: !0 },
234
- /**
235
- * Label text to be displayed
236
- */
237
- label: { type: String, required: !0 },
238
- /**
239
- * Sets the size of the container to fit its content
240
- */
241
- fitContent: Ke.props.fitContent
242
- },
243
- emits: [
244
- le.APPLY,
245
- le.CLEAR,
246
- le.OPEN,
247
- le.CLOSE,
248
- le.RESET
249
- ],
250
- setup(e, { emit: l }) {
251
- const { t } = be({ messages: Ge }), a = Ne("base-filter-popover"), u = V(!1), r = V(null), o = V(null), s = c(() => e.defaultValue !== null), n = () => {
252
- u.value && (u.value = !1, lt(() => {
253
- r.value.$el.focus();
254
- }), l(le.CLOSE));
255
- }, d = () => {
256
- n(), s.value ? l(le.RESET) : l(le.CLEAR);
257
- }, $ = () => n(), F = () => {
258
- u.value ? n() : (u.value = !0, l(le.OPEN));
259
- }, C = () => {
260
- n(), l(le.APPLY);
261
- }, i = c(() => [
262
- {
263
- title: t("apply"),
264
- event: C,
265
- disabled: e.disableApplyButton
266
- },
267
- {
268
- title: s.value ? t("reset") : t("clear"),
269
- event: d,
270
- disabled: e.disableSecondaryButton
271
- }
272
- ]);
273
- return me(
274
- () => u.value,
275
- (T, O) => {
276
- var k, B;
277
- !T && O && (B = (k = r.value) == null ? void 0 : k.filterBarButtonRef) != null && B.bentoBaseButtonRef && r.value.filterBarButtonRef.bentoBaseButtonRef.focus();
278
- }
279
- ), Vt(o, $, { ignore: [r] }), {
280
- // Values
281
- actions: i,
282
- popoverId: a,
283
- isFilterOpen: u,
284
- isPersistentFilter: s,
285
- // Enums
286
- BentoTooltipPosition: Pt,
287
- // Events
288
- onClickFilter: F,
289
- onClickApply: C,
290
- onClickSecondaryAction: d,
291
- onClickOutside: $,
292
- closePopover: n,
293
- // Refs
294
- filterButtonRef: r,
295
- popoverRef: o
296
- };
297
- }
298
- });
299
- const il = { key: 0 }, rl = {
300
- key: 1,
301
- class: "b-base-filter"
302
- };
303
- function ul(e, l, t, a, u, r) {
304
- const o = S("filter-bar-button"), s = S("bento-popover"), n = S("bento-teleport");
305
- return e.onlySlot ? (p(), K("div", il, [
306
- ie(e.$slots, "default", {}, void 0, !0)
307
- ])) : (p(), K("div", rl, [
308
- A(o, {
309
- ref: "filterButtonRef",
310
- "aria-controls": e.isFilterOpen ? e.popoverId : null,
311
- "has-chevron": e.isPersistentFilter,
312
- "is-filter-open": e.isFilterOpen,
313
- "applied-filters-count": e.appliedFiltersCount,
314
- "secondary-label": e.buttonSecondaryLabel,
315
- onClick: e.onClickFilter,
316
- onKeydown: ye(e.closePopover, ["esc"])
317
- }, {
318
- default: y(() => [
319
- q(N(e.buttonLabel || e.label), 1)
320
- ]),
321
- _: 1
322
- }, 8, ["aria-controls", "has-chevron", "is-filter-open", "applied-filters-count", "secondary-label", "onClick", "onKeydown"]),
323
- e.filterButtonRef ? (p(), I(n, { key: 0 }, {
324
- default: y(() => [
325
- e.filterButtonRef ? (p(), I(s, {
326
- key: 0,
327
- id: e.popoverId,
328
- ref: "popoverRef",
329
- class: "b-base-filter__popover",
330
- divider: "",
331
- open: e.isFilterOpen,
332
- actions: e.controlled ? null : e.actions,
333
- "actions-layout": "space-between",
334
- "target-element": e.filterButtonRef,
335
- title: e.controlled ? null : e.label,
336
- "fit-content": e.fitContent,
337
- position: "bottom-start",
338
- "without-space": e.controlled,
339
- "fallback-position": ["bottom-end"]
340
- }, {
341
- default: y(() => [
342
- R("div", {
343
- onKeydown: l[0] || (l[0] = ye((...d) => e.closePopover && e.closePopover(...d), ["esc"]))
344
- }, [
345
- ie(e.$slots, "default", {}, void 0, !0)
346
- ], 32)
347
- ]),
348
- _: 3
349
- }, 8, ["id", "open", "actions", "target-element", "title", "fit-content", "without-space"])) : Y("", !0)
350
- ]),
351
- _: 3
352
- })) : Y("", !0)
353
- ]));
354
- }
355
- const Ce = /* @__PURE__ */ G(sl, [["render", ul], ["__scopeId", "data-v-07a7c55e"]]), dl = (e) => e instanceof Array, We = (e) => dl(e) ? e.length === 0 || e.every((l) => l === "") : !e, Ze = (e, l) => JSON.stringify(e) === JSON.stringify(l), _e = (e, l) => {
356
- const t = V(e.value);
357
- me(
358
- () => e.value,
359
- () => {
360
- t.value = e.value;
361
- }
362
- );
363
- const a = c(() => We(e.value)), u = c(
364
- () => l.value !== null ? Ze(l.value, e.value) : a.value
365
- ), r = c(() => Ze(t.value, e.value) || We(t.value) && a.value);
366
- return {
367
- internalFilterValue: t,
368
- isSecondaryButtonDisabled: u,
369
- isApplyButtonDisabled: r
370
- };
371
- }, ce = (e, l) => {
372
- const t = e == null ? void 0 : e.toString();
373
- return (t == null ? void 0 : t.length) > l ? `${t == null ? void 0 : t.slice(0, l)}...` : t;
374
- }, cl = J({
375
- name: "bento-input-filter",
376
- components: {
377
- BentoBaseFilter: Ce,
378
- BentoInputField: dt
379
- },
380
- props: {
381
- /**
382
- * Default value of the filter to reset to.
383
- */
384
- defaultValue: { type: String, default: null },
385
- /**
386
- * Filter name/key referencing the actual property name in the data set.
387
- * Should be unique per filter bar.
388
- */
389
- field: { type: String, required: !0 },
390
- /**
391
- * Label text to be displayed
392
- */
393
- label: { type: String, required: !0 },
394
- /**
395
- * Current value of the filter.
396
- * If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
397
- */
398
- value: { type: [String, Object], default: null },
399
- /**
400
- * Renders the base filter's slot content only - leaving out the button and the popover.
401
- * Used for the allFiltersModal component.
402
- */
403
- onlySlot: { type: Boolean, default: !1 },
404
- /**
405
- * List of options that are needed to setup the filter
406
- * Available options:
407
- * - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
408
- * - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
409
- */
410
- options: {
411
- type: Object,
412
- default: void 0
413
- }
414
- },
415
- emits: [m.INPUT, m.UPDATE],
416
- setup(e, { emit: l }) {
417
- var h, P;
418
- const t = V(null), a = V((P = (h = e == null ? void 0 : e.options) == null ? void 0 : h.dropdown) == null ? void 0 : P.value), u = c(
419
- () => {
420
- var D, Z;
421
- return ((D = e == null ? void 0 : e.options) == null ? void 0 : D.variant) === "dropdown" && ((Z = e == null ? void 0 : e.options) == null ? void 0 : Z.dropdown) !== void 0;
422
- }
423
- ), r = c(
424
- () => {
425
- var D;
426
- return u.value ? { ...(D = e == null ? void 0 : e.options) == null ? void 0 : D.dropdown, value: a.value } : void 0;
427
- }
428
- ), o = c(() => {
429
- var D;
430
- return ((D = e == null ? void 0 : e.options) == null ? void 0 : D.variant) === "dropdown" ? "dropdown" : "default";
431
- }), s = c(
432
- () => {
433
- var D;
434
- return u.value ? (D = e.value) == null ? void 0 : D.inputValue : e == null ? void 0 : e.value;
435
- }
436
- ), { internalFilterValue: n, isSecondaryButtonDisabled: d, isApplyButtonDisabled: $ } = _e(
437
- s,
438
- X(e, "defaultValue")
439
- ), F = c(
440
- () => e.defaultValue === null ? e.label : ce(s.value, 18)
441
- ), C = c(
442
- () => e.defaultValue === null ? ce(s.value, 12) : null
443
- ), i = c(() => ({
444
- ["b-input-filter--only-slot"]: e.onlySlot
445
- }));
446
- we(() => {
447
- n.value === "" && (n.value = null);
448
- }), me(t, () => {
449
- var D;
450
- (D = t.value) == null || D.focusInput();
451
- });
452
- const T = () => {
453
- n.value = s.value;
454
- }, O = () => {
455
- !n.value && e.defaultValue !== null && (n.value = e.defaultValue), l(m.UPDATE, {
456
- ...e,
457
- value: u.value ? { inputValue: n.value, dropdownValue: a.value } : n.value
458
- });
459
- }, k = () => l(m.UPDATE, { ...e, value: e.defaultValue }), B = () => {
460
- n.value = null, O();
461
- }, W = () => {
462
- l(m.INPUT, { ...e, value: n.value });
463
- }, b = (D) => {
464
- n.value = D;
465
- }, g = (D) => {
466
- a.value = D;
467
- };
468
- return It(Et, u.value), {
469
- // Values
470
- buttonLabel: F,
471
- buttonSecondaryLabel: C,
472
- conditionalClasses: i,
473
- dropdownProp: r,
474
- inputVariant: o,
475
- internalFilterValue: n,
476
- isApplyButtonDisabled: $,
477
- isDropdownVariant: u,
478
- isSecondaryButtonDisabled: d,
479
- // Refs
480
- inputTextRef: t,
481
- // Events
482
- updateFilter: O,
483
- clearFilter: B,
484
- openFilter: T,
485
- resetFilter: k,
486
- onDropdownInput: g,
487
- onInput: W,
488
- setInternalFilterValue: b
489
- };
490
- }
491
- });
492
- function bl(e, l, t, a, u, r) {
493
- const o = S("bento-input-field"), s = S("bento-base-filter");
494
- return p(), I(s, re(e.$props, {
495
- "button-label": e.buttonLabel,
496
- "button-secondary-label": e.buttonSecondaryLabel,
497
- "disable-apply-button": e.isApplyButtonDisabled,
498
- "disable-secondary-button": e.isSecondaryButtonDisabled,
499
- "only-slot": e.onlySlot,
500
- "popover-overflow-visible": e.isDropdownVariant,
501
- onApply: e.updateFilter,
502
- onClear: e.clearFilter,
503
- onOpen: e.openFilter,
504
- onReset: e.resetFilter
505
- }), {
506
- default: y(() => {
507
- var n;
508
- return [
509
- R("div", {
510
- class: Se(["b-input-filter", e.conditionalClasses]),
511
- onKeydown: l[0] || (l[0] = ye((...d) => e.updateFilter && e.updateFilter(...d), ["enter"])),
512
- onInput: l[1] || (l[1] = (...d) => e.onInput && e.onInput(...d))
513
- }, [
514
- A(o, {
515
- ref: "inputTextRef",
516
- dropdown: e.dropdownProp,
517
- "dropdown-position": (n = e.options) == null ? void 0 : n.dropdownPosition,
518
- variant: e.inputVariant,
519
- value: e.internalFilterValue,
520
- onInput: e.setInternalFilterValue,
521
- onDropdownInput: e.onDropdownInput
522
- }, null, 8, ["dropdown", "dropdown-position", "variant", "value", "onInput", "onDropdownInput"])
523
- ], 34)
524
- ];
525
- }),
526
- _: 1
527
- }, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "popover-overflow-visible", "onApply", "onClear", "onOpen", "onReset"]);
528
- }
529
- const vt = /* @__PURE__ */ G(cl, [["render", bl], ["__scopeId", "data-v-4f3a323d"]]), fl = J({
530
- name: "bento-date-filter",
531
- components: {
532
- BentoBaseFilter: Ce,
533
- BentoDatePicker: Kt,
534
- BentoDivider: Me,
535
- Calendar: jt
536
- },
537
- props: {
538
- isDateInput: { type: Boolean, default: !0 },
539
- /**
540
- * Default value of the filter to reset to.
541
- */
542
- defaultValue: { type: Date, default: null },
543
- /**
544
- * Filter name/key referencing the actual property name in the data set.
545
- * Should be unique per filter bar.
546
- */
547
- field: { type: String, required: !0 },
548
- /**
549
- * Label text to be displayed
550
- */
551
- label: { type: String, required: !0 },
552
- /**
553
- * Renders the base filter's slot content only - leaving out the button and the popover.
554
- * Used for the allFiltersModal component.
555
- */
556
- onlySlot: { type: Boolean, default: !1 },
557
- /**
558
- * List of options that are needed to setup the filter
559
- * Available options:
560
- * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
561
- * - isDateDisabled: Indicate if a date should be disabled or not
562
- */
563
- options: {
564
- type: Object,
565
- default: void 0
566
- },
567
- /**
568
- * Current value of the filter
569
- */
570
- value: { type: Date, default: void 0 }
571
- },
572
- emits: [m.INPUT, m.UPDATE],
573
- setup(e, { emit: l }) {
574
- const { locale: t } = be(void 0, !0), a = { de: bt, enUS: se, fr: ft }, { internalFilterValue: u, isSecondaryButtonDisabled: r, isApplyButtonDisabled: o } = _e(
575
- X(e, "value"),
576
- X(e, "defaultValue")
577
- ), s = c(
578
- () => e.value ? pe(e.value, "dd MMM, yyyy", {
579
- locale: a[t.value.substring(0, 2)] || se
580
- }) : null
581
- ), n = c(
582
- () => e.defaultValue === null ? e.label : s.value
583
- ), d = c(
584
- () => e.defaultValue === null ? s.value : null
585
- ), $ = () => {
586
- l(m.UPDATE, { ...e, value: u.value });
587
- }, F = () => {
588
- u.value = null, $();
589
- }, C = () => {
590
- u.value = e.defaultValue, $();
591
- }, i = () => {
592
- u.value = e.value;
593
- }, T = (k) => {
594
- u.value = k, l(m.INPUT, { ...e, value: u.value });
595
- };
596
- return {
597
- // Values
598
- internalFilterValue: u,
599
- isApplyButtonDisabled: o,
600
- isSecondaryButtonDisabled: r,
601
- buttonLabel: n,
602
- buttonSecondaryLabel: d,
603
- // Events
604
- clearFilter: F,
605
- onDateSelected: T,
606
- openFilter: i,
607
- updateFilter: $,
608
- resetFilter: C,
609
- onDateInputSelected: (k) => {
610
- u.value = k, T(k), $();
611
- }
612
- };
613
- }
614
- });
615
- const pl = { class: "b-date-filter" };
616
- function vl(e, l, t, a, u, r) {
617
- const o = S("bento-date-picker"), s = S("bento-divider"), n = S("calendar"), d = S("bento-base-filter");
618
- return p(), I(d, {
619
- "button-label": e.buttonLabel,
620
- "button-secondary-label": e.buttonSecondaryLabel,
621
- "default-value": e.defaultValue,
622
- "disable-apply-button": e.isApplyButtonDisabled,
623
- "disable-secondary-button": e.isSecondaryButtonDisabled,
624
- field: e.field,
625
- label: e.label,
626
- "only-slot": e.onlySlot,
627
- "fit-content": "",
628
- onApply: e.updateFilter,
629
- onClear: e.clearFilter,
630
- onOpen: e.openFilter,
631
- onReset: e.resetFilter
632
- }, {
633
- default: y(() => {
634
- var $, F, C, i;
635
- return [
636
- e.onlySlot ? (p(), I(o, {
637
- key: 0,
638
- value: e.internalFilterValue,
639
- "first-day-of-week": ($ = e.options) == null ? void 0 : $.firstDayOfWeek,
640
- "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled,
641
- onInput: e.onDateInputSelected
642
- }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "onInput"])) : (p(), K(Be, { key: 1 }, [
643
- A(s, { class: "b-date-filter__divider" }),
644
- R("div", pl, [
645
- A(n, {
646
- "first-day-of-week": (C = e.options) == null ? void 0 : C.firstDayOfWeek,
647
- "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled,
648
- "number-of-months": 1,
649
- value: e.internalFilterValue,
650
- onInput: e.onDateSelected
651
- }, null, 8, ["first-day-of-week", "is-date-disabled", "value", "onInput"])
652
- ])
653
- ], 64))
654
- ];
655
- }),
656
- _: 1
657
- }, 8, ["button-label", "button-secondary-label", "default-value", "disable-apply-button", "disable-secondary-button", "field", "label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
658
- }
659
- const yt = /* @__PURE__ */ G(fl, [["render", vl], ["__scopeId", "data-v-66ffdc53"]]), Qe = {
660
- "en-US": {
661
- clear: "Clear",
662
- reset: "Reset",
663
- apply: "Apply"
664
- },
665
- "de-DE": {
666
- clear: "Alle löschen",
667
- apply: "Bewerben"
668
- },
669
- "fr-FR": {
670
- clear: "Effacer",
671
- apply: "Postuler"
672
- },
673
- "ja-JP": {
674
- clear: "クリア",
675
- apply: "適用"
676
- },
677
- "pt-BR": {
678
- clear: "Limpar",
679
- apply: "Candidatar-se"
680
- },
681
- "es-ES": {
682
- clear: "Borrar",
683
- apply: "Aplicar"
684
- }
685
- }, yl = J({
686
- i18n: { messages: Qe },
687
- name: "bento-date-range-filter",
688
- components: {
689
- BentoBaseFilter: Ce,
690
- BentoButtonActions: Gt,
691
- BentoDateRangePicker: zt,
692
- BentoTypography: ve,
693
- BentoDivider: Me,
694
- DateRangePickerCalendar: Jt
695
- },
696
- props: {
697
- /**
698
- * Default value of the filter to reset to.
699
- */
700
- defaultValue: { type: Object, default: null },
701
- /**
702
- * Filter name/key referencing the actual property name in the data set.
703
- * Should be unique per filter bar.
704
- */
705
- field: { type: String, required: !0 },
706
- /**
707
- * Label text to be displayed
708
- */
709
- label: { type: String, required: !0 },
710
- /**
711
- * Renders the base filter's slot content only - leaving out the button and the popover.
712
- * Used for the allFiltersModal component.
713
- */
714
- onlySlot: { type: Boolean, default: !1 },
715
- /**
716
- * List of options that are needed to setup the filter
717
- * Available options:
718
- * - allowTimeInput: Allows user to enter time values in the form
719
- * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
720
- * - isDateDisabled: Indicate if a date should be disabled or not
721
- * - maxRange: Set a maximum number of dates to be selectable by the range
722
- * - numberOfMonths: Number of months rendered on pane
723
- * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
724
- */
725
- options: {
726
- type: Object,
727
- default: void 0
728
- },
729
- /**
730
- * Current value of the filter
731
- */
732
- value: {
733
- type: Object,
734
- default: () => ({ startDate: void 0, endDate: void 0 })
735
- }
736
- },
737
- emits: [m.INPUT, m.UPDATE],
738
- setup(e, { emit: l }) {
739
- var ae, ne, fe, M;
740
- const { locale: t, t: a } = be({ messages: Qe }), u = { de: bt, enUS: se, fr: ft }, { internalFilterValue: r, isSecondaryButtonDisabled: o, isApplyButtonDisabled: s } = _e(
741
- X(e, "value"),
742
- X(e, "defaultValue")
743
- ), n = V(!1), d = (_) => _ ? pe(_, ze.NUMERIC_DATE_YEAR_FIRST, {
744
- locale: u[t.value.substring(0, 2)] || se
745
- }) : void 0, $ = (_) => _ ? pe(_, ze.HOUR_MINUTE_SECONDS, {
746
- locale: u[t.value.substring(0, 2)] || se
747
- }) : "", F = V(null), C = V(!1), i = at({
748
- startDate: d((ae = e.value) == null ? void 0 : ae.startDate),
749
- endDate: d((ne = e.value) == null ? void 0 : ne.endDate),
750
- startTime: $((fe = e.value) == null ? void 0 : fe.startDate),
751
- endTime: $((M = e.value) == null ? void 0 : M.endDate)
752
- }), T = c(() => {
753
- var _, w, L, j, v, f, E, H;
754
- if (!((_ = e.value) != null && _.startDate) && !e.value.endDate)
755
- return null;
756
- if (((L = (w = e.options) == null ? void 0 : w.quickSelectRanges) == null ? void 0 : L.length) > 0) {
757
- const Q = (v = (j = e.options) == null ? void 0 : j.quickSelectRanges) == null ? void 0 : v.find(
758
- ({ data: z }) => Ye(z == null ? void 0 : z.startDate, e.value.startDate) && Ye(z == null ? void 0 : z.endDate, e.value.endDate)
759
- );
760
- if (Q)
761
- return Q.label;
762
- }
763
- return Yt((f = e.value) == null ? void 0 : f.startDate, (E = e.value) == null ? void 0 : E.endDate) && ((H = e == null ? void 0 : e.options) != null && H.allowTimeInput) ? `${pe(e.value.startDate, "dd MMM, yyyy HH:mm:ss", {
764
- locale: u[t.value.substring(0, 2)] || se
765
- })} - ${pe(e.value.endDate, "HH:mm:ss", {
766
- locale: u[t.value.substring(0, 2)] || se
767
- })}` : `${pe(e.value.startDate, "dd MMM, yyyy", {
768
- locale: u[t.value.substring(0, 2)] || se
769
- })} - ${pe(e.value.endDate, "dd MMM, yyyy", {
770
- locale: u[t.value.substring(0, 2)] || se
771
- })}`;
772
- }), O = c(
773
- () => e.defaultValue === null ? e.label : T.value
774
- ), k = c(
775
- () => e.defaultValue === null ? T.value : null
776
- ), B = () => {
777
- F.value.closePopover();
778
- const { onlySlot: _, ...w } = e;
779
- l(m.UPDATE, { ...w, value: r.value });
780
- }, W = () => {
781
- r.value = void 0, B();
782
- }, b = () => {
783
- r.value = e.defaultValue, B();
784
- }, g = () => {
785
- r.value = e.value;
786
- }, h = (_) => {
787
- n.value = !1, r.value = _, i.startDate = d(_.startDate), i.endDate = d(_.endDate), l(m.INPUT, { ...e, value: r.value });
788
- }, P = (_) => {
789
- _ != null && _.startDate && (_ != null && _.endDate) && (r.value = _, i.startDate = d(_.startDate), i.endDate = d(_.endDate), l(m.INPUT, { ...e, value: r.value }));
790
- }, D = (_) => {
791
- h(_), l(m.INPUT, { ...e, value: r.value });
792
- }, Z = c(
793
- () => [
794
- {
795
- title: a("apply"),
796
- event: B,
797
- disabled: n.value || C.value || s.value
798
- },
799
- {
800
- title: e.defaultValue ? a("reset") : a("clear"),
801
- event: e.defaultValue ? b : W,
802
- disabled: C.value && o.value
803
- }
804
- ]
805
- );
806
- return {
807
- // Refs
808
- baseFilter: F,
809
- // Values
810
- actions: Z,
811
- formData: i,
812
- internalFilterValue: r,
813
- isApplyButtonDisabled: s,
814
- isSecondaryButtonDisabled: o,
815
- isSelectingDate: n,
816
- buttonLabel: O,
817
- buttonSecondaryLabel: k,
818
- // Events
819
- onDateSelected: h,
820
- openFilter: g,
821
- updateFilter: B,
822
- onDatePickerRangeError: () => {
823
- C.value = !0, r.value = { startDate: void 0, endDate: void 0 }, l(m.INPUT, { ...e, value: r.value });
824
- },
825
- onDatePickerRangeFormDateInputUpdate: (_) => {
826
- C.value = !1, _.startTime && (i.startTime = _.startTime), _.endTime && (i.endTime = _.endTime);
827
- },
828
- onDateInputSelected: D,
829
- onRangeSelectorInput: P
830
- };
831
- }
832
- });
833
- const ml = {
834
- key: 1,
835
- class: "b-date-range-filter"
836
- };
837
- function _l(e, l, t, a, u, r) {
838
- const o = S("bento-date-range-picker"), s = S("bento-typography"), n = S("bento-divider"), d = S("bento-button-actions"), $ = S("date-range-picker-calendar"), F = S("bento-base-filter");
839
- return p(), I(F, {
840
- ref: "baseFilter",
841
- class: "b-base-filter-date-range-filter",
842
- "button-label": e.buttonLabel,
843
- "button-secondary-label": e.buttonSecondaryLabel,
844
- controlled: !e.onlySlot,
845
- "disable-apply-button": e.isApplyButtonDisabled,
846
- "disable-secondary-button": e.isSecondaryButtonDisabled,
847
- "default-value": e.defaultValue,
848
- field: e.field,
849
- label: e.label,
850
- "only-slot": e.onlySlot,
851
- "fit-content": "",
852
- onOpen: e.openFilter
853
- }, {
854
- default: y(() => {
855
- var C, i, T, O, k, B, W, b, g, h, P, D, Z, te;
856
- return [
857
- e.onlySlot ? (p(), I(o, {
858
- key: 0,
859
- "allow-time-input": (C = e.options) == null ? void 0 : C.allowTimeInput,
860
- value: e.internalFilterValue,
861
- "first-day-of-week": (i = e.options) == null ? void 0 : i.firstDayOfWeek,
862
- "is-date-disabled": (T = e.options) == null ? void 0 : T.isDateDisabled,
863
- "number-of-months": (O = e.options) == null ? void 0 : O.numberOfMonths,
864
- "quick-select-ranges": (k = e.options) == null ? void 0 : k.quickSelectRanges,
865
- onInput: e.onDateInputSelected
866
- }, null, 8, ["allow-time-input", "value", "first-day-of-week", "is-date-disabled", "number-of-months", "quick-select-ranges", "onInput"])) : (p(), K("div", ml, [
867
- A($, {
868
- "allow-time-input": (B = e.options) == null ? void 0 : B.allowTimeInput,
869
- "first-day-of-week": (W = e.options) == null ? void 0 : W.firstDayOfWeek,
870
- "is-date-disabled": (b = e.options) == null ? void 0 : b.isDateDisabled,
871
- granularities: (g = e.options) == null ? void 0 : g.granularities,
872
- "max-range": (h = e.options) == null ? void 0 : h.maxRange,
873
- min: (P = e.options) == null ? void 0 : P.min,
874
- max: (D = e.options) == null ? void 0 : D.max,
875
- "number-of-months": (Z = e.options) == null ? void 0 : Z.numberOfMonths,
876
- "quick-select-ranges": (te = e.options) == null ? void 0 : te.quickSelectRanges,
877
- value: e.internalFilterValue,
878
- "date-form-data": e.formData,
879
- onInput: e.onDateSelected,
880
- onCustomRange: e.onRangeSelectorInput,
881
- onError: e.onDatePickerRangeError,
882
- onFormDate: e.onDatePickerRangeFormDateInputUpdate,
883
- onStartDateSelected: l[0] || (l[0] = (oe) => e.isSelectingDate = !0)
884
- }, {
885
- title: y(() => [
886
- A(s, {
887
- strongest: "",
888
- variant: "body",
889
- el: "span"
890
- }, {
891
- default: y(() => [
892
- q(N(e.label), 1)
893
- ]),
894
- _: 1
895
- })
896
- ]),
897
- actions: y(() => [
898
- A(n, { class: "b-date-range-filter__divider" }),
899
- A(d, {
900
- class: "b-date-range-filter__actions",
901
- actions: e.actions,
902
- layout: "space-between"
903
- }, null, 8, ["actions"])
904
- ]),
905
- _: 1
906
- }, 8, ["allow-time-input", "first-day-of-week", "is-date-disabled", "granularities", "max-range", "min", "max", "number-of-months", "quick-select-ranges", "value", "date-form-data", "onInput", "onCustomRange", "onError", "onFormDate"])
907
- ]))
908
- ];
909
- }),
910
- _: 1
911
- }, 8, ["button-label", "button-secondary-label", "controlled", "disable-apply-button", "disable-secondary-button", "default-value", "field", "label", "only-slot", "onOpen"]);
912
- }
913
- const mt = /* @__PURE__ */ G(yl, [["render", _l], ["__scopeId", "data-v-570ca68b"]]), _t = {
914
- "en-US": {
915
- all: "All",
916
- noFiltersMatchThisSearch: "No filters match this search",
917
- searchFilter: "Search {filter}"
918
- }
919
- }, hl = { class: "b-select-filter-button__search-bar" }, Fl = { class: "b-select-filter-button__divider" }, gl = {
920
- i18n: { messages: _t }
921
- }, Sl = /* @__PURE__ */ J({
922
- ...gl,
923
- __name: "select-filter-button",
924
- props: {
925
- /**
926
- * Default value of the filter to reset to.
927
- *
928
- */
929
- defaultValue: {
930
- type: [String, Number, Array],
931
- default: null
932
- },
933
- /**
934
- * Filter name/key referencing the actual property name in the data set.
935
- * Should be unique per filter bar.
936
- */
937
- field: { type: String, required: !0 },
938
- /**
939
- * Label text to be displayed
940
- */
941
- label: { type: String, required: !0 },
942
- /**
943
- * Renders the base filter's slot content only - leaving out the button and the popover.
944
- * Used for the allFiltersModal component.
945
- */
946
- onlySlot: { type: Boolean, default: !1 },
947
- /**
948
- * List of options that are needed to setup the filter
949
- * Available options:
950
- * - multiple: If "true", the user will be able to select multiple items.
951
- * - listboxItems: The option elements to populate the filter with.
952
- *
953
- * @default undefined
954
- */
955
- options: {
956
- type: Object,
957
- default: void 0
958
- },
959
- /**
960
- * Current value of the filter
961
- *
962
- * @default undefined
963
- */
964
- value: {
965
- type: [String, Number, Array],
966
- default: void 0
967
- }
968
- },
969
- emits: ["input", "update"],
970
- setup(e, { emit: l }) {
971
- var ne, fe;
972
- const t = e, a = ke(), { t: u, locale: r } = be({ messages: _t }), o = V(""), s = X(t, "options"), n = V(t.options.listboxItems), { cachedSelectedListboxOptions: d, setCachedValues: $, resetCache: F } = Je(
973
- n,
974
- X(t, "value"),
975
- X(s.value, "multiple")
976
- ), { cachedSelectedListboxOptions: C } = Je(
977
- n,
978
- X(t, "defaultValue"),
979
- X(s.value, "multiple")
980
- ), { internalFilterValue: i, isSecondaryButtonDisabled: T, isApplyButtonDisabled: O } = _e(d, C);
981
- me(s, () => {
982
- n.value = s.value.listboxItems;
983
- });
984
- const k = ct(
985
- o,
986
- n,
987
- (fe = (ne = t.options) == null ? void 0 : ne.search) == null ? void 0 : fe.searchEvent
988
- ), B = c(() => u("noFiltersMatchThisSearch")), W = c(() => {
989
- var M, _, w, L, j, v, f, E, H, Q;
990
- if (t.defaultValue === null)
991
- return t.label;
992
- if (t.options.multiple) {
993
- const z = (M = t.value) == null ? void 0 : M.length;
994
- if (z === t.options.listboxItems.length)
995
- return (_ = t == null ? void 0 : t.options) != null && _.messagesPersistentButtonLabelAllSelectedKey ? (L = t == null ? void 0 : t.options) == null ? void 0 : L.messages[r.value][(w = t == null ? void 0 : t.options) == null ? void 0 : w.messagesPersistentButtonLabelAllSelectedKey] : (j = t == null ? void 0 : t.options) == null ? void 0 : j.messages[r.value].persistentButtonLabelAllSelected;
996
- const ue = ((v = t == null ? void 0 : t.options) != null && v.messagesPersistentButtonLabelPartiallySelectedKey ? (E = t == null ? void 0 : t.options) == null ? void 0 : E.messages[r.value][(f = t == null ? void 0 : t.options) == null ? void 0 : f.messagesPersistentButtonLabelPartiallySelectedKey] : (H = t == null ? void 0 : t.options) == null ? void 0 : H.messages[r.value].persistentButtonLabelPartiallySelected).split("|").map((Fe) => Fe.trim());
997
- return z === 1 ? ue[0].replace("{count}", z) : ue[1].replace("{count}", z);
998
- }
999
- return (Q = d.value) != null && Q.length ? ce(d.value[0].label, 18) : "";
1000
- }), b = c(() => {
1001
- var M, _;
1002
- if (t.defaultValue === null && (!t.options.multiple || ((M = t.value) == null ? void 0 : M.length) === 1)) {
1003
- const w = t.options.listboxItems.flatMap((L) => L.items ? L.items : L);
1004
- return ce(
1005
- (_ = w.find(
1006
- ({ value: L }) => {
1007
- var j;
1008
- return Array.isArray(t.value) ? (j = t == null ? void 0 : t.value) == null ? void 0 : j.includes(L) : L === t.value;
1009
- }
1010
- )) == null ? void 0 : _.label,
1011
- 12
1012
- );
1013
- }
1014
- return null;
1015
- }), g = c(() => Ne(`filter-listbox-${t.field}`)), h = (M) => {
1016
- i.value = M;
1017
- const { onlySlot: _, ...w } = t;
1018
- if (t.options.multiple) {
1019
- const j = M.length ? i.value.map(({ value: v }) => v) : null;
1020
- l(m.INPUT, { ...w, value: j });
1021
- return;
1022
- }
1023
- const L = M.length ? M[0].value : null;
1024
- l(m.INPUT, { ...w, value: L });
1025
- }, P = () => {
1026
- var L, j, v;
1027
- const { onlySlot: M, ..._ } = t;
1028
- if (t.options.multiple) {
1029
- i.value && ((L = i.value) == null ? void 0 : L.length) === 0 && (i.value = t.defaultValue !== null ? C.value : void 0);
1030
- const f = (j = i.value) != null && j.length ? (v = i.value) == null ? void 0 : v.map(({ value: E }) => E) : null;
1031
- l(m.UPDATE, {
1032
- ..._,
1033
- value: f
1034
- });
1035
- return;
1036
- }
1037
- const w = i.value.length ? i.value[0].value : void 0;
1038
- l(m.UPDATE, { ..._, value: w });
1039
- }, D = () => {
1040
- i.value = d.value;
1041
- }, Z = () => {
1042
- o.value && (o.value = "");
1043
- }, te = () => {
1044
- $(C.value), i.value = C.value, P();
1045
- }, oe = () => {
1046
- F(), i.value = [], P();
1047
- }, ae = c(() => {
1048
- var w, L;
1049
- if (t.value == null || t.defaultValue !== null || !t.options.multiple)
1050
- return null;
1051
- const M = (w = t.options.listboxItems) == null ? void 0 : w.reduce((j, v) => {
1052
- var f;
1053
- return j += (f = v == null ? void 0 : v.items) != null && f.length ? v.items.length : 1, j;
1054
- }, 0), _ = (L = t.value) == null ? void 0 : L.length;
1055
- return _ === 1 ? null : _ === M ? u("all") : _;
1056
- });
1057
- return (M, _) => (p(), I(U(Ce), {
1058
- "applied-filters-count": U(ae),
1059
- "button-label": U(W),
1060
- "button-secondary-label": U(b),
1061
- "disable-apply-button": U(O),
1062
- "disable-secondary-button": U(T),
1063
- "default-value": e.defaultValue,
1064
- label: e.label,
1065
- field: e.field,
1066
- "only-slot": !1,
1067
- onApply: P,
1068
- onClear: oe,
1069
- onReset: te,
1070
- onOpen: D,
1071
- onClose: Z
1072
- }, {
1073
- default: y(() => {
1074
- var w, L, j, v, f, E, H, Q, z, he, ue, Fe, qe;
1075
- return [
1076
- R("div", hl, [
1077
- A(U(Ve), {
1078
- "debounce-time": (L = (w = e.options) == null ? void 0 : w.search) == null ? void 0 : L.debounceTime,
1079
- value: o.value,
1080
- "input-field-aria-label": M.$t("searchFilter", { filter: e.label.toLocaleLowerCase() }).toString(),
1081
- onInput: _[0] || (_[0] = (Le) => o.value = Le)
1082
- }, null, 8, ["debounce-time", "value", "input-field-aria-label"])
1083
- ]),
1084
- R("div", Fl, [
1085
- A(U(Me))
1086
- ]),
1087
- A(U(Wt), {
1088
- id: U(g),
1089
- "aria-label": e.label,
1090
- class: "b-select-filter-button__wrapper",
1091
- "empty-state": (j = e.options) == null ? void 0 : j.emptyState,
1092
- "has-more-items": (f = (v = e.options) == null ? void 0 : v.lazy) == null ? void 0 : f.hasMoreItems,
1093
- items: U(k),
1094
- "is-option-disabled": (E = e.options) == null ? void 0 : E.isOptionDisabled,
1095
- "lazy-load-type": (Q = (H = e.options) == null ? void 0 : H.lazy) == null ? void 0 : Q.lazyLoadType,
1096
- loading: (he = (z = e.options) == null ? void 0 : z.lazy) == null ? void 0 : he.loading,
1097
- multiple: (ue = e.options) == null ? void 0 : ue.multiple,
1098
- "static-categories": (Fe = e.options) == null ? void 0 : Fe.staticCategories,
1099
- "no-results-message": U(B),
1100
- searching: !!o.value,
1101
- "selected-value": U(i),
1102
- "virtual-scroll": (qe = e.options) == null ? void 0 : qe.virtualScroll,
1103
- onSelect: h,
1104
- onShowMore: _[1] || (_[1] = (Le) => {
1105
- var $e, Ie;
1106
- return (Ie = ($e = e.options) == null ? void 0 : $e.lazy) == null ? void 0 : Ie.showMoreEvent();
1107
- })
1108
- }, De({ _: 2 }, [
1109
- de(U(a), (Le, $e) => ({
1110
- name: $e,
1111
- fn: y((Ie) => [
1112
- ie(M.$slots, $e, Ue(Pe(Ie)), void 0, !0)
1113
- ])
1114
- }))
1115
- ]), 1032, ["id", "aria-label", "empty-state", "has-more-items", "items", "is-option-disabled", "lazy-load-type", "loading", "multiple", "static-categories", "no-results-message", "searching", "selected-value", "virtual-scroll"])
1116
- ];
1117
- }),
1118
- _: 3
1119
- }, 8, ["applied-filters-count", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "default-value", "label", "field"]));
1120
- }
1121
- });
1122
- const Cl = /* @__PURE__ */ G(Sl, [["__scopeId", "data-v-4eb2ccc6"]]), ht = {
1123
- "en-US": {
1124
- noFiltersMatchThisSearch: "No filters match this search"
1125
- }
1126
- }, $l = {
1127
- i18n: { messages: ht },
1128
- name: "select-filter-dropdown"
1129
- }, Al = /* @__PURE__ */ J({
1130
- ...$l,
1131
- props: {
1132
- /**
1133
- * Default value of the filter to reset to.
1134
- *
1135
- */
1136
- defaultValue: {
1137
- type: [String, Number, Array],
1138
- default: null
1139
- },
1140
- /**
1141
- * Filter name/key referencing the actual property name in the data set.
1142
- * Should be unique per filter bar.
1143
- */
1144
- field: { type: String, required: !0 },
1145
- /**
1146
- * Label text to be displayed
1147
- */
1148
- label: { type: String, required: !0 },
1149
- /**
1150
- * Renders the base filter's slot content only - leaving out the button and the popover.
1151
- * Used for the allFiltersModal component.
1152
- *
1153
- */
1154
- onlySlot: { type: Boolean, default: !1 },
1155
- /**
1156
- * List of options that are needed to setup the filter
1157
- * Available options:
1158
- * - multiple: If "true", the user will be able to select multiple items.
1159
- * - listboxItems: The option elements to populate the filter with.
1160
- *
1161
- * @default undefined
1162
- */
1163
- options: {
1164
- type: Object,
1165
- default: void 0
1166
- },
1167
- /**
1168
- * Current value of the filter
1169
- *
1170
- * @default undefined
1171
- */
1172
- value: {
1173
- type: [String, Number, Array],
1174
- default: void 0
1175
- }
1176
- },
1177
- emits: ["input", "update"],
1178
- setup(e, { emit: l }) {
1179
- const t = e, { t: a } = be({ messages: ht }), u = ke(), { internalFilterValue: r } = _e(X(t, "value"), X(t, "defaultValue")), o = V(""), s = X(t, "options"), n = V(t.options.listboxItems);
1180
- me(s, () => {
1181
- n.value = s.value.listboxItems;
1182
- });
1183
- const d = c(() => a("noFiltersMatchThisSearch")), $ = (F) => {
1184
- r.value = F;
1185
- const { onlySlot: C, ...i } = t;
1186
- l(m.INPUT, { ...i, value: r.value });
1187
- };
1188
- return (F, C) => {
1189
- var i, T, O;
1190
- return p(), I(U(Ht), {
1191
- value: U(r),
1192
- items: e.options.listboxItems,
1193
- multiple: (i = e.options) == null ? void 0 : i.multiple,
1194
- "static-categories": (T = e.options) == null ? void 0 : T.staticCategories,
1195
- "no-results-message": U(d),
1196
- searching: !!o.value,
1197
- "is-option-disabled": e.options.isOptionDisabled,
1198
- "dynamic-filtering": !0,
1199
- "empty-state": (O = e.options) == null ? void 0 : O.emptyState,
1200
- onInput: $
1201
- }, De({ _: 2 }, [
1202
- de(U(u), (k, B) => ({
1203
- name: B,
1204
- fn: y((W) => [
1205
- ie(F.$slots, B, Ue(Pe(W)))
1206
- ])
1207
- }))
1208
- ]), 1032, ["value", "items", "multiple", "static-categories", "no-results-message", "searching", "is-option-disabled", "empty-state"]);
1209
- };
1210
- }
1211
- }), Bl = {}, ee = /* @__PURE__ */ J({
1212
- ...Bl,
1213
- __name: "select-filter",
1214
- props: {
1215
- /**
1216
- * Default value of the filter to reset to.
1217
- *
1218
- */
1219
- defaultValue: {
1220
- type: [String, Number, Array],
1221
- default: null
1222
- },
1223
- /**
1224
- * Filter name/key referencing the actual property name in the data set.
1225
- * Should be unique per filter bar.
1226
- */
1227
- field: { type: String, required: !0 },
1228
- /**
1229
- * Label text to be displayed
1230
- */
1231
- label: { type: String, required: !0 },
1232
- /**
1233
- * Renders the base filter's slot content only - leaving out the button and the popover.
1234
- * Used for the allFiltersModal component.
1235
- *
1236
- */
1237
- onlySlot: { type: Boolean, default: !1 },
1238
- /**
1239
- * List of options that are needed to setup the filter
1240
- * Available options:
1241
- * - multiple: If "true", the user will be able to select multiple items.
1242
- * - listboxItems: The option elements to populate the filter with.
1243
- *
1244
- * @default undefined
1245
- */
1246
- options: {
1247
- type: Object,
1248
- default: void 0
1249
- },
1250
- /**
1251
- * Current value of the filter
1252
- *
1253
- * @default undefined
1254
- */
1255
- value: {
1256
- type: [String, Number, Array],
1257
- default: void 0
1258
- }
1259
- },
1260
- emits: ["input", "update"],
1261
- setup(e, { emit: l }) {
1262
- const t = ke(), a = (r) => l("input", r), u = (r) => l("update", r);
1263
- return (r, o) => e.onlySlot ? (p(), I(U(Al), {
1264
- key: 0,
1265
- "default-value": e.defaultValue,
1266
- field: e.field,
1267
- label: e.label,
1268
- options: e.options,
1269
- value: e.value,
1270
- onInput: a,
1271
- onUpdate: u
1272
- }, De({ _: 2 }, [
1273
- de(U(t), (s, n) => ({
1274
- name: n,
1275
- fn: y((d) => [
1276
- ie(r.$slots, n, Ue(Pe(d)))
1277
- ])
1278
- }))
1279
- ]), 1032, ["default-value", "field", "label", "options", "value"])) : (p(), I(U(Cl), {
1280
- key: 1,
1281
- "default-value": e.defaultValue,
1282
- field: e.field,
1283
- label: e.label,
1284
- options: e.options,
1285
- value: e.value,
1286
- onInput: a,
1287
- onUpdate: u
1288
- }, De({ _: 2 }, [
1289
- de(U(t), (s, n) => ({
1290
- name: n,
1291
- fn: y((d) => [
1292
- ie(r.$slots, n, Ue(Pe(d)))
1293
- ])
1294
- }))
1295
- ]), 1032, ["default-value", "field", "label", "options", "value"]));
1296
- }
1297
- }), Dl = J({
1298
- name: "bento-select-avatar-filter",
1299
- components: {
1300
- BentoSelectFilter: ee,
1301
- BentoAvatar: Zt
1302
- },
1303
- props: {
1304
- ...ee.props,
1305
- /**
1306
- * List of options that are needed to setup the country filter
1307
- * Available options:
1308
- * - multiple: If "true", the user will be able to select multiple items.
1309
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1310
- */
1311
- options: {
1312
- type: Object,
1313
- default: void 0
1314
- }
1315
- },
1316
- emits: [m.INPUT, m.UPDATE],
1317
- setup(e, { emit: l }) {
1318
- return {
1319
- // Enums
1320
- BentoFilterEvent: m,
1321
- // Methods
1322
- onUpdate: (a) => l(m.UPDATE, a)
1323
- };
1324
- }
1325
- });
1326
- function Il(e, l, t, a, u, r) {
1327
- const o = S("bento-avatar"), s = S("bento-select-filter");
1328
- return p(), I(s, re(e.$props, {
1329
- field: e.field,
1330
- label: e.label,
1331
- onUpdate: e.onUpdate,
1332
- onInput: l[0] || (l[0] = (n) => e.$emit(e.BentoFilterEvent.INPUT, n))
1333
- }), {
1334
- default: y(({ label: n, data: d }) => [
1335
- A(o, {
1336
- username: n,
1337
- src: d
1338
- }, null, 8, ["username", "src"])
1339
- ]),
1340
- _: 1
1341
- }, 16, ["field", "label", "onUpdate"]);
1342
- }
1343
- const Ft = /* @__PURE__ */ G(Dl, [["render", Il]]), Tl = J({
1344
- name: "bento-select-country-filter",
1345
- components: {
1346
- BentoSelectFilter: ee,
1347
- ListboxOptionTag: pt
1348
- },
1349
- props: {
1350
- ...ee.props,
1351
- /**
1352
- * List of options that are needed to setup the country filter
1353
- * Available options:
1354
- * - multiple: If "true", the user will be able to select multiple items.
1355
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}
1356
- */
1357
- options: {
1358
- type: Object,
1359
- default: void 0
1360
- }
1361
- },
1362
- emits: [m.INPUT, m.UPDATE],
1363
- setup(e, { emit: l }) {
1364
- return {
1365
- // Enums
1366
- BentoFilterEvent: m,
1367
- // Methods
1368
- onUpdate: (a) => {
1369
- l(m.UPDATE, a);
1370
- }
1371
- };
1372
- }
1373
- });
1374
- function El(e, l, t, a, u, r) {
1375
- const o = S("listbox-option-tag"), s = S("bento-select-filter");
1376
- return p(), I(s, re(e.$props, {
1377
- field: e.field,
1378
- label: e.label,
1379
- onUpdate: e.onUpdate,
1380
- onInput: l[0] || (l[0] = (n) => e.$emit(e.BentoFilterEvent.INPUT, n))
1381
- }), {
1382
- default: y((n) => [
1383
- A(o, { option: n }, null, 8, ["option"])
1384
- ]),
1385
- _: 1
1386
- }, 16, ["field", "label", "onUpdate"]);
1387
- }
1388
- const gt = /* @__PURE__ */ G(Tl, [["render", El]]), Ul = J({
1389
- name: "bento-select-country-filter",
1390
- components: {
1391
- BentoSelectFilter: ee,
1392
- BentoTypography: ve
1393
- },
1394
- props: {
1395
- ...ee.props,
1396
- /**
1397
- * List of options that are needed to setup the country filter
1398
- * Available options:
1399
- * - multiple: If "true", the user will be able to select multiple items.
1400
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1401
- * - variant: Which label variant to display for the option item.
1402
- */
1403
- options: {
1404
- type: Object,
1405
- default: void 0
1406
- }
1407
- },
1408
- emits: [m.INPUT, m.UPDATE],
1409
- setup(e, { emit: l }) {
1410
- const t = V(e.options.variant), a = V(e.options.listboxItems);
1411
- me([() => e.options.variant, () => e.options.listboxItems], () => {
1412
- t.value = e.options.variant, a.value = e.options.listboxItems;
1413
- });
1414
- const u = (s) => l(m.UPDATE, s), r = Qt(t, a), o = c(() => ({
1415
- ...e.options,
1416
- listboxItems: r.value
1417
- }));
1418
- return (!t.value || t.value === "custom") && kt(
1419
- 'BentoSelectCountryFilter type with `options.variant==="custom"`',
1420
- "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1421
- "2.0.0"
1422
- ), {
1423
- // Values
1424
- countryOptions: o,
1425
- // Methods
1426
- onUpdate: u,
1427
- // Enums
1428
- BentoFilterEvent: m
1429
- };
1430
- }
1431
- });
1432
- function Pl(e, l, t, a, u, r) {
1433
- const o = S("bento-typography"), s = S("bento-select-filter");
1434
- return p(), I(s, re(e.$props, {
1435
- field: e.field,
1436
- label: e.label,
1437
- options: e.countryOptions,
1438
- onUpdate: e.onUpdate,
1439
- onInput: l[0] || (l[0] = (n) => e.$emit(e.BentoFilterEvent.INPUT, n))
1440
- }), {
1441
- default: y(({ label: n }) => [
1442
- A(o, { el: "span" }, {
1443
- default: y(() => [
1444
- q(N(n), 1)
1445
- ]),
1446
- _: 2
1447
- }, 1024)
1448
- ]),
1449
- _: 1
1450
- }, 16, ["field", "label", "options", "onUpdate"]);
1451
- }
1452
- const St = /* @__PURE__ */ G(Ul, [["render", Pl]]), Vl = J({
1453
- name: "bento-select-payment-method-filter",
1454
- components: {
1455
- BentoSelectFilter: ee,
1456
- BentoPaymentMethod: Xt
1457
- },
1458
- props: {
1459
- ...ee.props,
1460
- /**
1461
- * List of options that are needed to setup the payment method filter
1462
- * Available options:
1463
- * - multiple: If "true", the user will be able to select multiple items.
1464
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}
1465
- */
1466
- options: {
1467
- type: Object,
1468
- default: void 0
1469
- }
1470
- },
1471
- emits: [m.INPUT, m.UPDATE],
1472
- setup(e, { emit: l }) {
1473
- return {
1474
- // Enums
1475
- BentoFilterEvent: m,
1476
- // Methods
1477
- onUpdate: (a) => l(m.UPDATE, a)
1478
- };
1479
- }
1480
- });
1481
- function kl(e, l, t, a, u, r) {
1482
- const o = S("bento-payment-method"), s = S("bento-select-filter");
1483
- return p(), I(s, re(e.$props, {
1484
- field: e.field,
1485
- label: e.label,
1486
- onUpdate: e.onUpdate,
1487
- onInput: l[0] || (l[0] = (n) => e.$emit(e.BentoFilterEvent.INPUT, n))
1488
- }), {
1489
- default: y(({ value: n, label: d }) => [
1490
- A(o, {
1491
- type: n,
1492
- label: d
1493
- }, null, 8, ["type", "label"])
1494
- ]),
1495
- _: 1
1496
- }, 16, ["field", "label", "onUpdate"]);
1497
- }
1498
- const Ct = /* @__PURE__ */ G(Vl, [["render", kl]]), Ll = J({
1499
- name: "bento-select-country-filter",
1500
- components: {
1501
- BentoSelectFilter: ee,
1502
- ListboxOptionTag: pt
1503
- },
1504
- props: {
1505
- ...ee.props,
1506
- /**
1507
- * List of options that are needed to setup the tag filter
1508
- * Available options:
1509
- * - multiple: If "true", the user will be able to select multiple items.
1510
- * - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}
1511
- */
1512
- options: {
1513
- type: Object,
1514
- default: void 0
1515
- }
1516
- },
1517
- emits: [m.INPUT, m.UPDATE],
1518
- setup(e, { emit: l }) {
1519
- const t = (r) => l(m.UPDATE, r), a = c(
1520
- () => {
1521
- var r, o;
1522
- return (o = (r = e == null ? void 0 : e.options) == null ? void 0 : r.listboxItems) == null ? void 0 : o.map(({ label: s, value: n, variant: d }) => ({ label: s, value: n, data: d }));
1523
- }
1524
- );
1525
- return {
1526
- // Values
1527
- countryOptions: c(() => ({
1528
- ...e.options,
1529
- listboxItems: a.value
1530
- })),
1531
- // Methods
1532
- onUpdate: t,
1533
- // Enums
1534
- BentoFilterEvent: m
1535
- };
1536
- }
1537
- });
1538
- function Rl(e, l, t, a, u, r) {
1539
- const o = S("listbox-option-tag"), s = S("bento-select-filter");
1540
- return p(), I(s, re(e.$props, {
1541
- field: e.field,
1542
- label: e.label,
1543
- options: e.countryOptions,
1544
- onUpdate: e.onUpdate,
1545
- onInput: l[0] || (l[0] = (n) => e.$emit(e.BentoFilterEvent.INPUT, n))
1546
- }), {
1547
- default: y(({ label: n, data: d }) => [
1548
- A(o, {
1549
- option: { value: n, data: d, label: "" }
1550
- }, null, 8, ["option"])
1551
- ]),
1552
- _: 1
1553
- }, 16, ["field", "label", "options", "onUpdate"]);
1554
- }
1555
- const $t = /* @__PURE__ */ G(Ll, [["render", Rl]]), Xe = {
1556
- "en-US": {
1557
- yes: "Yes",
1558
- no: "No"
1559
- }
1560
- }, Ol = J({
1561
- name: "bento-boolean-filter",
1562
- i18n: { messages: Xe },
1563
- components: { BentoBaseFilter: Ce, BentoRadioGroup: Rt },
1564
- props: {
1565
- /**
1566
- * Default value of the filter to reset to.
1567
- */
1568
- defaultValue: { type: [String, Boolean], default: null },
1569
- /**
1570
- * Filter name/key referencing the actual property name in the data set.
1571
- * Should be unique per filter bar.
1572
- */
1573
- field: { type: String, required: !0 },
1574
- /**
1575
- * Label text to be displayed
1576
- */
1577
- label: { type: String, required: !0 },
1578
- /**
1579
- * Current value of the filter
1580
- */
1581
- value: { type: [String, Boolean], default: null },
1582
- /**
1583
- * Renders the base filter's slot content only - leaving out the button and the popover.
1584
- * Used for the allFiltersModal component.
1585
- */
1586
- onlySlot: { type: Boolean, default: !1 },
1587
- /**
1588
- * List of options that are needed to setup the filter
1589
- * Available options:
1590
- * - listboxItems: The option elements to populate the filter with.
1591
- */
1592
- options: {
1593
- type: Object,
1594
- default: void 0
1595
- }
1596
- },
1597
- emits: [m.INPUT, m.UPDATE],
1598
- setup(e, { emit: l }) {
1599
- const { t } = be({ messages: Xe }), a = (b) => typeof b == "boolean" ? b == null ? void 0 : b.toString() : b, u = (b) => {
1600
- var g, h, P, D;
1601
- return ((h = (g = e == null ? void 0 : e.options) == null ? void 0 : g.positiveOption) == null ? void 0 : h.value) !== void 0 && ((D = (P = e == null ? void 0 : e.options) == null ? void 0 : P.negativeOption) == null ? void 0 : D.value) !== void 0 && typeof e.options.positiveOption.value == "boolean" && typeof e.options.negativeOption.value == "boolean" && typeof b == "string" ? b === "true" : b;
1602
- }, r = c(() => a(e.defaultValue)), o = c(() => a(e.value)), s = c(() => e.options && e.options.positiveOption && e.options.negativeOption ? [
1603
- {
1604
- ...e.options.positiveOption,
1605
- value: a(e.options.positiveOption.value)
1606
- },
1607
- {
1608
- ...e.options.negativeOption,
1609
- value: a(e.options.negativeOption.value)
1610
- }
1611
- ] : [
1612
- { value: "yes", label: t("yes") },
1613
- { value: "no", label: t("no") }
1614
- ]), { internalFilterValue: n, isSecondaryButtonDisabled: d, isApplyButtonDisabled: $ } = _e(
1615
- o,
1616
- r
1617
- ), F = c(
1618
- () => e.defaultValue === null ? e.label : ce(s.value.find(({ value: b }) => b === o.value).label, 18)
1619
- ), C = c(
1620
- () => {
1621
- var b;
1622
- return e.defaultValue === null ? ce((b = s.value.find(({ value: g }) => g === o.value)) == null ? void 0 : b.label, 12) : null;
1623
- }
1624
- ), i = c(() => ({
1625
- ["b-boolean-filter--only-slot"]: e.onlySlot
1626
- }));
1627
- we(() => {
1628
- n.value || (n.value = null);
1629
- });
1630
- const T = (b) => {
1631
- n.value = b, l(m.INPUT, {
1632
- ...e,
1633
- value: u(n.value)
1634
- });
1635
- }, O = () => {
1636
- n.value = o.value;
1637
- }, k = () => {
1638
- l(m.UPDATE, {
1639
- ...e,
1640
- value: u(n.value)
1641
- });
1642
- };
1643
- return {
1644
- // Values
1645
- items: s,
1646
- conditionalClasses: i,
1647
- buttonLabel: F,
1648
- buttonSecondaryLabel: C,
1649
- internalFilterValue: n,
1650
- isApplyButtonDisabled: $,
1651
- isSecondaryButtonDisabled: d,
1652
- translatedValue: o,
1653
- translatedDefaultValue: r,
1654
- // Events
1655
- onInput: T,
1656
- updateFilter: k,
1657
- clearFilter: () => {
1658
- n.value = null, k();
1659
- },
1660
- openFilter: O,
1661
- resetFilter: () => l(m.UPDATE, { ...e, value: e.defaultValue })
1662
- };
1663
- }
1664
- });
1665
- function wl(e, l, t, a, u, r) {
1666
- const o = S("bento-radio-group"), s = S("bento-base-filter");
1667
- return p(), I(s, re(e.$props, {
1668
- value: e.translatedValue,
1669
- "default-value": e.translatedDefaultValue,
1670
- "button-label": e.buttonLabel,
1671
- "button-secondary-label": e.buttonSecondaryLabel,
1672
- "disable-apply-button": e.isApplyButtonDisabled,
1673
- "disable-secondary-button": e.isSecondaryButtonDisabled,
1674
- "only-slot": e.onlySlot,
1675
- onApply: e.updateFilter,
1676
- onClear: e.clearFilter,
1677
- onOpen: e.openFilter,
1678
- onReset: e.resetFilter
1679
- }), {
1680
- default: y(() => [
1681
- R("div", {
1682
- class: Se(["b-boolean-filter", e.conditionalClasses]),
1683
- onKeydown: l[0] || (l[0] = ye((...n) => e.updateFilter && e.updateFilter(...n), ["enter"]))
1684
- }, [
1685
- A(o, {
1686
- items: e.items,
1687
- label: e.label,
1688
- "model-value": e.internalFilterValue,
1689
- "hide-label": "",
1690
- "onUpdate:modelValue": e.onInput
1691
- }, null, 8, ["items", "label", "model-value", "onUpdate:modelValue"])
1692
- ], 34)
1693
- ]),
1694
- _: 1
1695
- }, 16, ["value", "default-value", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
1696
- }
1697
- const At = /* @__PURE__ */ G(Ol, [["render", wl], ["__scopeId", "data-v-1fa97477"]]), Nl = {
1698
- "en-US": {
1699
- from: "From",
1700
- to: "To"
1701
- }
1702
- }, Ml = J({
1703
- name: "bento-range-filter",
1704
- i18n: { messages: Nl },
1705
- components: { BentoBaseFilter: Ce, BentoInputField: dt },
1706
- props: {
1707
- /**
1708
- * Default value of the filter to reset to.
1709
- */
1710
- defaultValue: { type: Array, default: null },
1711
- /**
1712
- * Filter name/key referencing the actual property name in the data set.
1713
- * Should be unique per filter bar.
1714
- */
1715
- field: { type: String, required: !0 },
1716
- /**
1717
- * Label text to be displayed
1718
- */
1719
- label: { type: String, required: !0 },
1720
- /**
1721
- * Current value of the filter
1722
- */
1723
- value: { type: Array, default: () => ["", ""] },
1724
- /**
1725
- * Renders the base filter's slot content only - leaving out the button and the popover.
1726
- * Used for the allFiltersModal component.
1727
- */
1728
- onlySlot: { type: Boolean, default: !1 }
1729
- },
1730
- emits: [m.INPUT, m.UPDATE],
1731
- setup(e, { emit: l }) {
1732
- const t = V(null), { internalFilterValue: a, isSecondaryButtonDisabled: u, isApplyButtonDisabled: r } = _e(
1733
- X(e, "value"),
1734
- X(e, "defaultValue")
1735
- ), o = c(() => {
1736
- var h, P, D, Z, te, oe, ae, ne;
1737
- if (!((h = e.value) != null && h[0]) && !((P = e.value) != null && P[1]))
1738
- return null;
1739
- let B = "";
1740
- (D = e.value) != null && D[0] ? (Z = e.value) != null && Z[1] || (B = "≥") : B = "≤";
1741
- const W = (te = e.value) != null && te[0] ? `${ce(e.value[0], 5)}` : "", b = (oe = e.value) != null && oe[0] && ((ae = e.value) != null && ae[1]) ? " - " : "", g = (ne = e.value) != null && ne[1] ? `${ce(e.value[1], 5)}` : "";
1742
- return `${B}${W}${b}${g}`;
1743
- }), s = c(
1744
- () => e.defaultValue === null ? e.label : o.value
1745
- ), n = c(
1746
- () => e.defaultValue === null ? o.value : null
1747
- ), d = c(() => ({
1748
- ["b-range-filter--only-slot"]: e.onlySlot
1749
- })), $ = () => {
1750
- a.value = e.value, lt(() => t.value.focusInput());
1751
- }, F = () => {
1752
- l(m.INPUT, { ...e, value: a.value });
1753
- }, C = (B) => {
1754
- a.value = [B, a.value[1]], F();
1755
- }, i = (B) => {
1756
- a.value = [a.value[0], B], F();
1757
- }, T = () => {
1758
- a.value.some((B) => B) || (a.value = e.defaultValue !== null ? e.defaultValue : void 0), l(m.UPDATE, {
1759
- ...e,
1760
- value: a.value
1761
- });
1762
- };
1763
- return {
1764
- // Values
1765
- inputTextRef: t,
1766
- conditionalClasses: d,
1767
- internalFilterValue: a,
1768
- isApplyButtonDisabled: r,
1769
- isSecondaryButtonDisabled: u,
1770
- buttonLabel: s,
1771
- buttonSecondaryLabel: n,
1772
- // Events
1773
- updateFrom: C,
1774
- updateTo: i,
1775
- updateFilter: T,
1776
- clearFilter: () => {
1777
- a.value = ["", ""], T();
1778
- },
1779
- openFilter: $,
1780
- resetFilter: () => l(m.UPDATE, { ...e, value: e.defaultValue })
1781
- };
1782
- }
1783
- });
1784
- function Hl(e, l, t, a, u, r) {
1785
- const o = S("bento-input-field"), s = S("bento-base-filter");
1786
- return p(), I(s, re(e.$props, {
1787
- "disable-apply-button": e.isApplyButtonDisabled,
1788
- "disable-secondary-button": e.isSecondaryButtonDisabled,
1789
- "button-label": e.buttonLabel,
1790
- "button-secondary-label": e.buttonSecondaryLabel,
1791
- "only-slot": e.onlySlot,
1792
- onApply: e.updateFilter,
1793
- onClear: e.clearFilter,
1794
- onOpen: e.openFilter,
1795
- onReset: e.resetFilter
1796
- }), {
1797
- default: y(() => [
1798
- R("div", {
1799
- class: Se(["b-range-filter", e.conditionalClasses]),
1800
- onKeydown: l[0] || (l[0] = ye((...n) => e.updateFilter && e.updateFilter(...n), ["enter"]))
1801
- }, [
1802
- A(o, {
1803
- ref: "inputTextRef",
1804
- value: e.internalFilterValue ? e.internalFilterValue[0] : "",
1805
- type: "number",
1806
- "aria-label": e.$t("from").toString(),
1807
- onInput: e.updateFrom
1808
- }, {
1809
- default: y(() => [
1810
- q(N(e.$t("from")), 1)
1811
- ]),
1812
- _: 1
1813
- }, 8, ["value", "aria-label", "onInput"]),
1814
- A(o, {
1815
- class: "b-range-filter__input-field",
1816
- value: e.internalFilterValue ? e.internalFilterValue[1] : "",
1817
- type: "number",
1818
- "aria-label": e.$t("to").toString(),
1819
- onInput: e.updateTo
1820
- }, {
1821
- default: y(() => [
1822
- q(N(e.$t("to")), 1)
1823
- ]),
1824
- _: 1
1825
- }, 8, ["value", "aria-label", "onInput"])
1826
- ], 34)
1827
- ]),
1828
- _: 1
1829
- }, 16, ["disable-apply-button", "disable-secondary-button", "button-label", "button-secondary-label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
1830
- }
1831
- const Bt = /* @__PURE__ */ G(Ml, [["render", Hl], ["__scopeId", "data-v-93c845a0"]]);
1832
- var Oe = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(Oe || {});
1833
- const ql = J({
1834
- name: "base-filter-button",
1835
- components: { BaseButton: ot, BentoTypography: ve, ChevronUpIcon: rt, ChevronDownIcon: ut },
1836
- props: {
1837
- /**
1838
- * The number of applies values within the filter.
1839
- * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
1840
- */
1841
- amountAppliedValues: { type: [Number, String], default: null },
1842
- /**
1843
- * Disables button functionality.
1844
- */
1845
- disabled: { type: Boolean, default: !1 },
1846
- /**
1847
- * Signifies if the filter is open or closed.
1848
- */
1849
- isFilterOpen: { type: Boolean, default: !1 },
1850
- /**
1851
- * Toggles if a chevron icon should be displayed in the button.
1852
- * The chevron will change depending on the open state of the filter.
1853
- */
1854
- hasChevron: { type: Boolean, default: !1 },
1855
- /**
1856
- * Renders the text in a stronger variant.
1857
- */
1858
- bold: { type: Boolean, default: !1 }
1859
- },
1860
- emits: [je.CLICK],
1861
- setup(e, { slots: l, emit: t, attrs: a }) {
1862
- const u = c(() => l.default ? st(l)("default") : null), r = nt({ ariaLabel: u }), o = V(null), s = c(() => {
1863
- var $;
1864
- return {
1865
- "aria-controls": ($ = a["aria-controls"]) == null ? void 0 : $.toString()
1866
- };
1867
- }), n = c(() => ({
1868
- ["b-base-filter-button--with-chevron"]: e.hasChevron,
1869
- ["b-base-filter-button--filter-open"]: e.isFilterOpen
1870
- }));
1871
- return {
1872
- // Values
1873
- ariaAttributes: s,
1874
- computedAriaLabel: r,
1875
- conditionalClasses: n,
1876
- // Methods
1877
- onClickButton: () => {
1878
- e.disabled || t(je.CLICK);
1879
- },
1880
- hasSlot: it(l),
1881
- // Refs
1882
- baseFilterButtonRef: o
1883
- };
1884
- }
1885
- });
1886
- const Kl = { class: "b-base-filter-button__default-container" }, jl = { class: "b-base-filter-button__label-container" }, Yl = {
1887
- key: 0,
1888
- class: "b-base-filter-button__counter-wrapper"
1889
- };
1890
- function zl(e, l, t, a, u, r) {
1891
- const o = S("bento-typography"), s = S("chevron-up-icon"), n = S("chevron-down-icon"), d = S("base-button");
1892
- return p(), I(d, {
1893
- ref: "baseFilterButtonRef",
1894
- class: Se(["b-base-filter-button", e.conditionalClasses]),
1895
- disabled: e.disabled,
1896
- "aria-label": e.computedAriaLabel,
1897
- "aria-controls": e.ariaAttributes["aria-controls"],
1898
- type: "button",
1899
- onClick: e.onClickButton
1900
- }, De({
1901
- default: y(() => [
1902
- R("div", Kl, [
1903
- R("div", jl, [
1904
- A(o, {
1905
- el: "span",
1906
- variant: "body",
1907
- stronger: e.bold,
1908
- class: "b-base-filter-button__label"
1909
- }, {
1910
- default: y(() => [
1911
- ie(e.$slots, "default", {}, void 0, !0)
1912
- ]),
1913
- _: 3
1914
- }, 8, ["stronger"])
1915
- ]),
1916
- e.amountAppliedValues && !e.hasChevron ? (p(), K("div", Yl, [
1917
- A(o, {
1918
- class: "b-base-filter-button__counter",
1919
- el: "span",
1920
- variant: "body",
1921
- stronger: ""
1922
- }, {
1923
- default: y(() => [
1924
- q(N(e.amountAppliedValues), 1)
1925
- ]),
1926
- _: 1
1927
- })
1928
- ])) : Y("", !0)
1929
- ])
1930
- ]),
1931
- _: 2
1932
- }, [
1933
- e.hasChevron ? {
1934
- name: "iconRight",
1935
- fn: y(() => [
1936
- e.isFilterOpen ? (p(), I(s, {
1937
- key: 0,
1938
- "aria-hidden": "true"
1939
- })) : (p(), I(n, {
1940
- key: 1,
1941
- "aria-hidden": "true"
1942
- }))
1943
- ]),
1944
- key: "0"
1945
- } : void 0
1946
- ]), 1032, ["class", "disabled", "aria-label", "aria-controls", "onClick"]);
1947
- }
1948
- const Jl = /* @__PURE__ */ G(ql, [["render", zl], ["__scopeId", "data-v-af9efc73"]]), Gl = J({
1949
- name: "all-filters-modal-button",
1950
- components: { BaseFilterButton: Jl },
1951
- props: {
1952
- /**
1953
- * Button label to be displayed
1954
- */
1955
- label: { type: String, required: !0 },
1956
- /**
1957
- * Total count of applied filters
1958
- */
1959
- appliedFiltersCount: { type: [Number, String], default: null },
1960
- /**
1961
- * Indicates whether the filter popover tied to this button is showing
1962
- */
1963
- isFilterOpen: { type: Boolean, default: !1 },
1964
- /**
1965
- * Disables button functionality.
1966
- */
1967
- disabled: { type: Boolean, default: !1 }
1968
- },
1969
- emits: ["click"],
1970
- setup(e, { emit: l }) {
1971
- return {
1972
- conditionalClasses: c(() => ({
1973
- ["b-all-filters-modal-button--with-counter"]: e.appliedFiltersCount,
1974
- ["b-all-filters-modal-button--filter-open"]: e.isFilterOpen
1975
- })),
1976
- onClick: () => {
1977
- l("click");
1978
- }
1979
- };
1980
- }
1981
- });
1982
- function Wl(e, l, t, a, u, r) {
1983
- const o = S("base-filter-button");
1984
- return p(), I(o, {
1985
- class: Se(["b-all-filters-modal-button", e.conditionalClasses]),
1986
- "amount-applied-values": e.appliedFiltersCount,
1987
- "is-filter-open": e.isFilterOpen,
1988
- disabled: e.disabled,
1989
- onClick: e.onClick
1990
- }, {
1991
- default: y(() => [
1992
- q(N(e.label), 1)
1993
- ]),
1994
- _: 1
1995
- }, 8, ["class", "amount-applied-values", "is-filter-open", "disabled", "onClick"]);
1996
- }
1997
- const Zl = /* @__PURE__ */ G(Gl, [["render", Wl], ["__scopeId", "data-v-b96a672f"]]);
1998
- let xe = 0;
1999
- const Ql = {
2000
- beforeCreate() {
2001
- this.uuid = xe.toString(), xe += 1;
2002
- }
2003
- }, Xl = { key: 0 }, xl = /* @__PURE__ */ R("path", {
2004
- fill: "#00112C",
2005
- 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"
2006
- }, null, -1), ea = /* @__PURE__ */ R("path", {
2007
- fill: "#00112C",
2008
- 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"
2009
- }, null, -1);
2010
- function ta(e, l, t, a, u, r) {
2011
- return p(), K("svg", re({ role: "img" }, e.$attrs, {
2012
- class: "ui-assets-icons-16",
2013
- xmlns: "http://www.w3.org/2000/svg",
2014
- width: "16",
2015
- height: "16",
2016
- fill: "none"
2017
- }), [
2018
- e.$attrs["svg-title"] ? (p(), K("title", Xl, N(e.$attrs["svg-title"]), 1)) : Y("", !0),
2019
- xl,
2020
- ea
2021
- ], 16);
2022
- }
2023
- const la = /* @__PURE__ */ G(Ql, [["render", ta]]), et = {
2024
- "en-US": {
2025
- all: "All",
2026
- activeFilters: "Active filters",
2027
- allFilters: "All filters",
2028
- applyAll: "Apply all",
2029
- cancel: "Cancel",
2030
- clear: "Clear",
2031
- clearAll: "Clear all",
2032
- noFiltersMatchThisSearch: "No filters match this search",
2033
- otherFilters: "Other filters",
2034
- searchBar: "Search bar"
2035
- }
2036
- }, aa = J({
2037
- i18n: { messages: et },
2038
- name: "all-filters-modal",
2039
- components: {
2040
- AllFiltersModalButton: Zl,
2041
- BentoBooleanFilter: At,
2042
- BentoButton: Mt,
2043
- BentoDateFilter: yt,
2044
- BentoDateRangeFilter: mt,
2045
- BentoInputFilter: vt,
2046
- BentoModal: wt,
2047
- BentoRangeFilter: Bt,
2048
- BentoSearchBar: Ve,
2049
- BentoSelectAvatarFilter: Ft,
2050
- BentoSelectCurrencyFilter: gt,
2051
- BentoSelectCountryFilter: St,
2052
- BentoSelectFilter: ee,
2053
- BentoSelectPaymentMethodFilter: Ct,
2054
- BentoSelectTagFilter: $t,
2055
- BentoTypography: ve,
2056
- FilterBarButton: He,
2057
- SlidersIcon: la
2058
- },
2059
- props: {
2060
- /**
2061
- * Array of filters based on {@see FilterBarModel}.
2062
- * Each one of the elements in the array correspond to a filter that will
2063
- * be created and rendered in the AllFiltersModal.
2064
- *
2065
- * Can be used with v-model or independently with the @input event.
2066
- *
2067
- * @example
2068
- * [{
2069
- * field: 'company',
2070
- * label: 'Company',
2071
- * value: '200',
2072
- * type: FilterType.TEXT,
2073
- * }, {
2074
- * field: 'name',
2075
- * label: 'Name',
2076
- * value: null,
2077
- * type: FilterType.TEXT,
2078
- * }]
2079
- */
2080
- value: {
2081
- type: Array,
2082
- default: () => []
2083
- }
2084
- },
2085
- emits: [Oe.INPUT],
2086
- setup(e, { emit: l }) {
2087
- const t = at({ value: e.value }), a = V(t.value), u = Ne("all-filters-modal"), r = V([]), o = V(!1), s = V(0), n = V(null), d = V(""), { t: $ } = be({ messages: et }), F = ct(d, X(a, "value")), C = V({});
2088
- we(() => {
2089
- C.value = [];
2090
- }), me(
2091
- () => e.value,
2092
- () => {
2093
- t.value = e.value, a.value = e.value;
2094
- }
2095
- );
2096
- const i = (v) => (
2097
- /* eslint-disable-next-line no-nested-ternary */
2098
- v.sort((f, E) => f.label > E.label ? 1 : E.label > f.label ? -1 : 0)
2099
- ), T = c(
2100
- () => i(
2101
- F.value.filter(
2102
- (v) => {
2103
- var f, E;
2104
- return Array.isArray(v.value) ? ((f = v.value) == null ? void 0 : f.length) && ((E = v.value) == null ? void 0 : E.find((H) => H !== "")) : v.value;
2105
- }
2106
- )
2107
- )
2108
- ), O = c(
2109
- () => i(
2110
- F.value.filter(
2111
- (v) => {
2112
- var f, E;
2113
- return Array.isArray(v.value) ? ((f = v.value) == null ? void 0 : f.length) === 0 || ((E = v.value) == null ? void 0 : E.every((H) => H === "")) : !v.value;
2114
- }
2115
- )
2116
- )
2117
- ), k = c(() => {
2118
- var v;
2119
- return d.value && ((v = F.value) == null ? void 0 : v.length) === 0;
2120
- }), B = c(() => a.value[s.value]), W = () => {
2121
- const v = T.value.length ? T.value[0] : O.value[0], f = a.value.findIndex(
2122
- (E) => E.label === v.label && E.field === v.field
2123
- );
2124
- s.value = f;
2125
- };
2126
- Tt(() => {
2127
- W();
2128
- });
2129
- const b = (v) => v.map((f) => {
2130
- var E, H, Q, z, he, ue;
2131
- switch (f.type) {
2132
- case x.SELECT:
2133
- case x.SELECT_AVATAR:
2134
- case x.SELECT_COUNTRY:
2135
- case x.SELECT_CURRENCY:
2136
- case x.SELECT_PAYMENT_METHOD:
2137
- case x.SELECT_TAG:
2138
- switch ((E = f.options) == null ? void 0 : E.multiple) {
2139
- case !0:
2140
- return {
2141
- label: f.label,
2142
- field: f.field,
2143
- count: (H = f.value) != null && H.length ? (Q = f.value) == null ? void 0 : Q.length : null
2144
- };
2145
- default:
2146
- return {
2147
- label: f.label,
2148
- field: f.field,
2149
- count: f.value == null ? null : 1
2150
- };
2151
- }
2152
- case x.DATE_RANGE:
2153
- return {
2154
- label: f.label,
2155
- field: f.field,
2156
- count: ((z = f.value) == null ? void 0 : z.startDate) != null && ((he = f.value) == null ? void 0 : he.endDate) != null ? 1 : null
2157
- };
2158
- case x.RANGE:
2159
- return {
2160
- label: f.label,
2161
- field: f.field,
2162
- count: (ue = f.value) != null && ue.find((Fe) => Fe !== "") ? 1 : null
2163
- };
2164
- case x.INPUT:
2165
- case x.BOOLEAN:
2166
- case x.DATE:
2167
- default:
2168
- return {
2169
- label: f.label,
2170
- field: f.field,
2171
- count: f.value != null ? 1 : null
2172
- };
2173
- }
2174
- }), g = c(
2175
- () => {
2176
- var v;
2177
- return Array.isArray(B.value.value) ? ((v = B.value) == null ? void 0 : v.value.length) && B.value.value.find((f) => f !== "") : !!a.value[s.value].value;
2178
- }
2179
- ), h = c(
2180
- () => {
2181
- var v;
2182
- return (v = b(t.value)) == null ? void 0 : v.filter(({ count: f }) => !!f).length;
2183
- }
2184
- ), P = () => {
2185
- o.value ? o.value = !1 : o.value = !0;
2186
- }, D = (v) => {
2187
- var E, H, Q;
2188
- const f = b(a.value).find((z) => z.field === v.field).count;
2189
- return v.type.includes("BentoSelect") && ((E = v.options) != null && E.multiple) && f === ((Q = (H = v.options) == null ? void 0 : H.listboxItems) == null ? void 0 : Q.length) ? $("all") : f;
2190
- }, Z = (v, f) => {
2191
- s.value = a.value.findIndex(
2192
- (E) => E.label === v && E.field === f
2193
- );
2194
- }, te = () => {
2195
- d.value = "";
2196
- }, oe = () => {
2197
- o.value = !1, t.value = e.value, a.value = e.value, te(), W();
2198
- }, ae = (v) => {
2199
- const f = a.value.map(({ value: E, ...H }, Q) => Q === s.value ? { value: v.value, ...H } : { value: E, ...H });
2200
- a.value = f;
2201
- }, ne = () => {
2202
- ae({
2203
- field: B.value.field,
2204
- label: B.value.label,
2205
- type: B.value.type,
2206
- value: void 0
2207
- });
2208
- }, fe = () => {
2209
- a.value = t.value.map(({ value: v, ...f }) => ({
2210
- ...f,
2211
- value: void 0
2212
- }));
2213
- }, M = () => {
2214
- l(Oe.INPUT, a.value), o.value = !1;
2215
- }, _ = c(
2216
- () => JSON.stringify(a.value) === JSON.stringify(e.value)
2217
- ), w = c(() => [
2218
- {
2219
- title: $("applyAll"),
2220
- disabled: _.value,
2221
- event: M
2222
- },
2223
- {
2224
- title: $("cancel"),
2225
- event: oe
2226
- },
2227
- {
2228
- title: $("clearAll"),
2229
- disabled: !h.value,
2230
- event: fe
2231
- }
2232
- ]);
2233
- return {
2234
- // Enums
2235
- BentoModalEvent: Nt,
2236
- // Values
2237
- allFiltersModalUniqueId: u,
2238
- allFiltersModalFiltersSection: r,
2239
- allFiltersModalFilterButtons: C,
2240
- numberOfActiveFilters: h,
2241
- isEmptyResultForSearchFilter: k,
2242
- isModalOpen: o,
2243
- isClearButtonEnabled: g,
2244
- activeFilters: T,
2245
- otherFilters: O,
2246
- modalActions: w,
2247
- selectedFilter: B,
2248
- selectedFilterRef: n,
2249
- filters: t,
2250
- searchTerm: d,
2251
- // Methods
2252
- onClickAllFiltersModal: P,
2253
- getFilterCount: D,
2254
- cancel: oe,
2255
- selectFilter: Z,
2256
- clearFilter: ne,
2257
- updateFilter: ae,
2258
- onSearchbarClear: te,
2259
- onKeydownRight: () => {
2260
- qt(1, n.value.$el).focus();
2261
- },
2262
- onKeydownLeft: () => {
2263
- C.value[B.value.label].$el.focus();
2264
- }
2265
- };
2266
- }
2267
- });
2268
- const na = { class: "b-all-filters-modal" }, oa = {
2269
- key: 0,
2270
- class: "b-all-filters-modal__empty-search-message"
2271
- }, sa = {
2272
- key: 1,
2273
- class: "b-all-filters-modal__filters-section"
2274
- }, ia = ["aria-labelledby"], ra = {
2275
- key: 2,
2276
- class: "b-all-filters-modal__filters-section"
2277
- }, ua = ["aria-labelledby"], da = { class: "b-all-filters-modal__selected-filter-text" }, ca = { class: "b-all-filters-modal__selected-filter-component" }, ba = { class: "b-all-filters-modal__clear-button" };
2278
- function fa(e, l, t, a, u, r) {
2279
- const o = S("sliders-icon"), s = S("filter-bar-button"), n = S("bento-search-bar"), d = S("bento-typography"), $ = S("all-filters-modal-button"), F = S("bento-button"), C = S("bento-modal");
2280
- return p(), K("div", na, [
2281
- A(s, {
2282
- "is-filter-open": e.isModalOpen,
2283
- "applied-filters-count": e.numberOfActiveFilters,
2284
- onClick: e.onClickAllFiltersModal
2285
- }, {
2286
- iconLeft: y(() => [
2287
- A(o, { "aria-hidden": "true" })
2288
- ]),
2289
- default: y(() => [
2290
- q(N(e.$t("allFilters")) + " ", 1)
2291
- ]),
2292
- _: 1
2293
- }, 8, ["is-filter-open", "applied-filters-count", "onClick"]),
2294
- A(C, {
2295
- class: "'b-all-filters-modal__modal'",
2296
- "is-open": e.isModalOpen,
2297
- "with-column-layout": !0,
2298
- size: "large",
2299
- actions: e.modalActions,
2300
- "is-dismissible": !1,
2301
- "hide-close-button": "",
2302
- onCloseModal: e.cancel
2303
- }, {
2304
- default: y(() => [
2305
- q(N(e.$t("allFilters")), 1)
2306
- ]),
2307
- "content-col-1": y(() => [
2308
- R("div", {
2309
- ref: "allFiltersModalFiltersSection",
2310
- class: "b-all-filters-modal__filters",
2311
- onKeydown: l[1] || (l[1] = ye((...i) => e.onKeydownRight && e.onKeydownRight(...i), ["right"]))
2312
- }, [
2313
- A(n, {
2314
- class: "b-all-filters-modal__search-bar",
2315
- value: e.searchTerm,
2316
- "input-field-aria-label": e.$t("searchBar").toString(),
2317
- onInput: l[0] || (l[0] = (i) => e.searchTerm = i),
2318
- onClear: e.onSearchbarClear
2319
- }, null, 8, ["value", "input-field-aria-label", "onClear"]),
2320
- e.isEmptyResultForSearchFilter ? (p(), K("div", oa, [
2321
- A(d, { el: "span" }, {
2322
- default: y(() => [
2323
- q(N(e.$t("noFiltersMatchThisSearch")), 1)
2324
- ]),
2325
- _: 1
2326
- })
2327
- ])) : Y("", !0),
2328
- e.activeFilters.length ? (p(), K("div", sa, [
2329
- A(d, {
2330
- id: `active-filters-${e.allFiltersModalUniqueId}`,
2331
- class: "b-all-filters-modal__filters-section-title",
2332
- el: "span",
2333
- variant: "caption"
2334
- }, {
2335
- default: y(() => [
2336
- q(N(e.$t("activeFilters")), 1)
2337
- ]),
2338
- _: 1
2339
- }, 8, ["id"]),
2340
- R("ul", {
2341
- class: "b-all-filters-modal__filters-list",
2342
- "aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}`
2343
- }, [
2344
- (p(!0), K(Be, null, de(e.activeFilters, (i) => (p(), K("li", {
2345
- key: `${i.label}-${i.field}`
2346
- }, [
2347
- A($, {
2348
- ref_for: !0,
2349
- ref: (T) => e.allFiltersModalFilterButtons[i.label] = T,
2350
- label: i.label,
2351
- "applied-filters-count": e.getFilterCount(i),
2352
- "is-filter-open": e.selectedFilter.label === i.label,
2353
- onClick: (T) => e.selectFilter(i.label, i.field)
2354
- }, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
2355
- ]))), 128))
2356
- ], 8, ia)
2357
- ])) : Y("", !0),
2358
- e.otherFilters.length ? (p(), K("div", ra, [
2359
- e.activeFilters.length ? (p(), I(d, {
2360
- key: 0,
2361
- id: `other-filters-${e.allFiltersModalUniqueId}`,
2362
- class: "b-all-filters-modal__filters-section-title",
2363
- el: "span",
2364
- variant: "caption"
2365
- }, {
2366
- default: y(() => [
2367
- q(N(e.$t("otherFilters")), 1)
2368
- ]),
2369
- _: 1
2370
- }, 8, ["id"])) : Y("", !0),
2371
- R("ul", {
2372
- class: "b-all-filters-modal__filters-list",
2373
- "aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}`
2374
- }, [
2375
- (p(!0), K(Be, null, de(e.otherFilters, (i) => (p(), K("li", {
2376
- key: `${i.label}-${i.field}`
2377
- }, [
2378
- A($, {
2379
- ref_for: !0,
2380
- ref: (T) => e.allFiltersModalFilterButtons[i.label] = T,
2381
- label: i.label,
2382
- "applied-filters-count": e.getFilterCount(i),
2383
- "is-filter-open": e.selectedFilter.label === i.label,
2384
- onClick: (T) => e.selectFilter(i.label, i.field)
2385
- }, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
2386
- ]))), 128))
2387
- ], 8, ua)
2388
- ])) : Y("", !0)
2389
- ], 544)
2390
- ]),
2391
- "content-col-2": y(() => [
2392
- R("div", {
2393
- class: "b-all-filters-modal__selected-filter-content",
2394
- onKeydown: l[2] || (l[2] = ye((...i) => e.onKeydownLeft && e.onKeydownLeft(...i), ["left"]))
2395
- }, [
2396
- R("div", da, [
2397
- A(d, {
2398
- el: "div",
2399
- variant: "title",
2400
- medium: ""
2401
- }, {
2402
- default: y(() => [
2403
- q(N(e.selectedFilter.label), 1)
2404
- ]),
2405
- _: 1
2406
- }),
2407
- e.selectedFilter.description ? (p(), I(d, {
2408
- key: 0,
2409
- el: "div",
2410
- variant: "body",
2411
- wide: ""
2412
- }, {
2413
- default: y(() => [
2414
- q(N(e.selectedFilter.description), 1)
2415
- ]),
2416
- _: 1
2417
- })) : Y("", !0)
2418
- ]),
2419
- R("div", ca, [
2420
- (p(), I(Re(e.selectedFilter.type), {
2421
- ref: "selectedFilterRef",
2422
- key: e.selectedFilter.field,
2423
- field: e.selectedFilter.field,
2424
- label: e.selectedFilter.label,
2425
- options: e.selectedFilter.options,
2426
- value: e.selectedFilter.value,
2427
- "default-value": e.selectedFilter.defaultValue,
2428
- "only-slot": !0,
2429
- onInput: e.updateFilter
2430
- }, null, 40, ["field", "label", "options", "value", "default-value", "onInput"]))
2431
- ]),
2432
- R("div", ba, [
2433
- A(F, {
2434
- variant: "secondary",
2435
- disabled: !e.isClearButtonEnabled,
2436
- onClick: e.clearFilter
2437
- }, {
2438
- default: y(() => [
2439
- q(N(e.$t("clear")), 1)
2440
- ]),
2441
- _: 1
2442
- }, 8, ["disabled", "onClick"])
2443
- ])
2444
- ], 32)
2445
- ]),
2446
- _: 1
2447
- }, 8, ["is-open", "actions", "onCloseModal"])
2448
- ]);
2449
- }
2450
- const pa = /* @__PURE__ */ G(aa, [["render", fa], ["__scopeId", "data-v-dfa0bb7c"]]), tt = {
2451
- "en-US": {
2452
- clearAll: "Clear filters",
2453
- filtersHaveBeenCleared: "Filters have been cleared.",
2454
- filtersHaveBeenReset: "Filters have been reset.",
2455
- undo: "Undo",
2456
- resetAll: "Reset filters",
2457
- searchBar: "Search bar"
2458
- }
2459
- }, va = J({
2460
- i18n: { messages: tt },
2461
- name: "bento-filter-bar",
2462
- components: {
2463
- AllFiltersModal: pa,
2464
- BentoBooleanFilter: At,
2465
- BentoDateFilter: yt,
2466
- BentoDateRangeFilter: mt,
2467
- BentoRangeFilter: Bt,
2468
- BentoInputFilter: vt,
2469
- BentoSelectFilter: ee,
2470
- BentoSelectAvatarFilter: Ft,
2471
- BentoSelectCountryFilter: St,
2472
- BentoSelectCurrencyFilter: gt,
2473
- BentoSelectPaymentMethodFilter: Ct,
2474
- BentoSelectTagFilter: $t,
2475
- BentoSearchBar: Ve,
2476
- FilterBarButton: He,
2477
- FixedScroller: el,
2478
- RefreshIcon: xt
2479
- },
2480
- props: {
2481
- /**
2482
- * Array of filters based on {@see BentoFilterBarModel}.
2483
- * Each one of the elements in the array correspond to a filter that will
2484
- * be created and rendered in the FilterBar.
2485
- *
2486
- * @example
2487
- * [{
2488
- * field: 'company',
2489
- * label: 'Company',
2490
- * type: FilterType.TEXT,
2491
- * }, {
2492
- * field: 'name',
2493
- * label: 'Name',
2494
- * type: FilterType.TEXT,
2495
- * }]
2496
- */
2497
- config: {
2498
- type: Array,
2499
- default: () => []
2500
- },
2501
- /**
2502
- * Search term useful to filter all the data by text.
2503
- * If the value is non-existant (null or undefined) the search bar won't be enabled.
2504
- */
2505
- searchTerm: {
2506
- type: Ve.props.value.type,
2507
- default: void 0
2508
- },
2509
- /**
2510
- * @deprecated from version 2.0.0. Use the config property instead.
2511
- */
2512
- /**
2513
- * Array of filters based on {@see BentoFilterBarModel}.
2514
- * Each one of the elements in the array correspond to a filter that will
2515
- * be created and rendered in the FilterBar.
2516
- *
2517
- * Can be used with v-model or independently with the @input event.
2518
- *
2519
- * @example
2520
- * [{
2521
- * field: 'company',
2522
- * label: 'Company',
2523
- * value: '200',
2524
- * type: FilterType.TEXT,
2525
- * }, {
2526
- * field: 'name',
2527
- * label: 'Name',
2528
- * value: null,
2529
- * type: FilterType.TEXT,
2530
- * }]
2531
- */
2532
- value: {
2533
- type: Array,
2534
- default: () => []
2535
- },
2536
- /**
2537
- * An array of the values for each filter in the filter bar.
2538
- * {@see BentoFilterValues}
2539
- *
2540
- * @example
2541
- * [{
2542
- * field: 'company',
2543
- * value: '200',
2544
- * }, {
2545
- * field: 'name',
2546
- * value: 'some text',
2547
- * }]
2548
- */
2549
- filterValues: {
2550
- type: Array,
2551
- default: () => []
2552
- }
2553
- },
2554
- emits: [
2555
- Ae.INPUT,
2556
- Ae.UPDATE_FILTER_VALUES,
2557
- ge.CLEAR,
2558
- ge.INPUT,
2559
- ge.UPDATE
2560
- ],
2561
- setup(e, { emit: l }) {
2562
- const { t } = be({ messages: tt }), a = c(
2563
- () => {
2564
- var b, g;
2565
- return (g = ((b = e.config) == null ? void 0 : b.length) > 0 ? e.config : e.value) == null ? void 0 : g.map((h) => {
2566
- var D;
2567
- let P = (D = e.filterValues.find(({ field: Z }) => Z === h.field)) == null ? void 0 : D.value;
2568
- return P === void 0 && (P = (h == null ? void 0 : h.value) === void 0 && (h == null ? void 0 : h.defaultValue) !== void 0 ? h == null ? void 0 : h.defaultValue : h == null ? void 0 : h.value), { ...h, value: P !== void 0 ? P : h == null ? void 0 : h.value };
2569
- });
2570
- }
2571
- ), { addToast: u } = Ot(), r = c(() => t("searchBar")), o = c(() => a.value.some(
2572
- ({ visible: g }) => g != null
2573
- ) ? a.value.some(({ visible: g }) => !g) : !1), s = c(
2574
- () => a.value.filter(({ defaultValue: b }) => b !== void 0)
2575
- ), n = c(() => a.value.some(
2576
- ({ visible: g }) => g != null
2577
- ) ? a.value.filter(
2578
- ({ defaultValue: g, visible: h }) => g === void 0 && h
2579
- ) : a.value.filter(({ defaultValue: g }) => g === void 0)), d = c(() => e.searchTerm != null), $ = c(
2580
- () => a.value.filter(({ defaultValue: b }) => b == null).some(({ value: b }) => b != null)
2581
- ), F = c(() => s.value.length === 0 && $.value), C = c(() => s.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: g }) => g !== void 0 || g !== null).every(({ value: g, defaultValue: h }) => JSON.stringify(g) === JSON.stringify(h)) || $.value), i = (b) => {
2582
- l(Ae.INPUT, b), l(
2583
- Ae.UPDATE_FILTER_VALUES,
2584
- b == null ? void 0 : b.filter(({ value: g }) => g !== null || g !== void 0).map(({ field: g, value: h }) => ({ field: g, value: h }))
2585
- );
2586
- };
2587
- return {
2588
- // Values
2589
- hasHiddenFilters: o,
2590
- isClearAllVisible: F,
2591
- isSearchBarEnabled: d,
2592
- searchBarAriaLabel: r,
2593
- persistentFilters: s,
2594
- regularFilters: n,
2595
- isResetAllVisible: C,
2596
- valueAndFilterValuesPropsMerged: a,
2597
- // Events
2598
- updateAllFilters: i,
2599
- updateFilterHandler: (b) => {
2600
- const g = a.value.findIndex(
2601
- (P) => P.field === b.field
2602
- ), h = a.value.slice();
2603
- h[g].value = b.value, i(h);
2604
- },
2605
- clearAllFilters: () => {
2606
- const b = a.value.slice(), g = a.value.map(({ value: h, ...P }) => ({
2607
- ...P,
2608
- value: void 0
2609
- }));
2610
- u({
2611
- text: t("filtersHaveBeenCleared"),
2612
- action: {
2613
- handler: () => i(b),
2614
- text: t("undo")
2615
- }
2616
- }), i(g);
2617
- },
2618
- onSearchbarClear: () => {
2619
- l(ge.CLEAR);
2620
- },
2621
- onSearchbarInput: (b) => {
2622
- l(ge.INPUT, b), l(ge.UPDATE, b);
2623
- },
2624
- resetAllFilters: () => {
2625
- const b = a.value.slice(), g = a.value.map(({ defaultValue: h, ...P }) => ({
2626
- ...P,
2627
- defaultValue: h,
2628
- value: h
2629
- }));
2630
- u({
2631
- text: t("filtersHaveBeenReset"),
2632
- action: {
2633
- handler: () => i(b),
2634
- text: t("undo")
2635
- }
2636
- }), i(g);
2637
- }
2638
- };
2639
- }
2640
- });
2641
- const ya = { class: "b-filter-bar" }, ma = { class: "b-filter-bar__container" }, _a = {
2642
- key: 0,
2643
- class: "b-filter-bar__before-filters"
2644
- }, ha = { class: "b-filter-bar__filters-container" }, Fa = { class: "b-filter-bar__filters" }, ga = { class: "b-filter-bar__scroller-content" }, Sa = {
2645
- key: 0,
2646
- class: "b-filter-bar__actions"
2647
- };
2648
- function Ca(e, l, t, a, u, r) {
2649
- const o = S("bento-search-bar"), s = S("all-filters-modal"), n = S("refresh-icon"), d = S("filter-bar-button"), $ = S("fixed-scroller");
2650
- return p(), K("div", ya, [
2651
- R("div", ma, [
2652
- e.isSearchBarEnabled || e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? (p(), K("div", _a, [
2653
- e.isSearchBarEnabled ? (p(), I(o, {
2654
- key: 0,
2655
- class: "b-filter-bar__search-bar",
2656
- "input-field-aria-label": e.searchBarAriaLabel,
2657
- value: e.searchTerm,
2658
- condensed: "",
2659
- onInput: e.onSearchbarInput,
2660
- onClear: e.onSearchbarClear
2661
- }, null, 8, ["input-field-aria-label", "value", "onInput", "onClear"])) : Y("", !0),
2662
- e.hasHiddenFilters ? (p(), I(s, {
2663
- key: 1,
2664
- class: "b-filter-bar__all-filters-modal",
2665
- value: e.valueAndFilterValuesPropsMerged,
2666
- onInput: e.updateAllFilters
2667
- }, null, 8, ["value", "onInput"])) : Y("", !0),
2668
- Te(A(d, {
2669
- class: "b-filter-bar__clear-all",
2670
- onClick: e.clearAllFilters
2671
- }, {
2672
- iconLeft: y(() => [
2673
- A(n, { "aria-hidden": "true" })
2674
- ]),
2675
- default: y(() => [
2676
- q(N(e.$t("clearAll")) + " ", 1)
2677
- ]),
2678
- _: 1
2679
- }, 8, ["onClick"]), [
2680
- [Ee, e.isClearAllVisible]
2681
- ]),
2682
- Te(A(d, {
2683
- class: "b-filter-bar__reset-all",
2684
- onClick: e.resetAllFilters
2685
- }, {
2686
- iconLeft: y(() => [
2687
- A(n, { "aria-hidden": "true" })
2688
- ]),
2689
- default: y(() => [
2690
- q(N(e.$t("resetAll")) + " ", 1)
2691
- ]),
2692
- _: 1
2693
- }, 8, ["onClick"]), [
2694
- [Ee, e.isResetAllVisible]
2695
- ])
2696
- ])) : Y("", !0),
2697
- R("div", ha, [
2698
- R("div", Fa, [
2699
- A($, {
2700
- class: "b-filter-bar__fixed-scroller",
2701
- condensed: ""
2702
- }, {
2703
- default: y(() => [
2704
- R("div", ga, [
2705
- e.isSearchBarEnabled ? (p(), I(o, {
2706
- key: 0,
2707
- class: "b-filter-bar__search-bar",
2708
- "input-field-aria-label": e.searchBarAriaLabel,
2709
- value: e.searchTerm,
2710
- condensed: "",
2711
- onInput: e.onSearchbarInput,
2712
- onClear: e.onSearchbarClear
2713
- }, null, 8, ["input-field-aria-label", "value", "onInput", "onClear"])) : Y("", !0),
2714
- e.persistentFilters.length ? (p(!0), K(Be, { key: 1 }, de(e.persistentFilters, (F) => (p(), I(Re(F.type), {
2715
- key: F.field,
2716
- field: F.field,
2717
- label: F.label,
2718
- options: F.options,
2719
- value: F.value,
2720
- "default-value": F.defaultValue,
2721
- onUpdate: e.updateFilterHandler
2722
- }, null, 40, ["field", "label", "options", "value", "default-value", "onUpdate"]))), 128)) : Y("", !0),
2723
- (p(!0), K(Be, null, de(e.regularFilters, (F) => (p(), I(Re(F.type), {
2724
- key: F.field,
2725
- field: F.field,
2726
- label: F.label,
2727
- options: F.options,
2728
- value: F.value,
2729
- onUpdate: e.updateFilterHandler
2730
- }, null, 40, ["field", "label", "options", "value", "onUpdate"]))), 128))
2731
- ])
2732
- ]),
2733
- _: 1
2734
- })
2735
- ]),
2736
- e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? (p(), K("div", Sa, [
2737
- e.hasHiddenFilters ? (p(), I(s, {
2738
- key: 0,
2739
- class: "b-filter-bar__all-filters-modal",
2740
- value: e.valueAndFilterValuesPropsMerged,
2741
- onInput: e.updateAllFilters
2742
- }, null, 8, ["value", "onInput"])) : Y("", !0),
2743
- Te(A(d, {
2744
- class: "b-filter-bar__clear-all",
2745
- onClick: e.clearAllFilters
2746
- }, {
2747
- iconLeft: y(() => [
2748
- A(n, { "aria-hidden": "true" })
2749
- ]),
2750
- default: y(() => [
2751
- q(N(e.$t("clearAll")) + " ", 1)
2752
- ]),
2753
- _: 1
2754
- }, 8, ["onClick"]), [
2755
- [Ee, e.isClearAllVisible]
2756
- ]),
2757
- Te(A(d, {
2758
- class: "b-filter-bar__reset-all",
2759
- onClick: e.resetAllFilters
2760
- }, {
2761
- iconLeft: y(() => [
2762
- A(n, { "aria-hidden": "true" })
2763
- ]),
2764
- default: y(() => [
2765
- q(N(e.$t("resetAll")) + " ", 1)
2766
- ]),
2767
- _: 1
2768
- }, 8, ["onClick"]), [
2769
- [Ee, e.isResetAllVisible]
2770
- ])
2771
- ])) : Y("", !0)
2772
- ])
2773
- ])
2774
- ]);
2775
- }
2776
- const un = /* @__PURE__ */ G(va, [["render", Ca], ["__scopeId", "data-v-7ae4cbf4"]]);
1
+ import { B as r, b as a, a as B, c as n } from "./chunks/filter-bar.U2ZcPmSU.js";
2777
2
  export {
2778
- un as BentoFilterBar,
2779
- Ae as BentoFilterBarEvent,
2780
- m as BentoFilterEvent,
2781
- x as BentoFilterItemType
3
+ r as BentoFilterBar,
4
+ a as BentoFilterBarEvent,
5
+ B as BentoFilterEvent,
6
+ n as BentoFilterItemType
2782
7
  };
2783
8
  //# sourceMappingURL=filter-bar.js.map