@adyen/bento-vue2 1.85.0 → 1.86.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 +2 -0
- package/dist/@types/index.d.ts +358 -260
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +5 -0
- package/dist/anchor-scroller.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.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/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
- package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
- package/dist/chunks/{action-bar.rgLdy6Bu.js → action-bar.Dnkt4yn7.js} +9 -9
- package/dist/chunks/{action-bar.rgLdy6Bu.js.map → action-bar.Dnkt4yn7.js.map} +1 -1
- package/dist/chunks/{ai-button.ggEcDV08.js → ai-button.BTi18ipD.js} +3 -3
- package/dist/chunks/{ai-button.ggEcDV08.js.map → ai-button.BTi18ipD.js.map} +1 -1
- package/dist/chunks/{ai-tag.DKMGiQcJ.js → ai-tag.s8TECgn_.js} +27 -19
- package/dist/chunks/{ai-tag.DKMGiQcJ.js.map → ai-tag.s8TECgn_.js.map} +1 -1
- package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
- package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
- package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
- package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
- package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
- package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
- package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
- package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
- package/dist/chunks/{base-modal.QsjzGei_.js → base-modal.09nAcnF_.js} +41 -41
- package/dist/chunks/{base-modal.QsjzGei_.js.map → base-modal.09nAcnF_.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.PL45aAcI.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.PL45aAcI.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
- package/dist/chunks/{button-actions.JRDi9PFT.js → button-actions.VSc47LLH.js} +8 -8
- package/dist/chunks/{button-actions.JRDi9PFT.js.map → button-actions.VSc47LLH.js.map} +1 -1
- package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
- package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
- package/dist/chunks/{calendar.B0SmuooF.js → calendar.DiXkjQDP.js} +8 -8
- package/dist/chunks/{calendar.B0SmuooF.js.map → calendar.DiXkjQDP.js.map} +1 -1
- package/dist/chunks/{card.CVkEg8m1.js → card.BdjdBN36.js} +3 -3
- package/dist/chunks/{card.CVkEg8m1.js.map → card.BdjdBN36.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DPZJjcdT.js → checkbox-group.d6VQvZL7.js} +5 -5
- package/dist/chunks/{checkbox-group.DPZJjcdT.js.map → checkbox-group.d6VQvZL7.js.map} +1 -1
- package/dist/chunks/{checkbox.D3D1I22O.js → checkbox.ClFNfhNh.js} +4 -4
- package/dist/chunks/{checkbox.D3D1I22O.js.map → checkbox.ClFNfhNh.js.map} +1 -1
- package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
- package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
- package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
- package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
- package/dist/chunks/{code-snippet.BN5P-KQo.js → code-snippet.DBNJgt1j.js} +11 -11
- package/dist/chunks/{code-snippet.BN5P-KQo.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
- package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
- package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
- package/dist/chunks/{controls-group.BwXz0UYr.js → controls-group.HUWlAOhG.js} +3 -3
- package/dist/chunks/{controls-group.BwXz0UYr.js.map → controls-group.HUWlAOhG.js.map} +1 -1
- package/dist/chunks/{copy.BIh04KTY.js → copy.BXykYfg0.js} +7 -7
- package/dist/chunks/{copy.BIh04KTY.js.map → copy.BXykYfg0.js.map} +1 -1
- package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
- package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
- package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
- package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
- package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
- package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BvFMd9CQ.js → dashboard-section.Cw2Ima3U.js} +6 -6
- package/dist/chunks/{dashboard-section.BvFMd9CQ.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CXyMT-cF.js → dashed-underline.Dfw7cJ-9.js} +9 -9
- package/dist/chunks/{dashed-underline.CXyMT-cF.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
- package/dist/chunks/{data-grid-template.wWWI3FE3.js → data-grid-template.6LR2Jqka.js} +4 -4
- package/dist/chunks/{data-grid-template.wWWI3FE3.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
- package/dist/chunks/{data-grid.Dcj_tU8q.js → data-grid.B_uZEPDW.js} +177 -177
- package/dist/chunks/data-grid.B_uZEPDW.js.map +1 -0
- package/dist/chunks/date-input.etw_pFpA.js +20 -0
- package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
- package/dist/chunks/{date-picker.Dh3-TgPT.js → date-picker.CITeN8WH.js} +56 -56
- package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date-range-picker.BOn_Xjkr.js → date-range-picker.DxVjXxap.js} +343 -343
- package/dist/chunks/{date-range-picker.BOn_Xjkr.js.map → date-range-picker.DxVjXxap.js.map} +1 -1
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
- package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
- package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
- package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
- package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
- package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
- package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
- package/dist/chunks/{dropdown-tag.C7Buz72U.js → dropdown-tag.BnMuMIDk.js} +8 -8
- package/dist/chunks/{dropdown-tag.C7Buz72U.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
- package/dist/chunks/{dropdown.ByH2zHxF.js → dropdown.DDPfKc74.js} +227 -225
- package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
- package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
- package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
- package/dist/chunks/{field-label.BKxm8ehO.js → error-message.VenUl2OK.js} +54 -54
- package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
- package/dist/chunks/{file-uploader.U7YUrGoM.js → file-uploader.BU1V40qK.js} +9 -9
- package/dist/chunks/{file-uploader.U7YUrGoM.js.map → file-uploader.BU1V40qK.js.map} +1 -1
- package/dist/chunks/{filter-bar.BRE0djRy.js → filter-bar.UdXQf_RN.js} +104 -96
- package/dist/chunks/{filter-bar.BRE0djRy.js.map → filter-bar.UdXQf_RN.js.map} +1 -1
- package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
- package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
- package/dist/chunks/{focus-trap.Ed8RY9cJ.js → focus-trap.DMc1wL3A.js} +312 -295
- package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
- package/dist/chunks/{footer-actions.mS3IiJg7.js → footer-actions.z-api8J_.js} +4 -4
- package/dist/chunks/{footer-actions.mS3IiJg7.js.map → footer-actions.z-api8J_.js.map} +1 -1
- package/dist/chunks/{form-layout-title.C3uKS3GA.js → form-layout-title.Bbq05nMT.js} +5 -5
- package/dist/chunks/{form-layout-title.C3uKS3GA.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
- package/dist/chunks/{header-meta.CQTfyEJR.js → header-meta.CuMQSsOm.js} +9 -9
- package/dist/chunks/{header-meta.CQTfyEJR.js.map → header-meta.CuMQSsOm.js.map} +1 -1
- package/dist/chunks/{header-with-views.-PRI2W3p.js → header-with-views.DX8EXLMJ.js} +13 -13
- package/dist/chunks/{header-with-views.-PRI2W3p.js.map → header-with-views.DX8EXLMJ.js.map} +1 -1
- package/dist/chunks/{header.DDwoZ8fF.js → header.YECm2GAh.js} +4 -4
- package/dist/chunks/{header.DDwoZ8fF.js.map → header.YECm2GAh.js.map} +1 -1
- package/dist/chunks/index.BkJqgYF1.js +692 -0
- package/dist/chunks/{index.Zfd79j1_.js.map → index.BkJqgYF1.js.map} +1 -1
- package/dist/chunks/{info-icon.gUcRjEyG.js → info-icon.DS9ax8ZD.js} +3 -3
- package/dist/chunks/{info-icon.gUcRjEyG.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
- package/dist/chunks/{input-field-password.BO3EMjVD.js → input-field-password.DrI6eF5u.js} +11 -11
- package/dist/chunks/{input-field-password.BO3EMjVD.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DDQIkRdm.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
- package/dist/chunks/{input-field-phone-number.DDQIkRdm.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
- package/dist/chunks/{input-field.BRIDLPBn.js → input-field.NEKXqT4R.js} +7 -7
- package/dist/chunks/{input-field.BRIDLPBn.js.map → input-field.NEKXqT4R.js.map} +1 -1
- package/dist/chunks/{inspector.DCda4tku.js → inspector.BomNgVb-.js} +5 -5
- package/dist/chunks/{inspector.DCda4tku.js.map → inspector.BomNgVb-.js.map} +1 -1
- package/dist/chunks/{isSameWeek.5sjhTHiU.js → isSameWeek.DjeUtLwI.js} +2 -2
- package/dist/chunks/{isSameWeek.5sjhTHiU.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
- package/dist/chunks/{it.DEniTaO2.js → it.DIafuXtH.js} +2 -2
- package/dist/chunks/{it.DEniTaO2.js.map → it.DIafuXtH.js.map} +1 -1
- package/dist/chunks/{layout-row.BtCzzLTz.js → layout-row.BxuMJU4E.js} +3 -3
- package/dist/chunks/{layout-row.BtCzzLTz.js.map → layout-row.BxuMJU4E.js.map} +1 -1
- package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
- package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.B63aT5Sq.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
- package/dist/chunks/{listbox-option-tag.B63aT5Sq.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CRLZX72M.js → modal-fullscreen.6bAjPENL.js} +73 -69
- package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
- package/dist/chunks/{modal.BnAZ8Nj1.js → modal.DOR8c0gy.js} +6 -6
- package/dist/chunks/{modal.BnAZ8Nj1.js.map → modal.DOR8c0gy.js.map} +1 -1
- package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
- package/dist/chunks/{pagination.spAA5CX0.js → pagination.wuEIlDcq.js} +4 -4
- package/dist/chunks/{pagination.spAA5CX0.js.map → pagination.wuEIlDcq.js.map} +1 -1
- package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
- package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
- package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
- package/dist/chunks/{popover.types.Zm8nugBw.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
- package/dist/chunks/popper-container.D4dworD4.js +1423 -0
- package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
- package/dist/chunks/{promo-banner.BkLMZH66.js → promo-banner.bjMDm76T.js} +4 -4
- package/dist/chunks/{promo-banner.BkLMZH66.js.map → promo-banner.bjMDm76T.js.map} +1 -1
- package/dist/chunks/{radio-group.B6-Fd_kH.js → radio-group.DKRxfGtE.js} +8 -8
- package/dist/chunks/{radio-group.B6-Fd_kH.js.map → radio-group.DKRxfGtE.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DeywBxSb.js → rich-text-editor.DiuS9alD.js} +9 -13
- package/dist/chunks/rich-text-editor.DiuS9alD.js.map +1 -0
- package/dist/chunks/{search-bar.BKRppqyI.js → search-bar.UVSaoX0h.js} +5 -5
- package/dist/chunks/{search-bar.BKRppqyI.js.map → search-bar.UVSaoX0h.js.map} +1 -1
- package/dist/chunks/{secondary-nav.RQ5eRpPH.js → secondary-nav.C6ldQMZ2.js} +18 -18
- package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
- package/dist/chunks/{segmented-control.BomURsCq.js → segmented-control.BLnuxgnJ.js} +3 -3
- package/dist/chunks/{segmented-control.BomURsCq.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
- package/dist/chunks/{selection-card-group.gh-fMA9T.js → selection-card-group.CqGYskmS.js} +5 -5
- package/dist/chunks/{selection-card-group.gh-fMA9T.js.map → selection-card-group.CqGYskmS.js.map} +1 -1
- package/dist/chunks/{sidepanel.B80Mujpk.js → sidepanel.BKE87Uef.js} +71 -67
- package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
- package/dist/chunks/{startOfWeek.CM1KIrNi.js → startOfWeek.D8Yh4c0G.js} +3 -3
- package/dist/chunks/{startOfWeek.CM1KIrNi.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
- package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
- package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
- package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
- package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DCEKBtbT.js → structured-list-item.DRFRap_S.js} +6 -6
- package/dist/chunks/{structured-list-item.DCEKBtbT.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BV8FDXGv.js → summary-grid.types.OldkhD7S.js} +10 -10
- package/dist/chunks/{summary-grid.types.BV8FDXGv.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
- package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
- package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
- package/dist/chunks/{tag.CroNYKsL.js → tag.Cy3XkSDQ.js} +3 -3
- package/dist/chunks/{tag.CroNYKsL.js.map → tag.Cy3XkSDQ.js.map} +1 -1
- package/dist/chunks/{textarea.CtTdhV_G.js → textarea.Bm9MZb_W.js} +4 -4
- package/dist/chunks/{textarea.CtTdhV_G.js.map → textarea.Bm9MZb_W.js.map} +1 -1
- package/dist/chunks/{timeline-item.DCWllef8.js → timeline-item.Cpbm8IUw.js} +15 -15
- package/dist/chunks/{timeline-item.DCWllef8.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
- package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
- package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
- package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
- package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
- package/dist/chunks/{tooltip.DxJQHsuI.js → tooltip.DF11J3k3.js} +50 -50
- package/dist/chunks/{tooltip.DxJQHsuI.js.map → tooltip.DF11J3k3.js.map} +1 -1
- package/dist/chunks/{tutorial.O_vT6Q2b.js → tutorial.D5xtZ1Pt.js} +5 -5
- package/dist/chunks/{tutorial.O_vT6Q2b.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
- package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
- package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.3YqO69wz.js → use-cached-selected-values.wn2xnwYG.js} +12 -12
- package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
- package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
- package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
- package/dist/chunks/utils.BzUwtTXc.js +21 -0
- package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
- package/dist/chunks/{zh-CN.CgIooHto.js → zh-CN.Bw_6j9Cd.js} +2 -2
- package/dist/chunks/{zh-CN.CgIooHto.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.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 +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/draggable-handle.js +47 -31
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +11 -11
- package/dist/empty-state.js +1 -1
- 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 +281 -279
- 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 +42 -42
- package/dist/layout.js +1 -1
- package/dist/link.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/payment-method.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/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/use-form-v4.js +756 -7787
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +128 -30
- package/package.json +6 -6
- package/dist/assets/field-label.css +0 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
- package/dist/chunks/data-grid.Dcj_tU8q.js.map +0 -1
- package/dist/chunks/date-input.BbZqj10S.js +0 -15
- package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
- package/dist/chunks/date-picker.Dh3-TgPT.js.map +0 -1
- package/dist/chunks/dialog-page.BegXhP0L.js +0 -118
- package/dist/chunks/dialog-page.BegXhP0L.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
- package/dist/chunks/dropdown.ByH2zHxF.js.map +0 -1
- package/dist/chunks/field-label.BKxm8ehO.js.map +0 -1
- package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
- package/dist/chunks/focus-trap.Ed8RY9cJ.js.map +0 -1
- package/dist/chunks/index.Zfd79j1_.js +0 -593
- package/dist/chunks/modal-fullscreen.CRLZX72M.js.map +0 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
- package/dist/chunks/popover.types.Zm8nugBw.js +0 -6
- package/dist/chunks/popper-container.CXUG6v_U.js +0 -1404
- package/dist/chunks/popper-container.CXUG6v_U.js.map +0 -1
- package/dist/chunks/rich-text-editor.DeywBxSb.js.map +0 -1
- package/dist/chunks/secondary-nav.RQ5eRpPH.js.map +0 -1
- package/dist/chunks/sidepanel.B80Mujpk.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.3YqO69wz.js.map +0 -1
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { reactive as fe, defineComponent as Ye, useSlots as nt, ref as O, computed as y, onMounted as
|
|
2
|
-
import {
|
|
1
|
+
import { reactive as fe, defineComponent as Ye, useSlots as nt, ref as O, computed as y, onMounted as Qe, toRaw as ye, watch as pe, toRef as ve } from "vue";
|
|
2
|
+
import { j as rt } from "./index.BkJqgYF1.js";
|
|
3
3
|
import { B as st } from "./divider.DX5gwN7p.js";
|
|
4
|
-
import { h as ot, B as lt } from "./button-actions.
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as it } from "./input-field.
|
|
7
|
-
import { B as ut } from "./dropdown.
|
|
8
|
-
import { B as dt } from "./segmented-control.
|
|
4
|
+
import { h as ot, B as lt } from "./button-actions.VSc47LLH.js";
|
|
5
|
+
import { B as We, d as Ee } from "./typography.C8lPlsbD.js";
|
|
6
|
+
import { B as it } from "./input-field.NEKXqT4R.js";
|
|
7
|
+
import { B as ut } from "./dropdown.DDPfKc74.js";
|
|
8
|
+
import { B as dt } from "./segmented-control.BLnuxgnJ.js";
|
|
9
9
|
import { u as ge } from "./index.B6WW_F-J.js";
|
|
10
|
-
import { f as
|
|
10
|
+
import { f as E, h as $e, i as x, j as ct, k as Ce, l as mt, s as we, m as Dt, n as re, o as Fe, b as L, u as pt, e as M, p as C, g as ft } from "./calendar.DiXkjQDP.js";
|
|
11
11
|
import { d as me } from "./debounce.DUTu11PS.js";
|
|
12
12
|
import { u as vt } from "./use-has-slot.C9lQZ6nz.js";
|
|
13
|
-
import { e as
|
|
14
|
-
import { s as
|
|
15
|
-
import { f as
|
|
16
|
-
import { t as
|
|
17
|
-
import { c as
|
|
13
|
+
import { e as A, a as xe } from "./differenceInMonths.BR4Z2HIa.js";
|
|
14
|
+
import { s as Be } from "./startOfWeek.D8Yh4c0G.js";
|
|
15
|
+
import { f as Ae, v as yt, u as gt } from "./date-input.etw_pFpA.js";
|
|
16
|
+
import { t as j, c as Tt, n as _t } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
|
|
17
|
+
import { c as Rt } from "./constructNow.B8T1ljs6.js";
|
|
18
18
|
import { n as Ge } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
19
|
-
import { D as
|
|
20
|
-
import { g as
|
|
21
|
-
import { u as
|
|
19
|
+
import { D as It } from "./dropdown-default-textbox.5WjhJWdh.js";
|
|
20
|
+
import { g as ae } from "./generate-uid.NJ8tVoha.js";
|
|
21
|
+
import { u as bt } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
22
22
|
import "./index.Cl4_42j5.js";
|
|
23
|
-
import { u as
|
|
24
|
-
import { B as
|
|
25
|
-
import { F as
|
|
26
|
-
import { B as
|
|
23
|
+
import { u as ht } from "./form-field.D_2g7vaP.js";
|
|
24
|
+
import { B as kt } from "./directive.rXUeDb8p.js";
|
|
25
|
+
import { F as St, E as Mt } from "./error-message.VenUl2OK.js";
|
|
26
|
+
import { B as Ot } from "./button-actions.types.BptAXjD8.js";
|
|
27
27
|
import "../assets/date-range-picker.css";
|
|
28
|
-
function
|
|
28
|
+
function ne(r) {
|
|
29
29
|
if (r == null)
|
|
30
|
-
return
|
|
30
|
+
return E(/* @__PURE__ */ new Date());
|
|
31
31
|
const [t, e, a] = r.split("-").map((l) => parseInt(l, 10));
|
|
32
32
|
return new Date(t, e - 1, a);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function He(r, t, e) {
|
|
35
35
|
return $e(r, t * 3, e);
|
|
36
36
|
}
|
|
37
37
|
function Et(r, t, e) {
|
|
38
|
-
return
|
|
38
|
+
return He(r, -1, e);
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Ct = ({
|
|
41
41
|
firstDayOfWeek: r,
|
|
42
42
|
min: t,
|
|
43
43
|
max: e
|
|
44
44
|
}) => ({ getGranularCalendarLimits: (l) => {
|
|
45
45
|
if (!t && !e)
|
|
46
46
|
return { min: null, max: null };
|
|
47
|
-
let D = t ?
|
|
47
|
+
let D = t ? E(t) : null, p = e ? A(e) : null;
|
|
48
48
|
if ((l == null ? void 0 : l.type) === "weekly") {
|
|
49
49
|
if (l.earliest)
|
|
50
|
-
D =
|
|
50
|
+
D = E(l.earliest);
|
|
51
51
|
else if (D) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const f = Be(D, { weekStartsOn: r });
|
|
53
|
+
x(D, f) || (D = E(ct(Ce(D, { weekStartsOn: r }), 1)));
|
|
54
54
|
}
|
|
55
55
|
if (l.latest)
|
|
56
|
-
p =
|
|
56
|
+
p = A(l.latest);
|
|
57
57
|
else if (p) {
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const f = Ce(p, { weekStartsOn: r });
|
|
59
|
+
x(p, f) || (p = A(mt(Be(p, { weekStartsOn: r }), 1)));
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if ((l == null ? void 0 : l.type) === "monthly") {
|
|
63
63
|
if (l.earliest)
|
|
64
|
-
D =
|
|
64
|
+
D = E(l.earliest);
|
|
65
65
|
else if (D) {
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const f = we(D);
|
|
67
|
+
x(D, f) || (D = we($e(D, 1)));
|
|
68
68
|
}
|
|
69
69
|
if (l.latest)
|
|
70
|
-
p =
|
|
70
|
+
p = A(l.latest);
|
|
71
71
|
else if (p) {
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const f = xe(p);
|
|
73
|
+
x(p, f) || (p = xe(Dt(p, 1)));
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
if ((l == null ? void 0 : l.type) === "quarterly") {
|
|
77
77
|
if (l.earliest)
|
|
78
|
-
D =
|
|
78
|
+
D = re(l.earliest);
|
|
79
79
|
else if (D) {
|
|
80
|
-
const
|
|
81
|
-
|
|
80
|
+
const f = re(D);
|
|
81
|
+
x(D, f) || (D = re(He(D, 1)));
|
|
82
82
|
}
|
|
83
83
|
if (l.latest)
|
|
84
|
-
p =
|
|
84
|
+
p = A(l.latest);
|
|
85
85
|
else if (p) {
|
|
86
|
-
const
|
|
87
|
-
|
|
86
|
+
const f = Fe(p);
|
|
87
|
+
x(p, f) || (p = Fe(Et(p)));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return { min: D, max: p };
|
|
91
|
-
} }),
|
|
91
|
+
} }), wt = () => {
|
|
92
92
|
const r = fe({
|
|
93
93
|
daily: null,
|
|
94
94
|
weekly: null,
|
|
@@ -105,51 +105,51 @@ const Ot = ({
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
var
|
|
109
|
-
function
|
|
110
|
-
const a =
|
|
108
|
+
var v = /* @__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))(v || {});
|
|
109
|
+
function Ft(r, t, e) {
|
|
110
|
+
const a = j(r, e == null ? void 0 : e.in);
|
|
111
111
|
return a.setHours(t), a;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const a =
|
|
113
|
+
function xt(r, t, e) {
|
|
114
|
+
const a = j(r, e == null ? void 0 : e.in);
|
|
115
115
|
return a.setMinutes(t), a;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const a =
|
|
117
|
+
function Bt(r, t, e) {
|
|
118
|
+
const a = j(r, e == null ? void 0 : e.in);
|
|
119
119
|
return a.setSeconds(t), a;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
const e =
|
|
121
|
+
function qe(r, t) {
|
|
122
|
+
const e = j(r, t == null ? void 0 : t.in);
|
|
123
123
|
return e.setMilliseconds(0), e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return +
|
|
125
|
+
function Pe(r, t) {
|
|
126
|
+
return +qe(r) == +qe(t);
|
|
127
127
|
}
|
|
128
128
|
function De(r, t) {
|
|
129
|
-
return +
|
|
129
|
+
return +j(r) == +j(t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
function At(r, t) {
|
|
132
|
+
return x(
|
|
133
|
+
Tt(r, r),
|
|
134
|
+
Rt(r)
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
const a =
|
|
137
|
+
function Ne(r, t, e) {
|
|
138
|
+
const a = j(r, e == null ? void 0 : e.in);
|
|
139
139
|
return a.setMilliseconds(t), a;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const { selectionStart: t } = r.target, e = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], a =
|
|
141
|
+
const qt = /[\d]/, Pt = /^\d{2}$/, Nt = /^\d{2}:\d{2}$/, Ut = (r) => {
|
|
142
|
+
const { selectionStart: t } = r.target, e = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], a = qt.test(r.key) || e.includes(r.key), l = [1, 2, 4, 5].includes(t) && r.key === ":";
|
|
143
143
|
!a && !l && r.preventDefault();
|
|
144
|
-
},
|
|
144
|
+
}, Ue = (r) => {
|
|
145
145
|
if (!r)
|
|
146
146
|
return r;
|
|
147
147
|
let t = r;
|
|
148
148
|
if (t.length === 1 && parseInt(r, 10) > 2)
|
|
149
149
|
return `0${t}:`;
|
|
150
150
|
const [e, a] = t.slice(-2);
|
|
151
|
-
return [2, 5].includes(t.length) && a === ":" && (t = `${t.slice(0, t.length - 2)}0${e}`), (
|
|
152
|
-
},
|
|
151
|
+
return [2, 5].includes(t.length) && a === ":" && (t = `${t.slice(0, t.length - 2)}0${e}`), (Pt.test(t) || Nt.test(t)) && (t += ":"), t;
|
|
152
|
+
}, Lt = {
|
|
153
153
|
"en-US": {
|
|
154
154
|
customRange: "Custom range",
|
|
155
155
|
daily: "Daily",
|
|
@@ -192,11 +192,11 @@ const At = /[\d]/, qt = /^\d{2}$/, Pt = /^\d{2}:\d{2}$/, Nt = (r) => {
|
|
|
192
192
|
timeTo: "Hora de",
|
|
193
193
|
weekly: "Semanal"
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, jt = {
|
|
196
196
|
name: "date-range-picker-calendar",
|
|
197
|
-
i18n: { messages:
|
|
197
|
+
i18n: { messages: Lt }
|
|
198
198
|
}, Yt = /* @__PURE__ */ Ye({
|
|
199
|
-
...
|
|
199
|
+
...jt,
|
|
200
200
|
props: {
|
|
201
201
|
/**
|
|
202
202
|
* Allows user to enter time values in the form
|
|
@@ -270,23 +270,23 @@ const At = /[\d]/, qt = /^\d{2}$/, Pt = /^\d{2}:\d{2}$/, Nt = (r) => {
|
|
|
270
270
|
variant: L.props.variant
|
|
271
271
|
},
|
|
272
272
|
emits: [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
273
|
+
v.CUSTOM_RANGE,
|
|
274
|
+
v.INPUT,
|
|
275
|
+
v.ERROR,
|
|
276
|
+
v.FORM_DATE,
|
|
277
|
+
v.START_DATE_SELECTED
|
|
278
278
|
],
|
|
279
279
|
setup(r, { emit: t }) {
|
|
280
|
-
var
|
|
281
|
-
const e = r, a = 300, l = "customRange", D = nt(), p = vt(D), { t:
|
|
282
|
-
startDate: (
|
|
283
|
-
endDate: (
|
|
284
|
-
range: (
|
|
280
|
+
var ke, Se, Me, Oe;
|
|
281
|
+
const e = r, a = 300, l = "customRange", D = nt(), p = vt(D), { t: f } = ge(), B = O({}), b = y(() => e.variant === "month" ? "monthly" : "daily"), V = y(() => e.numberOfMonths === 0), s = fe({
|
|
282
|
+
startDate: (ke = e.value) == null ? void 0 : ke.startDate,
|
|
283
|
+
endDate: (Se = e.value) == null ? void 0 : Se.endDate,
|
|
284
|
+
range: (Me = e.value) == null ? void 0 : Me.range,
|
|
285
285
|
...e.granularities ? {
|
|
286
|
-
granularity: ((
|
|
286
|
+
granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || b.value
|
|
287
287
|
} : {}
|
|
288
288
|
});
|
|
289
|
-
function
|
|
289
|
+
function m(n) {
|
|
290
290
|
return n ? new Date(
|
|
291
291
|
n.getUTCFullYear(),
|
|
292
292
|
n.getUTCMonth(),
|
|
@@ -296,309 +296,309 @@ const At = /[\d]/, qt = /^\d{2}$/, Pt = /^\d{2}:\d{2}$/, Nt = (r) => {
|
|
|
296
296
|
n.getUTCSeconds()
|
|
297
297
|
) : null;
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const k = y(() => {
|
|
300
300
|
var n, i;
|
|
301
301
|
return (
|
|
302
302
|
// eslint-disable-next-line consistent-return
|
|
303
|
-
((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value:
|
|
303
|
+
((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: c, data: d }) => {
|
|
304
304
|
var I;
|
|
305
|
-
if (!
|
|
306
|
-
if (
|
|
307
|
-
const S = (I =
|
|
305
|
+
if (!d.endDate) {
|
|
306
|
+
if (d.isRelativeToNow) {
|
|
307
|
+
const S = (I = B.value) == null ? void 0 : I[c];
|
|
308
308
|
return S ? De(
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
m(S.startDate),
|
|
310
|
+
m(s.startDate)
|
|
311
311
|
) && De(
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
m(S.endDate),
|
|
313
|
+
m(s.endDate)
|
|
314
314
|
) : (
|
|
315
315
|
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
316
316
|
// with the internal range's stored range identifier.
|
|
317
|
-
|
|
317
|
+
c === s.range
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
|
-
return De(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
) &&
|
|
320
|
+
return De(m(d.startDate), m(s.startDate)) && De(
|
|
321
|
+
m(s.endDate),
|
|
322
|
+
m(A(s.endDate))
|
|
323
|
+
) && At(m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
|
|
324
324
|
}
|
|
325
325
|
if (e.allowTimeInput)
|
|
326
|
-
return
|
|
327
|
-
if (
|
|
328
|
-
return
|
|
326
|
+
return Pe(m(d.startDate), m(s.startDate)) && Pe(m(d.endDate), m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
|
|
327
|
+
if (d.endDate)
|
|
328
|
+
return x(d.startDate, s.startDate) && x(d.endDate, s.endDate) && (e.granularities ? d.granularity === s.granularity : !0);
|
|
329
329
|
})) == null ? void 0 : i.value) ?? l
|
|
330
330
|
);
|
|
331
|
-
}),
|
|
331
|
+
}), g = y(() => ({
|
|
332
332
|
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
333
|
-
})),
|
|
334
|
-
{ label:
|
|
333
|
+
})), q = y(() => [
|
|
334
|
+
{ label: f("customRange"), value: l },
|
|
335
335
|
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
336
|
-
]),
|
|
336
|
+
]), T = y(
|
|
337
337
|
() => {
|
|
338
338
|
var n;
|
|
339
339
|
return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === s.granularity)) || null;
|
|
340
340
|
}
|
|
341
|
-
),
|
|
341
|
+
), J = y(
|
|
342
342
|
() => {
|
|
343
343
|
var n;
|
|
344
|
-
return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled:
|
|
345
|
-
label:
|
|
344
|
+
return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: c }) => ({
|
|
345
|
+
label: f(i),
|
|
346
346
|
value: i,
|
|
347
|
-
disabled:
|
|
347
|
+
disabled: c
|
|
348
348
|
}))) ?? [];
|
|
349
349
|
}
|
|
350
|
-
), { getGranularCalendarLimits:
|
|
351
|
-
() => e.granularities ?
|
|
350
|
+
), { getGranularCalendarLimits: $ } = Ct(e), R = y(
|
|
351
|
+
() => e.granularities ? $(T.value) : { min: e.min ? E(e.min) : null, max: e.max ? A(e.max) : null }
|
|
352
352
|
), {
|
|
353
|
-
adjustDateForQuarterly:
|
|
354
|
-
adjustDateForMonthly:
|
|
353
|
+
adjustDateForQuarterly: X,
|
|
354
|
+
adjustDateForMonthly: se,
|
|
355
355
|
adjustDateForWeekly: Z,
|
|
356
|
-
adjustStartDateInputForWeekly:
|
|
357
|
-
adjustEndDateInputForWeekly:
|
|
358
|
-
adjustStartDateInputForMonthly:
|
|
356
|
+
adjustStartDateInputForWeekly: ee,
|
|
357
|
+
adjustEndDateInputForWeekly: Y,
|
|
358
|
+
adjustStartDateInputForMonthly: _,
|
|
359
359
|
adjustEndDateInputForMonthly: oe,
|
|
360
|
-
adjustStartDateInputForQuarterly:
|
|
361
|
-
adjustEndDateInputForQuarterly:
|
|
362
|
-
} = pt(e.firstDayOfWeek), { savedRanges:
|
|
360
|
+
adjustStartDateInputForQuarterly: le,
|
|
361
|
+
adjustEndDateInputForQuarterly: G
|
|
362
|
+
} = pt(e.firstDayOfWeek), { savedRanges: P, saveRange: H, resetSavedRanges: Q } = wt(), h = (n) => n ? M(n) : "", w = O(!1), W = O(!1), N = O(!1), U = O(!1), o = fe({
|
|
363
363
|
startDate: e.dateFormData.startDate,
|
|
364
364
|
endDate: e.dateFormData.endDate,
|
|
365
365
|
startTime: e.dateFormData.startTime,
|
|
366
366
|
endTime: e.dateFormData.endTime
|
|
367
367
|
}), ie = (n, i) => {
|
|
368
|
-
let
|
|
369
|
-
const [
|
|
370
|
-
return
|
|
371
|
-
}, ue = (n) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(n),
|
|
372
|
-
const
|
|
373
|
-
if (i &&
|
|
374
|
-
const
|
|
375
|
-
if (e.min &&
|
|
368
|
+
let c = new Date(n);
|
|
369
|
+
const [d, I, S] = i.split(":");
|
|
370
|
+
return c = Ft(c, parseInt(d, 10)), c = xt(c, parseInt(I, 10)), c = Bt(c, parseInt(S, 10)), c;
|
|
371
|
+
}, ue = (n) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(n), K = (n, i) => {
|
|
372
|
+
const c = () => {
|
|
373
|
+
if (i && u(i)) {
|
|
374
|
+
const d = ie(new Date(i), n);
|
|
375
|
+
if (e.min && d < Ne(e.min, 0) || e.max && d > Ne(e.max, 0))
|
|
376
376
|
return !1;
|
|
377
377
|
}
|
|
378
378
|
return !0;
|
|
379
379
|
};
|
|
380
|
-
return ue(n) &&
|
|
381
|
-
},
|
|
382
|
-
o.startTime =
|
|
383
|
-
e.min && e.allowTimeInput &&
|
|
384
|
-
), o.endTime =
|
|
385
|
-
e.max && e.allowTimeInput &&
|
|
386
|
-
), s.startDate =
|
|
380
|
+
return ue(n) && c();
|
|
381
|
+
}, F = (n, i) => !i || !ue(i) || e.variant === "month" ? n : ie(new Date(n), i), Te = (n) => {
|
|
382
|
+
o.startTime = C(
|
|
383
|
+
e.min && e.allowTimeInput && x(e.min, n.startDate) ? e.min : E(n.startDate)
|
|
384
|
+
), o.endTime = C(
|
|
385
|
+
e.max && e.allowTimeInput && x(e.max, n.endDate) ? e.max : A(n.endDate)
|
|
386
|
+
), s.startDate = F(n.startDate, o.startTime), s.endDate = F(n.endDate, o.endTime), s.range = null, e.granularities && Q(), t(v.INPUT, {
|
|
387
387
|
...s,
|
|
388
|
-
range:
|
|
388
|
+
range: k.value
|
|
389
389
|
});
|
|
390
|
-
},
|
|
390
|
+
}, u = (n) => {
|
|
391
391
|
if (!n)
|
|
392
392
|
return !1;
|
|
393
|
-
const i = (
|
|
393
|
+
const i = (d) => e.min && E(d) < E(e.min) || e.max && E(d) > E(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(E(d)) : !0;
|
|
394
394
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(n) && i(new Date(n));
|
|
395
395
|
};
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
Qe(() => {
|
|
397
|
+
w.value = !!(e.dateFormData.startDate && !u(e.dateFormData.startDate)), e.allowTimeInput ? N.value = !!(e.dateFormData.startTime && !K(e.dateFormData.startTime, e.dateFormData.startDate)) : N.value = !1, W.value = !!(e.dateFormData.endDate && !u(e.dateFormData.endDate)), e.allowTimeInput ? U.value = !!(e.dateFormData.endTime && !K(e.dateFormData.endTime, e.dateFormData.endDate)) : U.value = !1;
|
|
398
398
|
});
|
|
399
|
-
const
|
|
399
|
+
const z = (n) => {
|
|
400
400
|
var i;
|
|
401
|
-
o.startDate = M(n), o.startTime ?
|
|
402
|
-
},
|
|
401
|
+
o.startDate = M(n), o.startTime ? N.value && (o.startTime = (i = e.dateFormData) == null ? void 0 : i.startTime) : o.startTime = C(n), w.value = !1, N.value = !1, t(v.START_DATE_SELECTED, n);
|
|
402
|
+
}, de = (n) => {
|
|
403
403
|
var i;
|
|
404
|
-
o.endDate = M(n), o.endTime ?
|
|
404
|
+
o.endDate = M(n), o.endTime ? U.value && (o.endTime = (i = e.dateFormData) == null ? void 0 : i.endTime) : o.endTime = C(A(n)), W.value = !1, U.value = !1;
|
|
405
405
|
}, ce = (n) => {
|
|
406
406
|
const i = e.value[n];
|
|
407
407
|
if (i)
|
|
408
408
|
return i;
|
|
409
|
-
if (e.dateFormData[n] &&
|
|
409
|
+
if (e.dateFormData[n] && u(e.dateFormData[n]))
|
|
410
410
|
return new Date(e.dateFormData[n]);
|
|
411
|
-
},
|
|
411
|
+
}, _e = me((n) => {
|
|
412
412
|
var i;
|
|
413
|
-
if (
|
|
414
|
-
let
|
|
415
|
-
switch (
|
|
413
|
+
if (u(n)) {
|
|
414
|
+
let c = n;
|
|
415
|
+
switch (w.value = !1, (i = T.value) == null ? void 0 : i.type) {
|
|
416
416
|
case "weekly":
|
|
417
|
-
|
|
417
|
+
c = ee(
|
|
418
418
|
n,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
), o.startDate =
|
|
419
|
+
h,
|
|
420
|
+
R.value.min,
|
|
421
|
+
R.value.max
|
|
422
|
+
), o.startDate = c;
|
|
423
423
|
break;
|
|
424
424
|
case "monthly":
|
|
425
|
-
|
|
425
|
+
c = _(
|
|
426
426
|
n,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
), o.startDate =
|
|
427
|
+
h,
|
|
428
|
+
R.value.min,
|
|
429
|
+
R.value.max
|
|
430
|
+
), o.startDate = c;
|
|
431
431
|
break;
|
|
432
432
|
case "quarterly":
|
|
433
|
-
|
|
433
|
+
c = le(
|
|
434
434
|
n,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
), o.startDate =
|
|
435
|
+
h,
|
|
436
|
+
R.value.min,
|
|
437
|
+
R.value.max
|
|
438
|
+
), o.startDate = c;
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
s.startDate =
|
|
443
|
-
|
|
441
|
+
const d = ne(c);
|
|
442
|
+
s.startDate = F(d, o.startTime), s.endDate = F(
|
|
443
|
+
ne(o.endDate),
|
|
444
444
|
o.endTime
|
|
445
|
-
),
|
|
446
|
-
|
|
445
|
+
), u(o.endDate) && (s.endDate = F(
|
|
446
|
+
ne(o.endDate),
|
|
447
447
|
o.endTime
|
|
448
448
|
));
|
|
449
449
|
const I = ce("endDate");
|
|
450
|
-
s.range = null, t(
|
|
451
|
-
startDate:
|
|
450
|
+
s.range = null, t(v.FORM_DATE, {
|
|
451
|
+
startDate: d,
|
|
452
452
|
endDate: I
|
|
453
|
-
}), t(
|
|
453
|
+
}), t(v.INPUT, {
|
|
454
454
|
...s,
|
|
455
|
-
range:
|
|
455
|
+
range: k.value
|
|
456
456
|
});
|
|
457
457
|
} else
|
|
458
|
-
|
|
458
|
+
w.value = !0, t(v.ERROR, { ...o });
|
|
459
459
|
}, a), Ke = (n) => {
|
|
460
|
-
o.startDate =
|
|
461
|
-
},
|
|
460
|
+
o.startDate = Ae(n), _e(o.startDate);
|
|
461
|
+
}, Re = me((n) => {
|
|
462
462
|
var i;
|
|
463
|
-
if (
|
|
464
|
-
let
|
|
465
|
-
switch (W.value = !1, (i =
|
|
463
|
+
if (u(n)) {
|
|
464
|
+
let c = n;
|
|
465
|
+
switch (W.value = !1, (i = T.value) == null ? void 0 : i.type) {
|
|
466
466
|
case "weekly":
|
|
467
|
-
|
|
467
|
+
c = Y(
|
|
468
468
|
n,
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
), o.endDate =
|
|
469
|
+
h,
|
|
470
|
+
R.value.min,
|
|
471
|
+
R.value.max
|
|
472
|
+
), o.endDate = c;
|
|
473
473
|
break;
|
|
474
474
|
case "monthly":
|
|
475
|
-
|
|
475
|
+
c = oe(
|
|
476
476
|
n,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
), o.endDate =
|
|
477
|
+
h,
|
|
478
|
+
R.value.min,
|
|
479
|
+
R.value.max
|
|
480
|
+
), o.endDate = c;
|
|
481
481
|
break;
|
|
482
482
|
case "quarterly":
|
|
483
|
-
|
|
483
|
+
c = G(
|
|
484
484
|
n,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
), o.endDate =
|
|
485
|
+
h,
|
|
486
|
+
R.value.min,
|
|
487
|
+
R.value.max
|
|
488
|
+
), o.endDate = c;
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
|
-
const
|
|
492
|
-
s.endDate =
|
|
493
|
-
|
|
491
|
+
const d = ne(c);
|
|
492
|
+
s.endDate = F(d, o.endTime), u(o.startDate) && (s.startDate = F(
|
|
493
|
+
ne(o.startDate),
|
|
494
494
|
o.startTime
|
|
495
495
|
));
|
|
496
496
|
const I = ce("startDate");
|
|
497
|
-
s.range = null, t(
|
|
497
|
+
s.range = null, t(v.FORM_DATE, {
|
|
498
498
|
startDate: I,
|
|
499
|
-
endDate:
|
|
500
|
-
}), t(
|
|
499
|
+
endDate: d
|
|
500
|
+
}), t(v.INPUT, {
|
|
501
501
|
...s,
|
|
502
|
-
range:
|
|
502
|
+
range: k.value
|
|
503
503
|
});
|
|
504
504
|
} else
|
|
505
|
-
W.value = !0, t(
|
|
505
|
+
W.value = !0, t(v.ERROR, { ...o });
|
|
506
506
|
}, a), ze = (n) => {
|
|
507
|
-
o.endDate =
|
|
507
|
+
o.endDate = Ae(n), Re(o.endDate);
|
|
508
508
|
}, Ve = (n) => {
|
|
509
|
-
|
|
510
|
-
},
|
|
511
|
-
if (
|
|
512
|
-
|
|
509
|
+
yt(n);
|
|
510
|
+
}, Ie = me((n) => {
|
|
511
|
+
if (K(n, e.dateFormData.startDate)) {
|
|
512
|
+
N.value = !1, s.startDate = F(s.startDate, n);
|
|
513
513
|
const i = ce("endDate");
|
|
514
|
-
t(
|
|
514
|
+
t(v.FORM_DATE, {
|
|
515
515
|
startDate: s.startDate,
|
|
516
516
|
endDate: i,
|
|
517
517
|
startTime: n,
|
|
518
518
|
endTime: o.endTime ?? e.dateFormData.endTime
|
|
519
|
-
}), t(
|
|
519
|
+
}), t(v.INPUT, {
|
|
520
520
|
...s,
|
|
521
|
-
range:
|
|
521
|
+
range: k.value
|
|
522
522
|
});
|
|
523
523
|
} else
|
|
524
|
-
|
|
525
|
-
}),
|
|
526
|
-
|
|
524
|
+
N.value = !0, t(v.ERROR, { ...o });
|
|
525
|
+
}), be = me((n) => {
|
|
526
|
+
K(n, e.dateFormData.endDate) ? (U.value = !1, s.endDate = F(s.endDate, n), t(v.FORM_DATE, {
|
|
527
527
|
startDate: s.startDate,
|
|
528
528
|
endDate: s.endDate,
|
|
529
529
|
startTime: o.startTime ?? e.dateFormData.startTime,
|
|
530
530
|
endTime: n
|
|
531
|
-
}), t(
|
|
531
|
+
}), t(v.INPUT, {
|
|
532
532
|
...s,
|
|
533
|
-
range:
|
|
534
|
-
})) : (
|
|
533
|
+
range: k.value
|
|
534
|
+
})) : (U.value = !0, t(v.ERROR, { ...o }));
|
|
535
535
|
}), Je = (n) => {
|
|
536
|
-
o.startTime =
|
|
536
|
+
o.startTime = Ue(n), Ie(o.startTime);
|
|
537
537
|
}, Xe = (n) => {
|
|
538
|
-
o.endTime =
|
|
538
|
+
o.endTime = Ue(n), be(o.endTime);
|
|
539
539
|
}, Ze = (n) => {
|
|
540
|
-
|
|
541
|
-
},
|
|
542
|
-
s.startDate = n, s.endDate = i,
|
|
540
|
+
Ut(n);
|
|
541
|
+
}, te = (n, i, c, d) => {
|
|
542
|
+
s.startDate = n, s.endDate = i, c && (s.granularity = c), d && (s.range = d);
|
|
543
543
|
}, et = (n) => {
|
|
544
|
-
var
|
|
545
|
-
const i = (
|
|
544
|
+
var c;
|
|
545
|
+
const i = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: d }) => d === n);
|
|
546
546
|
if (i) {
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
o.endDate = M(I), o.startDate = M(S),
|
|
550
|
-
...
|
|
547
|
+
Q();
|
|
548
|
+
const d = i.data, I = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : A(new Date(Date.now()))), S = d.isRelativeToNow && d.timeDifference ? new Date(I.getTime() - d.timeDifference) : d.startDate;
|
|
549
|
+
o.endDate = M(I), o.startDate = M(S), te(S, I, null, n), e.granularities && (s.granularity = d.granularity || b.value), o.startTime = C(S), o.endTime = C(I), s.startDate = S, s.endDate = I, d.isRelativeToNow && (B.value = {
|
|
550
|
+
...B.value,
|
|
551
551
|
[n]: {
|
|
552
552
|
startDate: S,
|
|
553
553
|
endDate: I
|
|
554
554
|
}
|
|
555
|
-
}), t(
|
|
555
|
+
}), t(v.CUSTOM_RANGE, {
|
|
556
556
|
...i.data,
|
|
557
557
|
startDate: S,
|
|
558
558
|
endDate: I,
|
|
559
559
|
range: i.value
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
},
|
|
562
|
+
}, he = {
|
|
563
563
|
weekly: Z,
|
|
564
|
-
monthly:
|
|
565
|
-
quarterly:
|
|
564
|
+
monthly: se,
|
|
565
|
+
quarterly: X
|
|
566
566
|
}, tt = (n) => {
|
|
567
567
|
const i = s.granularity;
|
|
568
|
-
if (s.granularity = n, i &&
|
|
568
|
+
if (s.granularity = n, i && H(i, structuredClone(ye(s))), s.startDate && s.endDate) {
|
|
569
569
|
switch (n) {
|
|
570
570
|
case "quarterly":
|
|
571
571
|
case "monthly":
|
|
572
572
|
case "weekly": {
|
|
573
|
-
if (
|
|
574
|
-
|
|
573
|
+
if (P[n]) {
|
|
574
|
+
te(P[n].startDate, P[n].endDate, n);
|
|
575
575
|
break;
|
|
576
576
|
}
|
|
577
|
-
const { startDate:
|
|
577
|
+
const { startDate: c, endDate: d } = he[n](
|
|
578
578
|
s.startDate,
|
|
579
579
|
s.endDate,
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
R.value.min,
|
|
581
|
+
R.value.max
|
|
582
582
|
);
|
|
583
|
-
|
|
583
|
+
te(c, d, n);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
case "daily":
|
|
587
|
-
|
|
587
|
+
P.daily && te(P.daily.startDate, P.daily.endDate, n);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
|
-
o.startDate = M(s.startDate), o.endDate = M(s.endDate), t(
|
|
590
|
+
o.startDate = M(s.startDate), o.endDate = M(s.endDate), t(v.INPUT, {
|
|
591
591
|
...s,
|
|
592
|
-
range:
|
|
592
|
+
range: k.value
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
}, at = y(() => ({
|
|
596
|
-
"b-date-range-picker-calendar__form-container--no-calendars":
|
|
596
|
+
"b-date-range-picker-calendar__form-container--no-calendars": V.value
|
|
597
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:
|
|
598
|
+
return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: l, props: e, emit: t, slots: D, hasSlot: p, t: f, calculatedIsRelativeToNowQuickSelectRanges: B, defaultGranularity: b, hasNoCalendars: V, internalRangeDate: s, deserializeDate: m, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: g, quickSelectRangeDefaultItems: q, selectedGranularity: T, granularityItems: J, getGranularCalendarLimits: $, computedMinMax: R, adjustDateForQuarterly: X, adjustDateForMonthly: se, adjustDateForWeekly: Z, adjustStartDateInputForWeekly: ee, adjustEndDateInputForWeekly: Y, adjustStartDateInputForMonthly: _, adjustEndDateInputForMonthly: oe, adjustStartDateInputForQuarterly: le, adjustEndDateInputForQuarterly: G, savedRanges: P, saveRange: H, resetSavedRanges: Q, formatDate: h, startDateError: w, endDateError: W, startTimeError: N, endTimeError: U, dateTextInput: o, setTimeInDateObject: ie, isValidTimeString: ue, isValidTime: K, setTimeInDateRef: F, onDateInput: Te, isValidDate: u, onStartDateSelected: z, onEndDateSelected: de, getDate: ce, validateStartDate: _e, onStartDateInput: Ke, validateEndDate: Re, onEndDateInput: ze, onDateInputKeyDown: Ve, validateStartTime: Ie, validateEndTime: be, onStartTimeInput: Je, onEndTimeInput: Xe, onTimeInputKeyDown: Ze, setInternalRange: te, onRangeSelectorInput: et, adjustDate: he, onGranularityInput: tt, computedFormContainerClasses: at, Calendar: L, BentoTypography: We, BentoInputField: it, BentoDropdown: ut, BentoSegmentedControl: dt };
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
|
-
var
|
|
601
|
+
var Qt = function() {
|
|
602
602
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
603
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
604
|
return [t._v("YYYY-MM-DD")];
|
|
@@ -609,31 +609,31 @@ var jt = function() {
|
|
|
609
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
610
|
return [t._v("HH:MM:SS")];
|
|
611
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
|
-
},
|
|
612
|
+
}, Wt = [], $t = /* @__PURE__ */ Ge(
|
|
613
613
|
Yt,
|
|
614
|
-
jt,
|
|
615
614
|
Qt,
|
|
615
|
+
Wt,
|
|
616
616
|
!1,
|
|
617
617
|
null,
|
|
618
618
|
"ede4db16"
|
|
619
619
|
);
|
|
620
620
|
const Gt = $t.exports;
|
|
621
|
-
function
|
|
622
|
-
const e =
|
|
621
|
+
function Le(r, t) {
|
|
622
|
+
const e = j(r, t == null ? void 0 : t.in);
|
|
623
623
|
return Math.trunc(e.getMonth() / 3) + 1;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function je(r, t) {
|
|
626
|
+
return j(r, t == null ? void 0 : t.in).getFullYear();
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
const [a, l] =
|
|
628
|
+
function Ht(r, t, e) {
|
|
629
|
+
const [a, l] = _t(
|
|
630
630
|
e == null ? void 0 : e.in,
|
|
631
631
|
r,
|
|
632
632
|
t
|
|
633
633
|
);
|
|
634
|
-
return +
|
|
634
|
+
return +re(a) == +re(l);
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const Kt = {
|
|
637
637
|
"en-US": {
|
|
638
638
|
apply: "Apply",
|
|
639
639
|
cancel: "Cancel",
|
|
@@ -664,7 +664,7 @@ const Ht = {
|
|
|
664
664
|
selectDateRange: "Selecione um intervalo de datas",
|
|
665
665
|
selectedDateIsNotAvailable: "A data selecionada não está disponível"
|
|
666
666
|
}
|
|
667
|
-
},
|
|
667
|
+
}, zt = ({
|
|
668
668
|
datePickerValue: r,
|
|
669
669
|
isDateIncorrect: t,
|
|
670
670
|
quickSelectRanges: e,
|
|
@@ -672,7 +672,7 @@ const Ht = {
|
|
|
672
672
|
withTimeInput: l,
|
|
673
673
|
placeholder: D
|
|
674
674
|
}) => {
|
|
675
|
-
const { locale: p, t:
|
|
675
|
+
const { locale: p, t: f } = ge(), B = (m) => !!m && !isNaN(m.getTime()), b = fe({
|
|
676
676
|
startDate: null,
|
|
677
677
|
endDate: null,
|
|
678
678
|
startTime: null,
|
|
@@ -680,43 +680,43 @@ const Ht = {
|
|
|
680
680
|
});
|
|
681
681
|
return pe(
|
|
682
682
|
r,
|
|
683
|
-
(
|
|
684
|
-
b.startDate = M(
|
|
683
|
+
(m) => {
|
|
684
|
+
b.startDate = M(m == null ? void 0 : m.startDate), b.endDate = M(m == null ? void 0 : m.endDate), b.startTime = C(m == null ? void 0 : m.startDate), b.endTime = C(m == null ? void 0 : m.endDate);
|
|
685
685
|
},
|
|
686
686
|
{ immediate: !0 }
|
|
687
687
|
), {
|
|
688
688
|
// Values
|
|
689
689
|
dateDisplayValue: y(() => {
|
|
690
|
-
var
|
|
690
|
+
var k;
|
|
691
691
|
if (t.value)
|
|
692
692
|
return `${b.startDate || ""} - ${b.endDate || ""}`;
|
|
693
693
|
if (!r.value || !r.value.startDate && !r.value.endDate)
|
|
694
|
-
return (D == null ? void 0 : D.value) ||
|
|
695
|
-
if ((
|
|
696
|
-
const
|
|
697
|
-
var
|
|
698
|
-
return
|
|
694
|
+
return (D == null ? void 0 : D.value) || f("selectDateRange");
|
|
695
|
+
if ((k = e.value) != null && k.length) {
|
|
696
|
+
const g = e.value.find(({ value: q }) => {
|
|
697
|
+
var T;
|
|
698
|
+
return q === ((T = r.value) == null ? void 0 : T.range);
|
|
699
699
|
});
|
|
700
|
-
if (
|
|
701
|
-
return
|
|
700
|
+
if (g)
|
|
701
|
+
return g.label;
|
|
702
702
|
}
|
|
703
703
|
if (r.value.granularity === "quarterly") {
|
|
704
|
-
const { startDate:
|
|
705
|
-
if (
|
|
706
|
-
return
|
|
707
|
-
const
|
|
708
|
-
return `${
|
|
704
|
+
const { startDate: g, endDate: q } = r.value, T = f("quarter", { quarter: Le(g), year: je(g) });
|
|
705
|
+
if (Ht(g, q))
|
|
706
|
+
return T;
|
|
707
|
+
const J = f("quarter", { quarter: Le(q), year: je(q) });
|
|
708
|
+
return `${T} - ${J}`;
|
|
709
709
|
}
|
|
710
|
-
if (!
|
|
710
|
+
if (!B(r.value.startDate) || !B(r.value.endDate))
|
|
711
711
|
return `${b.startDate || ""} - ${b.endDate || ""}`;
|
|
712
|
-
let
|
|
713
|
-
return l.value && (
|
|
714
|
-
...
|
|
712
|
+
let m = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
713
|
+
return l.value && (m = {
|
|
714
|
+
...m,
|
|
715
715
|
hour: "numeric",
|
|
716
716
|
minute: "numeric",
|
|
717
717
|
second: "numeric",
|
|
718
718
|
hour12: !1
|
|
719
|
-
}), ft(p.value,
|
|
719
|
+
}), ft(p.value, m).formatRange(
|
|
720
720
|
r.value.startDate,
|
|
721
721
|
r.value.endDate
|
|
722
722
|
);
|
|
@@ -725,12 +725,12 @@ const Ht = {
|
|
|
725
725
|
// Methods
|
|
726
726
|
formatTextInputDisplayValue: () => ""
|
|
727
727
|
};
|
|
728
|
-
},
|
|
729
|
-
i18n: { messages:
|
|
728
|
+
}, Vt = {
|
|
729
|
+
i18n: { messages: Kt },
|
|
730
730
|
name: "bento-date-range-picker",
|
|
731
731
|
model: { prop: "modelValue" }
|
|
732
|
-
},
|
|
733
|
-
...
|
|
732
|
+
}, Jt = /* @__PURE__ */ Ye({
|
|
733
|
+
...Vt,
|
|
734
734
|
props: {
|
|
735
735
|
description: { default: void 0 },
|
|
736
736
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -742,7 +742,7 @@ const Ht = {
|
|
|
742
742
|
required: { type: Boolean, default: !1 },
|
|
743
743
|
tooltipText: { default: null },
|
|
744
744
|
allowTimeInput: { type: Boolean },
|
|
745
|
-
firstDayOfWeek: { default:
|
|
745
|
+
firstDayOfWeek: { default: void 0 },
|
|
746
746
|
granularities: null,
|
|
747
747
|
isDateDisabled: { default: void 0 },
|
|
748
748
|
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
@@ -758,7 +758,7 @@ const Ht = {
|
|
|
758
758
|
},
|
|
759
759
|
emits: ["update:model-value", "input"],
|
|
760
760
|
setup(r, { emit: t }) {
|
|
761
|
-
const e = r, { t: a } = ge(), l =
|
|
761
|
+
const e = r, { t: a } = ge(), l = ae("bento-date-range-picker-container"), D = ae("bento-date-range-picker-label"), p = ae("bento-date-range-picker-description"), f = ae("bento-date-range-picker-error"), B = ae("bento-date-range-picker-date-error"), b = y(() => e.label || a("dateRangePicker", { name: l })), { resolvedFirstDayOfWeek: V } = gt(ve(e, "firstDayOfWeek")), s = rt({
|
|
762
762
|
none: 0,
|
|
763
763
|
one: 710,
|
|
764
764
|
// width of date range picker with one panes
|
|
@@ -766,58 +766,58 @@ const Ht = {
|
|
|
766
766
|
// width of date range picker with two panes
|
|
767
767
|
three: 1290
|
|
768
768
|
// width of date range picker with three panes
|
|
769
|
-
}),
|
|
770
|
-
const
|
|
769
|
+
}), m = y(() => {
|
|
770
|
+
const u = s.active().value, z = {
|
|
771
771
|
none: 0,
|
|
772
772
|
one: 1,
|
|
773
773
|
two: 2
|
|
774
774
|
};
|
|
775
|
-
if (
|
|
776
|
-
const de =
|
|
775
|
+
if (u in z) {
|
|
776
|
+
const de = z[u];
|
|
777
777
|
return e.numberOfMonths === void 0 ? de : Math.min(e.numberOfMonths, de);
|
|
778
778
|
}
|
|
779
779
|
return e.numberOfMonths;
|
|
780
|
-
}),
|
|
781
|
-
const
|
|
780
|
+
}), k = y(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((u) => {
|
|
781
|
+
const z = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
|
|
782
782
|
return {
|
|
783
|
-
...
|
|
783
|
+
...u,
|
|
784
784
|
data: {
|
|
785
|
-
...
|
|
785
|
+
...u.data,
|
|
786
786
|
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
787
|
-
timeDifference:
|
|
787
|
+
timeDifference: z
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
})),
|
|
790
|
+
})), g = O(!1), q = O(null), T = O(!1), { isReadOnly: J } = bt(ve(e, "readonly")), { emitValue: $ } = ht(t);
|
|
791
791
|
pe(
|
|
792
792
|
() => e.disabled,
|
|
793
793
|
() => {
|
|
794
|
-
e.disabled &&
|
|
794
|
+
e.disabled && T.value && (T.value = !1);
|
|
795
795
|
}
|
|
796
796
|
);
|
|
797
|
-
const
|
|
798
|
-
"b-date-range-picker__description--error": !!e.errorMessage ||
|
|
799
|
-
})),
|
|
800
|
-
datePickerValue:
|
|
801
|
-
isDateIncorrect:
|
|
802
|
-
quickSelectRanges:
|
|
803
|
-
isMonthVariant:
|
|
804
|
-
withTimeInput:
|
|
805
|
-
placeholder:
|
|
806
|
-
}),
|
|
807
|
-
() => `${e.description ? p : ""} ${e.errorMessage ?
|
|
808
|
-
),
|
|
809
|
-
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
},
|
|
797
|
+
const R = y(() => e.modelValue || e.value), X = y(() => e.hasActions ? !w.value && g.value : g.value), se = y(() => ({
|
|
798
|
+
"b-date-range-picker__description--error": !!e.errorMessage || X.value
|
|
799
|
+
})), Z = y(() => e.variant === "month"), ee = y(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: Y, textInputDisplayValue: _, formatTextInputDisplayValue: oe } = zt({
|
|
800
|
+
datePickerValue: R,
|
|
801
|
+
isDateIncorrect: g,
|
|
802
|
+
quickSelectRanges: k,
|
|
803
|
+
isMonthVariant: Z,
|
|
804
|
+
withTimeInput: ee,
|
|
805
|
+
placeholder: ve(e, "placeholder")
|
|
806
|
+
}), le = y(
|
|
807
|
+
() => `${e.description ? p : ""} ${e.errorMessage ? f : ""} ${g.value ? B : ""}`.trim() || null
|
|
808
|
+
), G = () => {
|
|
809
|
+
T.value = !1;
|
|
810
|
+
}, P = () => {
|
|
811
|
+
T.value = !0;
|
|
812
|
+
}, H = O(Y.value), Q = O(
|
|
813
813
|
// textInputDisplayValue is a reactive object
|
|
814
|
-
structuredClone(
|
|
815
|
-
),
|
|
816
|
-
() => e.hasActions ?
|
|
817
|
-
),
|
|
818
|
-
() => e.hasActions ?
|
|
814
|
+
structuredClone(ye(_))
|
|
815
|
+
), h = O(e.modelValue ?? e.value), w = O(!0), W = y(
|
|
816
|
+
() => e.hasActions ? Q.value : _
|
|
817
|
+
), N = y(
|
|
818
|
+
() => e.hasActions ? H.value : Y.value
|
|
819
819
|
);
|
|
820
|
-
|
|
820
|
+
Qe(() => {
|
|
821
821
|
if (e.hasActions || Ee(
|
|
822
822
|
'BentoDateRangePicker "hasActions" property',
|
|
823
823
|
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
@@ -827,71 +827,71 @@ const Ht = {
|
|
|
827
827
|
'BentoDateRangePicker "value" property',
|
|
828
828
|
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
829
829
|
"2.0.0"
|
|
830
|
-
), e.granularities && e.variant !== "month" && e.granularities.find(({ type:
|
|
830
|
+
), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
|
|
831
831
|
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
832
832
|
}), pe([() => e.value, () => e.modelValue], () => {
|
|
833
|
-
|
|
833
|
+
H.value = Y.value, Q.value = structuredClone(ye(_));
|
|
834
834
|
});
|
|
835
835
|
const U = y(() => [
|
|
836
836
|
{
|
|
837
837
|
title: a("apply"),
|
|
838
838
|
event: () => {
|
|
839
|
-
|
|
839
|
+
$(h.value), G(), w.value = !0;
|
|
840
840
|
},
|
|
841
|
-
disabled:
|
|
841
|
+
disabled: w.value
|
|
842
842
|
},
|
|
843
843
|
{
|
|
844
844
|
title: a("cancel"),
|
|
845
|
-
event:
|
|
845
|
+
event: G
|
|
846
846
|
}
|
|
847
847
|
]);
|
|
848
|
-
return pe(
|
|
848
|
+
return pe(h, (u) => {
|
|
849
849
|
if (e.hasActions) {
|
|
850
|
-
|
|
850
|
+
w.value = g.value;
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
|
-
|
|
854
|
-
}), { __sfc: !0, emit: t, props: e, t: a, datePickerContainerId: l, labelId: D, descriptionId: p, errorId:
|
|
855
|
-
|
|
853
|
+
$(u);
|
|
854
|
+
}), { __sfc: !0, emit: t, props: e, t: a, datePickerContainerId: l, labelId: D, descriptionId: p, errorId: f, dateErrorId: B, popoverAriaLabel: b, resolvedFirstDayOfWeek: V, breakpoints: s, computedNumberOfMonths: m, adjustedQuickSelectRanges: k, isDateIncorrect: g, inputContainerRef: q, isDateRangePickerOpen: T, isReadOnly: J, emitValue: $, internalModelValue: R, shouldDisplayError: X, descriptionConditionalClasses: se, isMonthVariant: Z, withTimeInput: ee, dateDisplayValue: Y, textInputDisplayValue: _, formatTextInputDisplayValue: oe, ariaDescribedBy: le, closeDateRangePicker: G, openDateRangePicker: P, localDateDisplayValue: H, localTextInputDisplayValue: Q, selectedDate: h, isApplyDisabled: w, displayedTextInputValue: W, displayedDateValue: N, rangePickerButtonActions: U, onDateRangePickerInput: (u) => {
|
|
855
|
+
g.value = !1, _.startDate = M(u.startDate), _.endDate = M(u.endDate), _.startTime = C(u.startDate), _.endTime = C(u.endDate), h.value = u;
|
|
856
856
|
}, clearDateRangePickerValue: async () => {
|
|
857
|
-
|
|
857
|
+
g.value && (g.value = !1), h.value = null;
|
|
858
858
|
}, onEnterPressedOverInput: () => {
|
|
859
|
-
if (!
|
|
860
|
-
|
|
859
|
+
if (!T.value) {
|
|
860
|
+
T.value = !0;
|
|
861
861
|
return;
|
|
862
862
|
}
|
|
863
|
-
|
|
864
|
-
}, onDateRangePickerFormDateInputUpdate: (
|
|
865
|
-
|
|
866
|
-
}, onDateRangePickerError: (
|
|
867
|
-
|
|
868
|
-
}, onRangeSelectorInput: (
|
|
869
|
-
|
|
870
|
-
}, BentoButtonActions: lt, BentoButtonActionsLayout:
|
|
863
|
+
g.value || (T.value = !1);
|
|
864
|
+
}, onDateRangePickerFormDateInputUpdate: (u) => {
|
|
865
|
+
g.value = !1, u.startTime && (_.startTime = u.startTime), u.endTime && (_.endTime = u.endTime);
|
|
866
|
+
}, onDateRangePickerError: (u) => {
|
|
867
|
+
g.value = !0, _.startDate = u.startDate, _.endDate = u.endDate, h.value = { startDate: null, endDate: null };
|
|
868
|
+
}, onRangeSelectorInput: (u) => {
|
|
869
|
+
u && (_.startDate = M(u.startDate), _.endDate = M(u.endDate), _.startTime = C(u.startDate), _.endTime = C(u.endDate), h.value = u);
|
|
870
|
+
}, BentoButtonActions: lt, BentoButtonActionsLayout: Ot, BentoDivider: st, BentoPopover: ot, BentoTypography: We, DateRangePickerCalendar: Gt, DropdownInputDefault: It, ErrorMessage: Mt, FieldLabel: St, vBentoClickOutsideDirective: kt };
|
|
871
871
|
}
|
|
872
872
|
});
|
|
873
|
-
var
|
|
873
|
+
var Xt = function() {
|
|
874
874
|
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
875
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
876
|
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
877
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
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":
|
|
879
|
+
} } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "first-day-of-week": a.resolvedFirstDayOfWeek, 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
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
881
|
}, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
|
|
882
|
-
},
|
|
883
|
-
Vt,
|
|
882
|
+
}, Zt = [], ea = /* @__PURE__ */ Ge(
|
|
884
883
|
Jt,
|
|
885
884
|
Xt,
|
|
885
|
+
Zt,
|
|
886
886
|
!1,
|
|
887
887
|
null,
|
|
888
|
-
"
|
|
888
|
+
"20451845"
|
|
889
889
|
);
|
|
890
|
-
const
|
|
890
|
+
const Ma = ea.exports;
|
|
891
891
|
export {
|
|
892
|
-
|
|
892
|
+
Ma as B,
|
|
893
893
|
Gt as D,
|
|
894
|
-
|
|
894
|
+
At as a,
|
|
895
895
|
De as i
|
|
896
896
|
};
|
|
897
|
-
//# sourceMappingURL=date-range-picker.
|
|
897
|
+
//# sourceMappingURL=date-range-picker.DxVjXxap.js.map
|