@adyen/bento-vue2 1.59.0 → 1.60.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 (576) hide show
  1. package/package.json +12 -8
  2. package/dist/@types/components.d.ts +0 -201
  3. package/dist/@types/index.d.ts +0 -17671
  4. package/dist/accordion.js +0 -6
  5. package/dist/accordion.js.map +0 -1
  6. package/dist/action-bar.js +0 -5
  7. package/dist/action-bar.js.map +0 -1
  8. package/dist/alert.js +0 -8
  9. package/dist/alert.js.map +0 -1
  10. package/dist/assets/accordion-item.css +0 -1
  11. package/dist/assets/action-bar.css +0 -1
  12. package/dist/assets/alert.css +0 -1
  13. package/dist/assets/avatar.css +0 -1
  14. package/dist/assets/base-button.css +0 -1
  15. package/dist/assets/base-modal.css +0 -1
  16. package/dist/assets/button-actions-with-menu.css +0 -1
  17. package/dist/assets/button-actions.css +0 -1
  18. package/dist/assets/button.css +0 -1
  19. package/dist/assets/calendar.css +0 -1
  20. package/dist/assets/card.css +0 -1
  21. package/dist/assets/checkbox-group.css +0 -1
  22. package/dist/assets/checkbox-input.css +0 -1
  23. package/dist/assets/checkbox.css +0 -1
  24. package/dist/assets/chip.css +0 -1
  25. package/dist/assets/code-snippet.css +0 -1
  26. package/dist/assets/controls-group.css +0 -1
  27. package/dist/assets/copy.css +0 -1
  28. package/dist/assets/country.css +0 -1
  29. package/dist/assets/currency.css +0 -1
  30. package/dist/assets/dashboard-section.css +0 -1
  31. package/dist/assets/dashed-underline.css +0 -1
  32. package/dist/assets/data-grid-template.css +0 -1
  33. package/dist/assets/data-grid.css +0 -1
  34. package/dist/assets/date-picker.css +0 -1
  35. package/dist/assets/date-range-picker.css +0 -1
  36. package/dist/assets/date.css +0 -1
  37. package/dist/assets/dialog-page.css +0 -1
  38. package/dist/assets/divider.css +0 -1
  39. package/dist/assets/dropdown-default-textbox.css +0 -1
  40. package/dist/assets/dropdown-tag.css +0 -1
  41. package/dist/assets/dropdown.css +0 -1
  42. package/dist/assets/empty-state.css +0 -1
  43. package/dist/assets/error-message.css +0 -1
  44. package/dist/assets/file-uploader.css +0 -1
  45. package/dist/assets/filter-bar.css +0 -1
  46. package/dist/assets/fixed-scroller.css +0 -1
  47. package/dist/assets/focus-trap.css +0 -1
  48. package/dist/assets/footer-actions.css +0 -1
  49. package/dist/assets/form-layout-title.css +0 -1
  50. package/dist/assets/grid-layout.css +0 -1
  51. package/dist/assets/header-with-views.css +0 -1
  52. package/dist/assets/header.css +0 -1
  53. package/dist/assets/info-icon-with-popover.css +0 -1
  54. package/dist/assets/info-icon.css +0 -1
  55. package/dist/assets/input-field-password.css +0 -1
  56. package/dist/assets/input-field-phone-number.css +0 -1
  57. package/dist/assets/input-field.css +0 -1
  58. package/dist/assets/inspector.css +0 -1
  59. package/dist/assets/layout-row.css +0 -1
  60. package/dist/assets/link.css +0 -1
  61. package/dist/assets/listbox-option-tag.css +0 -1
  62. package/dist/assets/loading-indicator.css +0 -1
  63. package/dist/assets/main.css +0 -1
  64. package/dist/assets/menu.css +0 -1
  65. package/dist/assets/modal-fullscreen.css +0 -1
  66. package/dist/assets/pagination.css +0 -1
  67. package/dist/assets/payment-method.css +0 -1
  68. package/dist/assets/popover.css +0 -1
  69. package/dist/assets/popper-container.css +0 -1
  70. package/dist/assets/promo-banner.css +0 -1
  71. package/dist/assets/radio-group.css +0 -1
  72. package/dist/assets/radio-input.css +0 -1
  73. package/dist/assets/rich-text-editor.css +0 -1
  74. package/dist/assets/search-bar.css +0 -1
  75. package/dist/assets/secondary-nav.css +0 -1
  76. package/dist/assets/segmented-control.css +0 -1
  77. package/dist/assets/selection-card-group.css +0 -1
  78. package/dist/assets/sidepanel.css +0 -1
  79. package/dist/assets/status.css +0 -1
  80. package/dist/assets/step.css +0 -1
  81. package/dist/assets/structured-list-item.css +0 -1
  82. package/dist/assets/summary-grid.css +0 -1
  83. package/dist/assets/tabs.css +0 -1
  84. package/dist/assets/tag.css +0 -1
  85. package/dist/assets/teleport.css +0 -1
  86. package/dist/assets/textarea.css +0 -1
  87. package/dist/assets/timeline-item.css +0 -1
  88. package/dist/assets/toast.css +0 -1
  89. package/dist/assets/toggle-button.css +0 -1
  90. package/dist/assets/toggle.css +0 -1
  91. package/dist/assets/tooltip.css +0 -1
  92. package/dist/assets/tutorial.css +0 -1
  93. package/dist/assets/typography.css +0 -1
  94. package/dist/assets/use-cached-selected-values.css +0 -1
  95. package/dist/avatar.js +0 -5
  96. package/dist/avatar.js.map +0 -1
  97. package/dist/button.js +0 -16
  98. package/dist/button.js.map +0 -1
  99. package/dist/card.js +0 -7
  100. package/dist/card.js.map +0 -1
  101. package/dist/checkbox.js +0 -11
  102. package/dist/checkbox.js.map +0 -1
  103. package/dist/chip.js +0 -5
  104. package/dist/chip.js.map +0 -1
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  119. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  123. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +0 -11
  124. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +0 -1
  125. package/dist/chunks/accordion-item.C4tyRMCt.js +0 -116
  126. package/dist/chunks/accordion-item.C4tyRMCt.js.map +0 -1
  127. package/dist/chunks/action-bar.CHVePTM6.js +0 -161
  128. package/dist/chunks/action-bar.CHVePTM6.js.map +0 -1
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  137. package/dist/chunks/alert.Du9NfW-V.js +0 -103
  138. package/dist/chunks/alert.Du9NfW-V.js.map +0 -1
  139. package/dist/chunks/aria-label.CaUURpnB.js +0 -13
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
  141. package/dist/chunks/avatar.BgwjpLQO.js +0 -71
  142. package/dist/chunks/avatar.BgwjpLQO.js.map +0 -1
  143. package/dist/chunks/base-button.-gx_u8Bd.js +0 -86
  144. package/dist/chunks/base-button.-gx_u8Bd.js.map +0 -1
  145. package/dist/chunks/base-modal.DxywEyGO.js +0 -373
  146. package/dist/chunks/base-modal.DxywEyGO.js.map +0 -1
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  149. package/dist/chunks/bin.DuebwJYu.js +0 -24
  150. package/dist/chunks/bin.DuebwJYu.js.map +0 -1
  151. package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js +0 -166
  152. package/dist/chunks/button-actions-with-menu.Bh5D7sgB.js.map +0 -1
  153. package/dist/chunks/button-actions.V0te_IrY.js +0 -194
  154. package/dist/chunks/button-actions.V0te_IrY.js.map +0 -1
  155. package/dist/chunks/button.BuD-IsW5.js +0 -99
  156. package/dist/chunks/button.BuD-IsW5.js.map +0 -1
  157. package/dist/chunks/calendar.C4vFYvsY.js +0 -1166
  158. package/dist/chunks/calendar.C4vFYvsY.js.map +0 -1
  159. package/dist/chunks/card.CC4BEw-7.js +0 -123
  160. package/dist/chunks/card.CC4BEw-7.js.map +0 -1
  161. package/dist/chunks/checkbox-group.BfPZ_Eec.js +0 -152
  162. package/dist/chunks/checkbox-group.BfPZ_Eec.js.map +0 -1
  163. package/dist/chunks/checkbox-input.Dr1GS2BZ.js +0 -137
  164. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +0 -1
  165. package/dist/chunks/checkbox.CTeT6JEP.js +0 -176
  166. package/dist/chunks/checkbox.CTeT6JEP.js.map +0 -1
  167. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +0 -24
  168. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +0 -1
  169. package/dist/chunks/checkmark-small.C8T8ISN6.js +0 -24
  170. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +0 -1
  171. package/dist/chunks/chevron-left.DOMTgGel.js +0 -43
  172. package/dist/chunks/chevron-left.DOMTgGel.js.map +0 -1
  173. package/dist/chunks/chevron-up.CSVyoaTy.js +0 -43
  174. package/dist/chunks/chevron-up.CSVyoaTy.js.map +0 -1
  175. package/dist/chunks/chip.bZEhHfIk.js +0 -63
  176. package/dist/chunks/chip.bZEhHfIk.js.map +0 -1
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
  179. package/dist/chunks/code-snippet.0x8O1dkV.js +0 -259
  180. package/dist/chunks/code-snippet.0x8O1dkV.js.map +0 -1
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
  183. package/dist/chunks/controls-group.CvpddKxq.js +0 -81
  184. package/dist/chunks/controls-group.CvpddKxq.js.map +0 -1
  185. package/dist/chunks/copy.TvI9Au3G.js +0 -129
  186. package/dist/chunks/copy.TvI9Au3G.js.map +0 -1
  187. package/dist/chunks/country.Df7erZov.js +0 -94
  188. package/dist/chunks/country.Df7erZov.js.map +0 -1
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
  191. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +0 -24
  192. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +0 -1
  193. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +0 -24
  194. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +0 -1
  195. package/dist/chunks/cross-small.CZqsjZDz.js +0 -24
  196. package/dist/chunks/cross-small.CZqsjZDz.js.map +0 -1
  197. package/dist/chunks/cross.CJ5EEL2c.js +0 -24
  198. package/dist/chunks/cross.CJ5EEL2c.js.map +0 -1
  199. package/dist/chunks/currency.B1F9YOIx.js +0 -106
  200. package/dist/chunks/currency.B1F9YOIx.js.map +0 -1
  201. package/dist/chunks/dashboard-section.C5zXN82c.js +0 -102
  202. package/dist/chunks/dashboard-section.C5zXN82c.js.map +0 -1
  203. package/dist/chunks/dashed-underline.pd87ohFZ.js +0 -65
  204. package/dist/chunks/dashed-underline.pd87ohFZ.js.map +0 -1
  205. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  206. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
  207. package/dist/chunks/data-grid-template.l-aJapU0.js +0 -84
  208. package/dist/chunks/data-grid-template.l-aJapU0.js.map +0 -1
  209. package/dist/chunks/data-grid.vFEU_kt8.js +0 -2782
  210. package/dist/chunks/data-grid.vFEU_kt8.js.map +0 -1
  211. package/dist/chunks/date-input.BqBdAO1E.js +0 -17
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  213. package/dist/chunks/date-picker.DjbZAEcj.js +0 -235
  214. package/dist/chunks/date-picker.DjbZAEcj.js.map +0 -1
  215. package/dist/chunks/date-range-picker.C1ijTRdf.js +0 -966
  216. package/dist/chunks/date-range-picker.C1ijTRdf.js.map +0 -1
  217. package/dist/chunks/date.dYFFEunA.js +0 -987
  218. package/dist/chunks/date.dYFFEunA.js.map +0 -1
  219. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  220. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  221. package/dist/chunks/dialog-page.uGh0kYDL.js +0 -131
  222. package/dist/chunks/dialog-page.uGh0kYDL.js.map +0 -1
  223. package/dist/chunks/directive.Cbdox5VL.js +0 -23
  224. package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
  225. package/dist/chunks/divider.Cc4JFWG_.js +0 -35
  226. package/dist/chunks/divider.Cc4JFWG_.js.map +0 -1
  227. package/dist/chunks/dot.CnkXzRn3.js +0 -24
  228. package/dist/chunks/dot.CnkXzRn3.js.map +0 -1
  229. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +0 -348
  230. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +0 -1
  231. package/dist/chunks/dropdown-tag.CXY_WiRj.js +0 -215
  232. package/dist/chunks/dropdown-tag.CXY_WiRj.js.map +0 -1
  233. package/dist/chunks/dropdown.DYN8Okpo.js +0 -818
  234. package/dist/chunks/dropdown.DYN8Okpo.js.map +0 -1
  235. package/dist/chunks/empty-state.IvvHHQ35.js +0 -151
  236. package/dist/chunks/empty-state.IvvHHQ35.js.map +0 -1
  237. package/dist/chunks/error-message.BM8Y6-u5.js +0 -121
  238. package/dist/chunks/error-message.BM8Y6-u5.js.map +0 -1
  239. package/dist/chunks/es6.BA9GH7QZ.js +0 -11
  240. package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
  241. package/dist/chunks/events.CMzGybJJ.js +0 -47
  242. package/dist/chunks/events.CMzGybJJ.js.map +0 -1
  243. package/dist/chunks/expand.C263WARj.js +0 -24
  244. package/dist/chunks/expand.C263WARj.js.map +0 -1
  245. package/dist/chunks/file-uploader.pWrwnN-c.js +0 -1913
  246. package/dist/chunks/file-uploader.pWrwnN-c.js.map +0 -1
  247. package/dist/chunks/filter-bar.BYHzhAr8.js +0 -2288
  248. package/dist/chunks/filter-bar.BYHzhAr8.js.map +0 -1
  249. package/dist/chunks/fixed-scroller.D0a6q8_i.js +0 -106
  250. package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +0 -1
  251. package/dist/chunks/focus-trap.DKT1Fe6X.js +0 -499
  252. package/dist/chunks/focus-trap.DKT1Fe6X.js.map +0 -1
  253. package/dist/chunks/footer-actions.Cn-793_Z.js +0 -96
  254. package/dist/chunks/footer-actions.Cn-793_Z.js.map +0 -1
  255. package/dist/chunks/form-layout-title.DBCY18f8.js +0 -190
  256. package/dist/chunks/form-layout-title.DBCY18f8.js.map +0 -1
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  263. package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
  264. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
  265. package/dist/chunks/grid-layout.HvTAa4to.js +0 -76
  266. package/dist/chunks/grid-layout.HvTAa4to.js.map +0 -1
  267. package/dist/chunks/header-with-views.Cqd864mp.js +0 -1536
  268. package/dist/chunks/header-with-views.Cqd864mp.js.map +0 -1
  269. package/dist/chunks/header.Ds1iyTzn.js +0 -187
  270. package/dist/chunks/header.Ds1iyTzn.js.map +0 -1
  271. package/dist/chunks/i18n.BQkEbtPM.js +0 -31
  272. package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
  273. package/dist/chunks/image.C2D2hKat.js +0 -56
  274. package/dist/chunks/image.C2D2hKat.js.map +0 -1
  275. package/dist/chunks/index.BDuTpjD8.js +0 -40
  276. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  277. package/dist/chunks/index.BxBB1rsx.js +0 -15
  278. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  279. package/dist/chunks/index.Cl4_42j5.js +0 -8
  280. package/dist/chunks/index.Cl4_42j5.js.map +0 -1
  281. package/dist/chunks/index.DD7TppDb.js +0 -10
  282. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  283. package/dist/chunks/index.oJzeCMPe.js +0 -529
  284. package/dist/chunks/index.oJzeCMPe.js.map +0 -1
  285. package/dist/chunks/info-icon-with-popover.yLETQrb9.js +0 -71
  286. package/dist/chunks/info-icon-with-popover.yLETQrb9.js.map +0 -1
  287. package/dist/chunks/info-icon.G9FAlO4C.js +0 -41
  288. package/dist/chunks/info-icon.G9FAlO4C.js.map +0 -1
  289. package/dist/chunks/info.4d_mJHvT.js +0 -24
  290. package/dist/chunks/info.4d_mJHvT.js.map +0 -1
  291. package/dist/chunks/input-field-password.C1OF1nmo.js +0 -251
  292. package/dist/chunks/input-field-password.C1OF1nmo.js.map +0 -1
  293. package/dist/chunks/input-field-phone-number.Dfa1fxvS.js +0 -3097
  294. package/dist/chunks/input-field-phone-number.Dfa1fxvS.js.map +0 -1
  295. package/dist/chunks/input-field.C9-4Xo4h.js +0 -152
  296. package/dist/chunks/input-field.C9-4Xo4h.js.map +0 -1
  297. package/dist/chunks/inspector.types.NVDCPiVL.js +0 -104
  298. package/dist/chunks/inspector.types.NVDCPiVL.js.map +0 -1
  299. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  300. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  301. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  302. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  303. package/dist/chunks/keyboard-navigation.pB8weElW.js +0 -66
  304. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +0 -1
  305. package/dist/chunks/layout-row.c0ugsIw6.js +0 -87
  306. package/dist/chunks/layout-row.c0ugsIw6.js.map +0 -1
  307. package/dist/chunks/link.D0P79Toh.js +0 -95
  308. package/dist/chunks/link.D0P79Toh.js.map +0 -1
  309. package/dist/chunks/listbox-option-tag.BcLYsizL.js +0 -44
  310. package/dist/chunks/listbox-option-tag.BcLYsizL.js.map +0 -1
  311. package/dist/chunks/loading-indicator.z8COalOc.js +0 -48
  312. package/dist/chunks/loading-indicator.z8COalOc.js.map +0 -1
  313. package/dist/chunks/menu.DDXB-L8u.js +0 -601
  314. package/dist/chunks/menu.DDXB-L8u.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  316. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  317. package/dist/chunks/modal-fullscreen.os2jZ30i.js +0 -202
  318. package/dist/chunks/modal-fullscreen.os2jZ30i.js.map +0 -1
  319. package/dist/chunks/modal.D5OesJnF.js +0 -445
  320. package/dist/chunks/modal.D5OesJnF.js.map +0 -1
  321. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  322. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  323. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  324. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  325. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  326. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  327. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  328. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  329. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  330. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  331. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  332. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  333. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  334. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  335. package/dist/chunks/pagination.BoWzbJVF.js +0 -338
  336. package/dist/chunks/pagination.BoWzbJVF.js.map +0 -1
  337. package/dist/chunks/payment-method.Cx4nPDtE.js +0 -76
  338. package/dist/chunks/payment-method.Cx4nPDtE.js.map +0 -1
  339. package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
  340. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
  341. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  342. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  343. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  344. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  345. package/dist/chunks/popover.K53VtitI.js +0 -295
  346. package/dist/chunks/popover.K53VtitI.js.map +0 -1
  347. package/dist/chunks/popper-container.DUNt7nKd.js +0 -1393
  348. package/dist/chunks/popper-container.DUNt7nKd.js.map +0 -1
  349. package/dist/chunks/promo-banner.BpLrkuMc.js +0 -70
  350. package/dist/chunks/promo-banner.BpLrkuMc.js.map +0 -1
  351. package/dist/chunks/radio-group.BE8gvwsL.js +0 -229
  352. package/dist/chunks/radio-group.BE8gvwsL.js.map +0 -1
  353. package/dist/chunks/radio-input.uJAhxKRs.js +0 -90
  354. package/dist/chunks/radio-input.uJAhxKRs.js.map +0 -1
  355. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  356. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  357. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  358. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  359. package/dist/chunks/refresh.Bc9FzGjJ.js +0 -24
  360. package/dist/chunks/refresh.Bc9FzGjJ.js.map +0 -1
  361. package/dist/chunks/resize.Bqks3WUm.js +0 -15
  362. package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
  363. package/dist/chunks/rich-text-editor.CP_xdt6R.js +0 -6203
  364. package/dist/chunks/rich-text-editor.CP_xdt6R.js.map +0 -1
  365. package/dist/chunks/search-bar.I2f0f4fU.js +0 -97
  366. package/dist/chunks/search-bar.I2f0f4fU.js.map +0 -1
  367. package/dist/chunks/search.DLtglc02.js +0 -24
  368. package/dist/chunks/search.DLtglc02.js.map +0 -1
  369. package/dist/chunks/secondary-nav.D1-GnlU-.js +0 -112
  370. package/dist/chunks/secondary-nav.D1-GnlU-.js.map +0 -1
  371. package/dist/chunks/segmented-control.A2eatwIG.js +0 -112
  372. package/dist/chunks/segmented-control.A2eatwIG.js.map +0 -1
  373. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  374. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  375. package/dist/chunks/selection-card-group.CFNCbcRU.js +0 -299
  376. package/dist/chunks/selection-card-group.CFNCbcRU.js.map +0 -1
  377. package/dist/chunks/show.e4LEpZKG.js +0 -43
  378. package/dist/chunks/show.e4LEpZKG.js.map +0 -1
  379. package/dist/chunks/sidepanel.CGGRp0oL.js +0 -210
  380. package/dist/chunks/sidepanel.CGGRp0oL.js.map +0 -1
  381. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  382. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  383. package/dist/chunks/status.types.p_TCvoo0.js +0 -36
  384. package/dist/chunks/status.types.p_TCvoo0.js.map +0 -1
  385. package/dist/chunks/step.CuOpi-Ye.js +0 -217
  386. package/dist/chunks/step.CuOpi-Ye.js.map +0 -1
  387. package/dist/chunks/structured-list-item.C8K371Ss.js +0 -87
  388. package/dist/chunks/structured-list-item.C8K371Ss.js.map +0 -1
  389. package/dist/chunks/success.DhioLvPD.js +0 -5
  390. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  391. package/dist/chunks/success.nNwxJRBS.js +0 -5
  392. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  393. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  394. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
  395. package/dist/chunks/summary-grid.types.DdghLR6f.js +0 -301
  396. package/dist/chunks/summary-grid.types.DdghLR6f.js.map +0 -1
  397. package/dist/chunks/tabs.DX_Gq12z.js +0 -205
  398. package/dist/chunks/tabs.DX_Gq12z.js.map +0 -1
  399. package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
  400. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
  401. package/dist/chunks/tag.B2vxWwV1.js +0 -44
  402. package/dist/chunks/tag.B2vxWwV1.js.map +0 -1
  403. package/dist/chunks/teleport.BV6zrDjA.js +0 -128
  404. package/dist/chunks/teleport.BV6zrDjA.js.map +0 -1
  405. package/dist/chunks/textarea.DPa9t8Jw.js +0 -200
  406. package/dist/chunks/textarea.DPa9t8Jw.js.map +0 -1
  407. package/dist/chunks/timeline-item.D2534IA9.js +0 -386
  408. package/dist/chunks/timeline-item.D2534IA9.js.map +0 -1
  409. package/dist/chunks/toast.B2u2W_TQ.js +0 -171
  410. package/dist/chunks/toast.B2u2W_TQ.js.map +0 -1
  411. package/dist/chunks/toggle-button.ChDbeBZ8.js +0 -83
  412. package/dist/chunks/toggle-button.ChDbeBZ8.js.map +0 -1
  413. package/dist/chunks/toggle.Q52IIKfi.js +0 -121
  414. package/dist/chunks/toggle.Q52IIKfi.js.map +0 -1
  415. package/dist/chunks/tooltip.B8nCejpo.js +0 -189
  416. package/dist/chunks/tooltip.B8nCejpo.js.map +0 -1
  417. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  418. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  419. package/dist/chunks/tutorial.X3GhtKlY.js +0 -348
  420. package/dist/chunks/tutorial.X3GhtKlY.js.map +0 -1
  421. package/dist/chunks/typography.J1v_SPG3.js +0 -87
  422. package/dist/chunks/typography.J1v_SPG3.js.map +0 -1
  423. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  424. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  425. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  426. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  427. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +0 -52
  428. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +0 -1
  429. package/dist/chunks/use-cached-selected-values.C6VRhL5_.js +0 -1177
  430. package/dist/chunks/use-cached-selected-values.C6VRhL5_.js.map +0 -1
  431. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  432. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  433. package/dist/chunks/use-country-items.HFnjuDsG.js +0 -30
  434. package/dist/chunks/use-country-items.HFnjuDsG.js.map +0 -1
  435. package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
  436. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
  437. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +0 -13
  438. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +0 -1
  439. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  440. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
  441. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
  442. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
  443. package/dist/chunks/use-has-slot.C9lQZ6nz.js +0 -6
  444. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +0 -1
  445. package/dist/chunks/warning-filled.Cd0kVWwa.js +0 -24
  446. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +0 -1
  447. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  448. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  449. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  450. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  451. package/dist/click-outside.js +0 -5
  452. package/dist/click-outside.js.map +0 -1
  453. package/dist/code-snippet.js +0 -8
  454. package/dist/code-snippet.js.map +0 -1
  455. package/dist/country.js +0 -12
  456. package/dist/country.js.map +0 -1
  457. package/dist/currency.js +0 -6
  458. package/dist/currency.js.map +0 -1
  459. package/dist/dashboard-template.js +0 -6
  460. package/dist/dashboard-template.js.map +0 -1
  461. package/dist/dashed-underline.js +0 -5
  462. package/dist/dashed-underline.js.map +0 -1
  463. package/dist/data-grid-template.js +0 -5
  464. package/dist/data-grid-template.js.map +0 -1
  465. package/dist/data-grid.js +0 -11
  466. package/dist/data-grid.js.map +0 -1
  467. package/dist/date-picker.js +0 -8
  468. package/dist/date-picker.js.map +0 -1
  469. package/dist/date-range-picker.js +0 -8
  470. package/dist/date-range-picker.js.map +0 -1
  471. package/dist/date.js +0 -6
  472. package/dist/date.js.map +0 -1
  473. package/dist/divider.js +0 -5
  474. package/dist/divider.js.map +0 -1
  475. package/dist/dropdown.js +0 -16
  476. package/dist/dropdown.js.map +0 -1
  477. package/dist/empty-state.js +0 -8
  478. package/dist/empty-state.js.map +0 -1
  479. package/dist/file-uploader.js +0 -5
  480. package/dist/file-uploader.js.map +0 -1
  481. package/dist/filter-bar.js +0 -8
  482. package/dist/filter-bar.js.map +0 -1
  483. package/dist/focus-trap.js +0 -5
  484. package/dist/focus-trap.js.map +0 -1
  485. package/dist/fonts/fonts.css +0 -2
  486. package/dist/form-layout.js +0 -8
  487. package/dist/form-layout.js.map +0 -1
  488. package/dist/header-with-views.js +0 -5
  489. package/dist/header-with-views.js.map +0 -1
  490. package/dist/header.js +0 -5
  491. package/dist/header.js.map +0 -1
  492. package/dist/image.js +0 -7
  493. package/dist/image.js.map +0 -1
  494. package/dist/index.js +0 -371
  495. package/dist/index.js.map +0 -1
  496. package/dist/info-icon.js +0 -5
  497. package/dist/info-icon.js.map +0 -1
  498. package/dist/input-field-password.js +0 -10
  499. package/dist/input-field-password.js.map +0 -1
  500. package/dist/input-field-phone-number.js +0 -5
  501. package/dist/input-field-phone-number.js.map +0 -1
  502. package/dist/input-field.js +0 -10
  503. package/dist/input-field.js.map +0 -1
  504. package/dist/inspector.js +0 -6
  505. package/dist/inspector.js.map +0 -1
  506. package/dist/internal.js +0 -43
  507. package/dist/internal.js.map +0 -1
  508. package/dist/layout.js +0 -6
  509. package/dist/layout.js.map +0 -1
  510. package/dist/link.js +0 -6
  511. package/dist/link.js.map +0 -1
  512. package/dist/loading-indicator.js +0 -6
  513. package/dist/loading-indicator.js.map +0 -1
  514. package/dist/menu.js +0 -6
  515. package/dist/menu.js.map +0 -1
  516. package/dist/modal-fullscreen.js +0 -6
  517. package/dist/modal-fullscreen.js.map +0 -1
  518. package/dist/modal.js +0 -14
  519. package/dist/modal.js.map +0 -1
  520. package/dist/pagination.js +0 -5
  521. package/dist/pagination.js.map +0 -1
  522. package/dist/payment-method.js +0 -7
  523. package/dist/payment-method.js.map +0 -1
  524. package/dist/popover.js +0 -6
  525. package/dist/popover.js.map +0 -1
  526. package/dist/popper-container.js +0 -9
  527. package/dist/popper-container.js.map +0 -1
  528. package/dist/promo-banner.js +0 -7
  529. package/dist/promo-banner.js.map +0 -1
  530. package/dist/radio-group.js +0 -9
  531. package/dist/radio-group.js.map +0 -1
  532. package/dist/rich-text-editor.js +0 -5
  533. package/dist/rich-text-editor.js.map +0 -1
  534. package/dist/search-bar.js +0 -9
  535. package/dist/search-bar.js.map +0 -1
  536. package/dist/secondary-nav.js +0 -5
  537. package/dist/secondary-nav.js.map +0 -1
  538. package/dist/segmented-control.js +0 -7
  539. package/dist/segmented-control.js.map +0 -1
  540. package/dist/selection-card.js +0 -7
  541. package/dist/selection-card.js.map +0 -1
  542. package/dist/sidepanel.js +0 -7
  543. package/dist/sidepanel.js.map +0 -1
  544. package/dist/status.js +0 -6
  545. package/dist/status.js.map +0 -1
  546. package/dist/stepper.js +0 -8
  547. package/dist/stepper.js.map +0 -1
  548. package/dist/structured-list.js +0 -6
  549. package/dist/structured-list.js.map +0 -1
  550. package/dist/styles/bento-dark.css +0 -2055
  551. package/dist/styles/bento-light.css +0 -2054
  552. package/dist/styles/bento.css +0 -2054
  553. package/dist/styles/legacy.css +0 -2209
  554. package/dist/styles/styleguide.css +0 -2109
  555. package/dist/styles/utility.css +0 -987
  556. package/dist/summary-grid.js +0 -12
  557. package/dist/summary-grid.js.map +0 -1
  558. package/dist/tabs.js +0 -6
  559. package/dist/tabs.js.map +0 -1
  560. package/dist/tag.js +0 -6
  561. package/dist/tag.js.map +0 -1
  562. package/dist/textarea.js +0 -5
  563. package/dist/textarea.js.map +0 -1
  564. package/dist/timeline.js +0 -10
  565. package/dist/timeline.js.map +0 -1
  566. package/dist/toast.js +0 -5
  567. package/dist/toast.js.map +0 -1
  568. package/dist/toggle.js +0 -7
  569. package/dist/toggle.js.map +0 -1
  570. package/dist/tutorial.js +0 -5
  571. package/dist/tutorial.js.map +0 -1
  572. package/dist/typography.js +0 -8
  573. package/dist/typography.js.map +0 -1
  574. package/dist/use-form-v4.js +0 -8300
  575. package/dist/use-form-v4.js.map +0 -1
  576. package/dist/web-types.json +0 -15172
