@adyen/bento-vue3 1.72.0 → 1.74.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 (333) hide show
  1. package/dist/@types/components.d.ts +2 -10
  2. package/dist/@types/index.d.ts +1543 -1703
  3. package/dist/@types/use-form-v4.d.ts +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/action-bar.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.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.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/country.css +1 -1
  16. package/dist/assets/currency.css +1 -1
  17. package/dist/assets/data-grid-template.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/dropdown-default-textbox.css +1 -1
  23. package/dist/assets/dropdown-tag.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/file-uploader.css +1 -1
  26. package/dist/assets/filter-bar.css +1 -1
  27. package/dist/assets/form-layout-title.css +1 -1
  28. package/dist/assets/header-meta.css +1 -1
  29. package/dist/assets/header-with-views.css +1 -1
  30. package/dist/assets/input-field-password.css +1 -1
  31. package/dist/assets/input-field-phone-number.css +1 -1
  32. package/dist/assets/input-field.css +1 -1
  33. package/dist/assets/inspector.css +1 -1
  34. package/dist/assets/listbox-option-tag.css +1 -1
  35. package/dist/assets/loading-indicator.css +1 -1
  36. package/dist/assets/modal-fullscreen.css +1 -1
  37. package/dist/assets/pagination.css +1 -1
  38. package/dist/assets/popper-container.css +1 -1
  39. package/dist/assets/radio-group.css +1 -1
  40. package/dist/assets/radio-input.css +1 -1
  41. package/dist/assets/secondary-nav.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/assets/selection-card-group.css +1 -1
  44. package/dist/assets/sidepanel.css +1 -1
  45. package/dist/assets/step.css +1 -1
  46. package/dist/assets/tab.css +1 -1
  47. package/dist/assets/textarea.css +1 -1
  48. package/dist/assets/timeline-item.css +1 -1
  49. package/dist/assets/toggle.css +1 -1
  50. package/dist/assets/tooltip.css +1 -1
  51. package/dist/assets/tutorial.css +1 -1
  52. package/dist/assets/use-cached-selected-values.css +1 -1
  53. package/dist/avatar.js +1 -1
  54. package/dist/button.js +3 -3
  55. package/dist/card.js +1 -1
  56. package/dist/checkbox.js +2 -2
  57. package/dist/chip.js +1 -1
  58. package/dist/chunks/{accordion-item.6etqAJV9.js → accordion-item.Bd3v6erb.js} +2 -2
  59. package/dist/chunks/{accordion-item.6etqAJV9.js.map → accordion-item.Bd3v6erb.js.map} +1 -1
  60. package/dist/chunks/{action-bar.DDLTN9TB.js → action-bar.BZ04Y7Yi.js} +5 -5
  61. package/dist/chunks/{action-bar.DDLTN9TB.js.map → action-bar.BZ04Y7Yi.js.map} +1 -1
  62. package/dist/chunks/{ai-button.DsNrcgpK.js → ai-button.DaRuea3x.js} +2 -2
  63. package/dist/chunks/{ai-button.DsNrcgpK.js.map → ai-button.DaRuea3x.js.map} +1 -1
  64. package/dist/chunks/{alert.Dzx5MzgE.js → alert.C2pusd-_.js} +3 -3
  65. package/dist/chunks/{alert.Dzx5MzgE.js.map → alert.C2pusd-_.js.map} +1 -1
  66. package/dist/chunks/{avatar.Dq59yj6m.js → avatar.P2Fkz2I6.js} +27 -26
  67. package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
  68. package/dist/chunks/{base-modal.Djw4pVal.js → base-modal.UA93s_8c.js} +7 -7
  69. package/dist/chunks/base-modal.UA93s_8c.js.map +1 -0
  70. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js → button-actions-with-menu.BeQ-j1bv.js} +2 -2
  71. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js.map → button-actions-with-menu.BeQ-j1bv.js.map} +1 -1
  72. package/dist/chunks/{button-actions.D1eBtYgZ.js → button-actions.BQ3AFQqt.js} +13 -16
  73. package/dist/chunks/button-actions.BQ3AFQqt.js.map +1 -0
  74. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  75. package/dist/chunks/{button.C-MAa6ut.js → button.DhcxX2GJ.js} +2 -2
  76. package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
  77. package/dist/chunks/{calendar.B1a_mV-Q.js → calendar.Cqjyxc69.js} +314 -310
  78. package/dist/chunks/calendar.Cqjyxc69.js.map +1 -0
  79. package/dist/chunks/{card.B9lWURmF.js → card.GxkxfBoV.js} +23 -23
  80. package/dist/chunks/card.GxkxfBoV.js.map +1 -0
  81. package/dist/chunks/{checkbox-group.CcgOK4yt.js → checkbox-group.8ebmaHsA.js} +4 -4
  82. package/dist/chunks/{checkbox-group.CcgOK4yt.js.map → checkbox-group.8ebmaHsA.js.map} +1 -1
  83. package/dist/chunks/{checkbox.73QYC0y8.js → checkbox.BI0dqARY.js} +4 -4
  84. package/dist/chunks/{checkbox.73QYC0y8.js.map → checkbox.BI0dqARY.js.map} +1 -1
  85. package/dist/chunks/{chip.CUwVpPVo.js → chip.DuLyhNCy.js} +2 -2
  86. package/dist/chunks/{chip.CUwVpPVo.js.map → chip.DuLyhNCy.js.map} +1 -1
  87. package/dist/chunks/{code-snippet.DL_1HNKV.js → code-snippet.CO78Nfj0.js} +7 -7
  88. package/dist/chunks/{code-snippet.DL_1HNKV.js.map → code-snippet.CO78Nfj0.js.map} +1 -1
  89. package/dist/chunks/{controls-group.CdTg-WDi.js → controls-group.cbGiHr7n.js} +2 -2
  90. package/dist/chunks/{controls-group.CdTg-WDi.js.map → controls-group.cbGiHr7n.js.map} +1 -1
  91. package/dist/chunks/{copy.Da1OGFTr.js → copy.ClKnDjMI.js} +5 -5
  92. package/dist/chunks/{copy.Da1OGFTr.js.map → copy.ClKnDjMI.js.map} +1 -1
  93. package/dist/chunks/country.DmnN9YIW.js +69 -0
  94. package/dist/chunks/country.DmnN9YIW.js.map +1 -0
  95. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  96. package/dist/chunks/{currency.CN4UnCx8.js → currency.CBZMwm21.js} +55 -38
  97. package/dist/chunks/currency.CBZMwm21.js.map +1 -0
  98. package/dist/chunks/{dashboard-section.BXE7_Y9R.js → dashboard-section.CVttsom5.js} +3 -3
  99. package/dist/chunks/{dashboard-section.BXE7_Y9R.js.map → dashboard-section.CVttsom5.js.map} +1 -1
  100. package/dist/chunks/{dashed-underline.28J-9i5D.js → dashed-underline.r62L_XBr.js} +3 -3
  101. package/dist/chunks/{dashed-underline.28J-9i5D.js.map → dashed-underline.r62L_XBr.js.map} +1 -1
  102. package/dist/chunks/{data-grid-template.B13OrA1T.js → data-grid-template.CFt1NV_4.js} +4 -4
  103. package/dist/chunks/{data-grid-template.B13OrA1T.js.map → data-grid-template.CFt1NV_4.js.map} +1 -1
  104. package/dist/chunks/data-grid.BjPdbx50.js +4071 -0
  105. package/dist/chunks/data-grid.BjPdbx50.js.map +1 -0
  106. package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
  107. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  108. package/dist/chunks/date-picker.DSkvT_CA.js +234 -0
  109. package/dist/chunks/date-picker.DSkvT_CA.js.map +1 -0
  110. package/dist/chunks/date-range-picker.cmg75lC-.js +1117 -0
  111. package/dist/chunks/date-range-picker.cmg75lC-.js.map +1 -0
  112. package/dist/chunks/{date.4GAXrgy5.js → date.DZvVL-uz.js} +3 -3
  113. package/dist/chunks/{date.4GAXrgy5.js.map → date.DZvVL-uz.js.map} +1 -1
  114. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  115. package/dist/chunks/{dialog-page.1ZVnUqpT.js → dialog-page.zWrBSgBD.js} +3 -3
  116. package/dist/chunks/dialog-page.zWrBSgBD.js.map +1 -0
  117. package/dist/chunks/{dropdown-default-textbox.CGsOngY1.js → dropdown-default-textbox.MkU0tMf1.js} +29 -29
  118. package/dist/chunks/dropdown-default-textbox.MkU0tMf1.js.map +1 -0
  119. package/dist/chunks/{dropdown-tag.hIiGmmBD.js → dropdown-tag.DvQQIJsw.js} +134 -122
  120. package/dist/chunks/dropdown-tag.DvQQIJsw.js.map +1 -0
  121. package/dist/chunks/{dropdown.GyDAswAO.js → dropdown.bLsoTZbw.js} +350 -339
  122. package/dist/chunks/dropdown.bLsoTZbw.js.map +1 -0
  123. package/dist/chunks/{empty-state.BsKJ-1pT.js → empty-state.Be6M8ivH.js} +2 -2
  124. package/dist/chunks/{empty-state.BsKJ-1pT.js.map → empty-state.Be6M8ivH.js.map} +1 -1
  125. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  126. package/dist/chunks/{field-label.DSeawpYh.js → field-label.C97CrBI_.js} +3 -3
  127. package/dist/chunks/{field-label.DSeawpYh.js.map → field-label.C97CrBI_.js.map} +1 -1
  128. package/dist/chunks/{file-uploader.DELe6_NM.js → file-uploader.By0MTfKk.js} +87 -88
  129. package/dist/chunks/file-uploader.By0MTfKk.js.map +1 -0
  130. package/dist/chunks/filter-bar.nX73NKNC.js +2948 -0
  131. package/dist/chunks/filter-bar.nX73NKNC.js.map +1 -0
  132. package/dist/chunks/{fixed-scroller.BASYH576.js → fixed-scroller.Dmg8r9QP.js} +3 -3
  133. package/dist/chunks/{fixed-scroller.BASYH576.js.map → fixed-scroller.Dmg8r9QP.js.map} +1 -1
  134. package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -1
  135. package/dist/chunks/{footer-actions.Bqn-Jp0p.js → footer-actions.BO52wpv-.js} +3 -3
  136. package/dist/chunks/{footer-actions.Bqn-Jp0p.js.map → footer-actions.BO52wpv-.js.map} +1 -1
  137. package/dist/chunks/{form-layout-title.DdRqnXXi.js → form-layout-title.61ESsGAY.js} +20 -12
  138. package/dist/chunks/form-layout-title.61ESsGAY.js.map +1 -0
  139. package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -1
  140. package/dist/chunks/{header-meta.BXOpbsSR.js → header-meta.C4iaUsfq.js} +13 -10
  141. package/dist/chunks/{header-meta.BXOpbsSR.js.map → header-meta.C4iaUsfq.js.map} +1 -1
  142. package/dist/chunks/{header-with-views.afPw_Czi.js → header-with-views.BLW817ZC.js} +207 -207
  143. package/dist/chunks/header-with-views.BLW817ZC.js.map +1 -0
  144. package/dist/chunks/{header.9kRuPR3K.js → header.DARVAeE9.js} +3 -3
  145. package/dist/chunks/{header.9kRuPR3K.js.map → header.DARVAeE9.js.map} +1 -1
  146. package/dist/chunks/index.pdBj0KQU.js +15 -0
  147. package/dist/chunks/index.pdBj0KQU.js.map +1 -0
  148. package/dist/chunks/{info-icon.CRnO5lpq.js → info-icon.BhOm72U4.js} +3 -3
  149. package/dist/chunks/{info-icon.CRnO5lpq.js.map → info-icon.BhOm72U4.js.map} +1 -1
  150. package/dist/chunks/{input-field-password.JZkGOiMd.js → input-field-password.BtM3-txc.js} +8 -8
  151. package/dist/chunks/input-field-password.BtM3-txc.js.map +1 -0
  152. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js → input-field-phone-number.oaNB69nM.js} +631 -631
  153. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js.map → input-field-phone-number.oaNB69nM.js.map} +1 -1
  154. package/dist/chunks/{input-field.2S8zBviE.js → input-field.D_tADgPG.js} +5 -5
  155. package/dist/chunks/input-field.D_tADgPG.js.map +1 -0
  156. package/dist/chunks/{inspector.C-yVhM15.js → inspector.BKP15cx6.js} +4 -4
  157. package/dist/chunks/inspector.BKP15cx6.js.map +1 -0
  158. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  159. package/dist/chunks/{listbox-option-tag.CtJUykfB.js → listbox-option-tag.uHSB7MO6.js} +9 -9
  160. package/dist/chunks/listbox-option-tag.uHSB7MO6.js.map +1 -0
  161. package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
  162. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
  163. package/dist/chunks/{modal-fullscreen.CIxazX33.js → modal-fullscreen.DTT-5rQX.js} +6 -6
  164. package/dist/chunks/{modal-fullscreen.CIxazX33.js.map → modal-fullscreen.DTT-5rQX.js.map} +1 -1
  165. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js} +6 -6
  166. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js.map} +1 -1
  167. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  168. package/dist/chunks/{pagination.NDwXq6fh.js → pagination.D1Gdo5to.js} +5 -5
  169. package/dist/chunks/pagination.D1Gdo5to.js.map +1 -0
  170. package/dist/chunks/popover.types.BFFy1ChU.js +6 -0
  171. package/dist/chunks/{popover.types.Bp97CGc4.js.map → popover.types.BFFy1ChU.js.map} +1 -1
  172. package/dist/chunks/{popper-container.5cq-eu41.js → popper-container.Uod3yjsR.js} +2 -2
  173. package/dist/chunks/{popper-container.5cq-eu41.js.map → popper-container.Uod3yjsR.js.map} +1 -1
  174. package/dist/chunks/{promo-banner.ChT2zKkO.js → promo-banner.B-TLTLEd.js} +3 -3
  175. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
  176. package/dist/chunks/radio-group.DWNqrkZ3.js +277 -0
  177. package/dist/chunks/radio-group.DWNqrkZ3.js.map +1 -0
  178. package/dist/chunks/{radio-input.odN9FOyr.js → radio-input.CBNE-AkM.js} +13 -14
  179. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -0
  180. package/dist/chunks/{rich-text-editor.D770fUpS.js → rich-text-editor.BK9AivIm.js} +6 -6
  181. package/dist/chunks/{rich-text-editor.D770fUpS.js.map → rich-text-editor.BK9AivIm.js.map} +1 -1
  182. package/dist/chunks/{search-bar.rZ_38y4j.js → search-bar.BD_R-vgA.js} +4 -4
  183. package/dist/chunks/{search-bar.rZ_38y4j.js.map → search-bar.BD_R-vgA.js.map} +1 -1
  184. package/dist/chunks/{secondary-nav.BBE8HyDR.js → secondary-nav.Du2PL7Ok.js} +5 -5
  185. package/dist/chunks/secondary-nav.Du2PL7Ok.js.map +1 -0
  186. package/dist/chunks/{segmented-control.D0SoqGlC.js → segmented-control.BCHGDSrf.js} +47 -45
  187. package/dist/chunks/segmented-control.BCHGDSrf.js.map +1 -0
  188. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  189. package/dist/chunks/{selection-card-group.KK9ZPqiU.js → selection-card-group._RgLiMyQ.js} +5 -5
  190. package/dist/chunks/selection-card-group._RgLiMyQ.js.map +1 -0
  191. package/dist/chunks/{sidepanel.CyPW8jxA.js → sidepanel.CS9CfAWZ.js} +19 -19
  192. package/dist/chunks/{sidepanel.CyPW8jxA.js.map → sidepanel.CS9CfAWZ.js.map} +1 -1
  193. package/dist/chunks/{step.Ci-e1V9E.js → step.CoSuGK16.js} +4 -4
  194. package/dist/chunks/step.CoSuGK16.js.map +1 -0
  195. package/dist/chunks/{structured-list-item.CSkcduKn.js → structured-list-item.BTPh7SPj.js} +6 -6
  196. package/dist/chunks/{structured-list-item.CSkcduKn.js.map → structured-list-item.BTPh7SPj.js.map} +1 -1
  197. package/dist/chunks/{summary-grid.types.C-gcwqwB.js → summary-grid.types.ByQ4u19J.js} +6 -6
  198. package/dist/chunks/{summary-grid.types.C-gcwqwB.js.map → summary-grid.types.ByQ4u19J.js.map} +1 -1
  199. package/dist/chunks/{tab.8bEkiAkk.js → tab.CD5Eu6ql.js} +3 -3
  200. package/dist/chunks/tab.CD5Eu6ql.js.map +1 -0
  201. package/dist/chunks/{tag.BFYNxO6t.js → tag.CEmpyuYX.js} +2 -2
  202. package/dist/chunks/{tag.BFYNxO6t.js.map → tag.CEmpyuYX.js.map} +1 -1
  203. package/dist/chunks/textarea.C1jkfowf.js +246 -0
  204. package/dist/chunks/textarea.C1jkfowf.js.map +1 -0
  205. package/dist/chunks/{timeline-item.BiivSMPD.js → timeline-item.C8PA_w7m.js} +9 -9
  206. package/dist/chunks/timeline-item.C8PA_w7m.js.map +1 -0
  207. package/dist/chunks/{toast.DIhABAW8.js → toast.6oJx7SNq.js} +3 -3
  208. package/dist/chunks/{toast.DIhABAW8.js.map → toast.6oJx7SNq.js.map} +1 -1
  209. package/dist/chunks/toggle.Dd_NA8eH.js +143 -0
  210. package/dist/chunks/toggle.Dd_NA8eH.js.map +1 -0
  211. package/dist/chunks/tooltip.Dp9_ESm_.js +202 -0
  212. package/dist/chunks/tooltip.Dp9_ESm_.js.map +1 -0
  213. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js → tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js} +6 -6
  214. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js.map +1 -0
  215. package/dist/chunks/{use-cached-selected-values.CBOWMI4O.js → use-cached-selected-values.C32tjNKy.js} +114 -114
  216. package/dist/chunks/use-cached-selected-values.C32tjNKy.js.map +1 -0
  217. package/dist/chunks/{use-country-items.D_kamcYy.js → use-country-items.Dzbl2UsO.js} +7 -7
  218. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
  219. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  220. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  221. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  222. package/dist/code-snippet.js +1 -1
  223. package/dist/country.js +1 -1
  224. package/dist/currency.js +1 -1
  225. package/dist/dashboard-template.js +1 -1
  226. package/dist/dashed-underline.js +1 -1
  227. package/dist/data-grid-template.js +1 -1
  228. package/dist/data-grid.js +1 -1
  229. package/dist/date-picker.js +5 -4
  230. package/dist/date-range-picker.js +5 -4
  231. package/dist/date.js +1 -1
  232. package/dist/dropdown.js +4 -4
  233. package/dist/empty-state.js +1 -1
  234. package/dist/file-uploader.js +1 -1
  235. package/dist/filter-bar.js +5 -4
  236. package/dist/form-layout.js +1 -1
  237. package/dist/header-with-views.js +1 -1
  238. package/dist/header.js +1 -1
  239. package/dist/index.js +405 -329
  240. package/dist/index.js.map +1 -1
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +12 -12
  247. package/dist/loading-indicator.js +1 -1
  248. package/dist/menu.js +1 -1
  249. package/dist/modal-fullscreen.js +1 -1
  250. package/dist/modal.js +2 -2
  251. package/dist/pagination.js +1 -1
  252. package/dist/popover.js +2 -2
  253. package/dist/popper-container.js +1 -1
  254. package/dist/promo-banner.js +1 -1
  255. package/dist/radio-group.js +2 -2
  256. package/dist/rich-text-editor.js +1 -1
  257. package/dist/search-bar.js +2 -2
  258. package/dist/secondary-nav.js +1 -1
  259. package/dist/segmented-control.js +1 -1
  260. package/dist/selection-card.js +1 -1
  261. package/dist/sidepanel.js +1 -1
  262. package/dist/stepper.js +1 -1
  263. package/dist/structured-list.js +1 -1
  264. package/dist/styles/bento-dark.css +25 -15
  265. package/dist/styles/bento-light.css +9 -3
  266. package/dist/styles/bento.css +9 -3
  267. package/dist/styles/legacy.css +9 -3
  268. package/dist/styles/styleguide.css +9 -3
  269. package/dist/summary-grid.js +1 -1
  270. package/dist/tabs.js +1 -1
  271. package/dist/tag.js +1 -1
  272. package/dist/textarea.js +1 -1
  273. package/dist/timeline.js +1 -1
  274. package/dist/toast.js +1 -1
  275. package/dist/toggle.js +1 -1
  276. package/dist/tutorial.js +1 -1
  277. package/dist/use-form-v4.js.map +1 -1
  278. package/dist/web-types.json +1 -1
  279. package/package.json +14 -12
  280. package/dist/chunks/avatar.Dq59yj6m.js.map +0 -1
  281. package/dist/chunks/base-modal.Djw4pVal.js.map +0 -1
  282. package/dist/chunks/button-actions.D1eBtYgZ.js.map +0 -1
  283. package/dist/chunks/button.C-MAa6ut.js.map +0 -1
  284. package/dist/chunks/calendar.B1a_mV-Q.js.map +0 -1
  285. package/dist/chunks/card.B9lWURmF.js.map +0 -1
  286. package/dist/chunks/country.RVvsGwuV.js +0 -99
  287. package/dist/chunks/country.RVvsGwuV.js.map +0 -1
  288. package/dist/chunks/currency.CN4UnCx8.js.map +0 -1
  289. package/dist/chunks/data-grid._xo6LEB-.js +0 -4010
  290. package/dist/chunks/data-grid._xo6LEB-.js.map +0 -1
  291. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  292. package/dist/chunks/date-picker.Bkz4GmyC.js +0 -319
  293. package/dist/chunks/date-picker.Bkz4GmyC.js.map +0 -1
  294. package/dist/chunks/date-range-picker.9Zlg9xnH.js +0 -1171
  295. package/dist/chunks/date-range-picker.9Zlg9xnH.js.map +0 -1
  296. package/dist/chunks/dialog-page.1ZVnUqpT.js.map +0 -1
  297. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +0 -1
  298. package/dist/chunks/dropdown-tag.hIiGmmBD.js.map +0 -1
  299. package/dist/chunks/dropdown.GyDAswAO.js.map +0 -1
  300. package/dist/chunks/file-uploader.DELe6_NM.js.map +0 -1
  301. package/dist/chunks/filter-bar.BLhRZzJa.js +0 -3005
  302. package/dist/chunks/filter-bar.BLhRZzJa.js.map +0 -1
  303. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +0 -1
  304. package/dist/chunks/header-with-views.afPw_Czi.js.map +0 -1
  305. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  306. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  307. package/dist/chunks/input-field-password.JZkGOiMd.js.map +0 -1
  308. package/dist/chunks/input-field.2S8zBviE.js.map +0 -1
  309. package/dist/chunks/inspector.C-yVhM15.js.map +0 -1
  310. package/dist/chunks/listbox-option-tag.CtJUykfB.js.map +0 -1
  311. package/dist/chunks/loading-indicator.VHi5tbZa.js +0 -44
  312. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +0 -1
  313. package/dist/chunks/pagination.NDwXq6fh.js.map +0 -1
  314. package/dist/chunks/popover.types.Bp97CGc4.js +0 -6
  315. package/dist/chunks/promo-banner.ChT2zKkO.js.map +0 -1
  316. package/dist/chunks/radio-group.BNiif4On.js +0 -329
  317. package/dist/chunks/radio-group.BNiif4On.js.map +0 -1
  318. package/dist/chunks/radio-input.odN9FOyr.js.map +0 -1
  319. package/dist/chunks/secondary-nav.BBE8HyDR.js.map +0 -1
  320. package/dist/chunks/segmented-control.D0SoqGlC.js.map +0 -1
  321. package/dist/chunks/selection-card-group.KK9ZPqiU.js.map +0 -1
  322. package/dist/chunks/step.Ci-e1V9E.js.map +0 -1
  323. package/dist/chunks/tab.8bEkiAkk.js.map +0 -1
  324. package/dist/chunks/textarea.C7RmLKEx.js +0 -295
  325. package/dist/chunks/textarea.C7RmLKEx.js.map +0 -1
  326. package/dist/chunks/timeline-item.BiivSMPD.js.map +0 -1
  327. package/dist/chunks/toggle.C8k7NQ7y.js +0 -161
  328. package/dist/chunks/toggle.C8k7NQ7y.js.map +0 -1
  329. package/dist/chunks/tooltip.CEHc6lzU.js +0 -211
  330. package/dist/chunks/tooltip.CEHc6lzU.js.map +0 -1
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map +0 -1
  332. package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +0 -1
  333. package/dist/chunks/use-country-items.D_kamcYy.js.map +0 -1
