@adyen/bento-vue2 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 (408) hide show
  1. package/README.md +5 -5
  2. package/dist/@types/index.d.ts +1299 -1235
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/ai-button.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/calendar.css +1 -1
  15. package/dist/assets/card.css +1 -1
  16. package/dist/assets/checkbox-group.css +1 -1
  17. package/dist/assets/checkbox-input.css +1 -1
  18. package/dist/assets/checkbox.css +1 -1
  19. package/dist/assets/chip.css +1 -1
  20. package/dist/assets/code-snippet.css +1 -1
  21. package/dist/assets/controls-group.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashboard-section.css +1 -1
  25. package/dist/assets/dashed-underline.css +1 -1
  26. package/dist/assets/data-grid-template.css +1 -1
  27. package/dist/assets/data-grid.css +1 -1
  28. package/dist/assets/date-picker.css +1 -1
  29. package/dist/assets/date-range-picker.css +1 -1
  30. package/dist/assets/date.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/divider.css +1 -1
  33. package/dist/assets/dropdown-default-textbox.css +1 -1
  34. package/dist/assets/dropdown-tag.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/empty-state.css +1 -1
  37. package/dist/assets/field-label.css +1 -1
  38. package/dist/assets/file-uploader.css +1 -1
  39. package/dist/assets/filter-bar.css +1 -1
  40. package/dist/assets/fixed-scroller.css +1 -1
  41. package/dist/assets/footer-actions.css +1 -1
  42. package/dist/assets/form-layout-title.css +1 -1
  43. package/dist/assets/grid-layout.css +1 -1
  44. package/dist/assets/header-meta.css +1 -1
  45. package/dist/assets/header-with-views.css +1 -1
  46. package/dist/assets/header.css +1 -1
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/info-icon.css +1 -1
  49. package/dist/assets/input-field-password.css +1 -1
  50. package/dist/assets/input-field.css +1 -1
  51. package/dist/assets/inspector.css +1 -1
  52. package/dist/assets/layout-row.css +1 -1
  53. package/dist/assets/link.css +1 -1
  54. package/dist/assets/listbox-option-tag.css +1 -1
  55. package/dist/assets/loading-indicator.css +1 -1
  56. package/dist/assets/modal-fullscreen.css +1 -1
  57. package/dist/assets/pagination.css +1 -1
  58. package/dist/assets/payment-method.css +1 -1
  59. package/dist/assets/popper-container.css +1 -1
  60. package/dist/assets/promo-banner.css +1 -1
  61. package/dist/assets/radio-group.css +1 -1
  62. package/dist/assets/radio-input.css +1 -1
  63. package/dist/assets/rich-text-editor.css +1 -1
  64. package/dist/assets/secondary-nav.css +1 -1
  65. package/dist/assets/segmented-control.css +1 -1
  66. package/dist/assets/selection-card-group.css +1 -1
  67. package/dist/assets/sidepanel.css +1 -1
  68. package/dist/assets/status.css +1 -1
  69. package/dist/assets/step.css +1 -1
  70. package/dist/assets/structured-list-item.css +1 -1
  71. package/dist/assets/summary-grid.css +1 -1
  72. package/dist/assets/tab.css +1 -1
  73. package/dist/assets/tag.css +1 -1
  74. package/dist/assets/textarea.css +1 -1
  75. package/dist/assets/timeline-item.css +1 -1
  76. package/dist/assets/toast.css +1 -1
  77. package/dist/assets/toggle.css +1 -1
  78. package/dist/assets/tooltip.css +1 -1
  79. package/dist/assets/tutorial.css +1 -1
  80. package/dist/assets/use-cached-selected-values.css +1 -1
  81. package/dist/button.js +3 -3
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  85. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  86. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  87. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  88. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  89. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  90. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  91. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  92. package/dist/chunks/accordion-item.DeV8s0oW.js.map +1 -1
  93. package/dist/chunks/{action-bar.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
  94. package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.js.map} +1 -1
  95. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  96. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  97. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  98. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  99. package/dist/chunks/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
  100. package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
  101. package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
  102. package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
  103. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  104. package/dist/chunks/avatar.CUCH3CTc.js.map +1 -1
  105. package/dist/chunks/base-button.IN4bpcds.js.map +1 -1
  106. package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
  107. package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
  108. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
  109. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
  110. package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
  111. package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
  112. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  113. package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
  114. package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
  115. package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
  116. package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
  117. package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
  118. package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
  119. package/dist/chunks/{checkbox-group.DKkaWwMI.js → checkbox-group.BCnhjQie.js} +4 -4
  120. package/dist/chunks/{checkbox-group.DKkaWwMI.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
  121. package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
  122. package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
  123. package/dist/chunks/{checkbox.B_W1TGP2.js → checkbox.CU5ierOq.js} +16 -16
  124. package/dist/chunks/{checkbox.B_W1TGP2.js.map → checkbox.CU5ierOq.js.map} +1 -1
  125. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  126. package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
  127. package/dist/chunks/code-snippet.9MwDHp50.js.map +1 -0
  128. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  129. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  130. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  131. package/dist/chunks/{controls-group.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
  132. package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
  133. package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
  134. package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
  135. package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
  136. package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.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/currency.DYZr_RDk.js.map +1 -1
  140. package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
  141. package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
  142. package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
  143. package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
  144. package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
  145. package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
  146. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  147. package/dist/chunks/{data-grid.CVjZ1tKw.js → data-grid.BPG1GPIl.js} +922 -838
  148. package/dist/chunks/{data-grid.CVjZ1tKw.js.map → data-grid.BPG1GPIl.js.map} +1 -1
  149. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  150. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  151. package/dist/chunks/{date-picker.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
  152. package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
  153. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  154. package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
  155. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
  156. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  157. package/dist/chunks/date.DBWzp0So.js.map +1 -1
  158. package/dist/chunks/de.DvtL0g75.js +478 -0
  159. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  160. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  161. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  162. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  163. package/dist/chunks/{dialog-page.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
  164. package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.js.map} +1 -1
  165. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  166. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  167. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  168. package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
  169. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +1 -1
  170. package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
  171. package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
  172. package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
  173. package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
  174. package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
  175. package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.js.map} +1 -1
  176. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  177. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  178. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  179. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  180. package/dist/chunks/es.bz0mzkMq.js +374 -0
  181. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  182. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  183. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  184. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  185. package/dist/chunks/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
  186. package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
  187. package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
  188. package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
  189. package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
  190. package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
  191. package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
  192. package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
  193. package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -1
  194. package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
  195. package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
  196. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  197. package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
  198. package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.js.map} +1 -1
  199. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  200. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  201. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  202. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  203. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  204. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  205. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  206. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  207. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  208. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
  209. package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
  210. package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
  211. package/dist/chunks/{header-with-views.3fF_V6F9.js → header-with-views.Dc9LUYNY.js} +379 -315
  212. package/dist/chunks/{header-with-views.3fF_V6F9.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
  213. package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
  214. package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
  215. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  216. package/dist/chunks/index.B6WW_F-J.js.map +1 -1
  217. package/dist/chunks/index.BDK4hwK_.js.map +1 -1
  218. package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
  219. package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
  220. package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
  221. package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
  222. package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
  223. package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
  224. package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
  225. package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.js.map} +1 -1
  226. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  227. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  228. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  229. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  230. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  231. package/dist/chunks/it.Oaj6BklL.js +392 -0
  232. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  233. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  234. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  235. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  236. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  237. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  238. package/dist/chunks/layout-row.BPX00mio.js.map +1 -1
  239. package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
  240. package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
  241. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
  242. package/dist/chunks/match.CMBZxEs9.js +302 -0
  243. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  244. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  245. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
  246. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
  247. package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
  248. package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.js.map} +1 -1
  249. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  250. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  251. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  252. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  253. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  254. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  255. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  256. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  257. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  258. package/dist/chunks/{pagination.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
  259. package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
  260. package/dist/chunks/payment-method.BKXLPDC9.js.map +1 -1
  261. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  262. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  263. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  264. package/dist/chunks/popover.types.WDh5ggr3.js.map +1 -1
  265. package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -1
  266. package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
  267. package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.js.map} +1 -1
  268. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  269. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  270. package/dist/chunks/{radio-group.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
  271. package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
  272. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
  273. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  274. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  275. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  276. package/dist/chunks/{rich-text-editor.BbvfrqHl.js → rich-text-editor.Dq2CFGOu.js} +5 -5
  277. package/dist/chunks/{rich-text-editor.BbvfrqHl.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
  278. package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
  279. package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
  280. package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
  281. package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
  282. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  283. package/dist/chunks/{selection-card-group.BWLjFcea.js → selection-card-group.BryV14qP.js} +13 -13
  284. package/dist/chunks/{selection-card-group.BWLjFcea.js.map → selection-card-group.BryV14qP.js.map} +1 -1
  285. package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
  286. package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.js.map} +1 -1
  287. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  288. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  289. package/dist/chunks/status.types.Cv5XN4zL.js.map +1 -1
  290. package/dist/chunks/step.BLFXvHL6.js +223 -0
  291. package/dist/chunks/step.BLFXvHL6.js.map +1 -0
  292. package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
  293. package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.js.map} +1 -1
  294. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  295. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  296. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  297. package/dist/chunks/{summary-grid.types.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
  298. package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.js.map} +1 -1
  299. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  300. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  301. package/dist/chunks/{tab.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
  302. package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
  303. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  304. package/dist/chunks/tag.B1Ywhgvc.js.map +1 -1
  305. package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
  306. package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
  307. package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
  308. package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
  309. package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
  310. package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
  311. package/dist/chunks/toggle.227XgEc7.js.map +1 -1
  312. package/dist/chunks/tooltip.C6YCavPw.js.map +1 -1
  313. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  314. package/dist/chunks/{tutorial.DdRGxTC5.js → tutorial.D18LwXVy.js} +5 -5
  315. package/dist/chunks/{tutorial.DdRGxTC5.js.map → tutorial.D18LwXVy.js.map} +1 -1
  316. package/dist/chunks/typography.Bq-EGj9y.js.map +1 -1
  317. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  318. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  319. package/dist/chunks/use-bento-toast-controller.MmyZXtME.js.map +1 -1
  320. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
  321. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
  322. package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
  323. package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
  324. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  325. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  326. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  327. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  328. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  329. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  330. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  331. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  332. package/dist/code-snippet.js +1 -1
  333. package/dist/country.js +2 -2
  334. package/dist/dashboard-template.js +1 -1
  335. package/dist/dashed-underline.js +1 -1
  336. package/dist/data-grid-template.js +1 -1
  337. package/dist/data-grid.js +1 -1
  338. package/dist/date-picker.js +2 -2
  339. package/dist/date-range-picker.js +2 -2
  340. package/dist/dropdown.js +3 -3
  341. package/dist/empty-state.js +1 -1
  342. package/dist/file-uploader.js +1 -1
  343. package/dist/filter-bar.js +1 -1
  344. package/dist/form-layout.js +1 -1
  345. package/dist/header-with-views.js +1 -1
  346. package/dist/header.js +1 -1
  347. package/dist/index.js +250 -251
  348. package/dist/index.js.map +1 -1
  349. package/dist/input-field-password.js +1 -1
  350. package/dist/input-field-phone-number.js +1 -1
  351. package/dist/input-field.js +1 -1
  352. package/dist/inspector.js +1 -1
  353. package/dist/internal.js +10 -10
  354. package/dist/link.js +1 -1
  355. package/dist/menu.js +1 -1
  356. package/dist/modal-fullscreen.js +1 -1
  357. package/dist/modal.js +2 -2
  358. package/dist/pagination.js +1 -1
  359. package/dist/popover.js +1 -1
  360. package/dist/promo-banner.js +1 -1
  361. package/dist/radio-group.js +1 -1
  362. package/dist/rich-text-editor.js +1 -1
  363. package/dist/search-bar.js +2 -2
  364. package/dist/secondary-nav.js +1 -1
  365. package/dist/selection-card.js +1 -1
  366. package/dist/sidepanel.js +1 -1
  367. package/dist/stepper.js +1 -1
  368. package/dist/structured-list.js +1 -1
  369. package/dist/styles/bento-dark.css +0 -1829
  370. package/dist/styles/bento-light.css +0 -1829
  371. package/dist/styles/bento.css +0 -1829
  372. package/dist/styles/legacy.css +0 -1829
  373. package/dist/styles/styleguide.css +0 -1829
  374. package/dist/summary-grid.js +1 -1
  375. package/dist/tabs.js +1 -1
  376. package/dist/textarea.js +1 -1
  377. package/dist/timeline.js +1 -1
  378. package/dist/toast.js +1 -1
  379. package/dist/tutorial.js +1 -1
  380. package/dist/use-form-v4.js.map +1 -1
  381. package/package.json +15 -26
  382. package/dist/@types/components.d.ts +0 -196
  383. package/dist/@types/use-form-v4.d.ts +0 -86
  384. package/dist/chunks/calendar.DCLyThOl.js +0 -1832
  385. package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
  386. package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
  387. package/dist/chunks/code-snippet.1_edHDaZ.js.map +0 -1
  388. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  389. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  390. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  391. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  392. package/dist/chunks/date-picker.-a_TXwjx.js.map +0 -1
  393. package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
  394. package/dist/chunks/date-range-picker.Bw1yPTu-.js.map +0 -1
  395. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  396. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  397. package/dist/chunks/es6.MoTTyETW.js +0 -12
  398. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  399. package/dist/chunks/filter-bar.CgJA4tIt.js +0 -2472
  400. package/dist/chunks/filter-bar.CgJA4tIt.js.map +0 -1
  401. package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
  402. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  403. package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
  404. package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
  405. package/dist/chunks/step.mqn8E6dm.js +0 -217
  406. package/dist/chunks/step.mqn8E6dm.js.map +0 -1
  407. package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
  408. package/dist/web-types.json +0 -17280
@@ -1,906 +0,0 @@
1
- import { reactive as Te, defineComponent as He, useSlots as lt, ref as F, computed as y, onMounted as We, toRaw as _e, watch as ye, toRef as Fe } from "vue";
2
- import { g as it } from "./index.BDK4hwK_.js";
3
- import { B as ut } from "./divider.DX5gwN7p.js";
4
- import { h as dt, B as ct } from "./button-actions.BWVq6OZQ.js";
5
- import { B as Ke, d as xe } from "./typography.Bq-EGj9y.js";
6
- import { B as mt } from "./input-field.DsT4AWXC.js";
7
- import { B as Dt } from "./dropdown.Dt0_ZUBn.js";
8
- import { B as pt } from "./segmented-control.BtWFda0P.js";
9
- import { e as P, a as Be, g as Re } from "./differenceInMonths.Cab3nOsb.js";
10
- import { u as Ie } from "./index.B6WW_F-J.js";
11
- import { e as x, g as Ve, h as Ae, i as U, j as ft, k as Ue, l as vt, s as Ne, m as gt, n as ce, o as Pe, b as $, u as yt, f as ie } from "./calendar.DCLyThOl.js";
12
- import { d as ve } from "./debounce.DUTu11PS.js";
13
- import { u as Tt } from "./use-has-slot.C9lQZ6nz.js";
14
- import { D as S, f as qe, v as _t } from "./date-format.B8RU7D42.js";
15
- import { t as Q, c as Rt, n as It } from "./getTimezoneOffsetInMilliseconds.B7sxiukN.js";
16
- import { c as bt } from "./constructNow.BhymNmy5.js";
17
- import { n as ze } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
18
- import { g as de } from "./generate-uid.NJ8tVoha.js";
19
- import { u as St } from "./use-form-layout-loading.CWbjZiwP.js";
20
- import "./index.Cl4_42j5.js";
21
- import { u as Et } from "./form-field.D_2g7vaP.js";
22
- import { D as kt } from "./dropdown-default-textbox.Cq68tN9F.js";
23
- import { B as ht } from "./directive.Cbdox5VL.js";
24
- import { F as Mt, E as Ot } from "./field-label.BpeaR4Qc.js";
25
- import { B as Ct } from "./button-actions.types.BptAXjD8.js";
26
- import "../assets/date-range-picker.css";
27
- function te(r) {
28
- if (r == null)
29
- return x(/* @__PURE__ */ new Date());
30
- const [t, e, a] = r.split("-").map((i) => parseInt(i, 10));
31
- return new Date(t, e - 1, a);
32
- }
33
- function Je(r, t, e) {
34
- return Ve(r, t * 3, e);
35
- }
36
- function wt(r, t, e) {
37
- return Je(r, -1, e);
38
- }
39
- const Ft = ({
40
- firstDayOfWeek: r,
41
- min: t,
42
- max: e
43
- }) => ({ getGranularCalendarLimits: (i) => {
44
- if (!t && !e)
45
- return { min: null, max: null };
46
- let D = t ? x(t) : null, p = e ? P(e) : null;
47
- if ((i == null ? void 0 : i.type) === "weekly") {
48
- if (i.earliest)
49
- D = x(i.earliest);
50
- else if (D) {
51
- const T = Ae(D, { weekStartsOn: r });
52
- U(D, T) || (D = x(ft(Ue(D, { weekStartsOn: r }), 1)));
53
- }
54
- if (i.latest)
55
- p = P(i.latest);
56
- else if (p) {
57
- const T = Ue(p, { weekStartsOn: r });
58
- U(p, T) || (p = P(vt(Ae(p, { weekStartsOn: r }), 1)));
59
- }
60
- }
61
- if ((i == null ? void 0 : i.type) === "monthly") {
62
- if (i.earliest)
63
- D = x(i.earliest);
64
- else if (D) {
65
- const T = Ne(D);
66
- U(D, T) || (D = Ne(Ve(D, 1)));
67
- }
68
- if (i.latest)
69
- p = P(i.latest);
70
- else if (p) {
71
- const T = Be(p);
72
- U(p, T) || (p = Be(gt(p, 1)));
73
- }
74
- }
75
- if ((i == null ? void 0 : i.type) === "quarterly") {
76
- if (i.earliest)
77
- D = ce(i.earliest);
78
- else if (D) {
79
- const T = ce(D);
80
- U(D, T) || (D = ce(Je(D, 1)));
81
- }
82
- if (i.latest)
83
- p = P(i.latest);
84
- else if (p) {
85
- const T = Pe(p);
86
- U(p, T) || (p = Pe(wt(p)));
87
- }
88
- }
89
- return { min: D, max: p };
90
- } }), xt = () => {
91
- const r = Te({
92
- daily: null,
93
- weekly: null,
94
- monthly: null,
95
- quarterly: null
96
- });
97
- return {
98
- savedRanges: r,
99
- saveRange: (a, i) => {
100
- r[a] = i;
101
- },
102
- resetSavedRanges: () => {
103
- r.daily = null, r.weekly = null, r.monthly = null, r.quarterly = null;
104
- }
105
- };
106
- };
107
- var g = /* @__PURE__ */ ((r) => (r.CUSTOM_RANGE = "custom-range", r.INPUT = "input", r.ERROR = "error", r.FORM_DATE = "form-date", r.START_DATE_SELECTED = "start-date-selected", r))(g || {});
108
- const Bt = /[\d]/, At = /^\d{2}$/, Ut = /^\d{2}:\d{2}$/, Nt = (r) => {
109
- const { selectionStart: t } = r.target, e = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], a = Bt.test(r.key) || e.includes(r.key), i = [1, 2, 4, 5].includes(t) && r.key === ":";
110
- !a && !i && r.preventDefault();
111
- }, Le = (r) => {
112
- if (!r)
113
- return r;
114
- let t = r;
115
- if (t.length === 1 && parseInt(r, 10) > 2)
116
- return `0${t}:`;
117
- const [e, a] = t.slice(-2);
118
- return [2, 5].includes(t.length) && a === ":" && (t = `${t.slice(0, t.length - 2)}0${e}`), (At.test(t) || Ut.test(t)) && (t += ":"), t;
119
- };
120
- function Pt(r, t, e) {
121
- const a = Q(r, e == null ? void 0 : e.in);
122
- return a.setHours(t), a;
123
- }
124
- function qt(r, t, e) {
125
- const a = Q(r, e == null ? void 0 : e.in);
126
- return a.setMinutes(t), a;
127
- }
128
- function Lt(r, t, e) {
129
- const a = Q(r, e == null ? void 0 : e.in);
130
- return a.setSeconds(t), a;
131
- }
132
- function Ye(r, t) {
133
- const e = Q(r, t == null ? void 0 : t.in);
134
- return e.setMilliseconds(0), e;
135
- }
136
- function je(r, t) {
137
- return +Ye(r) == +Ye(t);
138
- }
139
- function ge(r, t) {
140
- return +Q(r) == +Q(t);
141
- }
142
- function Yt(r, t) {
143
- return U(
144
- Rt(r, r),
145
- bt(r)
146
- );
147
- }
148
- function $e(r, t, e) {
149
- const a = Q(r, e == null ? void 0 : e.in);
150
- return a.setMilliseconds(t), a;
151
- }
152
- const jt = {
153
- "en-US": {
154
- customRange: "Custom range",
155
- daily: "Daily",
156
- dateFrom: "Date from",
157
- dateTo: "Date to",
158
- lastMonth: "Last month",
159
- lastSevenDays: "Last 7 days",
160
- lastThreeMonths: "Last three months",
161
- monthly: "Monthly",
162
- quarterly: "Quarterly",
163
- timeFrom: "Time from",
164
- timeTo: "Time to",
165
- weekly: "Weekly"
166
- },
167
- "ja-JP": {
168
- customRange: "カスタム範囲を選択",
169
- daily: "毎日",
170
- lastMonth: "先月",
171
- lastSevenDays: "過去7日間",
172
- monthly: "毎月",
173
- weekly: "毎週"
174
- },
175
- "pt-BR": {
176
- customRange: "Selecione um intervalo personalizado",
177
- daily: "Diário",
178
- lastMonth: "Último mês",
179
- lastSevenDays: "Últimos 7 dias",
180
- monthly: "Mensal",
181
- weekly: "Semanal"
182
- }
183
- }, $t = {
184
- name: "date-range-picker-calendar",
185
- i18n: { messages: jt }
186
- }, Qt = /* @__PURE__ */ He({
187
- ...$t,
188
- props: {
189
- /**
190
- * Allows user to enter time values in the form
191
- */
192
- allowTimeInput: { type: Boolean, default: !1 },
193
- /**
194
- * Ranges form persistance data
195
- */
196
- dateFormData: {
197
- type: Object,
198
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
199
- },
200
- /**
201
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
202
- */
203
- firstDayOfWeek: $.props.firstDayOfWeek,
204
- /**
205
- * A list of available granularities.
206
- * If present, the date picker will display a segmented control to change granularity.
207
- */
208
- granularities: {
209
- type: Array,
210
- default: null
211
- },
212
- /**
213
- * Indicate if a date should be disabled or not
214
- */
215
- isDateDisabled: $.props.isDateDisabled,
216
- /**
217
- * Set a maximum number of dates to be selectable by the range.
218
- */
219
- maxRange: $.props.maxRange,
220
- /**
221
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
222
- */
223
- min: $.props.min,
224
- /**
225
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
226
- */
227
- max: $.props.max,
228
- /**
229
- * Number of months rendered on pane
230
- */
231
- numberOfMonths: {
232
- type: $.props.numberOfMonths.type,
233
- default: $.props.numberOfMonths.default,
234
- validator: (r) => r >= 0
235
- },
236
- /**
237
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
238
- */
239
- showEndDateOnOpen: { type: Boolean, default: !1 },
240
- /**
241
- * Enables the custom range selector.
242
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
243
- * `label` - label of custom range item.
244
- * `value` - a unique key of the custom range item.
245
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
246
- */
247
- quickSelectRanges: {
248
- type: Array,
249
- default: void 0
250
- },
251
- /**
252
- * Selected date
253
- */
254
- value: { type: Object, default: void 0 },
255
- /**
256
- * The type of calendar to display. Defaults to showing days.
257
- */
258
- variant: $.props.variant
259
- },
260
- emits: [
261
- g.CUSTOM_RANGE,
262
- g.INPUT,
263
- g.ERROR,
264
- g.FORM_DATE,
265
- g.START_DATE_SELECTED
266
- ],
267
- setup(r, { emit: t }) {
268
- var Me, Oe, Ce, we;
269
- const e = r, a = 300, i = "customRange", D = lt(), p = Tt(D), { locale: T, t: q } = Ie(), N = Re(), E = F({}), k = y(() => e.variant === "month" ? "monthly" : "daily"), ae = y(() => e.numberOfMonths === 0), s = Te({
270
- startDate: (Me = e.value) == null ? void 0 : Me.startDate,
271
- endDate: (Oe = e.value) == null ? void 0 : Oe.endDate,
272
- range: (Ce = e.value) == null ? void 0 : Ce.range,
273
- ...e.granularities ? {
274
- granularity: ((we = e.value) == null ? void 0 : we.granularity) || k.value
275
- } : {}
276
- });
277
- function m(n) {
278
- return n ? new Date(
279
- n.getUTCFullYear(),
280
- n.getUTCMonth(),
281
- n.getUTCDate(),
282
- n.getUTCHours(),
283
- n.getUTCMinutes(),
284
- n.getUTCSeconds()
285
- ) : null;
286
- }
287
- const v = y(() => {
288
- var n, o;
289
- return (
290
- // eslint-disable-next-line consistent-return
291
- ((o = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: c, data: d }) => {
292
- var b;
293
- if (!d.endDate) {
294
- if (d.isRelativeToNow) {
295
- const O = (b = E.value) == null ? void 0 : b[c];
296
- return O ? ge(
297
- m(O.startDate),
298
- m(s.startDate)
299
- ) && ge(
300
- m(O.endDate),
301
- m(s.endDate)
302
- ) : (
303
- // If not stored calculated dates, fall back to comparing the quick select item's value
304
- // with the internal range's stored range identifier.
305
- c === s.range
306
- );
307
- }
308
- return ge(m(d.startDate), m(s.startDate)) && ge(
309
- m(s.endDate),
310
- m(P(s.endDate))
311
- ) && Yt(m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
312
- }
313
- if (e.allowTimeInput)
314
- return je(m(d.startDate), m(s.startDate)) && je(m(d.endDate), m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
315
- if (d.endDate)
316
- return U(d.startDate, s.startDate) && U(d.endDate, s.endDate) && (e.granularities ? d.granularity === s.granularity : !0);
317
- })) == null ? void 0 : o.value) ?? i
318
- );
319
- }), G = y(() => ({
320
- "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
321
- })), C = y(() => [
322
- { label: q("customRange"), value: i },
323
- ...e.quickSelectRanges ? e.quickSelectRanges : []
324
- ]), L = y(
325
- () => {
326
- var n;
327
- return ((n = e.granularities) == null ? void 0 : n.find(({ type: o }) => o === s.granularity)) || null;
328
- }
329
- ), H = y(
330
- () => {
331
- var n;
332
- return ((n = e.granularities) == null ? void 0 : n.map(({ type: o, disabled: c }) => ({
333
- label: q(o),
334
- value: o,
335
- disabled: c
336
- }))) ?? [];
337
- }
338
- ), { getGranularCalendarLimits: W } = Ft(e), _ = y(
339
- () => e.granularities ? W(L.value) : { min: e.min ? x(e.min) : null, max: e.max ? P(e.max) : null }
340
- ), {
341
- adjustDateForQuarterly: ne,
342
- adjustDateForMonthly: K,
343
- adjustDateForWeekly: w,
344
- adjustStartDateInputForWeekly: M,
345
- adjustEndDateInputForWeekly: f,
346
- adjustStartDateInputForMonthly: re,
347
- adjustEndDateInputForMonthly: me,
348
- adjustStartDateInputForQuarterly: se,
349
- adjustEndDateInputForQuarterly: De
350
- } = yt(e.firstDayOfWeek), { savedRanges: B, saveRange: oe, resetSavedRanges: A } = xt(), R = (n) => {
351
- var o;
352
- return n ? ie(n, S.NUMERIC_DATE_YEAR_FIRST, {
353
- locale: N[(o = T.value) == null ? void 0 : o.substring(0, 2)] || N.enUS
354
- }) : "";
355
- }, Y = (n) => {
356
- var o;
357
- return n ? ie(n, S.HOUR_MINUTE_SECONDS, {
358
- locale: N[(o = T.value) == null ? void 0 : o.substring(0, 2)] || N.enUS
359
- }) : "";
360
- }, X = F(!1), Z = F(!1), V = F(!1), z = F(!1), l = Te({
361
- startDate: e.dateFormData.startDate,
362
- endDate: e.dateFormData.endDate,
363
- startTime: e.dateFormData.startTime,
364
- endTime: e.dateFormData.endTime
365
- }), pe = (n, o) => {
366
- let c = new Date(n);
367
- const [d, b, O] = o.split(":");
368
- return c = Pt(c, parseInt(d, 10)), c = qt(c, parseInt(b, 10)), c = Lt(c, parseInt(O, 10)), c;
369
- }, fe = (n) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(n), le = (n, o) => {
370
- const c = () => {
371
- if (o && I(o)) {
372
- const d = pe(new Date(o), n);
373
- if (e.min && d < $e(e.min, 0) || e.max && d > $e(e.max, 0))
374
- return !1;
375
- }
376
- return !0;
377
- };
378
- return fe(n) && c();
379
- }, u = (n, o) => !o || !fe(o) || e.variant === "month" ? n : pe(new Date(n), o), h = (n) => {
380
- l.startTime = Y(
381
- e.min && e.allowTimeInput && U(e.min, n.startDate) ? e.min : x(n.startDate)
382
- ), l.endTime = Y(
383
- e.max && e.allowTimeInput && U(e.max, n.endDate) ? e.max : P(n.endDate)
384
- ), s.startDate = u(n.startDate, l.startTime), s.endDate = u(n.endDate, l.endTime), s.range = null, e.granularities && A(), t(g.INPUT, {
385
- ...s,
386
- range: v.value
387
- });
388
- }, I = (n) => {
389
- const o = (d) => e.min && x(d) < x(e.min) || e.max && x(d) > x(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(x(d)) : !0;
390
- return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(n) && o(new Date(n));
391
- };
392
- We(() => {
393
- X.value = !!(e.dateFormData.startDate && !I(e.dateFormData.startDate)), e.allowTimeInput ? V.value = !!(e.dateFormData.startTime && !le(e.dateFormData.startTime, e.dateFormData.startDate)) : V.value = !1, Z.value = !!(e.dateFormData.endDate && !I(e.dateFormData.endDate)), e.allowTimeInput ? z.value = !!(e.dateFormData.endTime && !le(e.dateFormData.endTime, e.dateFormData.endDate)) : z.value = !1;
394
- });
395
- const J = (n) => {
396
- var o;
397
- l.startDate = R(n), l.startTime ? V.value && (l.startTime = (o = e.dateFormData) == null ? void 0 : o.startTime) : l.startTime = Y(n), X.value = !1, V.value = !1, t(g.START_DATE_SELECTED, n);
398
- }, j = (n) => {
399
- var o;
400
- l.endDate = R(n), l.endTime ? z.value && (l.endTime = (o = e.dateFormData) == null ? void 0 : o.endTime) : l.endTime = Y(P(n)), Z.value = !1, z.value = !1;
401
- }, ee = (n) => {
402
- const o = e.value[n];
403
- if (o)
404
- return o;
405
- if (e.dateFormData[n] && I(e.dateFormData[n]))
406
- return new Date(e.dateFormData[n]);
407
- }, be = ve((n) => {
408
- var o;
409
- if (I(n)) {
410
- let c = n;
411
- switch (X.value = !1, (o = L.value) == null ? void 0 : o.type) {
412
- case "weekly":
413
- c = M(
414
- n,
415
- R,
416
- _.value.min,
417
- _.value.max
418
- ), l.startDate = c;
419
- break;
420
- case "monthly":
421
- c = re(
422
- n,
423
- R,
424
- _.value.min,
425
- _.value.max
426
- ), l.startDate = c;
427
- break;
428
- case "quarterly":
429
- c = se(
430
- n,
431
- R,
432
- _.value.min,
433
- _.value.max
434
- ), l.startDate = c;
435
- break;
436
- }
437
- const d = te(c);
438
- s.startDate = u(d, l.startTime), s.endDate = u(
439
- te(l.endDate),
440
- l.endTime
441
- ), I(l.endDate) && (s.endDate = u(
442
- te(l.endDate),
443
- l.endTime
444
- ));
445
- const b = ee("endDate");
446
- s.range = null, t(g.FORM_DATE, {
447
- startDate: d,
448
- endDate: b
449
- }), t(g.INPUT, {
450
- ...s,
451
- range: v.value
452
- });
453
- } else
454
- X.value = !0, t(g.ERROR, { ...l });
455
- }, a), Xe = (n) => {
456
- l.startDate = qe(n), be(l.startDate);
457
- }, Se = ve((n) => {
458
- var o;
459
- if (I(n)) {
460
- let c = n;
461
- switch (Z.value = !1, (o = L.value) == null ? void 0 : o.type) {
462
- case "weekly":
463
- c = f(
464
- n,
465
- R,
466
- _.value.min,
467
- _.value.max
468
- ), l.endDate = c;
469
- break;
470
- case "monthly":
471
- c = me(
472
- n,
473
- R,
474
- _.value.min,
475
- _.value.max
476
- ), l.endDate = c;
477
- break;
478
- case "quarterly":
479
- c = De(
480
- n,
481
- R,
482
- _.value.min,
483
- _.value.max
484
- ), l.endDate = c;
485
- break;
486
- }
487
- const d = te(c);
488
- s.endDate = u(d, l.endTime), I(l.startDate) && (s.startDate = u(
489
- te(l.startDate),
490
- l.startTime
491
- ));
492
- const b = ee("startDate");
493
- s.range = null, t(g.FORM_DATE, {
494
- startDate: b,
495
- endDate: d
496
- }), t(g.INPUT, {
497
- ...s,
498
- range: v.value
499
- });
500
- } else
501
- Z.value = !0, t(g.ERROR, { ...l });
502
- }, a), Ze = (n) => {
503
- l.endDate = qe(n), Se(l.endDate);
504
- }, et = (n) => {
505
- _t(n);
506
- }, Ee = ve((n) => {
507
- if (le(n, e.dateFormData.startDate)) {
508
- V.value = !1, s.startDate = u(s.startDate, n);
509
- const o = ee("endDate");
510
- t(g.FORM_DATE, {
511
- startDate: s.startDate,
512
- endDate: o,
513
- startTime: n,
514
- endTime: l.endTime ?? e.dateFormData.endTime
515
- }), t(g.INPUT, {
516
- ...s,
517
- range: v.value
518
- });
519
- } else
520
- V.value = !0, t(g.ERROR, { ...l });
521
- }), ke = ve((n) => {
522
- le(n, e.dateFormData.endDate) ? (z.value = !1, s.endDate = u(s.endDate, n), t(g.FORM_DATE, {
523
- startDate: s.startDate,
524
- endDate: s.endDate,
525
- startTime: l.startTime ?? e.dateFormData.startTime,
526
- endTime: n
527
- }), t(g.INPUT, {
528
- ...s,
529
- range: v.value
530
- })) : (z.value = !0, t(g.ERROR, { ...l }));
531
- }), tt = (n) => {
532
- l.startTime = Le(n), Ee(l.startTime);
533
- }, at = (n) => {
534
- l.endTime = Le(n), ke(l.endTime);
535
- }, nt = (n) => {
536
- Nt(n);
537
- }, ue = (n, o, c, d) => {
538
- s.startDate = n, s.endDate = o, c && (s.granularity = c), d && (s.range = d);
539
- }, rt = (n) => {
540
- var c;
541
- const o = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: d }) => d === n);
542
- if (o) {
543
- A();
544
- const d = o.data, b = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : P(new Date(Date.now()))), O = d.isRelativeToNow && d.timeDifference ? new Date(b.getTime() - d.timeDifference) : d.startDate;
545
- l.endDate = R(b), l.startDate = R(O), ue(O, b, null, n), e.granularities && (s.granularity = d.granularity || k.value), l.startTime = Y(O), l.endTime = Y(b), s.startDate = O, s.endDate = b, d.isRelativeToNow && (E.value = {
546
- ...E.value,
547
- [n]: {
548
- startDate: O,
549
- endDate: b
550
- }
551
- }), t(g.CUSTOM_RANGE, {
552
- ...o.data,
553
- startDate: O,
554
- endDate: b,
555
- range: o.value
556
- });
557
- }
558
- }, he = {
559
- weekly: w,
560
- monthly: K,
561
- quarterly: ne
562
- }, st = (n) => {
563
- const o = s.granularity;
564
- if (s.granularity = n, o && oe(o, structuredClone(_e(s))), s.startDate && s.endDate) {
565
- switch (n) {
566
- case "quarterly":
567
- case "monthly":
568
- case "weekly": {
569
- if (B[n]) {
570
- ue(B[n].startDate, B[n].endDate, n);
571
- break;
572
- }
573
- const { startDate: c, endDate: d } = he[n](
574
- s.startDate,
575
- s.endDate,
576
- _.value.min,
577
- _.value.max
578
- );
579
- ue(c, d, n);
580
- break;
581
- }
582
- case "daily":
583
- B.daily && ue(B.daily.startDate, B.daily.endDate, n);
584
- break;
585
- }
586
- l.startDate = R(s.startDate), l.endDate = R(s.endDate), t(g.INPUT, {
587
- ...s,
588
- range: v.value
589
- });
590
- }
591
- }, ot = y(() => ({
592
- "b-date-range-picker-calendar__form-container--no-calendars": ae.value
593
- }));
594
- return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, props: e, emit: t, slots: D, hasSlot: p, locale: T, t: q, locales: N, calculatedIsRelativeToNowQuickSelectRanges: E, defaultGranularity: k, hasNoCalendars: ae, internalRangeDate: s, deserializeDate: m, selectedRangeSelectorValue: v, formInputWrapperConditionalClasses: G, quickSelectRangeDefaultItems: C, selectedGranularity: L, granularityItems: H, getGranularCalendarLimits: W, computedMinMax: _, adjustDateForQuarterly: ne, adjustDateForMonthly: K, adjustDateForWeekly: w, adjustStartDateInputForWeekly: M, adjustEndDateInputForWeekly: f, adjustStartDateInputForMonthly: re, adjustEndDateInputForMonthly: me, adjustStartDateInputForQuarterly: se, adjustEndDateInputForQuarterly: De, savedRanges: B, saveRange: oe, resetSavedRanges: A, formatDate: R, formatTime: Y, startDateError: X, endDateError: Z, startTimeError: V, endTimeError: z, dateTextInput: l, setTimeInDateObject: pe, isValidTimeString: fe, isValidTime: le, setTimeInDateRef: u, onDateInput: h, isValidDate: I, onStartDateSelected: J, onEndDateSelected: j, getDate: ee, validateStartDate: be, onStartDateInput: Xe, validateEndDate: Se, onEndDateInput: Ze, onDateInputKeyDown: et, validateStartTime: Ee, validateEndTime: ke, onStartTimeInput: tt, onEndTimeInput: at, onTimeInputKeyDown: nt, setInternalRange: ue, onRangeSelectorInput: rt, adjustDate: he, onGranularityInput: st, computedFormContainerClasses: ot, Calendar: $, BentoTypography: Ke, BentoInputField: mt, BentoDropdown: Dt, BentoSegmentedControl: pt };
595
- }
596
- });
597
- var Gt = function() {
598
- var t = this, e = t._self._c, a = t._self._setupProxy;
599
- return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" From ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateFrom"), "model-value": a.dateTextInput.startDate, error: a.startDateError }, on: { "update:model-value": a.onStartDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
600
- return [t._v("YYYY-MM-DD")];
601
- }, proxy: !0 }]) }), t.allowTimeInput ? e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeFrom"), "model-value": a.dateTextInput.startTime, error: a.startTimeError }, on: { "update:model-value": a.onStartTimeInput, keydown: a.onTimeInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
602
- return [t._v("HH:MM:SS")];
603
- }, proxy: !0 }], null, !1, 3442289499) }) : t._e()], 1)], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateTo"), "model-value": a.dateTextInput.endDate, error: a.endDateError }, on: { "update:model-value": a.onEndDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
604
- return [t._v("YYYY-MM-DD")];
605
- }, proxy: !0 }]) }), t.allowTimeInput ? e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeTo"), "model-value": a.dateTextInput.endTime, error: a.endTimeError }, on: { "update:model-value": a.onEndTimeInput, keydown: a.onTimeInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
606
- return [t._v("HH:MM:SS")];
607
- }, proxy: !0 }], null, !1, 3442289499) }) : t._e()], 1)], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), a.hasNoCalendars ? t._e() : e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1)]);
608
- }, Ht = [], Wt = /* @__PURE__ */ ze(
609
- Qt,
610
- Gt,
611
- Ht,
612
- !1,
613
- null,
614
- "849d410f"
615
- );
616
- const Kt = Wt.exports;
617
- function Qe(r, t) {
618
- const e = Q(r, t == null ? void 0 : t.in);
619
- return Math.trunc(e.getMonth() / 3) + 1;
620
- }
621
- function Ge(r, t) {
622
- return Q(r, t == null ? void 0 : t.in).getFullYear();
623
- }
624
- function Vt(r, t, e) {
625
- const [a, i] = It(
626
- e == null ? void 0 : e.in,
627
- r,
628
- t
629
- );
630
- return +ce(a) == +ce(i);
631
- }
632
- const zt = {
633
- "en-US": {
634
- apply: "Apply",
635
- cancel: "Cancel",
636
- dateRangePicker: "Date range picker {name}",
637
- provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
638
- quarter: "Q{quarter} {year}",
639
- selectDate: "Select a date",
640
- selectDateRange: "Select a date range",
641
- selectedDateIsNotAvailable: "Selected date is not available"
642
- },
643
- "ja-JP": {
644
- apply: "適用",
645
- cancel: "キャンセル",
646
- selectDate: "日付を選択"
647
- },
648
- "pt-BR": {
649
- apply: "Aplicar",
650
- cancel: "Cancelar",
651
- selectDate: "Selecione uma data"
652
- }
653
- }, Jt = ({
654
- datePickerValue: r,
655
- isDateIncorrect: t,
656
- quickSelectRanges: e,
657
- isMonthVariant: a,
658
- withTimeInput: i,
659
- placeholder: D
660
- }) => {
661
- const { locale: p, t: T } = Ie(), q = Re(), N = (m) => !!m && !isNaN(m.getTime()), E = (m, v) => {
662
- var G;
663
- return N(m) ? ie(m, v, {
664
- locale: q[(G = p.value) == null ? void 0 : G.substring(0, 2)] || q.enUS
665
- }) : void 0;
666
- }, k = Te({
667
- startDate: null,
668
- endDate: null,
669
- startTime: null,
670
- endTime: null
671
- });
672
- return ye(
673
- r,
674
- (m) => {
675
- k.startDate = E(
676
- m == null ? void 0 : m.startDate,
677
- S.NUMERIC_DATE_YEAR_FIRST
678
- ), k.endDate = E(m == null ? void 0 : m.endDate, S.NUMERIC_DATE_YEAR_FIRST), k.startTime = E(m == null ? void 0 : m.startDate, S.HOUR_MINUTE_SECONDS), k.endTime = E(m == null ? void 0 : m.endDate, S.HOUR_MINUTE_SECONDS);
679
- },
680
- { immediate: !0 }
681
- ), {
682
- // Values
683
- dateDisplayValue: y(() => {
684
- var K;
685
- if (t.value)
686
- return `${k.startDate || ""} - ${k.endDate || ""}`;
687
- if (!r.value || !r.value.startDate && !r.value.endDate)
688
- return (D == null ? void 0 : D.value) || T("selectDateRange");
689
- if ((K = e.value) != null && K.length) {
690
- const w = e.value.find(({ value: M }) => {
691
- var f;
692
- return M === ((f = r.value) == null ? void 0 : f.range);
693
- });
694
- if (w)
695
- return w.label;
696
- }
697
- if (r.value.granularity === "quarterly") {
698
- const { startDate: w, endDate: M } = r.value, f = T("quarter", { quarter: Qe(w), year: Ge(w) });
699
- if (Vt(w, M))
700
- return f;
701
- const re = T("quarter", { quarter: Qe(M), year: Ge(M) });
702
- return `${f} - ${re}`;
703
- }
704
- const { startDate: m, endDate: v, startTime: G, endTime: C } = k, L = a != null && a.value ? S.LONG_MONTH_YEAR : S.FULL_DATE_MONTH_FIRST, H = E(te(m), L), W = E(te(v), L);
705
- if (!i.value)
706
- return `${H} - ${W}`;
707
- const _ = [H, G].filter(Boolean).join(", "), ne = [W, C].filter(Boolean).join(", ");
708
- return `${_} - ${ne}`;
709
- }),
710
- textInputDisplayValue: k,
711
- // Methods
712
- formatTextInputDisplayValue: () => ""
713
- };
714
- }, Xt = {
715
- i18n: { messages: zt },
716
- name: "bento-date-range-picker",
717
- model: { prop: "modelValue" }
718
- }, Zt = /* @__PURE__ */ He({
719
- ...Xt,
720
- props: {
721
- description: { default: void 0 },
722
- disabled: { type: Boolean, default: !1 },
723
- errorMessage: { default: null },
724
- label: { default: void 0 },
725
- optional: { type: Boolean, default: !1 },
726
- placeholder: { default: null },
727
- readonly: { type: Boolean, default: !1 },
728
- required: { type: Boolean, default: !1 },
729
- tooltipText: { default: null },
730
- allowTimeInput: { type: Boolean },
731
- firstDayOfWeek: { default: 1 },
732
- granularities: null,
733
- isDateDisabled: { default: void 0 },
734
- showEndDateOnOpen: { type: Boolean, default: !1 },
735
- quickSelectRanges: { default: void 0 },
736
- maxRange: { default: null },
737
- min: { default: null },
738
- max: { default: null },
739
- numberOfMonths: { default: void 0 },
740
- modelValue: { default: null },
741
- value: { default: null },
742
- variant: { default: void 0 },
743
- hasActions: { type: Boolean, default: !1 }
744
- },
745
- emits: ["update:model-value", "input"],
746
- setup(r, { emit: t }) {
747
- const e = r, { locale: a, t: i } = Ie(), D = Re(), p = de("bento-date-range-picker-container"), T = de("bento-date-range-picker-label"), q = de("bento-date-range-picker-description"), N = de("bento-date-range-picker-error"), E = de("bento-date-range-picker-date-error"), k = y(() => e.label || i("dateRangePicker", { name: p })), ae = it({
748
- none: 0,
749
- one: 710,
750
- // width of date range picker with one panes
751
- two: 1030,
752
- // width of date range picker with two panes
753
- three: 1290
754
- // width of date range picker with three panes
755
- }), s = y(() => {
756
- const u = ae.active().value, h = {
757
- none: 0,
758
- one: 1,
759
- two: 2
760
- };
761
- if (u in h) {
762
- const I = h[u];
763
- return e.numberOfMonths === void 0 ? I : Math.min(e.numberOfMonths, I);
764
- }
765
- return e.numberOfMonths;
766
- }), m = y(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((u) => {
767
- const h = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
768
- return {
769
- ...u,
770
- data: {
771
- ...u.data,
772
- // Adding timeDifference to calculate an up-to-date endDate on range selection
773
- timeDifference: h
774
- }
775
- };
776
- })), v = F(!1), G = F(null), C = F(!1), { isReadOnly: L } = St(Fe(e, "readonly")), { emitValue: H } = Et(t);
777
- ye(
778
- () => e.disabled,
779
- () => {
780
- e.disabled && C.value && (C.value = !1);
781
- }
782
- );
783
- const W = y(() => e.modelValue || e.value), _ = y(() => e.hasActions ? !R.value && v.value : v.value), ne = y(() => ({
784
- "b-date-range-picker__description--error": !!e.errorMessage || _.value
785
- })), K = y(() => e.variant === "month"), w = y(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: M, textInputDisplayValue: f, formatTextInputDisplayValue: re } = Jt({
786
- datePickerValue: W,
787
- isDateIncorrect: v,
788
- quickSelectRanges: m,
789
- isMonthVariant: K,
790
- withTimeInput: w,
791
- placeholder: Fe(e, "placeholder")
792
- }), me = y(
793
- () => `${e.description ? q : ""} ${e.errorMessage ? N : ""} ${v.value ? E : ""}`.trim() || null
794
- ), se = () => {
795
- C.value = !1;
796
- }, De = () => {
797
- C.value = !0;
798
- }, B = F(M.value), oe = F(
799
- // textInputDisplayValue is a reactive object
800
- structuredClone(_e(f))
801
- ), A = F(e.modelValue ?? e.value), R = F(!0), Y = y(
802
- () => e.hasActions ? oe.value : f
803
- ), X = y(
804
- () => e.hasActions ? B.value : M.value
805
- );
806
- We(() => {
807
- if (e.hasActions || xe(
808
- 'BentoDateRangePicker "hasActions" property',
809
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
810
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
811
- "2.0.0"
812
- ), e.value && xe(
813
- 'BentoDateRangePicker "value" property',
814
- 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
815
- "2.0.0"
816
- ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
817
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
818
- }), ye([() => e.value, () => e.modelValue], () => {
819
- B.value = M.value, oe.value = structuredClone(_e(f));
820
- });
821
- const Z = y(() => [
822
- {
823
- title: i("apply"),
824
- event: () => {
825
- H(A.value), se(), R.value = !0;
826
- },
827
- disabled: R.value
828
- },
829
- {
830
- title: i("cancel"),
831
- event: se
832
- }
833
- ]);
834
- return ye(A, (u) => {
835
- if (e.hasActions) {
836
- R.value = v.value;
837
- return;
838
- }
839
- H(u);
840
- }), { __sfc: !0, emit: t, props: e, locale: a, t: i, locales: D, datePickerContainerId: p, labelId: T, descriptionId: q, errorId: N, dateErrorId: E, popoverAriaLabel: k, breakpoints: ae, computedNumberOfMonths: s, adjustedQuickSelectRanges: m, isDateIncorrect: v, inputContainerRef: G, isDateRangePickerOpen: C, isReadOnly: L, emitValue: H, internalModelValue: W, shouldDisplayError: _, descriptionConditionalClasses: ne, isMonthVariant: K, withTimeInput: w, dateDisplayValue: M, textInputDisplayValue: f, formatTextInputDisplayValue: re, ariaDescribedBy: me, closeDateRangePicker: se, openDateRangePicker: De, localDateDisplayValue: B, localTextInputDisplayValue: oe, selectedDate: A, isApplyDisabled: R, displayedTextInputValue: Y, displayedDateValue: X, rangePickerButtonActions: Z, onDateRangePickerInput: (u) => {
841
- v.value = !1;
842
- const h = (I, J) => {
843
- var j;
844
- return I ? ie(I, J, {
845
- locale: D[(j = a.value) == null ? void 0 : j.substring(0, 2)] || D.enUS
846
- }) : void 0;
847
- };
848
- f.startDate = h(u.startDate, S.NUMERIC_DATE_YEAR_FIRST), f.endDate = h(u.endDate, S.NUMERIC_DATE_YEAR_FIRST), f.startTime = h(u.startDate, S.HOUR_MINUTE_SECONDS), f.endTime = h(u.endDate, S.HOUR_MINUTE_SECONDS), A.value = u;
849
- }, clearDateRangePickerValue: async () => {
850
- v.value && (v.value = !1), A.value = null;
851
- }, onEnterPressedOverInput: () => {
852
- if (!C.value) {
853
- C.value = !0;
854
- return;
855
- }
856
- v.value || (C.value = !1);
857
- }, onDateRangePickerFormDateInputUpdate: (u) => {
858
- v.value = !1, u.startTime && (f.startTime = u.startTime), u.endTime && (f.endTime = u.endTime);
859
- }, onDateRangePickerError: (u) => {
860
- v.value = !0, f.startDate = u.startDate, f.endDate = u.endDate, A.value = { startDate: null, endDate: null };
861
- }, onRangeSelectorInput: (u) => {
862
- if (u) {
863
- const h = (J, j) => {
864
- var ee;
865
- return J ? ie(J, j, {
866
- locale: D[(ee = a.value) == null ? void 0 : ee.substring(0, 2)] || D.enUS
867
- }) : void 0;
868
- }, I = (J) => {
869
- var j;
870
- return ie(J, S.NUMERIC_DATE_YEAR_FIRST, {
871
- locale: D[(j = a.value) == null ? void 0 : j.substring(0, 2)] || D.enUS
872
- });
873
- };
874
- f.startDate = I(u.startDate), f.endDate = I(u.endDate), f.startTime = h(
875
- u.startDate,
876
- S.HOUR_MINUTE_SECONDS
877
- ), f.endTime = h(u.endDate, S.HOUR_MINUTE_SECONDS), A.value = u;
878
- }
879
- }, BentoButtonActions: ct, BentoButtonActionsLayout: Ct, BentoDivider: ut, BentoPopover: dt, BentoTypography: Ke, DateRangePickerCalendar: Kt, DropdownInputDefault: kt, ErrorMessage: Ot, FieldLabel: Mt, vBentoClickOutsideDirective: ht };
880
- }
881
- });
882
- var ea = function() {
883
- var t = this, e = t._self._c, a = t._self._setupProxy;
884
- return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { on: { keydown: function(i) {
885
- return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
886
- } } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": t.label ? a.labelId : null, "aria-describedby": a.ariaDescribedBy, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.displayedDateValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("provideDateInAFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(i) {
887
- return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
888
- } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "first-day-of-week": t.firstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
889
- return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
890
- }, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
891
- }, ta = [], aa = /* @__PURE__ */ ze(
892
- Zt,
893
- ea,
894
- ta,
895
- !1,
896
- null,
897
- "f840ff41"
898
- );
899
- const Ma = aa.exports;
900
- export {
901
- Ma as B,
902
- Kt as D,
903
- Yt as a,
904
- ge as i
905
- };
906
- //# sourceMappingURL=date-range-picker.Bw1yPTu-.js.map