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