@@ -1,1171 +0,0 @@
1
- import { reactive as we, defineComponent as at, ref as C, computed as S, onMounted as nt, toRaw as Oe, resolveComponent as ge, createElementBlock as Me, openBlock as F, createElementVNode as V, createCommentVNode as $, renderSlot as qe, createBlock as x, createVNode as z, withCtx as W, createTextVNode as le, normalizeClass as Ce, toRef as $e, watch as ke, withDirectives as St, unref as b, withKeys as Pe, toDisplayString as Rt, createSlots as Et } from "vue";
2
- import { B as ht } from "./divider.DnKNNyWB.js";
3
- import { h as wt, B as kt } from "./button-actions.D1eBtYgZ.js";
4
- import { B as rt, d as Ot } from "./typography.yBEME_Gu.js";
5
- import { D as Mt } from "./dropdown-default-textbox.CGsOngY1.js";
6
- import { e as Y, a as Le, g as Ae } from "./get-date-locale.CAyOIbcp.js";
7
- import { g as ye } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Fe } from "./i18n.B6g5VX0q.js";
9
- import { e as st, t as de, g as Te, i as P, h as A, j as Ye, k as Ct, l as je, m as At, s as Ke, n as Ft, o as Qe, a as te, u as Ut, f as ue } from "./calendar.B1a_mV-Q.js";
10
- import { f as Ge, v as Nt, D as w } from "./date-input.BqBdAO1E.js";
11
- import { r as M, t as J } from "./index.BrH1t1iu.js";
12
- import { u as Bt } from "./use-form-layout-loading.D3lALhtC.js";
13
- import { B as _t } from "./directive.Cbdox5VL.js";
14
- import { B as qt } from "./input-field.2S8zBviE.js";
15
- import { B as $t } from "./dropdown.GyDAswAO.js";
16
- import { B as Pt } from "./segmented-control.D0SoqGlC.js";
17
- import { d as Re } from "./debounce.DUTu11PS.js";
18
- import { u as Lt } from "./use-has-slot.B7eQSabc.js";
19
- import { _ as lt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
20
- import { F as Yt, E as He } from "./field-label.DSeawpYh.js";
21
- import { B as jt } from "./button-actions.types.BptAXjD8.js";
22
- import "../assets/date-range-picker.css";
23
- function ot(e, a) {
24
- M(2, arguments);
25
- var o = de(a), r = o * 3;
26
- return st(e, r);
27
- }
28
- function Ve(e) {
29
- M(1, arguments);
30
- var a = J(e), o = Math.floor(a.getMonth() / 3) + 1;
31
- return o;
32
- }
33
- function We(e) {
34
- return M(1, arguments), J(e).getFullYear();
35
- }
36
- function Ee(e, a) {
37
- M(2, arguments);
38
- var o = J(e), r = J(a);
39
- return o.getTime() === r.getTime();
40
- }
41
- function Kt(e, a) {
42
- M(2, arguments);
43
- var o = Te(e), r = Te(a);
44
- return o.getTime() === r.getTime();
45
- }
46
- function xe(e) {
47
- M(1, arguments);
48
- var a = J(e);
49
- return a.setMilliseconds(0), a;
50
- }
51
- function ze(e, a) {
52
- M(2, arguments);
53
- var o = xe(e), r = xe(a);
54
- return o.getTime() === r.getTime();
55
- }
56
- function Qt(e) {
57
- return M(1, arguments), P(e, Date.now());
58
- }
59
- function Gt(e, a) {
60
- M(2, arguments);
61
- var o = J(e), r = de(a);
62
- return o.setHours(r), o;
63
- }
64
- function Je(e, a) {
65
- M(2, arguments);
66
- var o = J(e), r = de(a);
67
- return o.setMilliseconds(r), o;
68
- }
69
- function Ht(e, a) {
70
- M(2, arguments);
71
- var o = J(e), r = de(a);
72
- return o.setMinutes(r), o;
73
- }
74
- function Vt(e, a) {
75
- M(2, arguments);
76
- var o = J(e), r = de(a);
77
- return o.setSeconds(r), o;
78
- }
79
- function Wt(e, a) {
80
- M(2, arguments);
81
- var o = de(a);
82
- return ot(e, -o);
83
- }
84
- function oe(e) {
85
- if (e == null)
86
- return A(/* @__PURE__ */ new Date());
87
- const [a, o, r] = e.split("-").map((d) => parseInt(d, 10));
88
- return new Date(a, o - 1, r);
89
- }
90
- const xt = ({
91
- firstDayOfWeek: e,
92
- min: a,
93
- max: o
94
- }) => ({ getGranularCalendarLimits: (d) => {
95
- let D = A(a), m = Y(o);
96
- if ((d == null ? void 0 : d.type) === "weekly") {
97
- if (d.earliest)
98
- D = A(d.earliest);
99
- else {
100
- const y = Ye(D, { weekStartsOn: e });
101
- P(D, y) || (D = A(Ct(je(D, { weekStartsOn: e }), 1)));
102
- }
103
- if (d.latest)
104
- m = Y(d.latest);
105
- else {
106
- const y = je(m, { weekStartsOn: e });
107
- P(m, y) || (m = Y(At(Ye(m, { weekStartsOn: e }), 1)));
108
- }
109
- }
110
- if ((d == null ? void 0 : d.type) === "monthly") {
111
- if (d.earliest)
112
- D = A(d.earliest);
113
- else {
114
- const y = Ke(D);
115
- P(D, y) || (D = Ke(st(D, 1)));
116
- }
117
- if (d.latest)
118
- m = Y(d.latest);
119
- else {
120
- const y = Le(m);
121
- P(m, y) || (m = Le(Ft(m, 1)));
122
- }
123
- }
124
- if ((d == null ? void 0 : d.type) === "quarterly") {
125
- if (d.earliest)
126
- D = Te(d.earliest);
127
- else {
128
- const y = Te(D);
129
- P(D, y) || (D = Te(ot(D, 1)));
130
- }
131
- if (d.latest)
132
- m = Y(d.latest);
133
- else {
134
- const y = Qe(m);
135
- P(m, y) || (m = Qe(Wt(m, 1)));
136
- }
137
- }
138
- return { min: D, max: m };
139
- } }), zt = () => {
140
- const e = we({
141
- daily: null,
142
- weekly: null,
143
- monthly: null,
144
- quarterly: null
145
- });
146
- return {
147
- savedRanges: e,
148
- saveRange: (r, d) => {
149
- e[r] = d;
150
- },
151
- resetSavedRanges: () => {
152
- e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
153
- }
154
- };
155
- };
156
- var T = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(T || {});
157
- const Jt = /[\d]/, Xt = /^\d{2}$/, Zt = /^\d{2}:\d{2}$/, ea = (e) => {
158
- const { selectionStart: a } = e.target, o = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = Jt.test(e.key) || o.includes(e.key), d = [1, 2, 4, 5].includes(a) && e.key === ":";
159
- !r && !d && e.preventDefault();
160
- }, Xe = (e) => {
161
- if (!e)
162
- return e;
163
- let a = e;
164
- if (a.length === 1 && parseInt(e, 10) > 2)
165
- return `0${a}:`;
166
- const [o, r] = a.slice(-2);
167
- return [2, 5].includes(a.length) && r === ":" && (a = `${a.slice(0, a.length - 2)}0${o}`), (Xt.test(a) || Zt.test(a)) && (a += ":"), a;
168
- }, Ze = {
169
- "en-US": {
170
- customRange: "Custom range",
171
- daily: "Daily",
172
- dateFrom: "Date from",
173
- dateTo: "Date to",
174
- lastMonth: "Last month",
175
- lastSevenDays: "Last 7 days",
176
- lastThreeMonths: "Last three months",
177
- monthly: "Monthly",
178
- quarterly: "Quarterly",
179
- timeFrom: "Time from",
180
- timeTo: "Time to",
181
- weekly: "Weekly"
182
- },
183
- "ja-JP": {
184
- customRange: "カスタム範囲を選択",
185
- daily: "毎日",
186
- lastMonth: "先月",
187
- lastSevenDays: "過去7日間",
188
- monthly: "毎月",
189
- weekly: "毎週"
190
- },
191
- "pt-BR": {
192
- customRange: "Selecione um intervalo personalizado",
193
- daily: "Diário",
194
- lastMonth: "Último mês",
195
- lastSevenDays: "Últimos 7 dias",
196
- monthly: "Mensal",
197
- weekly: "Semanal"
198
- }
199
- }, et = 300, tt = "customRange", ta = at({
200
- i18n: { messages: Ze },
201
- name: "date-range-picker-calendar",
202
- components: {
203
- BentoDropdown: $t,
204
- BentoInputField: qt,
205
- BentoSegmentedControl: Pt,
206
- BentoTypography: rt,
207
- Calendar: te
208
- },
209
- props: {
210
- /**
211
- * Allows user to enter time values in the form
212
- */
213
- allowTimeInput: { type: Boolean, default: !1 },
214
- /**
215
- * Ranges form persistance data
216
- */
217
- dateFormData: {
218
- type: Object,
219
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
220
- },
221
- /**
222
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
223
- */
224
- firstDayOfWeek: te.props.firstDayOfWeek,
225
- /**
226
- * A list of available granularities.
227
- * If present, the date picker will display a segmented control to change granularity.
228
- */
229
- granularities: {
230
- type: Array,
231
- default: null
232
- },
233
- /**
234
- * Indicate if a date should be disabled or not
235
- */
236
- isDateDisabled: te.props.isDateDisabled,
237
- /**
238
- * Set a maximum number of dates to be selectable by the range.
239
- */
240
- maxRange: te.props.maxRange,
241
- /**
242
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
243
- */
244
- min: te.props.min,
245
- /**
246
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
247
- */
248
- max: te.props.max,
249
- /**
250
- * Number of months rendered on pane
251
- */
252
- numberOfMonths: te.props.numberOfMonths,
253
- /**
254
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
255
- */
256
- showEndDateOnOpen: { type: Boolean, default: !1 },
257
- /**
258
- * Enables the custom range selector.
259
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
260
- * `label` - label of custom range item.
261
- * `value` - a unique key of the custom range item.
262
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
263
- */
264
- quickSelectRanges: {
265
- type: Array,
266
- default: void 0
267
- },
268
- /**
269
- * Selected date
270
- */
271
- value: { type: Object, default: void 0 },
272
- /**
273
- * The type of calendar to display. Defaults to showing days.
274
- */
275
- variant: te.props.variant
276
- },
277
- emits: [
278
- T.CUSTOM_RANGE,
279
- T.INPUT,
280
- T.ERROR,
281
- T.FORM_DATE,
282
- T.START_DATE_SELECTED
283
- ],
284
- setup(e, { emit: a, slots: o }) {
285
- var Ue, Ne, Be, _e;
286
- const { locale: r, t: d } = Fe({ messages: Ze }), D = Ae(), m = C({}), y = S(() => e.variant === "month" ? "monthly" : "daily"), n = we({
287
- startDate: (Ue = e.value) == null ? void 0 : Ue.startDate,
288
- endDate: (Ne = e.value) == null ? void 0 : Ne.endDate,
289
- range: (Be = e.value) == null ? void 0 : Be.range,
290
- ...e.granularities ? {
291
- granularity: ((_e = e.value) == null ? void 0 : _e.granularity) || y.value
292
- } : {}
293
- });
294
- function v(t) {
295
- return t ? new Date(
296
- t.getUTCFullYear(),
297
- t.getUTCMonth(),
298
- t.getUTCDate(),
299
- t.getUTCHours(),
300
- t.getUTCMinutes(),
301
- t.getUTCSeconds()
302
- ) : null;
303
- }
304
- const R = S(() => {
305
- var t, l;
306
- return (
307
- // eslint-disable-next-line consistent-return
308
- ((l = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: i, data: u }) => {
309
- var h;
310
- if (!u.endDate) {
311
- if (u.isRelativeToNow) {
312
- const O = (h = m.value) == null ? void 0 : h[i];
313
- return O ? Ee(
314
- v(O.startDate),
315
- v(n.startDate)
316
- ) && Ee(
317
- v(O.endDate),
318
- v(n.endDate)
319
- ) : (
320
- // If not stored calculated dates, fall back to comparing the quick select item's value
321
- // with the internal range's stored range identifier.
322
- i === n.range
323
- );
324
- }
325
- return Ee(
326
- v(u.startDate),
327
- v(n.startDate)
328
- ) && Ee(
329
- v(n.endDate),
330
- v(Y(n.endDate))
331
- ) && Qt(v(n.endDate));
332
- }
333
- if (e.allowTimeInput)
334
- return ze(
335
- v(u.startDate),
336
- v(n.startDate)
337
- ) && ze(v(u.endDate), v(n.endDate));
338
- if (u.endDate)
339
- return P(u.startDate, n.startDate) && P(u.endDate, n.endDate);
340
- })) == null ? void 0 : l.value) ?? tt
341
- );
342
- }), me = S(() => ({
343
- "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
344
- })), pe = S(() => [
345
- { label: d("customRange"), value: tt },
346
- ...e.quickSelectRanges ? e.quickSelectRanges : []
347
- ]), L = S(
348
- () => {
349
- var t;
350
- return ((t = e.granularities) == null ? void 0 : t.find(({ type: l }) => l === n.granularity)) || null;
351
- }
352
- ), E = S(
353
- () => {
354
- var t;
355
- return ((t = e.granularities) == null ? void 0 : t.map(({ type: l, disabled: i }) => ({
356
- label: d(l),
357
- value: l,
358
- disabled: i
359
- }))) ?? [];
360
- }
361
- ), { getGranularCalendarLimits: X } = xt(e), f = S(
362
- () => e.granularities ? X(L.value) : { min: A(e.min), max: Y(e.max) }
363
- ), {
364
- adjustDateForQuarterly: U,
365
- adjustDateForMonthly: j,
366
- adjustDateForWeekly: ce,
367
- adjustStartDateInputForWeekly: De,
368
- adjustEndDateInputForWeekly: ae,
369
- adjustStartDateInputForMonthly: Z,
370
- adjustEndDateInputForMonthly: p,
371
- adjustStartDateInputForQuarterly: fe,
372
- adjustEndDateInputForQuarterly: K
373
- } = Ut(e.firstDayOfWeek), { savedRanges: N, saveRange: B, resetSavedRanges: _ } = zt(), g = (t) => t ? ue(t, w.NUMERIC_DATE_YEAR_FIRST, {
374
- locale: D[r.value.substring(0, 2)] || D.enUS
375
- }) : "", k = (t) => t ? ue(t, w.HOUR_MINUTE_SECONDS, {
376
- locale: D[r.value.substring(0, 2)] || D.enUS
377
- }) : "", ne = C(!1), re = C(!1), Q = C(!1), G = C(!1), s = we({
378
- startDate: e.dateFormData.startDate,
379
- endDate: e.dateFormData.endDate,
380
- startTime: e.dateFormData.startTime,
381
- endTime: e.dateFormData.endTime
382
- }), be = (t, l) => {
383
- let i = new Date(t);
384
- const [u, h, O] = l.split(":");
385
- return i = Gt(i, parseInt(u, 10)), i = Ht(i, parseInt(h, 10)), i = Vt(i, parseInt(O, 10)), i;
386
- }, Ie = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), ie = (t, l) => {
387
- const i = () => {
388
- if (l && I(l)) {
389
- const u = be(new Date(l), t);
390
- if (e.min && u < Je(e.min, 0) || e.max && u > Je(e.max, 0))
391
- return !1;
392
- }
393
- return !0;
394
- };
395
- return Ie(t) && i();
396
- }, q = (t, l) => !l || !Ie(l) || e.variant === "month" ? t : be(new Date(t), l), c = (t) => {
397
- s.startTime = k(
398
- e.min && e.allowTimeInput && P(e.min, t.startDate) ? e.min : A(t.startDate)
399
- ), s.endTime = k(
400
- e.max && e.allowTimeInput && P(e.max, t.endDate) ? e.max : Y(t.endDate)
401
- ), n.startDate = q(t.startDate, s.startTime), n.endDate = q(t.endDate, s.endTime), n.range = null, e.granularities && _(), a(T.INPUT, {
402
- ...n,
403
- range: R.value
404
- });
405
- }, I = (t) => {
406
- const l = (u) => e.min && A(u) < A(e.min) || e.max && A(u) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(u)) : !0;
407
- return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && l(new Date(t));
408
- };
409
- nt(() => {
410
- ne.value = !!(e.dateFormData.startDate && !I(e.dateFormData.startDate)), e.allowTimeInput ? Q.value = !!(e.dateFormData.startTime && !ie(e.dateFormData.startTime, e.dateFormData.startDate)) : Q.value = !1, re.value = !!(e.dateFormData.endDate && !I(e.dateFormData.endDate)), e.allowTimeInput ? G.value = !!(e.dateFormData.endTime && !ie(e.dateFormData.endTime, e.dateFormData.endDate)) : G.value = !1;
411
- });
412
- const se = (t) => {
413
- var l;
414
- s.startDate = g(t), s.startTime ? Q.value && (s.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : s.startTime = k(t), ne.value = !1, Q.value = !1, a(T.START_DATE_SELECTED, t);
415
- }, ee = (t) => {
416
- var l;
417
- s.endDate = g(t), s.endTime ? G.value && (s.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : s.endTime = k(Y(t)), re.value = !1, G.value = !1;
418
- }, ve = (t) => {
419
- const l = e.value[t];
420
- if (l)
421
- return l;
422
- if (e.dateFormData[t] && I(e.dateFormData[t]))
423
- return new Date(e.dateFormData[t]);
424
- }, ut = Re((t) => {
425
- var l;
426
- if (I(t)) {
427
- let i = t;
428
- switch (ne.value = !1, (l = L.value) == null ? void 0 : l.type) {
429
- case "weekly":
430
- i = De(
431
- t,
432
- g,
433
- f.value.min,
434
- f.value.max
435
- ), s.startDate = i;
436
- break;
437
- case "monthly":
438
- i = Z(
439
- t,
440
- g,
441
- f.value.min,
442
- f.value.max
443
- ), s.startDate = i;
444
- break;
445
- case "quarterly":
446
- i = fe(
447
- t,
448
- g,
449
- f.value.min,
450
- f.value.max
451
- ), s.startDate = i;
452
- break;
453
- }
454
- const u = oe(i);
455
- n.startDate = q(u, s.startTime), n.endDate = q(
456
- oe(s.endDate),
457
- s.endTime
458
- ), I(s.endDate) && (n.endDate = q(
459
- oe(s.endDate),
460
- s.endTime
461
- ));
462
- const h = ve("endDate");
463
- n.range = null, a(T.FORM_DATE, {
464
- startDate: u,
465
- endDate: h
466
- }), a(T.INPUT, {
467
- ...n,
468
- range: R.value
469
- });
470
- } else
471
- ne.value = !0, a(T.ERROR, { ...s });
472
- }, et), dt = (t) => {
473
- s.startDate = Ge(t), ut(s.startDate);
474
- }, mt = Re((t) => {
475
- var l;
476
- if (I(t)) {
477
- let i = t;
478
- switch (re.value = !1, (l = L.value) == null ? void 0 : l.type) {
479
- case "weekly":
480
- i = ae(
481
- t,
482
- g,
483
- f.value.min,
484
- f.value.max
485
- ), s.endDate = i;
486
- break;
487
- case "monthly":
488
- i = p(
489
- t,
490
- g,
491
- f.value.min,
492
- f.value.max
493
- ), s.endDate = i;
494
- break;
495
- case "quarterly":
496
- i = K(
497
- t,
498
- g,
499
- f.value.min,
500
- f.value.max
501
- ), s.endDate = i;
502
- break;
503
- }
504
- const u = oe(i);
505
- n.endDate = q(u, s.endTime), I(s.startDate) && (n.startDate = q(
506
- oe(s.startDate),
507
- s.startTime
508
- ));
509
- const h = ve("startDate");
510
- n.range = null, a(T.FORM_DATE, {
511
- startDate: h,
512
- endDate: u
513
- }), a(T.INPUT, {
514
- ...n,
515
- range: R.value
516
- });
517
- } else
518
- re.value = !0, a(T.ERROR, { ...s });
519
- }, et), ct = (t) => {
520
- s.endDate = Ge(t), mt(s.endDate);
521
- }, Dt = (t) => {
522
- Nt(t);
523
- }, ft = Re((t) => {
524
- if (ie(t, e.dateFormData.startDate)) {
525
- Q.value = !1, n.startDate = q(n.startDate, t);
526
- const l = ve("endDate");
527
- a(T.FORM_DATE, {
528
- startDate: n.startDate,
529
- endDate: l,
530
- startTime: t,
531
- endTime: s.endTime ?? e.dateFormData.endTime
532
- }), a(T.INPUT, {
533
- ...n,
534
- range: R.value
535
- });
536
- } else
537
- Q.value = !0, a(T.ERROR, { ...s });
538
- }), vt = Re((t) => {
539
- ie(t, e.dateFormData.endDate) ? (G.value = !1, n.endDate = q(n.endDate, t), a(T.FORM_DATE, {
540
- startDate: n.startDate,
541
- endDate: n.endDate,
542
- startTime: s.startTime ?? e.dateFormData.startTime,
543
- endTime: t
544
- }), a(T.INPUT, {
545
- ...n,
546
- range: R.value
547
- })) : (G.value = !0, a(T.ERROR, { ...s }));
548
- }), gt = (t) => {
549
- s.startTime = Xe(t), ft(s.startTime);
550
- }, yt = (t) => {
551
- s.endTime = Xe(t), vt(s.endTime);
552
- }, Tt = (t) => {
553
- ea(t);
554
- }, Se = (t, l, i, u) => {
555
- n.startDate = t, n.endDate = l, i && (n.granularity = i), u && (n.range = u);
556
- }, pt = (t) => {
557
- var i;
558
- const l = (i = e.quickSelectRanges) == null ? void 0 : i.find(({ value: u }) => u === t);
559
- if (l) {
560
- _();
561
- const u = l.data, h = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : Y(new Date(Date.now()))), O = u.isRelativeToNow && u.timeDifference ? new Date(h.getTime() - u.timeDifference) : u.startDate;
562
- s.endDate = g(h), s.startDate = g(O), Se(O, h, null, t), e.granularities && (n.granularity = u.granularity || y.value), s.startTime = k(O), s.endTime = k(h), n.startDate = O, n.endDate = h, u.isRelativeToNow && (m.value = {
563
- ...m.value,
564
- [t]: {
565
- startDate: O,
566
- endDate: h
567
- }
568
- }), a(T.CUSTOM_RANGE, {
569
- ...l.data,
570
- startDate: O,
571
- endDate: h,
572
- range: l.value
573
- });
574
- }
575
- }, bt = {
576
- weekly: ce,
577
- monthly: j,
578
- quarterly: U
579
- }, It = (t) => {
580
- const l = n.granularity;
581
- if (n.granularity = t, l && B(l, structuredClone(Oe(n))), n.startDate && n.endDate) {
582
- switch (t) {
583
- case "quarterly":
584
- case "monthly":
585
- case "weekly": {
586
- if (N[t]) {
587
- Se(N[t].startDate, N[t].endDate, t);
588
- break;
589
- }
590
- const { startDate: i, endDate: u } = bt[t](
591
- n.startDate,
592
- n.endDate,
593
- f.value.min,
594
- f.value.max
595
- );
596
- Se(i, u, t);
597
- break;
598
- }
599
- case "daily":
600
- N.daily && Se(N.daily.startDate, N.daily.endDate, t);
601
- break;
602
- }
603
- s.startDate = g(n.startDate), s.endDate = g(n.endDate), a(T.INPUT, {
604
- ...n,
605
- range: R.value
606
- });
607
- }
608
- };
609
- return {
610
- // Values
611
- internalRangeDate: n,
612
- dateTextInput: s,
613
- endDateError: re,
614
- endTimeError: G,
615
- granularityItems: E,
616
- selectedGranularity: L,
617
- computedMinMax: f,
618
- selectedRangeSelectorValue: R,
619
- startDateError: ne,
620
- startTimeError: Q,
621
- quickSelectRangeDefaultItems: pe,
622
- formInputWrapperConditionalClasses: me,
623
- // Methods
624
- hasSlot: Lt(o),
625
- t: d,
626
- // Events
627
- onDateInput: c,
628
- onDateInputKeyDown: Dt,
629
- onEndDateInput: ct,
630
- onEndDateSelected: ee,
631
- onEndTimeInput: yt,
632
- onGranularityInput: It,
633
- onRangeSelectorInput: pt,
634
- onStartDateInput: dt,
635
- onStartDateSelected: se,
636
- onStartTimeInput: gt,
637
- onTimeInputKeyDown: Tt
638
- };
639
- }
640
- }), aa = { class: "b-date-range-picker-calendar" }, na = { class: "b-date-range-picker-calendar__form-container" }, ra = { class: "b-date-range-picker-calendar__form" }, sa = { key: 0 }, la = { class: "b-date-range-picker-calendar__calendars-container" };
641
- function oa(e, a, o, r, d, D) {
642
- const m = ge("bento-dropdown"), y = ge("bento-segmented-control"), n = ge("bento-typography"), v = ge("bento-input-field"), R = ge("calendar");
643
- return F(), Me("div", aa, [
644
- V("div", na, [
645
- V("div", ra, [
646
- e.hasSlot("title") ? qe(e.$slots, "title", { key: 0 }, void 0, !0) : $("", !0),
647
- e.quickSelectRanges ? (F(), x(m, {
648
- key: 1,
649
- "aria-label": e.t("customRange"),
650
- items: e.quickSelectRangeDefaultItems,
651
- value: e.selectedRangeSelectorValue,
652
- onInput: e.onRangeSelectorInput
653
- }, null, 8, ["aria-label", "items", "value", "onInput"])) : $("", !0),
654
- e.granularities ? (F(), x(y, {
655
- key: 2,
656
- items: e.granularityItems,
657
- "model-value": e.internalRangeDate.granularity,
658
- "full-width": "",
659
- "onUpdate:modelValue": e.onGranularityInput
660
- }, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : $("", !0),
661
- V("div", null, [
662
- z(n, {
663
- stronger: "",
664
- el: "span",
665
- class: "b-date-range-picker-calendar__label"
666
- }, {
667
- default: W(() => a[0] || (a[0] = [
668
- le(" From ")
669
- ])),
670
- _: 1
671
- }),
672
- V("div", {
673
- class: Ce(e.formInputWrapperConditionalClasses)
674
- }, [
675
- z(v, {
676
- "aria-label": e.t("dateFrom"),
677
- value: e.dateTextInput.startDate,
678
- error: e.startDateError,
679
- class: "b-date-range-picker-calendar__form-input",
680
- onInput: e.onStartDateInput,
681
- onKeydown: e.onDateInputKeyDown
682
- }, {
683
- description: W(() => a[1] || (a[1] = [
684
- le("YYYY-MM-DD")
685
- ])),
686
- _: 1
687
- }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
688
- e.allowTimeInput ? (F(), x(v, {
689
- key: 0,
690
- "aria-label": e.t("timeFrom"),
691
- value: e.dateTextInput.startTime,
692
- error: e.startTimeError,
693
- class: "b-date-range-picker-calendar__form-input",
694
- onInput: e.onStartTimeInput,
695
- onKeydown: e.onTimeInputKeyDown
696
- }, {
697
- description: W(() => a[2] || (a[2] = [
698
- le("HH:MM:SS")
699
- ])),
700
- _: 1
701
- }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : $("", !0)
702
- ], 2)
703
- ]),
704
- V("div", null, [
705
- z(n, {
706
- stronger: "",
707
- el: "span",
708
- class: "b-date-range-picker-calendar__label"
709
- }, {
710
- default: W(() => a[3] || (a[3] = [
711
- le(" To ")
712
- ])),
713
- _: 1
714
- }),
715
- V("div", {
716
- class: Ce(e.formInputWrapperConditionalClasses)
717
- }, [
718
- z(v, {
719
- class: "b-date-range-picker-calendar__form-input",
720
- "aria-label": e.t("dateTo"),
721
- value: e.dateTextInput.endDate,
722
- error: e.endDateError,
723
- onInput: e.onEndDateInput,
724
- onKeydown: e.onDateInputKeyDown
725
- }, {
726
- description: W(() => a[4] || (a[4] = [
727
- le("YYYY-MM-DD")
728
- ])),
729
- _: 1
730
- }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
731
- e.allowTimeInput ? (F(), x(v, {
732
- key: 0,
733
- "aria-label": e.t("timeTo"),
734
- value: e.dateTextInput.endTime,
735
- error: e.endTimeError,
736
- class: "b-date-range-picker-calendar__form-input",
737
- onInput: e.onEndTimeInput,
738
- onKeydown: e.onTimeInputKeyDown
739
- }, {
740
- description: W(() => a[5] || (a[5] = [
741
- le("HH:MM:SS")
742
- ])),
743
- _: 1
744
- }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : $("", !0)
745
- ], 2)
746
- ])
747
- ]),
748
- e.hasSlot("actions") ? (F(), Me("div", sa, [
749
- qe(e.$slots, "actions", {}, void 0, !0)
750
- ])) : $("", !0)
751
- ]),
752
- V("div", la, [
753
- z(R, {
754
- value: e.internalRangeDate,
755
- "first-day-of-week": e.firstDayOfWeek,
756
- "is-date-disabled": e.isDateDisabled,
757
- "max-range": e.maxRange,
758
- min: e.computedMinMax.min,
759
- max: e.computedMinMax.max,
760
- "number-of-months": e.numberOfMonths,
761
- "show-end-date-on-open": e.showEndDateOnOpen,
762
- granularity: e.selectedGranularity,
763
- variant: e.variant,
764
- "is-range": "",
765
- onInput: e.onDateInput,
766
- onStartDateSelected: e.onStartDateSelected,
767
- onEndDateSelected: e.onEndDateSelected
768
- }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "onInput", "onStartDateSelected", "onEndDateSelected"])
769
- ])
770
- ]);
771
- }
772
- const H = /* @__PURE__ */ lt(ta, [["render", oa], ["__scopeId", "data-v-cd1ab02c"]]), ia = ({
773
- datePickerValue: e,
774
- isDateIncorrect: a,
775
- quickSelectRanges: o,
776
- isMonthVariant: r,
777
- withTimeInput: d
778
- }) => {
779
- var L, E, X, f;
780
- const { locale: D, t: m } = Fe(), y = Ae(), n = (U) => !!U && !isNaN(U.getTime()), v = (U, j) => n(U) ? ue(U, j, {
781
- locale: y[D.value.substring(0, 2)] || y.enUS
782
- }) : void 0, R = we({
783
- startDate: v((L = e.value) == null ? void 0 : L.startDate, w.NUMERIC_DATE_YEAR_FIRST),
784
- endDate: v((E = e.value) == null ? void 0 : E.endDate, w.NUMERIC_DATE_YEAR_FIRST),
785
- startTime: v((X = e.value) == null ? void 0 : X.startDate, w.HOUR_MINUTE_SECONDS),
786
- endTime: v((f = e.value) == null ? void 0 : f.endDate, w.HOUR_MINUTE_SECONDS)
787
- });
788
- return {
789
- // Values
790
- dateDisplayValue: S(() => {
791
- var N;
792
- if (a.value)
793
- return `${R.startDate || ""} - ${R.endDate || ""}`;
794
- if (!e.value || !e.value.startDate && !e.value.endDate)
795
- return m("selectDateRange");
796
- if ((N = o.value) != null && N.length) {
797
- const B = o.value.find(({ value: _ }) => {
798
- var g;
799
- return _ === ((g = e.value) == null ? void 0 : g.range);
800
- });
801
- if (B)
802
- return B.label;
803
- }
804
- if (e.value.granularity === "quarterly") {
805
- const { startDate: B, endDate: _ } = e.value, g = m("quarter", { quarter: Ve(B), year: We(B) });
806
- if (Kt(B, _))
807
- return g;
808
- const k = m("quarter", { quarter: Ve(_), year: We(_) });
809
- return `${g} - ${k}`;
810
- }
811
- const { startDate: U, endDate: j, startTime: ce, endTime: De } = R, ae = r != null && r.value ? w.LONG_MONTH_YEAR : w.FULL_DATE_MONTH_FIRST, Z = v(oe(U), ae), p = v(oe(j), ae);
812
- if (!d.value)
813
- return `${Z} - ${p}`;
814
- const fe = [Z, ce].filter(Boolean).join(", "), K = [p, De].filter(Boolean).join(", ");
815
- return `${fe} - ${K}`;
816
- }),
817
- textInputDisplayValue: R,
818
- // Methods
819
- formatTextInputDisplayValue: () => ""
820
- };
821
- };
822
- var he = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(he || {});
823
- const it = {
824
- "en-US": {
825
- apply: "Apply",
826
- cancel: "Cancel",
827
- dateRangePicker: "Date range picker {name}",
828
- provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
829
- quarter: "Q{quarter} {year}",
830
- selectDate: "Select a date",
831
- selectDateRange: "Select a date range",
832
- selectedDateIsNotAvailable: "Selected date is not available"
833
- },
834
- "ja-JP": {
835
- apply: "適用",
836
- cancel: "キャンセル",
837
- selectDate: "日付を選択"
838
- },
839
- "pt-BR": {
840
- apply: "Aplicar",
841
- cancel: "Cancelar",
842
- selectDate: "Selecione uma data"
843
- }
844
- }, ua = { class: "b-date-range-picker" }, da = { class: "b-date-range-picker__footer" }, ma = {
845
- i18n: { messages: it },
846
- name: "bento-date-range-picker"
847
- }, ca = /* @__PURE__ */ at({
848
- ...ma,
849
- props: {
850
- /**
851
- * Allows user to enter time values in the form
852
- */
853
- allowTimeInput: { type: Boolean, default: !1 },
854
- /**
855
- * Descriptive supporting text visbile underneath the dropdown.
856
- */
857
- description: { type: String, default: void 0 },
858
- /**
859
- * Disables dropdown functionality.
860
- */
861
- disabled: { type: Boolean, default: !1 },
862
- /**
863
- * Displays component in an error state with an error message
864
- */
865
- errorMessage: { type: String, default: null },
866
- /**
867
- * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
868
- */
869
- firstDayOfWeek: H.props.firstDayOfWeek,
870
- /**
871
- * A list of available granularities.
872
- * If present, the date picker will display a segmented control to change granularity.
873
- */
874
- granularities: H.props.granularities,
875
- /**
876
- * Indicate if a date should be disabled or not
877
- */
878
- isDateDisabled: H.props.isDateDisabled,
879
- /**
880
- * Text that is displayed as a label above the element.
881
- */
882
- label: { type: String, default: void 0 },
883
- /**
884
- * Upon opening date range picker, end date's month will be pre-selected.
885
- */
886
- showEndDateOnOpen: { type: Boolean, default: !1 },
887
- /**
888
- * Highlights the dropdown is optional.
889
- */
890
- optional: { type: Boolean, default: !1 },
891
- /**
892
- * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
893
- */
894
- readonly: { type: Boolean, default: !1 },
895
- /**
896
- * Highlights the dropdown is required.
897
- */
898
- required: { type: Boolean, default: !1 },
899
- /**
900
- * Adds a info icon next to the label to display the passed tooltip message.
901
- */
902
- tooltipText: { type: String, default: null },
903
- /**
904
- * Enables the range selector.
905
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
906
- * `label` - label of custom range item.
907
- * `value` - a unique key of the custom range item.
908
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
909
- */
910
- quickSelectRanges: {
911
- type: Array,
912
- default: void 0
913
- },
914
- /**
915
- * Set a maximum number of dates to be selectable by the range.
916
- */
917
- maxRange: H.props.maxRange,
918
- /**
919
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
920
- */
921
- min: H.props.min,
922
- /**
923
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
924
- */
925
- max: H.props.max,
926
- /**
927
- * Number of months rendered on pane
928
- */
929
- numberOfMonths: H.props.numberOfMonths,
930
- /**
931
- * Selected date
932
- */
933
- value: H.props.value,
934
- /**
935
- * The type of calendar to display. Defaults to showing days.
936
- */
937
- variant: {
938
- type: String,
939
- default: void 0
940
- // Default will be set by @/internal/calendar
941
- },
942
- /**
943
- * Enables the date picker selection to persist until it is explicitly applied.
944
- * Displays a set of buttons: Apply and Cancel.
945
- *
946
- * @deprecated This will be the default behaviour in v2.0.0.
947
- */
948
- hasActions: { type: Boolean, default: !1 }
949
- },
950
- emits: [he.INPUT],
951
- setup(e, { emit: a }) {
952
- const o = a, r = e, { locale: d, t: D } = Fe({ messages: it }), m = Ae(), y = ye("bento-date-range-picker-container"), n = ye("bento-date-range-picker-label"), v = ye("bento-date-range-picker-description"), R = ye("bento-date-range-picker-error"), me = ye("bento-date-range-picker-date-error"), pe = S(() => r.label || D("dateRangePicker", { name: y })), L = S(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((c) => {
953
- const I = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
954
- return {
955
- ...c,
956
- data: {
957
- ...c.data,
958
- // Adding timeDifference to calculate an up-to-date endDate on range selection
959
- timeDifference: I
960
- }
961
- };
962
- })), E = C(!1), X = C(null), f = C(!1), { isReadOnly: U } = Bt($e(r, "readonly"));
963
- ke(
964
- () => r.disabled,
965
- () => {
966
- r.disabled && f.value && (f.value = !1);
967
- }
968
- );
969
- const j = S(() => r.hasActions ? !k.value && E.value : E.value), ce = S(() => ({
970
- "b-date-range-picker__description--error": !!r.errorMessage || j.value
971
- })), De = S(() => r.variant === "month"), ae = S(() => r.allowTimeInput && r.variant !== "month"), { dateDisplayValue: Z, textInputDisplayValue: p } = ia({
972
- datePickerValue: $e(r, "value"),
973
- isDateIncorrect: E,
974
- quickSelectRanges: L,
975
- isMonthVariant: De,
976
- withTimeInput: ae
977
- }), fe = S(
978
- () => `${r.description ? v : ""} ${r.errorMessage ? R : ""} ${E.value ? me : ""}`.trim() || null
979
- ), K = () => {
980
- f.value = !1;
981
- }, N = () => {
982
- f.value = !0;
983
- }, B = C(Z.value), _ = C(
984
- // textInputDisplayValue is a reactive object
985
- structuredClone(Oe(p))
986
- ), g = C(r.value), k = C(!0), ne = S(
987
- () => r.hasActions ? _.value : p
988
- ), re = S(
989
- () => r.hasActions ? B.value : Z.value
990
- );
991
- nt(() => {
992
- if (r.hasActions || Ot(
993
- 'BentoDateRangePicker "hasActions" property',
994
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
995
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
996
- "2.0.0"
997
- ), r.granularities && r.variant !== "month" && r.granularities.find(({ type: c }) => c === "quarterly"))
998
- throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
999
- }), ke(
1000
- () => r.value,
1001
- () => {
1002
- B.value = Z.value, _.value = structuredClone(Oe(p));
1003
- }
1004
- );
1005
- const Q = S(() => [
1006
- {
1007
- title: D("apply"),
1008
- event: () => {
1009
- o(he.INPUT, g.value), K(), k.value = !0;
1010
- },
1011
- disabled: k.value
1012
- },
1013
- {
1014
- title: D("cancel"),
1015
- event: K
1016
- }
1017
- ]);
1018
- ke(g, (c) => {
1019
- if (r.hasActions) {
1020
- k.value = E.value;
1021
- return;
1022
- }
1023
- o(he.INPUT, c);
1024
- });
1025
- const G = (c) => {
1026
- E.value = !1;
1027
- const I = (se, ee) => se ? ue(se, ee, {
1028
- locale: m[d.value.substring(0, 2)] || m.enUS
1029
- }) : void 0;
1030
- p.startDate = I(c.startDate, w.NUMERIC_DATE_YEAR_FIRST), p.endDate = I(c.endDate, w.NUMERIC_DATE_YEAR_FIRST), p.startTime = I(c.startDate, w.HOUR_MINUTE_SECONDS), p.endTime = I(c.endDate, w.HOUR_MINUTE_SECONDS), g.value = c;
1031
- }, s = async () => {
1032
- E.value && (E.value = !1), g.value = null;
1033
- }, be = () => {
1034
- if (!f.value) {
1035
- f.value = !0;
1036
- return;
1037
- }
1038
- E.value || (f.value = !1);
1039
- }, Ie = (c) => {
1040
- E.value = !1, c.startTime && (p.startTime = c.startTime), c.endTime && (p.endTime = c.endTime);
1041
- }, ie = (c) => {
1042
- E.value = !0, p.startDate = c.startDate, p.endDate = c.endDate, g.value = { startDate: null, endDate: null };
1043
- }, q = (c) => {
1044
- if (c) {
1045
- const I = (ee, ve) => ee ? ue(ee, ve, {
1046
- locale: m[d.value.substring(0, 2)] || m.enUS
1047
- }) : void 0, se = (ee) => ue(ee, w.NUMERIC_DATE_YEAR_FIRST, {
1048
- locale: m[d.value.substring(0, 2)] || m.enUS
1049
- });
1050
- p.startDate = se(c.startDate), p.endDate = se(c.endDate), p.startTime = I(
1051
- c.startDate,
1052
- w.HOUR_MINUTE_SECONDS
1053
- ), p.endTime = I(c.endDate, w.HOUR_MINUTE_SECONDS), g.value = c;
1054
- }
1055
- };
1056
- return (c, I) => St((F(), Me("div", ua, [
1057
- e.label ? (F(), x(b(Yt), {
1058
- key: 0,
1059
- id: b(n),
1060
- label: e.label,
1061
- "tooltip-text": e.tooltipText,
1062
- optional: e.optional,
1063
- required: e.required
1064
- }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : $("", !0),
1065
- V("div", {
1066
- onKeydown: Pe(be, ["enter"])
1067
- }, [
1068
- z(b(Mt), {
1069
- ref_key: "inputContainerRef",
1070
- ref: X,
1071
- "always-combobox-is-input": "",
1072
- ariaControls: b(y),
1073
- ariaExpanded: f.value,
1074
- "aria-labelledby": e.label ? b(n) : null,
1075
- "aria-describedby": fe.value,
1076
- disabled: e.disabled,
1077
- "is-invalid": !!e.errorMessage || j.value,
1078
- open: f.value,
1079
- "display-value": re.value,
1080
- readonly: b(U),
1081
- onOpen: N,
1082
- onClear: s,
1083
- onClose: K
1084
- }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1085
- ], 32),
1086
- j.value ? (F(), x(b(He), {
1087
- key: 1,
1088
- id: b(me),
1089
- "error-message": b(D)("provideDateInAFormat"),
1090
- class: "b-date-range-picker__error-message"
1091
- }, null, 8, ["id", "error-message"])) : $("", !0),
1092
- e.errorMessage ? (F(), x(b(He), {
1093
- key: 2,
1094
- id: b(R),
1095
- "error-message": e.errorMessage,
1096
- class: "b-date-range-picker__error-message"
1097
- }, null, 8, ["id", "error-message"])) : $("", !0),
1098
- e.description ? (F(), x(b(rt), {
1099
- key: 3,
1100
- id: b(v),
1101
- class: Ce(["b-date-range-picker__description", ce.value]),
1102
- el: "span"
1103
- }, {
1104
- default: W(() => [
1105
- le(Rt(e.description), 1)
1106
- ]),
1107
- _: 1
1108
- }, 8, ["id", "class"])) : $("", !0),
1109
- X.value ? (F(), x(b(wt), {
1110
- key: 4,
1111
- id: b(y),
1112
- class: "b-date-range-picker__container",
1113
- open: f.value,
1114
- "target-element": X.value,
1115
- "aria-label": pe.value,
1116
- position: "bottom-start",
1117
- "without-space": "",
1118
- "fit-content": "",
1119
- "trap-all": "",
1120
- onKeydown: Pe(K, ["esc", "native"])
1121
- }, {
1122
- default: W(() => [
1123
- z(b(H), {
1124
- "allow-time-input": ae.value,
1125
- "quick-select-ranges": L.value,
1126
- value: e.value,
1127
- "first-day-of-week": e.firstDayOfWeek,
1128
- granularities: e.granularities,
1129
- "is-date-disabled": e.isDateDisabled,
1130
- "max-range": e.maxRange,
1131
- min: e.min,
1132
- max: e.max,
1133
- "number-of-months": e.numberOfMonths,
1134
- "show-end-date-on-open": e.showEndDateOnOpen,
1135
- "date-form-data": ne.value,
1136
- variant: e.variant,
1137
- onCustomRange: q,
1138
- onInput: G,
1139
- onError: ie,
1140
- onFormDate: Ie
1141
- }, Et({ _: 2 }, [
1142
- e.hasActions ? {
1143
- name: "actions",
1144
- fn: W(() => [
1145
- z(b(ht)),
1146
- V("div", da, [
1147
- z(b(kt), {
1148
- actions: Q.value,
1149
- layout: b(jt).SPACE_BETWEEN
1150
- }, null, 8, ["actions", "layout"])
1151
- ])
1152
- ]),
1153
- key: "0"
1154
- } : void 0
1155
- ]), 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"])
1156
- ]),
1157
- _: 1
1158
- }, 8, ["id", "open", "target-element", "aria-label"])) : $("", !0)
1159
- ])), [
1160
- [b(_t), K]
1161
- ]);
1162
- }
1163
- }), Na = /* @__PURE__ */ lt(ca, [["__scopeId", "data-v-b364c42b"]]);
1164
- export {
1165
- Na as B,
1166
- H as D,
1167
- he as a,
1168
- Qt as b,
1169
- Ee as i
1170
- };
1171
- //# sourceMappingURL=date-range-picker.9Zlg9xnH.js.map