@@ -1,966 +0,0 @@
1
- import { reactive as De, defineComponent as Pe, computed as g, ref as w, onMounted as Be, toRaw as pe, toRef as fe, watch as ve } from "vue";
2
- import { B as tt } from "./divider.Cc4JFWG_.js";
3
- import { B as at } from "./popover.K53VtitI.js";
4
- import { B as Ne, d as nt } from "./typography.J1v_SPG3.js";
5
- import { r as h, t as Y, g as ge } from "./get-date-locale.BN8xEjY0.js";
6
- import { g as te } from "./generate-uid.NJ8tVoha.js";
7
- import { u as ye } from "./i18n.BQkEbtPM.js";
8
- import { t as re, f as ne } from "./date.dYFFEunA.js";
9
- import { e as qe, f as ae, i as B, g as Z, h as Ie, j as rt, k as Se, l as st, s as ke, m as ot, n as Ee, a as L, u as it } from "./calendar.C4vFYvsY.js";
10
- import { f as he, v as lt, D as k } from "./date-input.BqBdAO1E.js";
11
- import { u as ut } from "./use-form-layout-loading.D3lALhtC.js";
12
- import "./index.Cl4_42j5.js";
13
- import { B as dt } from "./input-field.C9-4Xo4h.js";
14
- import { B as ct } from "./dropdown.DYN8Okpo.js";
15
- import { B as Dt } from "./segmented-control.A2eatwIG.js";
16
- import { d as de } from "./debounce.DUTu11PS.js";
17
- import { u as mt } from "./use-has-slot.C9lQZ6nz.js";
18
- import { e as W, a as Oe } from "./index.BDuTpjD8.js";
19
- import { n as Le } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
20
- import { D as ft } from "./dropdown-default-textbox.AUsF-RIc.js";
21
- import { B as vt } from "./directive.Cbdox5VL.js";
22
- import { F as pt, E as gt } from "./error-message.BM8Y6-u5.js";
23
- import { B as yt, c as Tt } from "./button-actions.V0te_IrY.js";
24
- import "../assets/date-range-picker.css";
25
- function Ye(t, e) {
26
- h(2, arguments);
27
- var n = re(e), i = n * 3;
28
- return qe(t, i);
29
- }
30
- function Me(t) {
31
- h(1, arguments);
32
- var e = Y(t), n = Math.floor(e.getMonth() / 3) + 1;
33
- return n;
34
- }
35
- function we(t) {
36
- return h(1, arguments), Y(t).getFullYear();
37
- }
38
- function _t(t, e) {
39
- h(2, arguments);
40
- var n = Y(t), i = Y(e);
41
- return n.getTime() === i.getTime();
42
- }
43
- function Rt(t, e) {
44
- h(2, arguments);
45
- var n = ae(t), i = ae(e);
46
- return n.getTime() === i.getTime();
47
- }
48
- function Ce(t) {
49
- h(1, arguments);
50
- var e = Y(t);
51
- return e.setMilliseconds(0), e;
52
- }
53
- function xe(t, e) {
54
- h(2, arguments);
55
- var n = Ce(t), i = Ce(e);
56
- return n.getTime() === i.getTime();
57
- }
58
- function bt(t) {
59
- return h(1, arguments), B(t, Date.now());
60
- }
61
- function It(t, e) {
62
- h(2, arguments);
63
- var n = Y(t), i = re(e);
64
- return n.setHours(i), n;
65
- }
66
- function St(t, e) {
67
- h(2, arguments);
68
- var n = Y(t), i = re(e);
69
- return n.setMinutes(i), n;
70
- }
71
- function kt(t, e) {
72
- h(2, arguments);
73
- var n = Y(t), i = re(e);
74
- return n.setSeconds(i), n;
75
- }
76
- function Et(t, e) {
77
- h(2, arguments);
78
- var n = re(e);
79
- return Ye(t, -n);
80
- }
81
- function K(t) {
82
- if (t == null)
83
- return Z(/* @__PURE__ */ new Date());
84
- const [e, n, i] = t.split("-").map((l) => parseInt(l, 10));
85
- return new Date(e, n - 1, i);
86
- }
87
- const ht = ({
88
- firstDayOfWeek: t,
89
- min: e,
90
- max: n
91
- }) => ({ getGranularCalendarLimits: (l) => {
92
- let c = Z(e), D = W(n);
93
- if ((l == null ? void 0 : l.type) === "weekly") {
94
- if (l.earliest)
95
- c = Z(l.earliest);
96
- else {
97
- const r = Ie(c, { weekStartsOn: t });
98
- B(c, r) || (c = Z(rt(Se(c, { weekStartsOn: t }), 1)));
99
- }
100
- if (l.latest)
101
- D = W(l.latest);
102
- else {
103
- const r = Se(D, { weekStartsOn: t });
104
- B(D, r) || (D = W(st(Ie(D, { weekStartsOn: t }), 1)));
105
- }
106
- }
107
- if ((l == null ? void 0 : l.type) === "monthly") {
108
- if (l.earliest)
109
- c = Z(l.earliest);
110
- else {
111
- const r = ke(c);
112
- B(c, r) || (c = ke(qe(c, 1)));
113
- }
114
- if (l.latest)
115
- D = W(l.latest);
116
- else {
117
- const r = Oe(D);
118
- B(D, r) || (D = Oe(ot(D, 1)));
119
- }
120
- }
121
- if ((l == null ? void 0 : l.type) === "quarterly") {
122
- if (l.earliest)
123
- c = ae(l.earliest);
124
- else {
125
- const r = ae(c);
126
- B(c, r) || (c = ae(Ye(c, 1)));
127
- }
128
- if (l.latest)
129
- D = W(l.latest);
130
- else {
131
- const r = Ee(D);
132
- B(D, r) || (D = Ee(Et(D, 1)));
133
- }
134
- }
135
- return { min: c, max: D };
136
- } }), Ot = () => {
137
- const t = De({
138
- daily: null,
139
- weekly: null,
140
- monthly: null,
141
- quarterly: null
142
- });
143
- return {
144
- savedRanges: t,
145
- saveRange: (i, l) => {
146
- t[i] = l;
147
- },
148
- resetSavedRanges: () => {
149
- t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
150
- }
151
- };
152
- };
153
- var f = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(f || {});
154
- const Mt = /[\d]/, wt = /^\d{2}$/, Ct = /^\d{2}:\d{2}$/, xt = (t) => {
155
- const { selectionStart: e } = t.target, n = Mt.test(t.key) || t.key === "Backspace" || t.key === "Tab", i = [1, 2, 4, 5].includes(e) && t.key === ":";
156
- !n && !i && t.preventDefault();
157
- }, Ae = (t) => {
158
- if (!t)
159
- return t;
160
- let e = t;
161
- if (e.length === 1 && parseInt(t, 10) > 2)
162
- return `0${e}:`;
163
- const [n, i] = e.slice(-2);
164
- return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (wt.test(e) || Ct.test(e)) && (e += ":"), e;
165
- }, At = {
166
- "en-US": {
167
- customRange: "Custom range",
168
- daily: "Daily",
169
- dateFrom: "Date from",
170
- dateTo: "Date to",
171
- lastMonth: "Last month",
172
- lastSevenDays: "Last 7 days",
173
- lastThreeMonths: "Last three months",
174
- monthly: "Monthly",
175
- quarterly: "Quarterly",
176
- timeFrom: "Time from",
177
- timeTo: "Time to",
178
- weekly: "Weekly"
179
- },
180
- "ja-JP": {
181
- customRange: "カスタム範囲を選択",
182
- daily: "毎日",
183
- lastMonth: "先月",
184
- lastSevenDays: "過去7日間",
185
- monthly: "毎月",
186
- weekly: "毎週"
187
- },
188
- "pt-BR": {
189
- customRange: "Selecione um intervalo personalizado",
190
- daily: "Diário",
191
- lastMonth: "Último mês",
192
- lastSevenDays: "Últimos 7 dias",
193
- monthly: "Mensal",
194
- weekly: "Semanal"
195
- }
196
- }, Fe = 300, Ue = "customRange", Ft = Pe({
197
- i18n: { messages: At },
198
- name: "date-range-picker-calendar",
199
- components: {
200
- BentoDropdown: ct,
201
- BentoInputField: dt,
202
- BentoSegmentedControl: Dt,
203
- BentoTypography: Ne,
204
- Calendar: L
205
- },
206
- props: {
207
- /**
208
- * Allows user to enter time values in the form
209
- */
210
- allowTimeInput: { type: Boolean, default: !1 },
211
- /**
212
- * Ranges form persistance data
213
- */
214
- dateFormData: {
215
- type: Object,
216
- default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
217
- },
218
- /**
219
- * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
220
- */
221
- firstDayOfWeek: L.props.firstDayOfWeek,
222
- /**
223
- * A list of available granularities.
224
- * If present, the date picker will display a segmented control to change granularity.
225
- */
226
- granularities: {
227
- type: Array,
228
- default: null
229
- },
230
- /**
231
- * Indicate if a date should be disabled or not
232
- */
233
- isDateDisabled: L.props.isDateDisabled,
234
- /**
235
- * Set a maximum number of dates to be selectable by the range.
236
- */
237
- maxRange: L.props.maxRange,
238
- /**
239
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
240
- */
241
- min: L.props.min,
242
- /**
243
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
244
- */
245
- max: L.props.max,
246
- /**
247
- * Number of months rendered on pane
248
- */
249
- numberOfMonths: L.props.numberOfMonths,
250
- /**
251
- * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
252
- */
253
- showEndDateOnOpen: { type: Boolean, default: !1 },
254
- /**
255
- * Enables the custom range selector.
256
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
257
- * `label` - label of custom range item.
258
- * `value` - a unique key of the custom range item.
259
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
260
- */
261
- quickSelectRanges: {
262
- type: Array,
263
- default: void 0
264
- },
265
- /**
266
- * Selected date
267
- */
268
- value: { type: Object, default: void 0 },
269
- /**
270
- * The type of calendar to display. Defaults to showing days.
271
- */
272
- variant: L.props.variant
273
- },
274
- emits: [
275
- f.CUSTOM_RANGE,
276
- f.INPUT,
277
- f.ERROR,
278
- f.FORM_DATE,
279
- f.START_DATE_SELECTED
280
- ],
281
- setup(t, { emit: e, slots: n }) {
282
- var Te, _e, Re, be;
283
- const { locale: i, t: l } = ye(), c = ge(), D = g(() => t.variant === "month" ? "monthly" : "daily"), r = De({
284
- startDate: (Te = t.value) == null ? void 0 : Te.startDate,
285
- endDate: (_e = t.value) == null ? void 0 : _e.endDate,
286
- range: (Re = t.value) == null ? void 0 : Re.range,
287
- ...t.granularities ? {
288
- granularity: ((be = t.value) == null ? void 0 : be.granularity) || D.value
289
- } : {}
290
- });
291
- function y(a) {
292
- return a ? new Date(
293
- a.getUTCFullYear(),
294
- a.getUTCMonth(),
295
- a.getUTCDate(),
296
- a.getUTCHours(),
297
- a.getUTCMinutes(),
298
- a.getUTCSeconds()
299
- ) : null;
300
- }
301
- const T = g(() => {
302
- var a, o;
303
- return (
304
- // eslint-disable-next-line consistent-return
305
- ((o = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ value: u, data: d }) => {
306
- if (!d.endDate)
307
- return u === r.range || _t(
308
- y(d.startDate),
309
- y(r.startDate)
310
- ) && bt(r.endDate);
311
- if (t.allowTimeInput)
312
- return xe(
313
- y(d.startDate),
314
- y(r.startDate)
315
- ) && xe(y(d.endDate), y(r.endDate));
316
- if (d.endDate)
317
- return B(d.startDate, r.startDate) && B(d.endDate, r.endDate);
318
- })) == null ? void 0 : o.value) ?? Ue
319
- );
320
- }), se = g(() => ({
321
- "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
322
- })), _ = g(() => [
323
- { label: l("customRange"), value: Ue },
324
- ...t.quickSelectRanges ? t.quickSelectRanges : []
325
- ]), x = g(
326
- () => {
327
- var a;
328
- return ((a = t.granularities) == null ? void 0 : a.find(({ type: o }) => o === r.granularity)) || null;
329
- }
330
- ), I = g(
331
- () => {
332
- var a;
333
- return ((a = t.granularities) == null ? void 0 : a.map(({ type: o, disabled: u }) => ({
334
- label: l(o),
335
- value: o,
336
- disabled: u
337
- }))) ?? [];
338
- }
339
- ), { getGranularCalendarLimits: z } = ht(t), v = g(
340
- () => t.granularities ? z(x.value) : { min: Z(t.min), max: W(t.max) }
341
- ), {
342
- adjustDateForQuarterly: O,
343
- adjustDateForMonthly: $,
344
- adjustDateForWeekly: A,
345
- adjustStartDateInputForWeekly: p,
346
- adjustEndDateInputForWeekly: C,
347
- adjustStartDateInputForMonthly: F,
348
- adjustEndDateInputForMonthly: M,
349
- adjustStartDateInputForQuarterly: ee,
350
- adjustEndDateInputForQuarterly: oe
351
- } = it(t.firstDayOfWeek), { savedRanges: U, saveRange: N, resetSavedRanges: G } = Ot(), b = (a) => a ? ne(a, k.NUMERIC_DATE_YEAR_FIRST, {
352
- locale: c[i.value.substring(0, 2)] || c.enUS
353
- }) : "", J = (a) => a ? ne(a, k.HOUR_MINUTE_SECONDS, {
354
- locale: c[i.value.substring(0, 2)] || c.enUS
355
- }) : "", q = w(!1), j = w(!1), Q = w(!1), H = w(!1), s = De({
356
- startDate: t.dateFormData.startDate,
357
- endDate: t.dateFormData.endDate,
358
- startTime: t.dateFormData.startTime,
359
- endTime: t.dateFormData.endTime
360
- }), ie = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), E = (a, o) => {
361
- if (!o || !ie(o) || t.variant === "month")
362
- return a;
363
- let u = new Date(a);
364
- const [d, S, V] = o.split(":");
365
- return u = It(u, parseInt(d, 10)), u = St(u, parseInt(S, 10)), u = kt(u, parseInt(V, 10)), u;
366
- }, m = (a) => {
367
- r.startDate = E(a.startDate, s.startTime), r.endDate = E(a.endDate, s.endTime), r.range = null, t.granularities && G(), e(f.INPUT, {
368
- ...r,
369
- range: T.value
370
- });
371
- }, R = (a) => {
372
- const o = (d) => t.min && d <= t.min || t.max && d >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(d) : !0;
373
- return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && o(new Date(a));
374
- };
375
- Be(() => {
376
- t.dateFormData.startDate && !R(t.dateFormData.startDate) ? q.value = !0 : (q.value = !1, Q.value = !1), t.dateFormData.endDate && !R(t.dateFormData.endDate) ? j.value = !0 : (j.value = !1, H.value = !1);
377
- });
378
- const X = (a) => {
379
- var o;
380
- s.startDate = b(a), s.startTime ? Q.value && (s.startTime = (o = t.dateFormData) == null ? void 0 : o.startTime) : s.startTime = J(a), q.value = !1, Q.value = !1, e(f.START_DATE_SELECTED, a);
381
- }, me = (a) => {
382
- var o;
383
- s.endDate = b(a), s.endTime ? H.value && (s.endTime = (o = t.dateFormData) == null ? void 0 : o.endTime) : s.endTime = J(W(a)), j.value = !1, H.value = !1;
384
- }, le = (a) => {
385
- const o = t.value[a];
386
- if (o)
387
- return o;
388
- if (t.dateFormData[a] && R(t.dateFormData[a]))
389
- return new Date(t.dateFormData[a]);
390
- }, $e = de((a) => {
391
- var o;
392
- if (R(a)) {
393
- let u = a;
394
- switch (q.value = !1, (o = x.value) == null ? void 0 : o.type) {
395
- case "weekly":
396
- u = p(
397
- a,
398
- b,
399
- v.value.min,
400
- v.value.max
401
- ), s.startDate = u;
402
- break;
403
- case "monthly":
404
- u = F(
405
- a,
406
- b,
407
- v.value.min,
408
- v.value.max
409
- ), s.startDate = u;
410
- break;
411
- case "quarterly":
412
- u = ee(
413
- a,
414
- b,
415
- v.value.min,
416
- v.value.max
417
- ), s.startDate = u;
418
- break;
419
- }
420
- const d = K(u);
421
- r.startDate = E(d, s.startTime), r.endDate = E(
422
- K(s.endDate),
423
- s.endTime
424
- ), R(s.endDate) && (r.endDate = E(
425
- K(s.endDate),
426
- s.endTime
427
- ));
428
- const S = le("endDate");
429
- r.range = null, e(f.FORM_DATE, {
430
- startDate: d,
431
- endDate: S
432
- }), e(f.INPUT, {
433
- ...r,
434
- range: T.value
435
- });
436
- } else
437
- q.value = !0, e(f.ERROR, { ...s });
438
- }, Fe), Ge = (a) => {
439
- s.startDate = he(a), $e(s.startDate);
440
- }, je = de((a) => {
441
- var o;
442
- if (R(a)) {
443
- let u = a;
444
- switch (j.value = !1, (o = x.value) == null ? void 0 : o.type) {
445
- case "weekly":
446
- u = C(
447
- a,
448
- b,
449
- v.value.min,
450
- v.value.max
451
- ), s.endDate = u;
452
- break;
453
- case "monthly":
454
- u = M(
455
- a,
456
- b,
457
- v.value.min,
458
- v.value.max
459
- ), s.endDate = u;
460
- break;
461
- case "quarterly":
462
- u = oe(
463
- a,
464
- b,
465
- v.value.min,
466
- v.value.max
467
- ), s.endDate = u;
468
- break;
469
- }
470
- const d = K(u);
471
- r.endDate = E(d, s.endTime), R(s.startDate) && (r.startDate = E(
472
- K(s.startDate),
473
- s.startTime
474
- ));
475
- const S = le("startDate");
476
- r.range = null, e(f.FORM_DATE, {
477
- startDate: S,
478
- endDate: d
479
- }), e(f.INPUT, {
480
- ...r,
481
- range: T.value
482
- });
483
- } else
484
- j.value = !0, e(f.ERROR, { ...s });
485
- }, Fe), Qe = (a) => {
486
- s.endDate = he(a), je(s.endDate);
487
- }, He = (a) => {
488
- lt(a);
489
- }, Ve = de((a) => {
490
- if (ie(a)) {
491
- Q.value = !1, r.startDate = E(r.startDate, a);
492
- const o = le("endDate");
493
- e(f.FORM_DATE, {
494
- startDate: new Date(r.startDate),
495
- endDate: o,
496
- startTime: a,
497
- endTime: t.dateFormData.endTime
498
- }), e(f.INPUT, {
499
- ...r,
500
- range: T.value
501
- });
502
- } else
503
- Q.value = !0, e(f.ERROR, { ...s });
504
- }), We = de((a) => {
505
- if (ie(a)) {
506
- H.value = !1, r.endDate = E(r.endDate, a);
507
- const o = le("startDate");
508
- r.startDate = E(new Date(o), t.dateFormData.startTime), e(f.FORM_DATE, {
509
- startDate: E(new Date(o), t.dateFormData.startTime),
510
- endDate: new Date(r.endDate),
511
- startTime: t.dateFormData.startTime,
512
- endTime: a
513
- }), e(f.INPUT, {
514
- ...r,
515
- range: T.value
516
- });
517
- } else
518
- H.value = !0, e(f.ERROR, { ...s });
519
- }), Ke = (a) => {
520
- s.startTime = Ae(a), Ve(s.startTime);
521
- }, ze = (a) => {
522
- s.endTime = Ae(a), We(s.endTime);
523
- }, Je = (a) => {
524
- xt(a);
525
- }, ue = (a, o, u, d) => {
526
- r.startDate = a, r.endDate = o, u && (r.granularity = u), d && (r.range = d);
527
- }, Xe = (a) => {
528
- var u;
529
- const o = (u = t.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === a);
530
- if (o) {
531
- G();
532
- const d = o.data, S = d.endDate || new Date(Date.now()), V = d.timeDifference ? new Date(S.getTime() - d.timeDifference) : d.startDate;
533
- s.endDate = b(S), s.startDate = b(V), ue(V, S, null, a), t.granularities && (r.granularity = d.granularity || D.value), s.startTime = J(V), s.endTime = J(S), r.endDate = S, r.startDate = V, e(f.CUSTOM_RANGE, {
534
- ...o.data,
535
- startDate: V,
536
- endDate: S,
537
- range: o.value
538
- });
539
- }
540
- }, Ze = {
541
- weekly: A,
542
- monthly: $,
543
- quarterly: O
544
- }, et = (a) => {
545
- const o = r.granularity;
546
- if (r.granularity = a, o && N(o, structuredClone(pe(r))), r.startDate && r.endDate) {
547
- switch (a) {
548
- case "quarterly":
549
- case "monthly":
550
- case "weekly": {
551
- if (U[a]) {
552
- ue(U[a].startDate, U[a].endDate, a);
553
- break;
554
- }
555
- const { startDate: u, endDate: d } = Ze[a](
556
- r.startDate,
557
- r.endDate,
558
- v.value.min,
559
- v.value.max
560
- );
561
- ue(u, d, a);
562
- break;
563
- }
564
- case "daily":
565
- U.daily && ue(U.daily.startDate, U.daily.endDate, a);
566
- break;
567
- }
568
- s.startDate = b(r.startDate), s.endDate = b(r.endDate), e(f.INPUT, {
569
- ...r,
570
- range: T.value
571
- });
572
- }
573
- };
574
- return {
575
- // Values
576
- internalRangeDate: r,
577
- dateTextInput: s,
578
- endDateError: j,
579
- endTimeError: H,
580
- granularityItems: I,
581
- selectedGranularity: x,
582
- computedMinMax: v,
583
- selectedRangeSelectorValue: T,
584
- startDateError: q,
585
- startTimeError: Q,
586
- quickSelectRangeDefaultItems: _,
587
- formInputWrapperConditionalClasses: se,
588
- // Methods
589
- hasSlot: mt(n),
590
- t: l,
591
- // Events
592
- onDateInput: m,
593
- onDateInputKeyDown: He,
594
- onEndDateInput: Qe,
595
- onEndDateSelected: me,
596
- onEndTimeInput: ze,
597
- onGranularityInput: et,
598
- onRangeSelectorInput: Xe,
599
- onStartDateInput: Ge,
600
- onStartDateSelected: X,
601
- onStartTimeInput: Ke,
602
- onTimeInputKeyDown: Je
603
- };
604
- }
605
- });
606
- var Ut = function() {
607
- var e = this, n = e._self._c;
608
- return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
609
- return [e._v("YYYY-MM-DD")];
610
- }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
611
- return [e._v("HH:MM:SS")];
612
- }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
613
- return [e._v("YYYY-MM-DD")];
614
- }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
615
- return [e._v("HH:MM:SS")];
616
- }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.internalRangeDate, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, variant: e.variant, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
617
- }, Pt = [], Bt = /* @__PURE__ */ Le(
618
- Ft,
619
- Ut,
620
- Pt,
621
- !1,
622
- null,
623
- "0477a483"
624
- );
625
- const P = Bt.exports, Nt = ({
626
- datePickerValue: t,
627
- isDateIncorrect: e,
628
- quickSelectRanges: n,
629
- isMonthVariant: i
630
- }) => {
631
- var x, I, z, v;
632
- const { locale: l, t: c } = ye(), D = ge(), r = (O) => !!O && !isNaN(O.getTime()), y = (O, $) => r(O) ? ne(O, $, {
633
- locale: D[l.value.substring(0, 2)] || D.enUS
634
- }) : void 0, T = De({
635
- startDate: y((x = t.value) == null ? void 0 : x.startDate, k.NUMERIC_DATE_YEAR_FIRST),
636
- endDate: y((I = t.value) == null ? void 0 : I.endDate, k.NUMERIC_DATE_YEAR_FIRST),
637
- startTime: y((z = t.value) == null ? void 0 : z.startDate, k.HOUR_MINUTE_SECONDS),
638
- endTime: y((v = t.value) == null ? void 0 : v.endDate, k.HOUR_MINUTE_SECONDS)
639
- });
640
- return {
641
- // Values
642
- dateDisplayValue: g(() => {
643
- var p;
644
- if (e.value)
645
- return `${T.startDate || ""} - ${T.endDate || ""}`;
646
- if (!t.value || !t.value.startDate && !t.value.endDate)
647
- return c("selectDateRange");
648
- if ((p = n.value) != null && p.length) {
649
- const C = n.value.find(({ value: F }) => {
650
- var M;
651
- return F === ((M = t.value) == null ? void 0 : M.range);
652
- });
653
- if (C)
654
- return C.label;
655
- }
656
- if (t.value.granularity === "quarterly") {
657
- const { startDate: C, endDate: F } = t.value, M = c("quarter", { quarter: Me(C), year: we(C) });
658
- if (Rt(C, F))
659
- return M;
660
- const ee = c("quarter", { quarter: Me(F), year: we(F) });
661
- return `${M} - ${ee}`;
662
- }
663
- const { startDate: O, endDate: $ } = T, A = i != null && i.value ? k.LONG_MONTH_YEAR : k.FULL_DATE_MONTH_FIRST;
664
- return `${y(K(O), A)} - ${y(
665
- K($),
666
- A
667
- )}`;
668
- }),
669
- textInputDisplayValue: T,
670
- // Methods
671
- formatTextInputDisplayValue: () => ""
672
- };
673
- };
674
- var ce = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(ce || {});
675
- const qt = {
676
- "en-US": {
677
- apply: "Apply",
678
- cancel: "Cancel",
679
- dateRangePicker: "Date range picker {name}",
680
- provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
681
- quarter: "Q{quarter} {year}",
682
- selectDate: "Select a date",
683
- selectDateRange: "Select a date range",
684
- selectedDateIsNotAvailable: "Selected date is not available"
685
- },
686
- "ja-JP": {
687
- apply: "適用",
688
- cancel: "キャンセル",
689
- selectDate: "日付を選択"
690
- },
691
- "pt-BR": {
692
- apply: "Aplicar",
693
- cancel: "Cancelar",
694
- selectDate: "Selecione uma data"
695
- }
696
- }, Lt = Pe({
697
- i18n: { messages: qt },
698
- name: "bento-date-range-picker",
699
- components: {
700
- BentoButtonActions: yt,
701
- BentoDivider: tt,
702
- BentoTypography: Ne,
703
- BentoPopover: at,
704
- DateRangePickerCalendar: P,
705
- DropdownInputDefault: ft,
706
- ErrorMessage: gt,
707
- FieldLabel: pt
708
- },
709
- directives: { BentoClickOutsideDirective: vt },
710
- props: {
711
- /**
712
- * Allows user to enter time values in the form
713
- */
714
- allowTimeInput: { type: Boolean, default: !1 },
715
- /**
716
- * Descriptive supporting text visbile underneath the dropdown.
717
- */
718
- description: { type: String, default: void 0 },
719
- /**
720
- * Disables dropdown functionality.
721
- */
722
- disabled: { type: Boolean, default: !1 },
723
- /**
724
- * Displays component in an error state with an error message
725
- */
726
- errorMessage: { type: String, default: null },
727
- /**
728
- * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
729
- */
730
- firstDayOfWeek: P.props.firstDayOfWeek,
731
- /**
732
- * A list of available granularities.
733
- * If present, the date picker will display a segmented control to change granularity.
734
- */
735
- granularities: P.props.granularities,
736
- /**
737
- * Indicate if a date should be disabled or not
738
- */
739
- isDateDisabled: P.props.isDateDisabled,
740
- /**
741
- * Text that is displayed as a label above the element.
742
- */
743
- label: { type: String, default: void 0 },
744
- /**
745
- * Upon opening date range picker, end date's month will be pre-selected.
746
- */
747
- showEndDateOnOpen: { type: Boolean, default: !1 },
748
- /**
749
- * Highlights the dropdown is optional.
750
- */
751
- optional: { type: Boolean, default: !1 },
752
- /**
753
- * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
754
- */
755
- readonly: { type: Boolean, default: !1 },
756
- /**
757
- * Highlights the dropdown is required.
758
- */
759
- required: { type: Boolean, default: !1 },
760
- /**
761
- * Adds a info icon next to the label to display the passed tooltip message.
762
- */
763
- tooltipText: { type: String, default: null },
764
- /**
765
- * Enables the range selector.
766
- * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
767
- * `label` - label of custom range item.
768
- * `value` - a unique key of the custom range item.
769
- * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
770
- */
771
- quickSelectRanges: {
772
- type: Array,
773
- default: void 0
774
- },
775
- /**
776
- * Set a maximum number of dates to be selectable by the range.
777
- */
778
- maxRange: P.props.maxRange,
779
- /**
780
- * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
781
- */
782
- min: P.props.min,
783
- /**
784
- * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
785
- */
786
- max: P.props.max,
787
- /**
788
- * Number of months rendered on pane
789
- */
790
- numberOfMonths: P.props.numberOfMonths,
791
- /**
792
- * Selected date
793
- */
794
- value: P.props.value,
795
- /**
796
- * The type of calendar to display. Defaults to showing days.
797
- */
798
- variant: {
799
- type: String,
800
- default: void 0
801
- // Default will be set by @/internal/calendar
802
- },
803
- /**
804
- * Enables the date picker selection to persist until it is explicitly applied.
805
- * Displays a set of buttons: Apply and Cancel.
806
- *
807
- * @deprecated This will be the default behaviour in v2.0.0.
808
- */
809
- hasActions: { type: Boolean, default: !1 }
810
- },
811
- emits: [ce.INPUT],
812
- setup(t, { emit: e }) {
813
- const { locale: n, t: i } = ye(), l = ge(), c = te("bento-date-range-picker-container"), D = te("bento-date-range-picker-label"), r = te("bento-date-range-picker-description"), y = te("bento-date-range-picker-error"), T = te("bento-date-range-picker-date-error"), se = g(
814
- () => t.label || i("dateRangePicker", { name: c })
815
- ), _ = w(!1), x = w(null), I = w(!1), { isReadOnly: z } = ut(fe(t, "readonly"));
816
- ve(
817
- () => t.disabled,
818
- () => {
819
- t.disabled && I.value && (I.value = !1);
820
- }
821
- );
822
- const v = g(() => t.hasActions ? !G.value && _.value : _.value), O = g(() => ({
823
- "b-date-range-picker__description--error": !!t.errorMessage || v.value
824
- })), $ = g(() => t.variant === "month"), { dateDisplayValue: A, textInputDisplayValue: p } = Nt({
825
- datePickerValue: fe(t, "value"),
826
- isDateIncorrect: _,
827
- quickSelectRanges: fe(t, "quickSelectRanges"),
828
- isMonthVariant: $
829
- }), C = g(
830
- () => `${t.description ? r : ""} ${t.errorMessage ? y : ""} ${_.value ? T : ""}`.trim() || null
831
- ), F = g(() => t.allowTimeInput && t.variant !== "month"), M = () => {
832
- I.value = !1;
833
- }, ee = () => {
834
- I.value = !0;
835
- }, oe = w(A.value), U = w(
836
- // textInputDisplayValue is a reactive object
837
- structuredClone(pe(p))
838
- ), N = w(t.value), G = w(!0), b = g(
839
- () => t.hasActions ? U.value : p
840
- ), J = g(
841
- () => t.hasActions ? oe.value : A.value
842
- );
843
- Be(() => {
844
- if (t.hasActions || nt(
845
- 'BentoDateRangePicker "hasActions" property',
846
- `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
847
- This will be the default behavior in the v2 and "hasActions" will be removed.`,
848
- "2.0.0"
849
- ), t.granularities && t.variant !== "month" && t.granularities.find(({ type: m }) => m === "quarterly"))
850
- throw new Error(
851
- 'Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"'
852
- );
853
- }), ve(
854
- () => t.value,
855
- () => {
856
- oe.value = A.value, U.value = structuredClone(pe(p));
857
- }
858
- );
859
- const q = g(() => [
860
- {
861
- title: i("apply"),
862
- event: () => {
863
- e(ce.INPUT, N.value), M(), G.value = !0;
864
- },
865
- disabled: G.value
866
- },
867
- {
868
- title: i("cancel"),
869
- event: M
870
- }
871
- ]);
872
- return ve(N, (m) => {
873
- if (t.hasActions) {
874
- G.value = _.value;
875
- return;
876
- }
877
- e(ce.INPUT, m);
878
- }), {
879
- // Refs
880
- inputContainerRef: x,
881
- // Values,
882
- dateDisplayValue: A,
883
- datePickerContainerId: c,
884
- descriptionConditionalClasses: O,
885
- displayedTextInputValue: b,
886
- displayedDateValue: J,
887
- isDateIncorrect: _,
888
- isDateRangePickerOpen: I,
889
- isReadOnly: z,
890
- labelId: D,
891
- descriptionId: r,
892
- dateErrorId: T,
893
- errorId: y,
894
- popoverAriaLabel: se,
895
- shouldDisplayError: v,
896
- ariaDescribedBy: C,
897
- textInputDisplayValue: p,
898
- rangePickerButtonActions: q,
899
- BentoButtonActionsLayout: Tt,
900
- withTimeInput: F,
901
- // Events
902
- closeDateRangePicker: M,
903
- clearDateRangePickerValue: async () => {
904
- _.value && (_.value = !1), N.value = null;
905
- },
906
- openDateRangePicker: ee,
907
- onRangeSelectorInput: (m) => {
908
- if (m) {
909
- const R = (X) => ne(X, k.NUMERIC_DATE_YEAR_FIRST, {
910
- locale: l[n.value.substring(0, 2)] || l.enUS
911
- });
912
- p.startDate = R(m.startDate), p.endDate = R(m.endDate), N.value = m;
913
- }
914
- },
915
- onEnterPressedOverInput: () => {
916
- if (!I.value) {
917
- I.value = !0;
918
- return;
919
- }
920
- _.value || (I.value = !1);
921
- },
922
- onDateRangePickerInput: (m) => {
923
- _.value = !1;
924
- const R = (X, me) => X ? ne(X, me, {
925
- locale: l[n.value.substring(0, 2)] || l.enUS
926
- }) : void 0;
927
- p.startDate = R(
928
- m.startDate,
929
- k.NUMERIC_DATE_YEAR_FIRST
930
- ), p.endDate = R(m.endDate, k.NUMERIC_DATE_YEAR_FIRST), p.startTime = R(m.startDate, k.HOUR_MINUTE_SECONDS), p.endTime = R(m.endDate, k.HOUR_MINUTE_SECONDS), N.value = m;
931
- },
932
- onDateRangePickerError: (m) => {
933
- _.value = !0, p.startDate = m.startDate, p.endDate = m.endDate, N.value = { startDate: null, endDate: null };
934
- },
935
- onDateRangePickerFormDateInputUpdate: (m) => {
936
- _.value = !1, m.startTime && (p.startTime = m.startTime), m.endTime && (p.endTime = m.endTime);
937
- },
938
- // Translations
939
- t: i
940
- };
941
- }
942
- });
943
- var Yt = function() {
944
- var e = this, n = e._self._c;
945
- return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(i) {
946
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
947
- } } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.shouldDisplayError, open: e.isDateRangePickerOpen, "display-value": e.displayedDateValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.shouldDisplayError ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.withTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.displayedTextInputValue, variant: e.variant }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
948
- return [n("bento-divider"), n("div", { staticClass: "b-date-range-picker__footer" }, [n("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
949
- }, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
950
- }, $t = [], Gt = /* @__PURE__ */ Le(
951
- Lt,
952
- Yt,
953
- $t,
954
- !1,
955
- null,
956
- "f7eae115"
957
- );
958
- const ma = Gt.exports;
959
- export {
960
- ma as B,
961
- P as D,
962
- ce as a,
963
- bt as b,
964
- _t as i
965
- };
966
- //# sourceMappingURL=date-range-picker.C1ijTRdf.js.map