@adyen/bento-vue3 1.83.0 → 1.84.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 (413) hide show
  1. package/dist/@types/index.d.ts +12481 -12319
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions-with-menu.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/country.css +1 -1
  22. package/dist/assets/currency.css +1 -1
  23. package/dist/assets/dashboard-section.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/date.css +1 -1
  30. package/dist/assets/dialog-page.css +1 -1
  31. package/dist/assets/divider.css +1 -1
  32. package/dist/assets/dropdown-default-textbox.css +1 -1
  33. package/dist/assets/dropdown-tag.css +1 -1
  34. package/dist/assets/dropdown.css +1 -1
  35. package/dist/assets/empty-state.css +1 -1
  36. package/dist/assets/field-label.css +1 -1
  37. package/dist/assets/file-uploader.css +1 -1
  38. package/dist/assets/filter-bar.css +1 -1
  39. package/dist/assets/fixed-scroller.css +1 -1
  40. package/dist/assets/footer-actions.css +1 -1
  41. package/dist/assets/form-layout-title.css +1 -1
  42. package/dist/assets/grid-layout.css +1 -1
  43. package/dist/assets/header-meta.css +1 -1
  44. package/dist/assets/header-with-views.css +1 -1
  45. package/dist/assets/header.css +1 -1
  46. package/dist/assets/index.css +1 -1
  47. package/dist/assets/info-icon.css +1 -1
  48. package/dist/assets/input-field-password.css +1 -1
  49. package/dist/assets/input-field.css +1 -1
  50. package/dist/assets/inspector.css +1 -1
  51. package/dist/assets/layout-row.css +1 -1
  52. package/dist/assets/link.css +1 -1
  53. package/dist/assets/listbox-option-tag.css +1 -1
  54. package/dist/assets/loading-indicator.css +1 -1
  55. package/dist/assets/modal-fullscreen.css +1 -1
  56. package/dist/assets/pagination.css +1 -1
  57. package/dist/assets/payment-method.css +1 -1
  58. package/dist/assets/popper-container.css +1 -1
  59. package/dist/assets/promo-banner.css +1 -1
  60. package/dist/assets/radio-group.css +1 -1
  61. package/dist/assets/radio-input.css +1 -1
  62. package/dist/assets/rich-text-editor.css +1 -1
  63. package/dist/assets/secondary-nav.css +1 -1
  64. package/dist/assets/segmented-control.css +1 -1
  65. package/dist/assets/selection-card-group.css +1 -1
  66. package/dist/assets/sidepanel.css +1 -1
  67. package/dist/assets/status.css +1 -1
  68. package/dist/assets/step.css +1 -1
  69. package/dist/assets/structured-list-item.css +1 -1
  70. package/dist/assets/summary-grid.css +1 -1
  71. package/dist/assets/tab.css +1 -1
  72. package/dist/assets/tag.css +1 -1
  73. package/dist/assets/textarea.css +1 -1
  74. package/dist/assets/timeline-item.css +1 -1
  75. package/dist/assets/toast.css +1 -1
  76. package/dist/assets/toggle.css +1 -1
  77. package/dist/assets/tooltip.css +1 -1
  78. package/dist/assets/tutorial.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/button.js +1 -1
  81. package/dist/card.js +1 -1
  82. package/dist/checkbox.js +2 -2
  83. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  84. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  85. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  86. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  87. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  88. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  89. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  90. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  91. package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
  92. package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
  93. package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
  94. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  95. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  96. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  97. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  98. package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
  99. package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
  100. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  101. package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
  102. package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
  103. package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
  104. package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
  105. package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
  106. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
  107. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
  108. package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
  109. package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
  110. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  111. package/dist/chunks/button.CSp48LJt.js.map +1 -1
  112. package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
  113. package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
  114. package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
  115. package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
  116. package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
  117. package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
  118. package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
  119. package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
  120. package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
  121. package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
  122. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
  123. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
  124. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
  125. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
  126. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
  127. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  128. package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
  129. package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
  130. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  131. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  132. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  133. package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
  134. package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
  135. package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
  136. package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
  137. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  138. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  139. package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
  140. package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
  141. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
  142. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
  143. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
  144. package/dist/chunks/cross.B92GxFTY.js.map +1 -1
  145. package/dist/chunks/currency.DijmAkAB.js.map +1 -1
  146. package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
  147. package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
  148. package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
  149. package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
  150. package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
  151. package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
  152. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  153. package/dist/chunks/{data-grid.ChGEI-jV.js → data-grid.BBkF9ojy.js} +1289 -1207
  154. package/dist/chunks/{data-grid.ChGEI-jV.js.map → data-grid.BBkF9ojy.js.map} +1 -1
  155. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  156. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  157. package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
  158. package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
  159. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  160. package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
  161. package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
  162. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  163. package/dist/chunks/date.CL55prL0.js.map +1 -1
  164. package/dist/chunks/de.DvtL0g75.js +478 -0
  165. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  166. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  167. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  168. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  169. package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
  170. package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
  171. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  172. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  173. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  174. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
  175. package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
  176. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
  177. package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
  178. package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
  179. package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
  180. package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
  181. package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
  182. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  183. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  184. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  185. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  186. package/dist/chunks/es.bz0mzkMq.js +374 -0
  187. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  188. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  189. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  190. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  191. package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
  192. package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
  193. package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
  194. package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
  195. package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
  196. package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
  197. package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
  198. package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
  199. package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
  200. package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -1
  201. package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
  202. package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
  203. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  204. package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
  205. package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
  206. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  207. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  208. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  209. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  210. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  211. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  212. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  213. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  214. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  215. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
  216. package/dist/chunks/header-meta.PysBmkSU.js +263 -0
  217. package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
  218. package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
  219. package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
  220. package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
  221. package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
  222. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  223. package/dist/chunks/index.E60QniEu.js.map +1 -1
  224. package/dist/chunks/index.pdBj0KQU.js.map +1 -1
  225. package/dist/chunks/info.BKwey1HA.js.map +1 -1
  226. package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
  227. package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
  228. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
  229. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
  230. package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
  231. package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
  232. package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
  233. package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
  234. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  235. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  236. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  237. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  238. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  239. package/dist/chunks/it.Oaj6BklL.js +392 -0
  240. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  241. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  242. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  243. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  244. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  245. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  246. package/dist/chunks/layout-row.CX8kV_w0.js.map +1 -1
  247. package/dist/chunks/link.BLCQlEZU.js.map +1 -1
  248. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
  249. package/dist/chunks/match.CMBZxEs9.js +302 -0
  250. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  251. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  252. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
  253. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
  254. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
  255. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
  256. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  257. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  258. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  259. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  260. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  261. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  262. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  263. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  264. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  265. package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
  266. package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
  267. package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
  268. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  269. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  270. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  271. package/dist/chunks/popover.types.DgfeurkF.js.map +1 -1
  272. package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -1
  273. package/dist/chunks/promo-banner.BIRH5sVX.js.map +1 -1
  274. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  275. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  276. package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
  277. package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
  278. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
  279. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  280. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  281. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
  282. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  283. package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
  284. package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
  285. package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
  286. package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
  287. package/dist/chunks/search.PczW-onY.js.map +1 -1
  288. package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
  289. package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
  290. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  291. package/dist/chunks/{selection-card-group.DYklb2t2.js → selection-card-group.DNPlEqEq.js} +17 -17
  292. package/dist/chunks/{selection-card-group.DYklb2t2.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
  293. package/dist/chunks/show.CT4Augxb.js.map +1 -1
  294. package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
  295. package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
  296. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  297. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  298. package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
  299. package/dist/chunks/step.DpgnDx29.js +271 -0
  300. package/dist/chunks/step.DpgnDx29.js.map +1 -0
  301. package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
  302. package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
  303. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  304. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  305. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  306. package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
  307. package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
  308. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  309. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  310. package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
  311. package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
  312. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  313. package/dist/chunks/tag.DFJIvNLs.js.map +1 -1
  314. package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
  315. package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
  316. package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
  317. package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
  318. package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
  319. package/dist/chunks/tooltip.Nn3o8_vO.js.map +1 -1
  320. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  321. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +26 -26
  322. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
  323. package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
  324. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  325. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  326. package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
  327. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
  328. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
  329. package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
  330. package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
  331. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  332. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  333. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  334. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  335. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  336. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
  337. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  338. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  339. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  340. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  341. package/dist/code-snippet.js +1 -1
  342. package/dist/country.js +2 -2
  343. package/dist/dashboard-template.js +1 -1
  344. package/dist/dashed-underline.js +1 -1
  345. package/dist/data-grid-template.js +1 -1
  346. package/dist/data-grid.js +1 -1
  347. package/dist/date-picker.js +2 -2
  348. package/dist/date-range-picker.js +2 -2
  349. package/dist/dropdown.js +3 -3
  350. package/dist/file-uploader.js +1 -1
  351. package/dist/filter-bar.js +1 -1
  352. package/dist/form-layout.js +1 -1
  353. package/dist/header-with-views.js +1 -1
  354. package/dist/header.js +1 -1
  355. package/dist/index.js +248 -249
  356. package/dist/index.js.map +1 -1
  357. package/dist/input-field-password.js +1 -1
  358. package/dist/input-field-phone-number.js +1 -1
  359. package/dist/input-field.js +1 -1
  360. package/dist/inspector.js +1 -1
  361. package/dist/internal.js +10 -10
  362. package/dist/menu.js +1 -1
  363. package/dist/modal-fullscreen.js +1 -1
  364. package/dist/modal.js +2 -2
  365. package/dist/pagination.js +1 -1
  366. package/dist/popover.js +1 -1
  367. package/dist/radio-group.js +1 -1
  368. package/dist/rich-text-editor.js +1 -1
  369. package/dist/search-bar.js +2 -2
  370. package/dist/secondary-nav.js +1 -1
  371. package/dist/selection-card.js +1 -1
  372. package/dist/sidepanel.js +1 -1
  373. package/dist/stepper.js +1 -1
  374. package/dist/structured-list.js +1 -1
  375. package/dist/styles/bento-dark.css +0 -1829
  376. package/dist/styles/bento-light.css +0 -1829
  377. package/dist/styles/bento.css +0 -1829
  378. package/dist/styles/legacy.css +0 -1829
  379. package/dist/styles/styleguide.css +0 -1829
  380. package/dist/summary-grid.js +1 -1
  381. package/dist/tabs.js +1 -1
  382. package/dist/textarea.js +1 -1
  383. package/dist/timeline.js +1 -1
  384. package/dist/tutorial.js +1 -1
  385. package/dist/use-form-v4.js.map +1 -1
  386. package/dist/web-types.json +1 -1
  387. package/package.json +8 -8
  388. package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
  389. package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
  390. package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
  391. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
  392. package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
  393. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  394. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  395. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  396. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  397. package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
  398. package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
  399. package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
  400. package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
  401. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  402. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  403. package/dist/chunks/es6.MoTTyETW.js +0 -12
  404. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  405. package/dist/chunks/filter-bar.DnfdHnSL.js +0 -3211
  406. package/dist/chunks/filter-bar.DnfdHnSL.js.map +0 -1
  407. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  408. package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
  409. package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
  410. package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
  411. package/dist/chunks/step._8f9kwI5.js +0 -267
  412. package/dist/chunks/step._8f9kwI5.js.map +0 -1
  413. package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
@@ -1,1109 +0,0 @@
1
- import { reactive as ke, defineComponent as lt, useSlots as ht, ref as U, computed as b, onMounted as ot, createElementBlock as Se, openBlock as F, createElementVNode as ae, createCommentVNode as A, normalizeClass as _e, renderSlot as He, createBlock as V, unref as D, createVNode as z, withCtx as P, createTextVNode as ie, toRaw as Ce, watch as Me, toRef as Qe, withDirectives as St, withKeys as Ge, toDisplayString as _t, createSlots as Mt } from "vue";
2
- import { g as kt } from "./index.E60QniEu.js";
3
- import { B as Ot } from "./divider.Dho4_hQ7.js";
4
- import { h as wt, B as Ft } from "./button-actions.O0cnu1_g.js";
5
- import { B as Ue, d as We } from "./typography.6Oo5TOMP.js";
6
- import { D as Ct } from "./dropdown-default-textbox.DFtFMu5G.js";
7
- import { e as L, a as Ke, g as Ae } from "./differenceInMonths.Cab3nOsb.js";
8
- import { g as ve } from "./generate-uid.NJ8tVoha.js";
9
- import { u as Ne } from "./index.pdBj0KQU.js";
10
- import { e as N, g as it, h as Pe, i as x, j as Ut, k as Ve, l as At, s as ze, m as Nt, n as pe, o as Je, b as K, u as Bt, f as me } from "./calendar.NVmCgJrJ.js";
11
- import { f as Xe, v as xt, D as M } from "./date-format.B8RU7D42.js";
12
- import { t as J, c as qt, n as $t } from "./getTimezoneOffsetInMilliseconds.B7sxiukN.js";
13
- import { u as Yt } from "./use-form-layout-loading.CWbjZiwP.js";
14
- import { B as Lt } from "./directive.Cbdox5VL.js";
15
- import { u as jt } from "./form-field.D_2g7vaP.js";
16
- import { B as Ee } from "./input-field.DzNDGqBP.js";
17
- import { B as Ht } from "./dropdown.CtP9keJ4.js";
18
- import { B as Qt } from "./segmented-control.CFlHfj3N.js";
19
- import { d as Ie } from "./debounce.DUTu11PS.js";
20
- import { u as Gt } from "./use-has-slot.B7eQSabc.js";
21
- import { c as Wt } from "./constructNow.BhymNmy5.js";
22
- import { _ as ut } from "./_plugin-vue_export-helper.CHgC5LLL.js";
23
- import { F as Kt, E as Ze } from "./field-label.CfizwLcQ.js";
24
- import { B as Pt } from "./button-actions.types.BptAXjD8.js";
25
- import "../assets/date-range-picker.css";
26
- function ue(a) {
27
- if (a == null)
28
- return N(/* @__PURE__ */ new Date());
29
- const [o, u, s] = a.split("-").map((e) => parseInt(e, 10));
30
- return new Date(o, u - 1, s);
31
- }
32
- function dt(a, o, u) {
33
- return it(a, o * 3, u);
34
- }
35
- function Vt(a, o, u) {
36
- return dt(a, -1, u);
37
- }
38
- const zt = ({
39
- firstDayOfWeek: a,
40
- min: o,
41
- max: u
42
- }) => ({ getGranularCalendarLimits: (e) => {
43
- if (!o && !u)
44
- return { min: null, max: null };
45
- let d = o ? N(o) : null, f = u ? L(u) : null;
46
- if ((e == null ? void 0 : e.type) === "weekly") {
47
- if (e.earliest)
48
- d = N(e.earliest);
49
- else if (d) {
50
- const y = Pe(d, { weekStartsOn: a });
51
- x(d, y) || (d = N(Ut(Ve(d, { weekStartsOn: a }), 1)));
52
- }
53
- if (e.latest)
54
- f = L(e.latest);
55
- else if (f) {
56
- const y = Ve(f, { weekStartsOn: a });
57
- x(f, y) || (f = L(At(Pe(f, { weekStartsOn: a }), 1)));
58
- }
59
- }
60
- if ((e == null ? void 0 : e.type) === "monthly") {
61
- if (e.earliest)
62
- d = N(e.earliest);
63
- else if (d) {
64
- const y = ze(d);
65
- x(d, y) || (d = ze(it(d, 1)));
66
- }
67
- if (e.latest)
68
- f = L(e.latest);
69
- else if (f) {
70
- const y = Ke(f);
71
- x(f, y) || (f = Ke(Nt(f, 1)));
72
- }
73
- }
74
- if ((e == null ? void 0 : e.type) === "quarterly") {
75
- if (e.earliest)
76
- d = pe(e.earliest);
77
- else if (d) {
78
- const y = pe(d);
79
- x(d, y) || (d = pe(dt(d, 1)));
80
- }
81
- if (e.latest)
82
- f = L(e.latest);
83
- else if (f) {
84
- const y = Je(f);
85
- x(f, y) || (f = Je(Vt(f)));
86
- }
87
- }
88
- return { min: d, max: f };
89
- } }), Jt = () => {
90
- const a = ke({
91
- daily: null,
92
- weekly: null,
93
- monthly: null,
94
- quarterly: null
95
- });
96
- return {
97
- savedRanges: a,
98
- saveRange: (s, e) => {
99
- a[s] = e;
100
- },
101
- resetSavedRanges: () => {
102
- a.daily = null, a.weekly = null, a.monthly = null, a.quarterly = null;
103
- }
104
- };
105
- };
106
- var g = /* @__PURE__ */ ((a) => (a.CUSTOM_RANGE = "custom-range", a.INPUT = "input", a.ERROR = "error", a.FORM_DATE = "form-date", a.START_DATE_SELECTED = "start-date-selected", a))(g || {});
107
- const Xt = /[\d]/, Zt = /^\d{2}$/, ea = /^\d{2}:\d{2}$/, ta = (a) => {
108
- const { selectionStart: o } = a.target, u = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], s = Xt.test(a.key) || u.includes(a.key), e = [1, 2, 4, 5].includes(o) && a.key === ":";
109
- !s && !e && a.preventDefault();
110
- }, et = (a) => {
111
- if (!a)
112
- return a;
113
- let o = a;
114
- if (o.length === 1 && parseInt(a, 10) > 2)
115
- return `0${o}:`;
116
- const [u, s] = o.slice(-2);
117
- return [2, 5].includes(o.length) && s === ":" && (o = `${o.slice(0, o.length - 2)}0${u}`), (Zt.test(o) || ea.test(o)) && (o += ":"), o;
118
- };
119
- function aa(a, o, u) {
120
- const s = J(a, u == null ? void 0 : u.in);
121
- return s.setHours(o), s;
122
- }
123
- function na(a, o, u) {
124
- const s = J(a, u == null ? void 0 : u.in);
125
- return s.setMinutes(o), s;
126
- }
127
- function ra(a, o, u) {
128
- const s = J(a, u == null ? void 0 : u.in);
129
- return s.setSeconds(o), s;
130
- }
131
- function tt(a, o) {
132
- const u = J(a, o == null ? void 0 : o.in);
133
- return u.setMilliseconds(0), u;
134
- }
135
- function at(a, o) {
136
- return +tt(a) == +tt(o);
137
- }
138
- function he(a, o) {
139
- return +J(a) == +J(o);
140
- }
141
- function sa(a, o) {
142
- return x(
143
- qt(a, a),
144
- Wt(a)
145
- );
146
- }
147
- function nt(a, o, u) {
148
- const s = J(a, u == null ? void 0 : u.in);
149
- return s.setMilliseconds(o), s;
150
- }
151
- const ct = {
152
- "en-US": {
153
- customRange: "Custom range",
154
- daily: "Daily",
155
- dateFrom: "Date from",
156
- dateTo: "Date to",
157
- lastMonth: "Last month",
158
- lastSevenDays: "Last 7 days",
159
- lastThreeMonths: "Last three months",
160
- monthly: "Monthly",
161
- quarterly: "Quarterly",
162
- timeFrom: "Time from",
163
- timeTo: "Time to",
164
- weekly: "Weekly"
165
- },
166
- "ja-JP": {
167
- customRange: "カスタム範囲を選択",
168
- daily: "毎日",
169
- lastMonth: "先月",
170
- lastSevenDays: "過去7日間",
171
- monthly: "毎月",
172
- weekly: "毎週"
173
- },
174
- "pt-BR": {
175
- customRange: "Selecione um intervalo personalizado",
176
- daily: "Diário",
177
- lastMonth: "Último mês",
178
- lastSevenDays: "Últimos 7 dias",
179
- monthly: "Mensal",
180
- weekly: "Semanal"
181
- }
182
- }, la = { class: "b-date-range-picker-calendar" }, oa = { class: "b-date-range-picker-calendar__form" }, ia = { key: 0 }, ua = {
183
- key: 0,
184
- class: "b-date-range-picker-calendar__calendars-container",
185
- "data-testid": "date-range-picker-calendar-calendar-container"
186
- }, da = {
187
- name: "date-range-picker-calendar",
188
- i18n: { messages: ct }
189
- }, ca = /* @__PURE__ */ lt({
190
- ...da,
191
- props: {
192
- /**
193
- * Allows user to enter time values in the form
194
- */
195
- allowTimeInput: { type: Boolean, default: !1 },
196
- /**
197
- * Ranges form persistance data
198
- */
199
- dateFormData: {
200
- type: Object,
201
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
202
- },
203
- /**
204
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
205
- */
206
- firstDayOfWeek: K.props.firstDayOfWeek,
207
- /**
208
- * A list of available granularities.
209
- * If present, the date picker will display a segmented control to change granularity.
210
- */
211
- granularities: {
212
- type: Array,
213
- default: null
214
- },
215
- /**
216
- * Indicate if a date should be disabled or not
217
- */
218
- isDateDisabled: K.props.isDateDisabled,
219
- /**
220
- * Set a maximum number of dates to be selectable by the range.
221
- */
222
- maxRange: K.props.maxRange,
223
- /**
224
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
225
- */
226
- min: K.props.min,
227
- /**
228
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
229
- */
230
- max: K.props.max,
231
- /**
232
- * Number of months rendered on pane
233
- */
234
- numberOfMonths: {
235
- type: K.props.numberOfMonths.type,
236
- default: K.props.numberOfMonths.default,
237
- validator: (a) => a >= 0
238
- },
239
- /**
240
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
241
- */
242
- showEndDateOnOpen: { type: Boolean, default: !1 },
243
- /**
244
- * Enables the custom range selector.
245
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
246
- * `label` - label of custom range item.
247
- * `value` - a unique key of the custom range item.
248
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
249
- */
250
- quickSelectRanges: {
251
- type: Array,
252
- default: void 0
253
- },
254
- /**
255
- * Selected date
256
- */
257
- value: { type: Object, default: void 0 },
258
- /**
259
- * The type of calendar to display. Defaults to showing days.
260
- */
261
- variant: K.props.variant
262
- },
263
- emits: [
264
- g.CUSTOM_RANGE,
265
- g.INPUT,
266
- g.ERROR,
267
- g.FORM_DATE,
268
- g.START_DATE_SELECTED
269
- ],
270
- setup(a, { emit: o }) {
271
- var $e, Ye, Le, je;
272
- const s = "customRange", e = a, d = o, f = ht(), y = Gt(f), { locale: X, t: C } = Ne({ messages: ct }), k = Ae(), h = U({}), De = b(() => e.variant === "month" ? "monthly" : "daily"), fe = b(() => e.numberOfMonths === 0), n = ke({
273
- startDate: ($e = e.value) == null ? void 0 : $e.startDate,
274
- endDate: (Ye = e.value) == null ? void 0 : Ye.endDate,
275
- range: (Le = e.value) == null ? void 0 : Le.range,
276
- ...e.granularities ? {
277
- granularity: ((je = e.value) == null ? void 0 : je.granularity) || De.value
278
- } : {}
279
- });
280
- function R(t) {
281
- return t ? new Date(
282
- t.getUTCFullYear(),
283
- t.getUTCMonth(),
284
- t.getUTCDate(),
285
- t.getUTCHours(),
286
- t.getUTCMinutes(),
287
- t.getUTCSeconds()
288
- ) : null;
289
- }
290
- const v = b(() => {
291
- var t, r;
292
- return (
293
- // eslint-disable-next-line consistent-return
294
- ((r = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: m, data: c }) => {
295
- var I;
296
- if (!c.endDate) {
297
- if (c.isRelativeToNow) {
298
- const w = (I = h.value) == null ? void 0 : I[m];
299
- return w ? he(
300
- R(w.startDate),
301
- R(n.startDate)
302
- ) && he(
303
- R(w.endDate),
304
- R(n.endDate)
305
- ) : (
306
- // If not stored calculated dates, fall back to comparing the quick select item's value
307
- // with the internal range's stored range identifier.
308
- m === n.range
309
- );
310
- }
311
- return he(R(c.startDate), R(n.startDate)) && he(
312
- R(n.endDate),
313
- R(L(n.endDate))
314
- ) && sa(R(n.endDate)) && (e.granularities ? c.granularity === n.granularity : !0);
315
- }
316
- if (e.allowTimeInput)
317
- return at(R(c.startDate), R(n.startDate)) && at(R(c.endDate), R(n.endDate)) && (e.granularities ? c.granularity === n.granularity : !0);
318
- if (c.endDate)
319
- return x(c.startDate, n.startDate) && x(c.endDate, n.endDate) && (e.granularities ? c.granularity === n.granularity : !0);
320
- })) == null ? void 0 : r.value) ?? s
321
- );
322
- }), Z = b(() => ({
323
- "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
324
- })), S = b(() => [
325
- { label: C("customRange"), value: s },
326
- ...e.quickSelectRanges ? e.quickSelectRanges : []
327
- ]), j = b(
328
- () => {
329
- var t;
330
- return ((t = e.granularities) == null ? void 0 : t.find(({ type: r }) => r === n.granularity)) || null;
331
- }
332
- ), ne = b(
333
- () => {
334
- var t;
335
- return ((t = e.granularities) == null ? void 0 : t.map(({ type: r, disabled: m }) => ({
336
- label: C(r),
337
- value: r,
338
- disabled: m
339
- }))) ?? [];
340
- }
341
- ), { getGranularCalendarLimits: de } = zt(e), T = b(
342
- () => e.granularities ? de(j.value) : { min: e.min ? N(e.min) : null, max: e.max ? L(e.max) : null }
343
- ), {
344
- adjustDateForQuarterly: ce,
345
- adjustDateForMonthly: q,
346
- adjustDateForWeekly: $,
347
- adjustStartDateInputForWeekly: B,
348
- adjustEndDateInputForWeekly: E,
349
- adjustStartDateInputForMonthly: Oe,
350
- adjustEndDateInputForMonthly: re,
351
- adjustStartDateInputForQuarterly: we,
352
- adjustEndDateInputForQuarterly: ye
353
- } = Bt(e.firstDayOfWeek), { savedRanges: H, saveRange: ee, resetSavedRanges: se } = Jt(), O = (t) => {
354
- var r;
355
- return t ? me(t, M.NUMERIC_DATE_YEAR_FIRST, {
356
- locale: k[(r = X.value) == null ? void 0 : r.substring(0, 2)] || k.enUS
357
- }) : "";
358
- }, te = (t) => {
359
- var r;
360
- return t ? me(t, M.HOUR_MINUTE_SECONDS, {
361
- locale: k[(r = X.value) == null ? void 0 : r.substring(0, 2)] || k.enUS
362
- }) : "";
363
- }, le = U(!1), oe = U(!1), Q = U(!1), G = U(!1), i = ke({
364
- startDate: e.dateFormData.startDate,
365
- endDate: e.dateFormData.endDate,
366
- startTime: e.dateFormData.startTime,
367
- endTime: e.dateFormData.endTime
368
- }), Te = (t, r) => {
369
- let m = new Date(t);
370
- const [c, I, w] = r.split(":");
371
- return m = aa(m, parseInt(c, 10)), m = na(m, parseInt(I, 10)), m = ra(m, parseInt(w, 10)), m;
372
- }, ge = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), l = (t, r) => {
373
- const m = () => {
374
- if (r && _(r)) {
375
- const c = Te(new Date(r), t);
376
- if (e.min && c < nt(e.min, 0) || e.max && c > nt(e.max, 0))
377
- return !1;
378
- }
379
- return !0;
380
- };
381
- return ge(t) && m();
382
- }, p = (t, r) => !r || !ge(r) || e.variant === "month" ? t : Te(new Date(t), r), Y = (t) => {
383
- i.startTime = te(
384
- e.min && e.allowTimeInput && x(e.min, t.startDate) ? e.min : N(t.startDate)
385
- ), i.endTime = te(
386
- e.max && e.allowTimeInput && x(e.max, t.endDate) ? e.max : L(t.endDate)
387
- ), n.startDate = p(t.startDate, i.startTime), n.endDate = p(t.endDate, i.endTime), n.range = null, e.granularities && se(), d(g.INPUT, {
388
- ...n,
389
- range: v.value
390
- });
391
- }, _ = (t) => {
392
- const r = (c) => e.min && N(c) < N(e.min) || e.max && N(c) > N(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(N(c)) : !0;
393
- return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && r(new Date(t));
394
- };
395
- ot(() => {
396
- le.value = !!(e.dateFormData.startDate && !_(e.dateFormData.startDate)), e.allowTimeInput ? Q.value = !!(e.dateFormData.startTime && !l(e.dateFormData.startTime, e.dateFormData.startDate)) : Q.value = !1, oe.value = !!(e.dateFormData.endDate && !_(e.dateFormData.endDate)), e.allowTimeInput ? G.value = !!(e.dateFormData.endTime && !l(e.dateFormData.endTime, e.dateFormData.endDate)) : G.value = !1;
397
- });
398
- const W = (t) => {
399
- var r;
400
- i.startDate = O(t), i.startTime ? Q.value && (i.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : i.startTime = te(t), le.value = !1, Q.value = !1, d(g.START_DATE_SELECTED, t);
401
- }, be = (t) => {
402
- var r;
403
- i.endDate = O(t), i.endTime ? G.value && (i.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : i.endTime = te(L(t)), oe.value = !1, G.value = !1;
404
- }, Fe = (t) => {
405
- const r = e.value[t];
406
- if (r)
407
- return r;
408
- if (e.dateFormData[t] && _(e.dateFormData[t]))
409
- return new Date(e.dateFormData[t]);
410
- }, mt = Ie((t) => {
411
- var r;
412
- if (_(t)) {
413
- let m = t;
414
- switch (le.value = !1, (r = j.value) == null ? void 0 : r.type) {
415
- case "weekly":
416
- m = B(
417
- t,
418
- O,
419
- T.value.min,
420
- T.value.max
421
- ), i.startDate = m;
422
- break;
423
- case "monthly":
424
- m = Oe(
425
- t,
426
- O,
427
- T.value.min,
428
- T.value.max
429
- ), i.startDate = m;
430
- break;
431
- case "quarterly":
432
- m = we(
433
- t,
434
- O,
435
- T.value.min,
436
- T.value.max
437
- ), i.startDate = m;
438
- break;
439
- }
440
- const c = ue(m);
441
- n.startDate = p(c, i.startTime), n.endDate = p(
442
- ue(i.endDate),
443
- i.endTime
444
- ), _(i.endDate) && (n.endDate = p(
445
- ue(i.endDate),
446
- i.endTime
447
- ));
448
- const I = Fe("endDate");
449
- n.range = null, d(g.FORM_DATE, {
450
- startDate: c,
451
- endDate: I
452
- }), d(g.INPUT, {
453
- ...n,
454
- range: v.value
455
- });
456
- } else
457
- le.value = !0, d(g.ERROR, { ...i });
458
- }, 300), Dt = (t) => {
459
- i.startDate = Xe(t), mt(i.startDate);
460
- }, ft = Ie((t) => {
461
- var r;
462
- if (_(t)) {
463
- let m = t;
464
- switch (oe.value = !1, (r = j.value) == null ? void 0 : r.type) {
465
- case "weekly":
466
- m = E(
467
- t,
468
- O,
469
- T.value.min,
470
- T.value.max
471
- ), i.endDate = m;
472
- break;
473
- case "monthly":
474
- m = re(
475
- t,
476
- O,
477
- T.value.min,
478
- T.value.max
479
- ), i.endDate = m;
480
- break;
481
- case "quarterly":
482
- m = ye(
483
- t,
484
- O,
485
- T.value.min,
486
- T.value.max
487
- ), i.endDate = m;
488
- break;
489
- }
490
- const c = ue(m);
491
- n.endDate = p(c, i.endTime), _(i.startDate) && (n.startDate = p(
492
- ue(i.startDate),
493
- i.startTime
494
- ));
495
- const I = Fe("startDate");
496
- n.range = null, d(g.FORM_DATE, {
497
- startDate: I,
498
- endDate: c
499
- }), d(g.INPUT, {
500
- ...n,
501
- range: v.value
502
- });
503
- } else
504
- oe.value = !0, d(g.ERROR, { ...i });
505
- }, 300), vt = (t) => {
506
- i.endDate = Xe(t), ft(i.endDate);
507
- }, xe = (t) => {
508
- xt(t);
509
- }, pt = Ie((t) => {
510
- if (l(t, e.dateFormData.startDate)) {
511
- Q.value = !1, n.startDate = p(n.startDate, t);
512
- const r = Fe("endDate");
513
- d(g.FORM_DATE, {
514
- startDate: n.startDate,
515
- endDate: r,
516
- startTime: t,
517
- endTime: i.endTime ?? e.dateFormData.endTime
518
- }), d(g.INPUT, {
519
- ...n,
520
- range: v.value
521
- });
522
- } else
523
- Q.value = !0, d(g.ERROR, { ...i });
524
- }), yt = Ie((t) => {
525
- l(t, e.dateFormData.endDate) ? (G.value = !1, n.endDate = p(n.endDate, t), d(g.FORM_DATE, {
526
- startDate: n.startDate,
527
- endDate: n.endDate,
528
- startTime: i.startTime ?? e.dateFormData.startTime,
529
- endTime: t
530
- }), d(g.INPUT, {
531
- ...n,
532
- range: v.value
533
- })) : (G.value = !0, d(g.ERROR, { ...i }));
534
- }), Tt = (t) => {
535
- i.startTime = et(t), pt(i.startTime);
536
- }, gt = (t) => {
537
- i.endTime = et(t), yt(i.endTime);
538
- }, qe = (t) => {
539
- ta(t);
540
- }, Re = (t, r, m, c) => {
541
- n.startDate = t, n.endDate = r, m && (n.granularity = m), c && (n.range = c);
542
- }, bt = (t) => {
543
- var m;
544
- const r = (m = e.quickSelectRanges) == null ? void 0 : m.find(({ value: c }) => c === t);
545
- if (r) {
546
- se();
547
- const c = r.data, I = c.endDate || (c.isRelativeToNow ? new Date(Date.now()) : L(new Date(Date.now()))), w = c.isRelativeToNow && c.timeDifference ? new Date(I.getTime() - c.timeDifference) : c.startDate;
548
- i.endDate = O(I), i.startDate = O(w), Re(w, I, null, t), e.granularities && (n.granularity = c.granularity || De.value), i.startTime = te(w), i.endTime = te(I), n.startDate = w, n.endDate = I, c.isRelativeToNow && (h.value = {
549
- ...h.value,
550
- [t]: {
551
- startDate: w,
552
- endDate: I
553
- }
554
- }), d(g.CUSTOM_RANGE, {
555
- ...r.data,
556
- startDate: w,
557
- endDate: I,
558
- range: r.value
559
- });
560
- }
561
- }, Rt = {
562
- weekly: $,
563
- monthly: q,
564
- quarterly: ce
565
- }, Et = (t) => {
566
- const r = n.granularity;
567
- if (n.granularity = t, r && ee(r, structuredClone(Ce(n))), n.startDate && n.endDate) {
568
- switch (t) {
569
- case "quarterly":
570
- case "monthly":
571
- case "weekly": {
572
- if (H[t]) {
573
- Re(H[t].startDate, H[t].endDate, t);
574
- break;
575
- }
576
- const { startDate: m, endDate: c } = Rt[t](
577
- n.startDate,
578
- n.endDate,
579
- T.value.min,
580
- T.value.max
581
- );
582
- Re(m, c, t);
583
- break;
584
- }
585
- case "daily":
586
- H.daily && Re(H.daily.startDate, H.daily.endDate, t);
587
- break;
588
- }
589
- i.startDate = O(n.startDate), i.endDate = O(n.endDate), d(g.INPUT, {
590
- ...n,
591
- range: v.value
592
- });
593
- }
594
- }, It = b(() => ({
595
- "b-date-range-picker-calendar__form-container--no-calendars": fe.value
596
- }));
597
- return (t, r) => (F(), Se("div", la, [
598
- ae("div", {
599
- class: _e(["b-date-range-picker-calendar__form-container", It.value]),
600
- "data-testid": "date-range-picker-calendar-form-container"
601
- }, [
602
- ae("div", oa, [
603
- D(y)("title") ? He(t.$slots, "title", { key: 0 }, void 0, !0) : A("", !0),
604
- a.quickSelectRanges ? (F(), V(Ht, {
605
- key: 1,
606
- "aria-label": D(C)("customRange"),
607
- items: S.value,
608
- "model-value": v.value,
609
- "onUpdate:modelValue": bt
610
- }, null, 8, ["aria-label", "items", "model-value"])) : A("", !0),
611
- a.granularities ? (F(), V(D(Qt), {
612
- key: 2,
613
- items: ne.value,
614
- "model-value": n.granularity,
615
- "full-width": "",
616
- "onUpdate:modelValue": Et
617
- }, null, 8, ["items", "model-value"])) : A("", !0),
618
- ae("div", null, [
619
- z(D(Ue), {
620
- stronger: "",
621
- el: "span",
622
- class: "b-date-range-picker-calendar__label"
623
- }, {
624
- default: P(() => r[0] || (r[0] = [
625
- ie(" From ")
626
- ])),
627
- _: 1
628
- }),
629
- ae("div", {
630
- class: _e(Z.value)
631
- }, [
632
- z(D(Ee), {
633
- "aria-label": D(C)("dateFrom"),
634
- "model-value": i.startDate,
635
- error: le.value,
636
- class: "b-date-range-picker-calendar__form-input",
637
- "onUpdate:modelValue": Dt,
638
- onKeydown: xe
639
- }, {
640
- description: P(() => r[1] || (r[1] = [
641
- ie("YYYY-MM-DD")
642
- ])),
643
- _: 1
644
- }, 8, ["aria-label", "model-value", "error"]),
645
- a.allowTimeInput ? (F(), V(D(Ee), {
646
- key: 0,
647
- "aria-label": D(C)("timeFrom"),
648
- "model-value": i.startTime,
649
- error: Q.value,
650
- class: "b-date-range-picker-calendar__form-input",
651
- "onUpdate:modelValue": Tt,
652
- onKeydown: qe
653
- }, {
654
- description: P(() => r[2] || (r[2] = [
655
- ie("HH:MM:SS")
656
- ])),
657
- _: 1
658
- }, 8, ["aria-label", "model-value", "error"])) : A("", !0)
659
- ], 2)
660
- ]),
661
- ae("div", null, [
662
- z(D(Ue), {
663
- stronger: "",
664
- el: "span",
665
- class: "b-date-range-picker-calendar__label"
666
- }, {
667
- default: P(() => r[3] || (r[3] = [
668
- ie(" To ")
669
- ])),
670
- _: 1
671
- }),
672
- ae("div", {
673
- class: _e(Z.value)
674
- }, [
675
- z(D(Ee), {
676
- class: "b-date-range-picker-calendar__form-input",
677
- "aria-label": D(C)("dateTo"),
678
- "model-value": i.endDate,
679
- error: oe.value,
680
- "onUpdate:modelValue": vt,
681
- onKeydown: xe
682
- }, {
683
- description: P(() => r[4] || (r[4] = [
684
- ie("YYYY-MM-DD")
685
- ])),
686
- _: 1
687
- }, 8, ["aria-label", "model-value", "error"]),
688
- a.allowTimeInput ? (F(), V(D(Ee), {
689
- key: 0,
690
- "aria-label": D(C)("timeTo"),
691
- "model-value": i.endTime,
692
- error: G.value,
693
- class: "b-date-range-picker-calendar__form-input",
694
- "onUpdate:modelValue": gt,
695
- onKeydown: qe
696
- }, {
697
- description: P(() => r[5] || (r[5] = [
698
- ie("HH:MM:SS")
699
- ])),
700
- _: 1
701
- }, 8, ["aria-label", "model-value", "error"])) : A("", !0)
702
- ], 2)
703
- ])
704
- ]),
705
- D(y)("actions") ? (F(), Se("div", ia, [
706
- He(t.$slots, "actions", {}, void 0, !0)
707
- ])) : A("", !0)
708
- ], 2),
709
- fe.value ? A("", !0) : (F(), Se("div", ua, [
710
- z(D(K), {
711
- value: n,
712
- "first-day-of-week": a.firstDayOfWeek,
713
- "is-date-disabled": a.isDateDisabled,
714
- "max-range": a.maxRange,
715
- min: T.value.min,
716
- max: T.value.max,
717
- "number-of-months": a.numberOfMonths,
718
- "show-end-date-on-open": a.showEndDateOnOpen,
719
- granularity: j.value,
720
- variant: a.variant,
721
- "is-range": "",
722
- onInput: Y,
723
- onStartDateSelected: W,
724
- onEndDateSelected: be
725
- }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
726
- ]))
727
- ]));
728
- }
729
- }), ma = /* @__PURE__ */ ut(ca, [["__scopeId", "data-v-b8e14e1c"]]);
730
- function rt(a, o) {
731
- const u = J(a, o == null ? void 0 : o.in);
732
- return Math.trunc(u.getMonth() / 3) + 1;
733
- }
734
- function st(a, o) {
735
- return J(a, o == null ? void 0 : o.in).getFullYear();
736
- }
737
- function Da(a, o, u) {
738
- const [s, e] = $t(
739
- u == null ? void 0 : u.in,
740
- a,
741
- o
742
- );
743
- return +pe(s) == +pe(e);
744
- }
745
- const Be = {
746
- "en-US": {
747
- apply: "Apply",
748
- cancel: "Cancel",
749
- dateRangePicker: "Date range picker {name}",
750
- provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
751
- quarter: "Q{quarter} {year}",
752
- selectDate: "Select a date",
753
- selectDateRange: "Select a date range",
754
- selectedDateIsNotAvailable: "Selected date is not available"
755
- },
756
- "ja-JP": {
757
- apply: "適用",
758
- cancel: "キャンセル",
759
- selectDate: "日付を選択"
760
- },
761
- "pt-BR": {
762
- apply: "Aplicar",
763
- cancel: "Cancelar",
764
- selectDate: "Selecione uma data"
765
- }
766
- }, fa = ({
767
- datePickerValue: a,
768
- isDateIncorrect: o,
769
- quickSelectRanges: u,
770
- isMonthVariant: s,
771
- withTimeInput: e,
772
- placeholder: d
773
- }) => {
774
- const { locale: f, t: y } = Ne({ messages: Be }), X = Ae(), C = (n) => !!n && !isNaN(n.getTime()), k = (n, R) => {
775
- var v;
776
- return C(n) ? me(n, R, {
777
- locale: X[(v = f.value) == null ? void 0 : v.substring(0, 2)] || X.enUS
778
- }) : void 0;
779
- }, h = ke({
780
- startDate: null,
781
- endDate: null,
782
- startTime: null,
783
- endTime: null
784
- });
785
- return Me(
786
- a,
787
- (n) => {
788
- h.startDate = k(
789
- n == null ? void 0 : n.startDate,
790
- M.NUMERIC_DATE_YEAR_FIRST
791
- ), h.endDate = k(n == null ? void 0 : n.endDate, M.NUMERIC_DATE_YEAR_FIRST), h.startTime = k(n == null ? void 0 : n.startDate, M.HOUR_MINUTE_SECONDS), h.endTime = k(n == null ? void 0 : n.endDate, M.HOUR_MINUTE_SECONDS);
792
- },
793
- { immediate: !0 }
794
- ), {
795
- // Values
796
- dateDisplayValue: b(() => {
797
- var ce;
798
- if (o.value)
799
- return `${h.startDate || ""} - ${h.endDate || ""}`;
800
- if (!a.value || !a.value.startDate && !a.value.endDate)
801
- return (d == null ? void 0 : d.value) || y("selectDateRange");
802
- if ((ce = u.value) != null && ce.length) {
803
- const q = u.value.find(({ value: $ }) => {
804
- var B;
805
- return $ === ((B = a.value) == null ? void 0 : B.range);
806
- });
807
- if (q)
808
- return q.label;
809
- }
810
- if (a.value.granularity === "quarterly") {
811
- const { startDate: q, endDate: $ } = a.value, B = y("quarter", { quarter: rt(q), year: st(q) });
812
- if (Da(q, $))
813
- return B;
814
- const E = y("quarter", { quarter: rt($), year: st($) });
815
- return `${B} - ${E}`;
816
- }
817
- const { startDate: n, endDate: R, startTime: v, endTime: Z } = h, S = s != null && s.value ? M.LONG_MONTH_YEAR : M.FULL_DATE_MONTH_FIRST, j = k(ue(n), S), ne = k(ue(R), S);
818
- if (!e.value)
819
- return `${j} - ${ne}`;
820
- const de = [j, v].filter(Boolean).join(", "), T = [ne, Z].filter(Boolean).join(", ");
821
- return `${de} - ${T}`;
822
- }),
823
- textInputDisplayValue: h,
824
- // Methods
825
- formatTextInputDisplayValue: () => ""
826
- };
827
- }, va = { class: "b-date-range-picker" }, pa = { class: "b-date-range-picker__footer" }, ya = {
828
- i18n: { messages: Be },
829
- name: "bento-date-range-picker",
830
- model: { prop: "modelValue" }
831
- }, Ta = /* @__PURE__ */ lt({
832
- ...ya,
833
- props: {
834
- allowTimeInput: { type: Boolean },
835
- firstDayOfWeek: { default: 1 },
836
- granularities: {},
837
- isDateDisabled: { type: Function, default: void 0 },
838
- showEndDateOnOpen: { type: Boolean, default: !1 },
839
- quickSelectRanges: { default: void 0 },
840
- maxRange: { default: null },
841
- min: { default: null },
842
- max: { default: null },
843
- numberOfMonths: { default: void 0 },
844
- modelValue: { default: null },
845
- value: { default: null },
846
- variant: { default: void 0 },
847
- hasActions: { type: Boolean, default: !1 },
848
- description: { default: void 0 },
849
- disabled: { type: Boolean, default: !1 },
850
- errorMessage: { default: null },
851
- label: { default: void 0 },
852
- optional: { type: Boolean, default: !1 },
853
- placeholder: { default: null },
854
- readonly: { type: Boolean, default: !1 },
855
- required: { type: Boolean, default: !1 },
856
- tooltipText: { default: null }
857
- },
858
- emits: ["update:model-value", "input"],
859
- setup(a, { emit: o }) {
860
- const u = o, s = a, { locale: e, t: d } = Ne({ messages: Be }), f = Ae(), y = ve("bento-date-range-picker-container"), X = ve("bento-date-range-picker-label"), C = ve("bento-date-range-picker-description"), k = ve("bento-date-range-picker-error"), h = ve("bento-date-range-picker-date-error"), De = b(() => s.label || d("dateRangePicker", { name: y })), fe = kt({
861
- none: 0,
862
- one: 710,
863
- // width of date range picker with one panes
864
- two: 1030,
865
- // width of date range picker with two panes
866
- three: 1290
867
- // width of date range picker with three panes
868
- }), n = b(() => {
869
- const l = fe.active().value, p = {
870
- none: 0,
871
- one: 1,
872
- two: 2
873
- };
874
- if (l in p) {
875
- const Y = p[l];
876
- return s.numberOfMonths === void 0 ? Y : Math.min(s.numberOfMonths, Y);
877
- }
878
- return s.numberOfMonths;
879
- }), R = b(() => (s == null ? void 0 : s.quickSelectRanges) && s.quickSelectRanges.map((l) => {
880
- const p = l.data.endDate ? void 0 : new Date(Date.now()).getTime() - l.data.startDate.getTime();
881
- return {
882
- ...l,
883
- data: {
884
- ...l.data,
885
- // Adding timeDifference to calculate an up-to-date endDate on range selection
886
- timeDifference: p
887
- }
888
- };
889
- })), v = U(!1), Z = U(null), S = U(!1), { isReadOnly: j } = Yt(Qe(s, "readonly")), { emitValue: ne } = jt(u);
890
- Me(
891
- () => s.disabled,
892
- () => {
893
- s.disabled && S.value && (S.value = !1);
894
- }
895
- );
896
- const de = b(() => s.modelValue || s.value), T = b(() => s.hasActions ? !se.value && v.value : v.value), ce = b(() => ({
897
- "b-date-range-picker__description--error": !!s.errorMessage || T.value
898
- })), q = b(() => s.variant === "month"), $ = b(() => s.allowTimeInput && s.variant !== "month"), { dateDisplayValue: B, textInputDisplayValue: E } = fa({
899
- datePickerValue: de,
900
- isDateIncorrect: v,
901
- quickSelectRanges: R,
902
- isMonthVariant: q,
903
- withTimeInput: $,
904
- placeholder: Qe(s, "placeholder")
905
- }), Oe = b(
906
- () => `${s.description ? C : ""} ${s.errorMessage ? k : ""} ${v.value ? h : ""}`.trim() || null
907
- ), re = () => {
908
- S.value = !1;
909
- }, we = () => {
910
- S.value = !0;
911
- }, ye = U(B.value), H = U(
912
- // textInputDisplayValue is a reactive object
913
- structuredClone(Ce(E))
914
- ), ee = U(s.modelValue ?? s.value), se = U(!0), O = b(
915
- () => s.hasActions ? H.value : E
916
- ), te = b(
917
- () => s.hasActions ? ye.value : B.value
918
- );
919
- ot(() => {
920
- if (s.hasActions || We(
921
- 'BentoDateRangePicker "hasActions" property',
922
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
923
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
924
- "2.0.0"
925
- ), s.value && We(
926
- 'BentoDateRangePicker "value" property',
927
- 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
928
- "2.0.0"
929
- ), s.granularities && s.variant !== "month" && s.granularities.find(({ type: l }) => l === "quarterly"))
930
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
931
- }), Me([() => s.value, () => s.modelValue], () => {
932
- ye.value = B.value, H.value = structuredClone(Ce(E));
933
- });
934
- const le = b(() => [
935
- {
936
- title: d("apply"),
937
- event: () => {
938
- ne(ee.value), re(), se.value = !0;
939
- },
940
- disabled: se.value
941
- },
942
- {
943
- title: d("cancel"),
944
- event: re
945
- }
946
- ]);
947
- Me(ee, (l) => {
948
- if (s.hasActions) {
949
- se.value = v.value;
950
- return;
951
- }
952
- ne(l);
953
- });
954
- const oe = (l) => {
955
- v.value = !1;
956
- const p = (Y, _) => {
957
- var W;
958
- return Y ? me(Y, _, {
959
- locale: f[(W = e.value) == null ? void 0 : W.substring(0, 2)] || f.enUS
960
- }) : void 0;
961
- };
962
- E.startDate = p(l.startDate, M.NUMERIC_DATE_YEAR_FIRST), E.endDate = p(l.endDate, M.NUMERIC_DATE_YEAR_FIRST), E.startTime = p(l.startDate, M.HOUR_MINUTE_SECONDS), E.endTime = p(l.endDate, M.HOUR_MINUTE_SECONDS), ee.value = l;
963
- }, Q = async () => {
964
- v.value && (v.value = !1), ee.value = null;
965
- }, G = () => {
966
- if (!S.value) {
967
- S.value = !0;
968
- return;
969
- }
970
- v.value || (S.value = !1);
971
- }, i = (l) => {
972
- v.value = !1, l.startTime && (E.startTime = l.startTime), l.endTime && (E.endTime = l.endTime);
973
- }, Te = (l) => {
974
- v.value = !0, E.startDate = l.startDate, E.endDate = l.endDate, ee.value = { startDate: null, endDate: null };
975
- }, ge = (l) => {
976
- if (l) {
977
- const p = (_, W) => {
978
- var be;
979
- return _ ? me(_, W, {
980
- locale: f[(be = e.value) == null ? void 0 : be.substring(0, 2)] || f.enUS
981
- }) : void 0;
982
- }, Y = (_) => {
983
- var W;
984
- return me(_, M.NUMERIC_DATE_YEAR_FIRST, {
985
- locale: f[(W = e.value) == null ? void 0 : W.substring(0, 2)] || f.enUS
986
- });
987
- };
988
- E.startDate = Y(l.startDate), E.endDate = Y(l.endDate), E.startTime = p(
989
- l.startDate,
990
- M.HOUR_MINUTE_SECONDS
991
- ), E.endTime = p(l.endDate, M.HOUR_MINUTE_SECONDS), ee.value = l;
992
- }
993
- };
994
- return (l, p) => St((F(), Se("div", va, [
995
- l.label ? (F(), V(D(Kt), {
996
- key: 0,
997
- id: D(X),
998
- label: l.label,
999
- "tooltip-text": l.tooltipText,
1000
- optional: l.optional,
1001
- required: l.required
1002
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : A("", !0),
1003
- ae("div", {
1004
- onKeydown: Ge(G, ["enter"])
1005
- }, [
1006
- z(D(Ct), {
1007
- ref_key: "inputContainerRef",
1008
- ref: Z,
1009
- "always-combobox-is-input": "",
1010
- ariaControls: D(y),
1011
- ariaExpanded: S.value,
1012
- "aria-labelledby": l.label ? D(X) : null,
1013
- "aria-describedby": Oe.value,
1014
- disabled: l.disabled,
1015
- "is-invalid": !!l.errorMessage || T.value,
1016
- open: S.value,
1017
- "display-value": te.value,
1018
- readonly: D(j),
1019
- onOpen: we,
1020
- onClear: Q,
1021
- onClose: re
1022
- }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1023
- ], 32),
1024
- T.value ? (F(), V(D(Ze), {
1025
- key: 1,
1026
- id: D(h),
1027
- "error-message": D(d)("provideDateInAFormat"),
1028
- class: "b-date-range-picker__error-message"
1029
- }, null, 8, ["id", "error-message"])) : A("", !0),
1030
- l.errorMessage ? (F(), V(D(Ze), {
1031
- key: 2,
1032
- id: D(k),
1033
- "error-message": l.errorMessage,
1034
- class: "b-date-range-picker__error-message"
1035
- }, null, 8, ["id", "error-message"])) : A("", !0),
1036
- l.description ? (F(), V(D(Ue), {
1037
- key: 3,
1038
- id: D(C),
1039
- class: _e(["b-date-range-picker__description", ce.value]),
1040
- el: "span"
1041
- }, {
1042
- default: P(() => [
1043
- ie(_t(l.description), 1)
1044
- ]),
1045
- _: 1
1046
- }, 8, ["id", "class"])) : A("", !0),
1047
- Z.value ? (F(), V(D(wt), {
1048
- key: 4,
1049
- id: D(y),
1050
- class: "b-date-range-picker__container",
1051
- open: S.value,
1052
- "target-element": Z.value,
1053
- "aria-label": De.value,
1054
- position: "bottom-start",
1055
- "without-space": "",
1056
- "fit-content": "",
1057
- "trap-all": "",
1058
- "overflow-visible": "",
1059
- onKeydown: Ge(re, ["esc", "native"])
1060
- }, {
1061
- default: P(() => [
1062
- z(D(ma), {
1063
- "allow-time-input": $.value,
1064
- "quick-select-ranges": R.value,
1065
- value: de.value,
1066
- "first-day-of-week": l.firstDayOfWeek,
1067
- granularities: l.granularities,
1068
- "is-date-disabled": l.isDateDisabled,
1069
- "max-range": l.maxRange,
1070
- min: l.min,
1071
- max: l.max,
1072
- "number-of-months": n.value,
1073
- "show-end-date-on-open": l.showEndDateOnOpen,
1074
- "date-form-data": O.value,
1075
- variant: l.variant,
1076
- onCustomRange: ge,
1077
- onInput: oe,
1078
- onError: Te,
1079
- onFormDate: i
1080
- }, Mt({ _: 2 }, [
1081
- l.hasActions ? {
1082
- name: "actions",
1083
- fn: P(() => [
1084
- z(D(Ot)),
1085
- ae("div", pa, [
1086
- z(D(Ft), {
1087
- actions: le.value,
1088
- layout: D(Pt).SPACE_BETWEEN
1089
- }, null, 8, ["actions", "layout"])
1090
- ])
1091
- ]),
1092
- key: "0"
1093
- } : void 0
1094
- ]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
1095
- ]),
1096
- _: 1
1097
- }, 8, ["id", "open", "target-element", "aria-label"])) : A("", !0)
1098
- ])), [
1099
- [D(Lt), re]
1100
- ]);
1101
- }
1102
- }), Ha = /* @__PURE__ */ ut(Ta, [["__scopeId", "data-v-6916f9db"]]);
1103
- export {
1104
- Ha as B,
1105
- ma as D,
1106
- sa as a,
1107
- he as i
1108
- };
1109
- //# sourceMappingURL=date-range-picker.BT3I5M44.js.map