@adyen/bento-vue3 1.84.2 → 1.85.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.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +244 -130
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +5 -0
- package/dist/ai-tag.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-tag.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
- package/dist/chunks/action-bar.BlhZoFfL.js +209 -0
- package/dist/chunks/action-bar.BlhZoFfL.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/ai-button.PAbhTT01.js +57 -0
- package/dist/chunks/ai-button.PAbhTT01.js.map +1 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js +131 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js.map +1 -0
- package/dist/chunks/alert.BYcw-u3b.js.map +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/arrow-left.DoP6zFsY.js +29 -0
- package/dist/chunks/arrow-left.DoP6zFsY.js.map +1 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js +29 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js.map +1 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js +44 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js.map +1 -0
- package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
- package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
- package/dist/chunks/{base-modal.D3GyeCFT.js → base-modal.CNETR72d.js} +5 -5
- package/dist/chunks/{base-modal.D3GyeCFT.js.map → base-modal.CNETR72d.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js → button-actions-with-menu.DY0pTtk-.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js.map → button-actions-with-menu.DY0pTtk-.js.map} +1 -1
- package/dist/chunks/{button-actions.Crj4QFAd.js → button-actions.Dk8xU2cz.js} +2 -2
- package/dist/chunks/{button-actions.Crj4QFAd.js.map → button-actions.Dk8xU2cz.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.CSp48LJt.js.map +1 -1
- package/dist/chunks/{calendar.DKPx_cQU.js → calendar.Dbc0yjyg.js} +106 -100
- package/dist/chunks/{calendar.DKPx_cQU.js.map → calendar.Dbc0yjyg.js.map} +1 -1
- package/dist/chunks/{card.C_03IYJe.js → card.C7LbwK7Q.js} +2 -2
- package/dist/chunks/{card.C_03IYJe.js.map → card.C7LbwK7Q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DZrhxIHp.js → checkbox-group.CCpe-S-E.js} +4 -4
- package/dist/chunks/{checkbox-group.DZrhxIHp.js.map → checkbox-group.CCpe-S-E.js.map} +1 -1
- package/dist/chunks/{checkbox.BWgWtiLJ.js → checkbox.A35e7MsN.js} +3 -3
- package/dist/chunks/{checkbox.BWgWtiLJ.js.map → checkbox.A35e7MsN.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.BX3Yeo0x.js → code-snippet.DKkTjYdC.js} +4 -4
- package/dist/chunks/{code-snippet.BX3Yeo0x.js.map → code-snippet.DKkTjYdC.js.map} +1 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
- package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
- package/dist/chunks/{controls-group.DpFv8c4E.js → controls-group.BHOKajou.js} +2 -2
- package/dist/chunks/{controls-group.DpFv8c4E.js.map → controls-group.BHOKajou.js.map} +1 -1
- package/dist/chunks/{copy.xg9ElNxd.js → copy.CgITv6wr.js} +3 -3
- package/dist/chunks/{copy.xg9ElNxd.js.map → copy.CgITv6wr.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js.map +1 -1
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
- package/dist/chunks/cross.B92GxFTY.js.map +1 -1
- package/dist/chunks/currency.DijmAkAB.js.map +1 -1
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js → dashboard-section.CrXdP_MQ.js} +3 -3
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js.map → dashboard-section.CrXdP_MQ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js → dashed-underline.BzppJBtk.js} +3 -3
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js.map → dashed-underline.BzppJBtk.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DdIrvOXp.js → data-grid-template.DFjdgxwb.js} +3 -3
- package/dist/chunks/{data-grid-template.DdIrvOXp.js.map → data-grid-template.DFjdgxwb.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.CqtJp9rE.js → data-grid.KkCt0Bgm.js} +1064 -1065
- package/dist/chunks/data-grid.KkCt0Bgm.js.map +1 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -1
- package/dist/chunks/{date-picker.DGIwFh6T.js → date-picker.dQuj_OF_.js} +16 -16
- package/dist/chunks/{date-picker.DGIwFh6T.js.map → date-picker.dQuj_OF_.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BAKR_gDf.js +1100 -0
- package/dist/chunks/date-range-picker.BAKR_gDf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.CL55prL0.js.map +1 -1
- package/dist/chunks/de.DvtL0g75.js.map +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/dialog-page.CF10AQQ3.js +158 -0
- package/dist/chunks/dialog-page.CF10AQQ3.js.map +1 -0
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js → dropdown-tag.CBgns9Y3.js} +3 -3
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js.map → dropdown-tag.CBgns9Y3.js.map} +1 -1
- package/dist/chunks/{dropdown.Dct8gr_q.js → dropdown.DmzMGz30.js} +22 -22
- package/dist/chunks/{dropdown.Dct8gr_q.js.map → dropdown.DmzMGz30.js.map} +1 -1
- package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
- package/dist/chunks/es.bz0mzkMq.js.map +1 -1
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
- package/dist/chunks/{field-label.D7vU2Icm.js → field-label.OurHuGZS.js} +2 -2
- package/dist/chunks/{field-label.D7vU2Icm.js.map → field-label.OurHuGZS.js.map} +1 -1
- package/dist/chunks/{file-uploader.BmBKLzIx.js → file-uploader.CQgu9YIY.js} +4 -4
- package/dist/chunks/file-uploader.CQgu9YIY.js.map +1 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js +4117 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js.map +1 -0
- package/dist/chunks/{focus-trap.BaHvK7aT.js → focus-trap.DH57j-Ov.js} +2 -2
- package/dist/chunks/{focus-trap.BaHvK7aT.js.map → focus-trap.DH57j-Ov.js.map} +1 -1
- package/dist/chunks/{footer-actions.BqNvwVk7.js → footer-actions.BMggOsip.js} +2 -2
- package/dist/chunks/{footer-actions.BqNvwVk7.js.map → footer-actions.BMggOsip.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.CPsEzRzS.js → form-layout-title.wnvpIbOe.js} +2 -2
- package/dist/chunks/{form-layout-title.CPsEzRzS.js.map → form-layout-title.wnvpIbOe.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
- package/dist/chunks/grab.B63hmf-_.js +26 -0
- package/dist/chunks/grab.B63hmf-_.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
- package/dist/chunks/{header-meta.PysBmkSU.js → header-meta.CkLmuprc.js} +8 -8
- package/dist/chunks/{header-meta.PysBmkSU.js.map → header-meta.CkLmuprc.js.map} +1 -1
- package/dist/chunks/{header-with-views.XzJCg2Ln.js → header-with-views.BXZmqtnz.js} +612 -630
- package/dist/chunks/header-with-views.BXZmqtnz.js.map +1 -0
- package/dist/chunks/{header.yMTOq8MR.js → header.RiaBKasj.js} +3 -3
- package/dist/chunks/{header.yMTOq8MR.js.map → header.RiaBKasj.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{index.E60QniEu.js → index.CL07S4Wa.js} +3 -3
- package/dist/chunks/{index.E60QniEu.js.map → index.CL07S4Wa.js.map} +1 -1
- package/dist/chunks/index.pdBj0KQU.js.map +1 -1
- package/dist/chunks/{info-icon.BQDGteil.js → info-icon.B6wfo65e.js} +3 -3
- package/dist/chunks/{info-icon.BQDGteil.js.map → info-icon.B6wfo65e.js.map} +1 -1
- package/dist/chunks/info.BKwey1HA.js.map +1 -1
- package/dist/chunks/{input-field-password.Drp3Gn3x.js → input-field-password.ClyJRN6h.js} +6 -6
- package/dist/chunks/{input-field-password.Drp3Gn3x.js.map → input-field-password.ClyJRN6h.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js → input-field-phone-number.CUdzwXz0.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js.map → input-field-phone-number.CUdzwXz0.js.map} +1 -1
- package/dist/chunks/{input-field.CBegTqdQ.js → input-field.CFNofr-W.js} +3 -3
- package/dist/chunks/{input-field.CBegTqdQ.js.map → input-field.CFNofr-W.js.map} +1 -1
- package/dist/chunks/{inspector.Dox76eqN.js → inspector.I4-8J_fd.js} +3 -3
- package/dist/chunks/{inspector.Dox76eqN.js.map → inspector.I4-8J_fd.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.5sjhTHiU.js +14 -0
- package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.5sjhTHiU.js.map} +1 -1
- package/dist/chunks/{it.Oaj6BklL.js → it.DEniTaO2.js} +2 -2
- package/dist/chunks/{it.Oaj6BklL.js.map → it.DEniTaO2.js.map} +1 -1
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
- package/dist/chunks/{layout-row.CX8kV_w0.js → layout-row.Ccw24NzW.js} +3 -3
- package/dist/chunks/layout-row.Ccw24NzW.js.map +1 -0
- package/dist/chunks/link.BLCQlEZU.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js → listbox-option-tag.BHQiD5oC.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js.map → listbox-option-tag.BHQiD5oC.js.map} +1 -1
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js.map +1 -1
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js → modal-fullscreen.f445bZ94.js} +4 -4
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js.map → modal-fullscreen.f445bZ94.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.BofKoYTB.js → pagination.DuRU9Xg_.js} +2 -2
- package/dist/chunks/{pagination.BofKoYTB.js.map → pagination.DuRU9Xg_.js.map} +1 -1
- package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.BbYumG-N.js +6 -0
- package/dist/chunks/{popover.types.DgfeurkF.js.map → popover.types.BbYumG-N.js.map} +1 -1
- package/dist/chunks/{popper-container.I9gzp1NR.js → popper-container.DdG_YvVF.js} +2 -2
- package/dist/chunks/{popper-container.I9gzp1NR.js.map → popper-container.DdG_YvVF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIRH5sVX.js → promo-banner.DzIYjBfG.js} +2 -2
- package/dist/chunks/{promo-banner.BIRH5sVX.js.map → promo-banner.DzIYjBfG.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
- package/dist/chunks/{radio-group.BqsQRDjs.js → radio-group.EqsvAKt2.js} +4 -4
- package/dist/chunks/{radio-group.BqsQRDjs.js.map → radio-group.EqsvAKt2.js.map} +1 -1
- package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js → rich-text-editor.-JS_rIjs.js} +4 -4
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js.map → rich-text-editor.-JS_rIjs.js.map} +1 -1
- package/dist/chunks/{search-bar.DrkPxPDP.js → search-bar.DPc0omnd.js} +3 -3
- package/dist/chunks/{search-bar.DrkPxPDP.js.map → search-bar.DPc0omnd.js.map} +1 -1
- package/dist/chunks/search.PczW-onY.js.map +1 -1
- package/dist/chunks/{secondary-nav.C0_VfFa9.js → secondary-nav.BGKR8l0u.js} +3 -3
- package/dist/chunks/{secondary-nav.C0_VfFa9.js.map → secondary-nav.BGKR8l0u.js.map} +1 -1
- package/dist/chunks/{segmented-control.CFlHfj3N.js → segmented-control.CFPAl4HD.js} +2 -2
- package/dist/chunks/{segmented-control.CFlHfj3N.js.map → segmented-control.CFPAl4HD.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.DNPlEqEq.js → selection-card-group.BL0LTYhI.js} +4 -4
- package/dist/chunks/{selection-card-group.DNPlEqEq.js.map → selection-card-group.BL0LTYhI.js.map} +1 -1
- package/dist/chunks/show.CT4Augxb.js.map +1 -1
- package/dist/chunks/{sidepanel.RJihFo_R.js → sidepanel.sWMdYcUC.js} +5 -5
- package/dist/chunks/{sidepanel.RJihFo_R.js.map → sidepanel.sWMdYcUC.js.map} +1 -1
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.CM1KIrNi.js} +2 -2
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.CM1KIrNi.js.map} +1 -1
- package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
- package/dist/chunks/step.DpgnDx29.js.map +1 -1
- package/dist/chunks/{structured-list-item.B-hdp7rW.js → structured-list-item.Uky_MJPp.js} +4 -4
- package/dist/chunks/{structured-list-item.B-hdp7rW.js.map → structured-list-item.Uky_MJPp.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js → summary-grid.types.R-TEtkgx.js} +5 -5
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js.map → summary-grid.types.R-TEtkgx.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
- package/dist/chunks/tab.JPngc9oS.js.map +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/{tag.DFJIvNLs.js → tag.CNN_D55j.js} +2 -2
- package/dist/chunks/{tag.DFJIvNLs.js.map → tag.CNN_D55j.js.map} +1 -1
- package/dist/chunks/{textarea.CEDkF8BB.js → textarea.BGcYYD8C.js} +2 -2
- package/dist/chunks/{textarea.CEDkF8BB.js.map → textarea.BGcYYD8C.js.map} +1 -1
- package/dist/chunks/{timeline-item.BxGaSGLf.js → timeline-item.Cbd_rb9J.js} +6 -6
- package/dist/chunks/{timeline-item.BxGaSGLf.js.map → timeline-item.Cbd_rb9J.js.map} +1 -1
- package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
- package/dist/chunks/{tooltip.Nn3o8_vO.js → tooltip.CqV3Okcs.js} +2 -2
- package/dist/chunks/{tooltip.Nn3o8_vO.js.map → tooltip.CqV3Okcs.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js} +28 -28
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map} +1 -1
- package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js → use-cached-selected-values.iGHt7ROs.js} +15 -15
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js.map → use-cached-selected-values.iGHt7ROs.js.map} +1 -1
- package/dist/chunks/use-country-items.JZCYNoW7.js.map +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.CgIooHto.js} +2 -2
- package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.CgIooHto.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +6 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +163 -0
- package/dist/draggable-handle.js.map +1 -0
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +319 -315
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -7
- package/dist/chunks/action-bar.CriH15oF.js +0 -204
- package/dist/chunks/action-bar.CriH15oF.js.map +0 -1
- package/dist/chunks/ai-button.CDRPf7IY.js +0 -93
- package/dist/chunks/ai-button.CDRPf7IY.js.map +0 -1
- package/dist/chunks/constructNow.DuaJst0D.js +0 -8
- package/dist/chunks/data-grid.CqtJp9rE.js.map +0 -1
- package/dist/chunks/date-range-picker.Df9XyFMH.js +0 -1896
- package/dist/chunks/date-range-picker.Df9XyFMH.js.map +0 -1
- package/dist/chunks/dialog-page.DaZSlMzY.js +0 -181
- package/dist/chunks/dialog-page.DaZSlMzY.js.map +0 -1
- package/dist/chunks/file-uploader.BmBKLzIx.js.map +0 -1
- package/dist/chunks/filter-bar.DHRuvmx9.js +0 -3363
- package/dist/chunks/filter-bar.DHRuvmx9.js.map +0 -1
- package/dist/chunks/header-with-views.XzJCg2Ln.js.map +0 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
- package/dist/chunks/layout-row.CX8kV_w0.js.map +0 -1
- package/dist/chunks/popover.types.DgfeurkF.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.CSp48LJt.js","sources":["../../../vue2/src/components/button/button.types.ts","../../../vue2/src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n TERTIARY_WITH_BACKGROUND = 'tertiary-with-background',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"{ ...conditionalClasses, ...getIconOnlyClass() }\"\n @click.capture=\"onClickButton\"\n >\n <span\n v-if=\"hasSlot('iconLeft')\"\n class=\"b-button__icon-left\"\n data-testid=\"icon-button-left\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span\n v-if=\"hasSlot('iconRight')\"\n class=\"b-button__icon-right\"\n data-testid=\"icon-button-right\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from './button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { type Booleanish } from '../../types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary, tertiary-with-background\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n /**\n * Display a \"span\" with role \"link\" and \"aria-disabled=true\"\n * if the link is disabled.\n * @link https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n */\n return props.disabled ? 'span' : BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : {\n ...props.link,\n disableTypography: true,\n variant: BentoLinkVariant.DEFAULT,\n isButton: true,\n\n /**\n * When the button is a disabled link, it's rendered as a `<span>`.\n * These attributes ensure it's still announced as a disabled link by screen readers.\n */\n 'aria-disabled': props.disabled ? 'true' : undefined,\n role: props.disabled ? 'link' : undefined,\n }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const getIconOnlyClass = () => ({\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !hasSlot('default'),\n });\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","props","__props","emit","__emit","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","getIconOnlyClass","onClickButton","e"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,2BAAA,4BAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;gDC4MRE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArKA,UAAAC,IAAAC,GA8CAC,IAAAC,GAsBAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIX,KAAA,gBAAAA,EAAA,UAAA,SAMIA,EAAA,WAAA,SAAAY,IAEJ,QAAO,GAEXC,IAAAF,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAG,IAAAV,EAAA,eAAA,MAAA,gBAAAU,EAAA;AAAA,QACe,kBAAAC,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAL;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAG,EAAA;AAAA,QACsB,UAAAb,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA;AAAA,QAEhB,GAAAA,EAAA;AAAA,QACa,mBAAA;AAAA,QACU,SAAAiB,EAAA;AAAA,QACO,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAChB,iBAAAjB,EAAA,WAAA,SAAA;AAAA,QAMiC,MAAAA,EAAA,WAAA,SAAA;AAAA,MACX;AAAA,IACpC,GAGVkB,IAAAP,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAX,EAAA,OAAA,GAAAA,EAAA,WAAA,IAAAH,EAAA,WAAA,KAAA,EAAA,EAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGsB,IAAAR,EAAA,OAAA;AAAA,MAA2C,GAAAO,EAAA;AAAA,MACvB,CAAA,aAAArB,EAAA,SAAA,EAAA,GAAAG,EAAA;AAAA,MACuC,CAAA,aAAAH,EAAA,QAAA,EAAA,GAAAG,EAAA;AAAA,MACD,CAAA,aAAAH,EAAA,OAAA,EAAA,GAAAG,EAAA;AAAA,IACD,EAAA,GAGzDoB,IAAA,OAAA;AAAA,MAAgC,CAAA,aAAAvB,EAAA,SAAA,EAAA,GAAA,CAAAW,EAAA,SAAA;AAAA,IACuC,IAGvEa,IAAA,CAAAC,MAAA;AACI,MAAAtB,EAAA,YAGIsB,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHApB,EAAA,SAAAoB,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"button.CSp48LJt.js","sources":["../../../vue2/src/components/button/button.types.ts","../../../vue2/src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n TERTIARY_WITH_BACKGROUND = 'tertiary-with-background',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"{ ...conditionalClasses, ...getIconOnlyClass() }\"\n @click.capture=\"onClickButton\"\n >\n <span\n v-if=\"hasSlot('iconLeft')\"\n class=\"b-button__icon-left\"\n data-testid=\"icon-button-left\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span\n v-if=\"hasSlot('iconRight')\"\n class=\"b-button__icon-right\"\n data-testid=\"icon-button-right\"\n :aria-hidden=\"hasSlot('default') ? 'true' : null\"\n >\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from './button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { type Booleanish } from '../../types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx.d.ts';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary, tertiary-with-background\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n /**\n * Display a \"span\" with role \"link\" and \"aria-disabled=true\"\n * if the link is disabled.\n * @link https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n */\n return props.disabled ? 'span' : BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : {\n ...props.link,\n disableTypography: true,\n variant: BentoLinkVariant.DEFAULT,\n isButton: true,\n\n /**\n * When the button is a disabled link, it's rendered as a `<span>`.\n * These attributes ensure it's still announced as a disabled link by screen readers.\n */\n 'aria-disabled': props.disabled ? 'true' : undefined,\n role: props.disabled ? 'link' : undefined,\n }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const getIconOnlyClass = () => ({\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !hasSlot('default'),\n });\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","props","__props","emit","__emit","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","getIconOnlyClass","onClickButton","e"],"mappings":";;;;;;AAGO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,2BAAA,4BAJQA,IAAAD,KAAA,CAAA,CAAA,GAOLE,IAAA,kBAAAC,OACHA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;gDC4MRE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArKA,UAAAC,IAAAC,GA8CAC,IAAAC,GAsBAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIX,KAAA,gBAAAA,EAAA,UAAA,SAMIA,EAAA,WAAA,SAAAY,IAEJ,QAAO,GAEXC,IAAAF,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAG,IAAAV,EAAA,eAAA,MAAA,gBAAAU,EAAA;AAAA,QACe,kBAAAC,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAL;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAG,EAAA;AAAA,QACsB,UAAAb,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA;AAAA,QAEhB,GAAAA,EAAA;AAAA,QACa,mBAAA;AAAA,QACU,SAAAiB,EAAA;AAAA,QACO,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAChB,iBAAAjB,EAAA,WAAA,SAAA;AAAA,QAMiC,MAAAA,EAAA,WAAA,SAAA;AAAA,MACX;AAAA,IACpC,GAGVkB,IAAAP,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAX,EAAA,OAAA,GAAAA,EAAA,WAAA,IAAAH,EAAA,WAAA,KAAA,EAAA,EAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGsB,IAAAR,EAAA,OAAA;AAAA,MAA2C,GAAAO,EAAA;AAAA,MACvB,CAAA,aAAArB,EAAA,SAAA,EAAA,GAAAG,EAAA;AAAA,MACuC,CAAA,aAAAH,EAAA,QAAA,EAAA,GAAAG,EAAA;AAAA,MACD,CAAA,aAAAH,EAAA,OAAA,EAAA,GAAAG,EAAA;AAAA,IACD,EAAA,GAGzDoB,IAAA,OAAA;AAAA,MAAgC,CAAA,aAAAvB,EAAA,SAAA,EAAA,GAAA,CAAAW,EAAA,SAAA;AAAA,IACuC,IAGvEa,IAAA,CAAAC,MAAA;AACI,MAAAtB,EAAA,YAGIsB,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHApB,EAAA,SAAAoB,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as fe, computed as
|
|
1
|
+
import { defineComponent as fe, computed as T, resolveComponent as ae, createElementBlock as $, openBlock as O, withKeys as oe, normalizeClass as Ae, createElementVNode as A, createVNode as q, withCtx as Q, createTextVNode as Ne, toDisplayString as be, ref as X, watch as le, nextTick as tt, toRef as j, resolveDirective as nt, withDirectives as We, mergeProps as Ve, toHandlers as Ke, createBlock as ee, createCommentVNode as re, Fragment as Z, renderList as x, unref as Y, reactive as qe, resolveDynamicComponent as at } from "vue";
|
|
2
2
|
import { B as we } from "./button.CSp48LJt.js";
|
|
3
3
|
import { B as Re } from "./typography.6Oo5TOMP.js";
|
|
4
4
|
import { u as Fe } from "./index.pdBj0KQU.js";
|
|
5
5
|
import { g as Qe } from "./generate-uid.NJ8tVoha.js";
|
|
6
6
|
import { a as ze } from "./keyboard-navigation.DWmhelVv.js";
|
|
7
|
-
import { a as ot } from "./index.
|
|
8
|
-
import { t as
|
|
9
|
-
import { d as Be, a as Ie } from "./differenceInMonths.
|
|
10
|
-
import { s as ye } from "./startOfWeek.
|
|
7
|
+
import { a as ot } from "./index.CL07S4Wa.js";
|
|
8
|
+
import { t as k, c as ue, g as Je, n as Oe, b as Pe, h as rt } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
|
|
9
|
+
import { d as Be, a as Ie } from "./differenceInMonths.BR4Z2HIa.js";
|
|
10
|
+
import { s as ye } from "./startOfWeek.CM1KIrNi.js";
|
|
11
11
|
import { a as Xe, C as Ze } from "./chevron-left.Cfn1uGLH.js";
|
|
12
12
|
import { _ as ve } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
13
|
import { B as st, a as lt } from "./date.CL55prL0.js";
|
|
@@ -50,6 +50,11 @@ const sn = (e) => {
|
|
|
50
50
|
let a = `${t}-${n}`;
|
|
51
51
|
const o = e.getDate().toString().padStart(2, "0");
|
|
52
52
|
return a += `-${o}`, a;
|
|
53
|
+
}, ln = (e) => {
|
|
54
|
+
if (!e)
|
|
55
|
+
return "";
|
|
56
|
+
const t = (n) => n.toString().padStart(2, "0");
|
|
57
|
+
return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
|
|
53
58
|
}, it = fe({
|
|
54
59
|
name: "calendar-month-day",
|
|
55
60
|
components: { BentoTypography: Re },
|
|
@@ -57,16 +62,16 @@ const sn = (e) => {
|
|
|
57
62
|
props: ut,
|
|
58
63
|
emits: [de.CLICK, de.MOUSE_OVER],
|
|
59
64
|
setup(e, { emit: t }) {
|
|
60
|
-
const { locale: n } = Fe(void 0), a =
|
|
65
|
+
const { locale: n } = Fe(void 0), a = T(() => {
|
|
61
66
|
const u = /* @__PURE__ */ new Date();
|
|
62
67
|
return e.day.getDate() === u.getDate() && e.day.getMonth() === u.getMonth() && e.day.getFullYear() === u.getFullYear();
|
|
63
|
-
}), o =
|
|
64
|
-
const
|
|
65
|
-
return (
|
|
68
|
+
}), o = T(() => {
|
|
69
|
+
const g = _e(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day");
|
|
70
|
+
return (g == null ? void 0 : g.value) ?? "";
|
|
66
71
|
});
|
|
67
72
|
return {
|
|
68
73
|
// Values
|
|
69
|
-
conditionalClasses:
|
|
74
|
+
conditionalClasses: T(() => ({
|
|
70
75
|
// Variants
|
|
71
76
|
[`b-calendar-month-day--${V.BEGINNING}`]: e.variant === U.BEGINNING,
|
|
72
77
|
[`b-calendar-month-day--${V.MIDDLE}`]: e.variant === U.MIDDLE,
|
|
@@ -112,7 +117,7 @@ function Dt(e, t, n, a, o, l) {
|
|
|
112
117
|
strong: ""
|
|
113
118
|
}, {
|
|
114
119
|
default: Q(() => [
|
|
115
|
-
|
|
120
|
+
Ne(be(e.formattedDate), 1)
|
|
116
121
|
]),
|
|
117
122
|
_: 1
|
|
118
123
|
})
|
|
@@ -122,11 +127,11 @@ function Dt(e, t, n, a, o, l) {
|
|
|
122
127
|
const ft = /* @__PURE__ */ ve(it, [["render", Dt], ["__scopeId", "data-v-e6d7eb12"]]);
|
|
123
128
|
var G = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(G || {}), p = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(p || {}), se = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(se || {}), z = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(z || {}), $e = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))($e || {});
|
|
124
129
|
function De(e, t, n) {
|
|
125
|
-
const a =
|
|
130
|
+
const a = k(e, n == null ? void 0 : n.in);
|
|
126
131
|
return isNaN(t) ? ue(e, NaN) : (t && a.setDate(a.getDate() + t), a);
|
|
127
132
|
}
|
|
128
133
|
function te(e, t, n) {
|
|
129
|
-
const a =
|
|
134
|
+
const a = k(e, n == null ? void 0 : n.in);
|
|
130
135
|
if (isNaN(t)) return ue(e, NaN);
|
|
131
136
|
if (!t)
|
|
132
137
|
return a;
|
|
@@ -140,26 +145,26 @@ function te(e, t, n) {
|
|
|
140
145
|
), a);
|
|
141
146
|
}
|
|
142
147
|
function Me(e, t) {
|
|
143
|
-
var u, D,
|
|
144
|
-
const n = Je(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((D = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : D.weekStartsOn) ?? n.weekStartsOn ?? ((m = (
|
|
148
|
+
var u, D, g, m;
|
|
149
|
+
const n = Je(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((D = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : D.weekStartsOn) ?? n.weekStartsOn ?? ((m = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = k(e, t == null ? void 0 : t.in), l = o.getDay(), i = (l < a ? -7 : 0) + 6 - (l - a);
|
|
145
150
|
return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
|
|
146
151
|
}
|
|
147
152
|
function vt(e, t) {
|
|
148
|
-
const n =
|
|
153
|
+
const n = k(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = n.getMonth(), l = ue(n, 0);
|
|
149
154
|
return l.setFullYear(a, o + 1, 0), l.setHours(0, 0, 0, 0), l.getDate();
|
|
150
155
|
}
|
|
151
156
|
function mt(e, t, n) {
|
|
152
|
-
const a =
|
|
157
|
+
const a = k(e, n == null ? void 0 : n.in), o = a.getFullYear(), l = a.getDate(), i = ue(e, 0);
|
|
153
158
|
i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
|
|
154
159
|
const u = vt(i);
|
|
155
160
|
return a.setMonth(t, Math.min(l, u)), a;
|
|
156
161
|
}
|
|
157
162
|
function ht(e, t, n) {
|
|
158
|
-
let a =
|
|
163
|
+
let a = k(e, n == null ? void 0 : n.in);
|
|
159
164
|
return isNaN(+a) ? ue(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = mt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
|
|
160
165
|
}
|
|
161
166
|
function Ce(e, t) {
|
|
162
|
-
const n =
|
|
167
|
+
const n = k(e, t == null ? void 0 : t.in);
|
|
163
168
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
164
169
|
}
|
|
165
170
|
function Le(e, t, n) {
|
|
@@ -183,33 +188,33 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
|
|
|
183
188
|
});
|
|
184
189
|
const u = ot(), D = X(i.value);
|
|
185
190
|
le(u, (d) => {
|
|
186
|
-
const
|
|
187
|
-
D.value =
|
|
191
|
+
const N = d.getAttribute("data-date");
|
|
192
|
+
D.value = N ? new Date(N) : i.value;
|
|
188
193
|
});
|
|
189
|
-
const
|
|
190
|
-
|
|
194
|
+
const g = X({}), m = (d) => (N) => {
|
|
195
|
+
g.value[d.toDateString()] = N;
|
|
191
196
|
}, y = () => {
|
|
192
|
-
|
|
197
|
+
g.value = {};
|
|
193
198
|
}, f = (d = 1) => {
|
|
194
199
|
l.value = te(l.value, d), o(G.NEXT_MONTH, d), y();
|
|
195
200
|
}, c = (d = 1) => {
|
|
196
201
|
l.value = ce(l.value, d), o(G.PREVIOUS_MONTH, d), y();
|
|
197
|
-
}, r = (d,
|
|
198
|
-
const _ = !!
|
|
199
|
-
return !d || !_ ? null :
|
|
202
|
+
}, r = (d, N) => {
|
|
203
|
+
const _ = !!g.value[d == null ? void 0 : d.toDateString()];
|
|
204
|
+
return !d || !_ ? null : N ? g.value[d.toDateString()].$el : (g.value[d.toDateString()].$el.focus(), null);
|
|
200
205
|
}, s = (d) => {
|
|
201
206
|
d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
|
|
202
|
-
}, v = ({ nextDate: d, isIncreasingDays:
|
|
207
|
+
}, v = ({ nextDate: d, isIncreasingDays: N, amountOfMonths: _, isCalendarButtonsNav: W }) => {
|
|
203
208
|
if (!W && n && n(d))
|
|
204
209
|
return;
|
|
205
|
-
d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (
|
|
210
|
+
d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (N ? f(_) : c(_), tt(() => {
|
|
206
211
|
const B = d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear();
|
|
207
212
|
n && n(d) || !B || W || (i.value = d, r(d));
|
|
208
213
|
}));
|
|
209
214
|
};
|
|
210
215
|
return {
|
|
211
216
|
// Calendar days ref
|
|
212
|
-
calendarRef:
|
|
217
|
+
calendarRef: g,
|
|
213
218
|
addDayRef: m,
|
|
214
219
|
/**
|
|
215
220
|
* Month navigation
|
|
@@ -248,11 +253,11 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
|
|
|
248
253
|
},
|
|
249
254
|
moveToFirstMonthOfYear: (d) => {
|
|
250
255
|
s(d);
|
|
251
|
-
const
|
|
256
|
+
const N = Be(i.value, Ce(i.value));
|
|
252
257
|
v({
|
|
253
258
|
nextDate: Ce(i.value),
|
|
254
259
|
isIncreasingDays: !1,
|
|
255
|
-
amountOfMonths:
|
|
260
|
+
amountOfMonths: N
|
|
256
261
|
});
|
|
257
262
|
},
|
|
258
263
|
// End
|
|
@@ -264,55 +269,55 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
|
|
|
264
269
|
},
|
|
265
270
|
moveToLastMonthOfYear: (d) => {
|
|
266
271
|
s(d);
|
|
267
|
-
const
|
|
272
|
+
const N = ht(i.value, { month: 11, date: 1 }), _ = Be(N, i.value);
|
|
268
273
|
v({
|
|
269
|
-
nextDate:
|
|
274
|
+
nextDate: N,
|
|
270
275
|
isIncreasingDays: !0,
|
|
271
276
|
amountOfMonths: _
|
|
272
277
|
});
|
|
273
278
|
},
|
|
274
279
|
// PageUp
|
|
275
|
-
moveToPreviousMonth: (d,
|
|
280
|
+
moveToPreviousMonth: (d, N = !1, _ = 1) => {
|
|
276
281
|
s(d);
|
|
277
282
|
const W = _;
|
|
278
283
|
v({
|
|
279
284
|
nextDate: ce(D.value, W),
|
|
280
285
|
isIncreasingDays: !1,
|
|
281
286
|
amountOfMonths: W,
|
|
282
|
-
isCalendarButtonsNav:
|
|
287
|
+
isCalendarButtonsNav: N
|
|
283
288
|
});
|
|
284
289
|
},
|
|
285
290
|
// Shift+PageUp
|
|
286
|
-
moveToPreviousYear: (d,
|
|
291
|
+
moveToPreviousYear: (d, N = !1) => {
|
|
287
292
|
s(d);
|
|
288
293
|
const _ = 12;
|
|
289
294
|
v({
|
|
290
295
|
nextDate: ce(D.value, _),
|
|
291
296
|
isIncreasingDays: !1,
|
|
292
297
|
amountOfMonths: _,
|
|
293
|
-
isCalendarButtonsNav:
|
|
298
|
+
isCalendarButtonsNav: N
|
|
294
299
|
});
|
|
295
300
|
},
|
|
296
301
|
// PageDown
|
|
297
|
-
moveToNextMonth: (d,
|
|
302
|
+
moveToNextMonth: (d, N = !1, _ = 1) => {
|
|
298
303
|
s(d);
|
|
299
304
|
const W = _;
|
|
300
305
|
v({
|
|
301
306
|
nextDate: te(D.value, W),
|
|
302
307
|
isIncreasingDays: !0,
|
|
303
308
|
amountOfMonths: W,
|
|
304
|
-
isCalendarButtonsNav:
|
|
309
|
+
isCalendarButtonsNav: N
|
|
305
310
|
});
|
|
306
311
|
},
|
|
307
312
|
// Shift-PageDown
|
|
308
|
-
moveToNextYear: (d,
|
|
313
|
+
moveToNextYear: (d, N = !1) => {
|
|
309
314
|
s(d);
|
|
310
315
|
const _ = 12;
|
|
311
316
|
v({
|
|
312
317
|
nextDate: te(D.value, _),
|
|
313
318
|
isIncreasingDays: !0,
|
|
314
319
|
amountOfMonths: _,
|
|
315
|
-
isCalendarButtonsNav:
|
|
320
|
+
isCalendarButtonsNav: N
|
|
316
321
|
});
|
|
317
322
|
},
|
|
318
323
|
// Values
|
|
@@ -322,15 +327,15 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
|
|
|
322
327
|
};
|
|
323
328
|
function yt(e, t, n) {
|
|
324
329
|
var y, f;
|
|
325
|
-
const a = Je(), o = a.weekStartsOn ?? ((f = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : f.weekStartsOn) ?? 0, l =
|
|
330
|
+
const a = Je(), o = a.weekStartsOn ?? ((f = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : f.weekStartsOn) ?? 0, l = k(e, n == null ? void 0 : n.in), i = l.getDay(), D = (t % 7 + 7) % 7, g = 7 - o, m = t < 0 || t > 6 ? t - (i + g) % 7 : (D + g) % 7 - (i + g) % 7;
|
|
326
331
|
return De(l, m, n);
|
|
327
332
|
}
|
|
328
|
-
function
|
|
329
|
-
const n =
|
|
333
|
+
function ge(e, t) {
|
|
334
|
+
const n = k(e, t == null ? void 0 : t.in);
|
|
330
335
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
331
336
|
}
|
|
332
337
|
function ne(e, t) {
|
|
333
|
-
const n =
|
|
338
|
+
const n = k(e, t == null ? void 0 : t.in);
|
|
334
339
|
return n.setHours(0, 0, 0, 0), n;
|
|
335
340
|
}
|
|
336
341
|
function me(e, t, n) {
|
|
@@ -342,9 +347,9 @@ function me(e, t, n) {
|
|
|
342
347
|
return +ne(a) == +ne(o);
|
|
343
348
|
}
|
|
344
349
|
function Ee(e, t, n) {
|
|
345
|
-
const a = +
|
|
346
|
-
+
|
|
347
|
-
+
|
|
350
|
+
const a = +k(e, n == null ? void 0 : n.in), [o, l] = [
|
|
351
|
+
+k(t.start, n == null ? void 0 : n.in),
|
|
352
|
+
+k(t.end, n == null ? void 0 : n.in)
|
|
348
353
|
].sort((i, u) => i - u);
|
|
349
354
|
return a >= o && a <= l;
|
|
350
355
|
}
|
|
@@ -429,7 +434,7 @@ const Ge = {
|
|
|
429
434
|
G.MOUSE_OVER
|
|
430
435
|
],
|
|
431
436
|
setup(e, { emit: t }) {
|
|
432
|
-
const { locale: n, t: a } = Fe({ messages: Ge }), o = Qe("bento-date-picker-month-label"), l =
|
|
437
|
+
const { locale: n, t: a } = Fe({ messages: Ge }), o = Qe("bento-date-picker-month-label"), l = T(
|
|
433
438
|
() => (S) => {
|
|
434
439
|
var B;
|
|
435
440
|
return e.min && S < e.min || e.max && S > e.max || ((B = e.isDateDisabled) == null ? void 0 : B.call(e, S));
|
|
@@ -440,7 +445,7 @@ const Ge = {
|
|
|
440
445
|
// Calendar refs
|
|
441
446
|
addDayRef: D,
|
|
442
447
|
// Month navigation
|
|
443
|
-
showNextMonth:
|
|
448
|
+
showNextMonth: g,
|
|
444
449
|
showPreviousMonth: m,
|
|
445
450
|
// Day navigation
|
|
446
451
|
moveToNextDay: y,
|
|
@@ -462,17 +467,17 @@ const Ge = {
|
|
|
462
467
|
firstDayOfWeek: e.firstDayOfWeek
|
|
463
468
|
},
|
|
464
469
|
t
|
|
465
|
-
), w =
|
|
470
|
+
), w = T(
|
|
466
471
|
() => Object.values(p).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : p.MONDAY
|
|
467
|
-
), P =
|
|
472
|
+
), P = T(() => ["first", "unique"].includes(e.position)), M = T(() => ["last", "unique"].includes(e.position)), E = T(
|
|
468
473
|
() => _e(n.value, { month: "long", year: "numeric" }).format(u.value)
|
|
469
|
-
), I =
|
|
474
|
+
), I = T(
|
|
470
475
|
() => new Array(7).fill(/* @__PURE__ */ new Date()).map((S, B) => {
|
|
471
476
|
const ie = yt(S, w.value + B);
|
|
472
477
|
return _e(n.value, { weekday: "short" }).format(ie);
|
|
473
478
|
})
|
|
474
|
-
), J =
|
|
475
|
-
const S = [], B =
|
|
479
|
+
), J = T(() => {
|
|
480
|
+
const S = [], B = ge(e.month);
|
|
476
481
|
let ie = S[S.push([]) - 1];
|
|
477
482
|
for (; B.getMonth() === e.month.getMonth(); )
|
|
478
483
|
B.getDay() - w.value === 0 && ie.length > 0 && (ie = S[S.push([]) - 1]), ie.push(ne(B)), B.setDate(B.getDate() + 1);
|
|
@@ -493,7 +498,7 @@ const Ge = {
|
|
|
493
498
|
CalendarMonthEvent: G,
|
|
494
499
|
// Functions
|
|
495
500
|
isSelectedDate: (S) => i.value && me(i.value, S) && !e.endDate ? !0 : e.startDate && e.endDate && Ee(S, { start: e.startDate, end: e.endDate }),
|
|
496
|
-
showNextMonth:
|
|
501
|
+
showNextMonth: g,
|
|
497
502
|
showPreviousMonth: m,
|
|
498
503
|
dayVariant: (S) => {
|
|
499
504
|
if (!e.isRange || me(e.startDate, e.endDate))
|
|
@@ -540,13 +545,13 @@ const Ge = {
|
|
|
540
545
|
t: a
|
|
541
546
|
};
|
|
542
547
|
}
|
|
543
|
-
}),
|
|
548
|
+
}), gt = { class: "b-calendar-month__month-selector" }, Nt = { class: "b-calendar-month__previous" }, bt = { class: "b-calendar-month__next" }, Et = ["aria-labelledby"], Ot = { class: "b-calendar-month__week-header" }, It = ["colspan"];
|
|
544
549
|
function St(e, t, n, a, o, l) {
|
|
545
550
|
var f, c;
|
|
546
|
-
const i = ae("chevron-left-icon"), u = ae("bento-button"), D = ae("bento-typography"),
|
|
551
|
+
const i = ae("chevron-left-icon"), u = ae("bento-button"), D = ae("bento-typography"), g = ae("chevron-right-icon"), m = ae("calendar-month-day"), y = nt("bento-keyboard-navigation-directive");
|
|
547
552
|
return We((O(), $("div", Ve({ class: "b-calendar-month" }, Ke(e.listeners, !0)), [
|
|
548
|
-
A("div",
|
|
549
|
-
A("div",
|
|
553
|
+
A("div", gt, [
|
|
554
|
+
A("div", Nt, [
|
|
550
555
|
e.shouldShowPreviousMonthButton ? (O(), ee(u, {
|
|
551
556
|
key: 0,
|
|
552
557
|
variant: "tertiary",
|
|
@@ -567,7 +572,7 @@ function St(e, t, n, a, o, l) {
|
|
|
567
572
|
"aria-live": "polite"
|
|
568
573
|
}, {
|
|
569
574
|
default: Q(() => [
|
|
570
|
-
|
|
575
|
+
Ne(be(e.formattedMonthDate), 1)
|
|
571
576
|
]),
|
|
572
577
|
_: 1
|
|
573
578
|
}, 8, ["id"]),
|
|
@@ -578,7 +583,7 @@ function St(e, t, n, a, o, l) {
|
|
|
578
583
|
onClick: t[1] || (t[1] = (r) => e.moveToNextMonth(r, !0))
|
|
579
584
|
}, {
|
|
580
585
|
iconLeft: Q(() => [
|
|
581
|
-
q(
|
|
586
|
+
q(g, {
|
|
582
587
|
"svg-title": e.t("nextMonth")
|
|
583
588
|
}, null, 8, ["svg-title"])
|
|
584
589
|
]),
|
|
@@ -604,7 +609,7 @@ function St(e, t, n, a, o, l) {
|
|
|
604
609
|
variant: "caption"
|
|
605
610
|
}, {
|
|
606
611
|
default: Q(() => [
|
|
607
|
-
|
|
612
|
+
Ne(be(r), 1)
|
|
608
613
|
]),
|
|
609
614
|
_: 2
|
|
610
615
|
}, 1024)
|
|
@@ -660,7 +665,7 @@ function he(e, t, n) {
|
|
|
660
665
|
return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
|
|
661
666
|
}
|
|
662
667
|
var H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(H || {}), K = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_MONTH = "current-month", e.DISABLED = "disabled", e))(K || {}), Ye = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(Ye || {});
|
|
663
|
-
const
|
|
668
|
+
const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__wrapper" }, wt = {}, _t = /* @__PURE__ */ fe({
|
|
664
669
|
...wt,
|
|
665
670
|
__name: "calendar-year-month",
|
|
666
671
|
props: {
|
|
@@ -671,10 +676,10 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
671
676
|
},
|
|
672
677
|
emits: ["click", "mouseover"],
|
|
673
678
|
setup(e, { emit: t }) {
|
|
674
|
-
const n = e, a = t, o =
|
|
679
|
+
const n = e, a = t, o = T(() => {
|
|
675
680
|
const u = /* @__PURE__ */ new Date();
|
|
676
681
|
return n.month.getMonth() === u.getMonth() && n.month.getFullYear() === u.getFullYear();
|
|
677
|
-
}), l =
|
|
682
|
+
}), l = T(() => ({
|
|
678
683
|
// Variants
|
|
679
684
|
[`b-calendar-year-month--${K.BEGINNING}`]: n.variant === H.BEGINNING,
|
|
680
685
|
[`b-calendar-year-month--${K.MIDDLE}`]: n.variant === H.MIDDLE,
|
|
@@ -694,18 +699,18 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
694
699
|
class: Ae(["b-calendar-year-month", l.value]),
|
|
695
700
|
tabindex: u.selected ? "0" : "-1",
|
|
696
701
|
"aria-selected": u.selected ? u.selected : void 0,
|
|
697
|
-
onClick: D[0] || (D[0] = (
|
|
698
|
-
onMouseover: D[1] || (D[1] = (
|
|
699
|
-
onKeydown: D[2] || (D[2] = oe((
|
|
702
|
+
onClick: D[0] || (D[0] = (g) => i(g, u.month)),
|
|
703
|
+
onMouseover: D[1] || (D[1] = (g) => a(Y(Ye).MOUSE_OVER)),
|
|
704
|
+
onKeydown: D[2] || (D[2] = oe((g) => i(g, u.month), ["space", "enter"]))
|
|
700
705
|
}, [
|
|
701
|
-
A("div",
|
|
706
|
+
A("div", kt, [
|
|
702
707
|
q(Y(st), {
|
|
703
708
|
class: "b-calendar-year-month__label",
|
|
704
709
|
date: u.month,
|
|
705
710
|
format: Y(lt).SHORT_MONTH
|
|
706
711
|
}, null, 8, ["date", "format"])
|
|
707
712
|
])
|
|
708
|
-
], 42,
|
|
713
|
+
], 42, Tt));
|
|
709
714
|
}
|
|
710
715
|
}), $t = /* @__PURE__ */ ve(_t, [["__scopeId", "data-v-ad9a13f2"]]), pe = {
|
|
711
716
|
"en-US": {
|
|
@@ -740,7 +745,7 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
740
745
|
const a = Qe("bento-date-picker-year-label"), o = e, l = n, { t: i } = Fe({ messages: pe }), u = (M) => {
|
|
741
746
|
var E;
|
|
742
747
|
return o.min && M < o.min || o.max && M > o.max || ((E = o.isDateDisabled) == null ? void 0 : E.call(o, M));
|
|
743
|
-
}, D =
|
|
748
|
+
}, D = T(() => ["first", "unique"].includes(o.position)), g = T(() => ["last", "unique"].includes(o.position)), {
|
|
744
749
|
internalDate: m,
|
|
745
750
|
// Calendar refs
|
|
746
751
|
addDayRef: y,
|
|
@@ -761,7 +766,7 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
761
766
|
l
|
|
762
767
|
);
|
|
763
768
|
t({ focusOnDate: h });
|
|
764
|
-
const b =
|
|
769
|
+
const b = T(() => {
|
|
765
770
|
const M = [];
|
|
766
771
|
let E = 0;
|
|
767
772
|
for (let I = 0; I < 3; I++) {
|
|
@@ -806,12 +811,12 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
806
811
|
"aria-live": "polite"
|
|
807
812
|
}, {
|
|
808
813
|
default: Q(() => [
|
|
809
|
-
|
|
814
|
+
Ne(be(M.year.getFullYear()), 1)
|
|
810
815
|
]),
|
|
811
816
|
_: 1
|
|
812
817
|
}, 8, ["id"]),
|
|
813
818
|
A("div", At, [
|
|
814
|
-
|
|
819
|
+
g.value ? (O(), ee(we, {
|
|
815
820
|
key: 0,
|
|
816
821
|
variant: "tertiary",
|
|
817
822
|
onClick: E[1] || (E[1] = (I) => Y(s)(I, !0))
|
|
@@ -841,7 +846,7 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
841
846
|
selected: R(C),
|
|
842
847
|
variant: F(C),
|
|
843
848
|
onClick: w,
|
|
844
|
-
onMouseover: (
|
|
849
|
+
onMouseover: (N) => l("mouseover", C)
|
|
845
850
|
}, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
|
|
846
851
|
]))), 128))
|
|
847
852
|
])
|
|
@@ -873,10 +878,10 @@ const kt = ["tabindex", "aria-selected"], Tt = { class: "b-calendar-year-month__
|
|
|
873
878
|
};
|
|
874
879
|
};
|
|
875
880
|
function Ct(e, t) {
|
|
876
|
-
return +
|
|
881
|
+
return +k(e) < +k(t);
|
|
877
882
|
}
|
|
878
883
|
function Gt(e, t) {
|
|
879
|
-
return +
|
|
884
|
+
return +k(e) > +k(t);
|
|
880
885
|
}
|
|
881
886
|
function Ut(e, t, n) {
|
|
882
887
|
const [a, o] = Oe(
|
|
@@ -902,12 +907,12 @@ function He(e, t) {
|
|
|
902
907
|
const n = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
|
|
903
908
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
904
909
|
}
|
|
905
|
-
function
|
|
906
|
-
const n =
|
|
910
|
+
function Te(e, t) {
|
|
911
|
+
const n = k(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3 + 3;
|
|
907
912
|
return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
|
|
908
913
|
}
|
|
909
|
-
function
|
|
910
|
-
const n =
|
|
914
|
+
function ke(e, t) {
|
|
915
|
+
const n = k(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3;
|
|
911
916
|
return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
|
|
912
917
|
}
|
|
913
918
|
const Ht = (e) => {
|
|
@@ -916,13 +921,13 @@ const Ht = (e) => {
|
|
|
916
921
|
const v = f && r < f, L = c && s > c;
|
|
917
922
|
return v && (r = ye(f, { weekStartsOn: e })), L && (s = Me(c, { weekStartsOn: e })), r > s && (v ? s = Me(r, { weekStartsOn: e }) : r = ye(s, { weekStartsOn: e })), { startDate: r, endDate: s };
|
|
918
923
|
}, n = (m, y, f, c) => {
|
|
919
|
-
let r =
|
|
924
|
+
let r = ge(m), s = Ie(y || m);
|
|
920
925
|
const v = f && r < f, L = c && s > c;
|
|
921
|
-
return v && (r =
|
|
926
|
+
return v && (r = ge(f)), L && (s = Ie(c)), r > s && (v ? s = Ie(r) : r = ge(s)), { startDate: r, endDate: s };
|
|
922
927
|
}, a = (m, y, f, c) => {
|
|
923
|
-
let r =
|
|
928
|
+
let r = ke(m), s = Te(y || m);
|
|
924
929
|
const v = f instanceof Date && r < f, L = c instanceof Date && s > c;
|
|
925
|
-
return v && (r =
|
|
930
|
+
return v && (r = ke(f)), L && (s = Te(c)), r > s && (v ? s = Te(r) : r = ke(s)), { startDate: r, endDate: s };
|
|
926
931
|
};
|
|
927
932
|
return {
|
|
928
933
|
adjustDateForWeekly: t,
|
|
@@ -1132,9 +1137,9 @@ const Kt = fe({
|
|
|
1132
1137
|
},
|
|
1133
1138
|
{ immediate: !0, deep: !0 }
|
|
1134
1139
|
);
|
|
1135
|
-
const o =
|
|
1140
|
+
const o = T(
|
|
1136
1141
|
() => e.variant === $e.MONTH ? je : Ue
|
|
1137
|
-
), l =
|
|
1142
|
+
), l = T(() => ({
|
|
1138
1143
|
"b-calendar__range": e.isRange
|
|
1139
1144
|
})), { internalValue: i, onDateInput: u, onMouseOver: D } = e.isRange ? Wt(
|
|
1140
1145
|
{
|
|
@@ -1153,10 +1158,10 @@ const Kt = fe({
|
|
|
1153
1158
|
firstDayOfWeek: e.firstDayOfWeek
|
|
1154
1159
|
},
|
|
1155
1160
|
t
|
|
1156
|
-
),
|
|
1161
|
+
), g = (r) => e.numberOfMonths === 1 ? se.UNIQUE : r === 0 ? se.FIRST : r === e.numberOfMonths - 1 ? se.LAST : se.MIDDLE, m = T(() => (r) => {
|
|
1157
1162
|
const s = e != null && e.showEndDateOnOpen && e.isRange ? ce(a.value, e.numberOfMonths - 1) : a.value;
|
|
1158
1163
|
return te(s, r);
|
|
1159
|
-
}), y =
|
|
1164
|
+
}), y = T(() => (r) => {
|
|
1160
1165
|
const s = e != null && e.showEndDateOnOpen ? Vt(a.value, e.numberOfMonths - 1) : a.value;
|
|
1161
1166
|
return et(s, r);
|
|
1162
1167
|
});
|
|
@@ -1171,7 +1176,7 @@ const Kt = fe({
|
|
|
1171
1176
|
// Methods
|
|
1172
1177
|
calculateOffsetMonth: m,
|
|
1173
1178
|
calculateOffsetYear: y,
|
|
1174
|
-
calendarPosition:
|
|
1179
|
+
calendarPosition: g,
|
|
1175
1180
|
// Events
|
|
1176
1181
|
onDateInput: u,
|
|
1177
1182
|
onMouseOver: D,
|
|
@@ -1211,11 +1216,11 @@ function qt(e, t, n, a, o, l) {
|
|
|
1211
1216
|
}, null, 40, ["first-day-of-week", "is-date-disabled", "month", "year", "position", "min", "max", "is-range", "start-date", "end-date", "granularity", "onInput", "onMouseover", "onChangeDay", "onNextMonth", "onPreviousMonth"]))), 128))
|
|
1212
1217
|
], 2);
|
|
1213
1218
|
}
|
|
1214
|
-
const
|
|
1219
|
+
const un = /* @__PURE__ */ ve(Kt, [["render", qt], ["__scopeId", "data-v-0efc3efc"]]);
|
|
1215
1220
|
export {
|
|
1216
1221
|
p as C,
|
|
1217
1222
|
$e as a,
|
|
1218
|
-
|
|
1223
|
+
un as b,
|
|
1219
1224
|
z as c,
|
|
1220
1225
|
se as d,
|
|
1221
1226
|
sn as e,
|
|
@@ -1227,11 +1232,12 @@ export {
|
|
|
1227
1232
|
Me as k,
|
|
1228
1233
|
Le as l,
|
|
1229
1234
|
ce as m,
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
+
ke as n,
|
|
1236
|
+
Te as o,
|
|
1237
|
+
ln as p,
|
|
1238
|
+
Ut as q,
|
|
1239
|
+
Ce as r,
|
|
1240
|
+
ge as s,
|
|
1235
1241
|
Ht as u
|
|
1236
1242
|
};
|
|
1237
|
-
//# sourceMappingURL=calendar.
|
|
1243
|
+
//# sourceMappingURL=calendar.Dbc0yjyg.js.map
|