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