@adyen/bento-vue2 1.86.1 → 1.87.1
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/index.d.ts +1271 -1216
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- 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-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.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 -1
- 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/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Dnkt4yn7.js → action-bar.ChMlt59Z.js} +4 -4
- package/dist/chunks/{action-bar.Dnkt4yn7.js.map → action-bar.ChMlt59Z.js.map} +1 -1
- package/dist/chunks/{ai-tag.s8TECgn_.js → ai-tag.D5fCswAm.js} +2 -2
- package/dist/chunks/{ai-tag.s8TECgn_.js.map → ai-tag.D5fCswAm.js.map} +1 -1
- package/dist/chunks/anchor-scroller.Cb22EJiL.js +177 -0
- package/dist/chunks/{anchor-scroller.3_idPubO.js.map → anchor-scroller.Cb22EJiL.js.map} +1 -1
- package/dist/chunks/{base-modal.09nAcnF_.js → base-modal.CUSvvYnk.js} +14 -14
- package/dist/chunks/{base-modal.09nAcnF_.js.map → base-modal.CUSvvYnk.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C8tSTxrm.js → button-actions-with-menu.D14S1pym.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.C8tSTxrm.js.map → button-actions-with-menu.D14S1pym.js.map} +1 -1
- package/dist/chunks/{button-actions.VSc47LLH.js → button-actions.DyPS54Yi.js} +134 -132
- package/dist/chunks/button-actions.DyPS54Yi.js.map +1 -0
- package/dist/chunks/{calendar.DiXkjQDP.js → calendar.BNg7mSj5.js} +398 -407
- package/dist/chunks/calendar.BNg7mSj5.js.map +1 -0
- package/dist/chunks/{card.BdjdBN36.js → card.9oGLUzev.js} +2 -2
- package/dist/chunks/{card.BdjdBN36.js.map → card.9oGLUzev.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BOZpz83Y.js → checkbox-group.BtsDJN9I.js} +22 -22
- package/dist/chunks/checkbox-group.BtsDJN9I.js.map +1 -0
- package/dist/chunks/{checkbox.DoeTl4xh.js → checkbox.Dxvh9si9.js} +34 -37
- package/dist/chunks/checkbox.Dxvh9si9.js.map +1 -0
- package/dist/chunks/{code-snippet.DBNJgt1j.js → code-snippet.CaAEHdBl.js} +4 -4
- package/dist/chunks/{code-snippet.DBNJgt1j.js.map → code-snippet.CaAEHdBl.js.map} +1 -1
- package/dist/chunks/constructNow.CIc7d13I.js +8 -0
- package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
- package/dist/chunks/{controls-group.HUWlAOhG.js → controls-group.BCKGkHVl.js} +23 -28
- package/dist/chunks/controls-group.BCKGkHVl.js.map +1 -0
- package/dist/chunks/{copy.BXykYfg0.js → copy.DSNuoLZf.js} +3 -3
- package/dist/chunks/{copy.BXykYfg0.js.map → copy.DSNuoLZf.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Cw2Ima3U.js → dashboard-section.DIesvnBa.js} +3 -3
- package/dist/chunks/{dashboard-section.Cw2Ima3U.js.map → dashboard-section.DIesvnBa.js.map} +1 -1
- package/dist/chunks/{dashed-underline.Dfw7cJ-9.js → dashed-underline.DauOBhSD.js} +3 -3
- package/dist/chunks/{dashed-underline.Dfw7cJ-9.js.map → dashed-underline.DauOBhSD.js.map} +1 -1
- package/dist/chunks/{data-grid-template.6LR2Jqka.js → data-grid-template.T-6_zLby.js} +3 -3
- package/dist/chunks/{data-grid-template.6LR2Jqka.js.map → data-grid-template.T-6_zLby.js.map} +1 -1
- package/dist/chunks/{data-grid.7trhuJ5D.js → data-grid.BvukOpky.js} +697 -697
- package/dist/chunks/{data-grid.7trhuJ5D.js.map → data-grid.BvukOpky.js.map} +1 -1
- package/dist/chunks/date-picker.BLOqU7Z9.js +173 -0
- package/dist/chunks/date-picker.BLOqU7Z9.js.map +1 -0
- package/dist/chunks/date-range-picker.BJ-ARlkH.js +880 -0
- package/dist/chunks/date-range-picker.BJ-ARlkH.js.map +1 -0
- package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
- package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
- package/dist/chunks/{dialog-page.DA6E6qma.js → dialog-page.4deowaF2.js} +2 -2
- package/dist/chunks/{dialog-page.DA6E6qma.js.map → dialog-page.4deowaF2.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.5WjhJWdh.js → dropdown-default-textbox.CKnrDQ2z.js} +18 -16
- package/dist/chunks/dropdown-default-textbox.CKnrDQ2z.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BnMuMIDk.js → dropdown-tag.DSCZALNp.js} +3 -3
- package/dist/chunks/{dropdown-tag.BnMuMIDk.js.map → dropdown-tag.DSCZALNp.js.map} +1 -1
- package/dist/chunks/{dropdown.DDPfKc74.js → dropdown.ET_mq1_P.js} +8 -8
- package/dist/chunks/{dropdown.DDPfKc74.js.map → dropdown.ET_mq1_P.js.map} +1 -1
- package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
- package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
- package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
- package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
- package/dist/chunks/{error-message.VenUl2OK.js → error-message.CYfT0Qsi.js} +19 -22
- package/dist/chunks/error-message.CYfT0Qsi.js.map +1 -0
- package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
- package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
- package/dist/chunks/{file-uploader.BU1V40qK.js → file-uploader.BSX-zpyP.js} +377 -353
- package/dist/chunks/file-uploader.BSX-zpyP.js.map +1 -0
- package/dist/chunks/filter-bar.DrkWf7T6.js +3229 -0
- package/dist/chunks/filter-bar.DrkWf7T6.js.map +1 -0
- package/dist/chunks/{focus-trap.DMc1wL3A.js → focus-trap.DRqjHzt6.js} +2 -2
- package/dist/chunks/{focus-trap.DMc1wL3A.js.map → focus-trap.DRqjHzt6.js.map} +1 -1
- package/dist/chunks/{footer-actions.z-api8J_.js → footer-actions.Dq82H1Oc.js} +2 -2
- package/dist/chunks/{footer-actions.z-api8J_.js.map → footer-actions.Dq82H1Oc.js.map} +1 -1
- package/dist/chunks/form-layout-title.vF9Bmbre.js +212 -0
- package/dist/chunks/{form-layout-title.Bbq05nMT.js.map → form-layout-title.vF9Bmbre.js.map} +1 -1
- package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
- package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
- package/dist/chunks/{header-meta.CuMQSsOm.js → header-meta.ByA0tkZw.js} +88 -94
- package/dist/chunks/header-meta.ByA0tkZw.js.map +1 -0
- package/dist/chunks/{header-with-views.BcyAUerg.js → header-with-views.DLoIc0yO.js} +9 -9
- package/dist/chunks/{header-with-views.BcyAUerg.js.map → header-with-views.DLoIc0yO.js.map} +1 -1
- package/dist/chunks/{header.YECm2GAh.js → header.BG6XUNEs.js} +3 -3
- package/dist/chunks/{header.YECm2GAh.js.map → header.BG6XUNEs.js.map} +1 -1
- package/dist/chunks/{index.BkJqgYF1.js → index.CwzYJHw2.js} +204 -197
- package/dist/chunks/{index.BkJqgYF1.js.map → index.CwzYJHw2.js.map} +1 -1
- package/dist/chunks/{info-icon.DS9ax8ZD.js → info-icon.BF8KxU-k.js} +3 -3
- package/dist/chunks/{info-icon.DS9ax8ZD.js.map → info-icon.BF8KxU-k.js.map} +1 -1
- package/dist/chunks/{input-field-password.DrI6eF5u.js → input-field-password.TIzrVzR6.js} +6 -6
- package/dist/chunks/{input-field-password.DrI6eF5u.js.map → input-field-password.TIzrVzR6.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Buh4x3pJ.js → input-field-phone-number.s2fP7BVR.js} +42 -42
- package/dist/chunks/{input-field-phone-number.Buh4x3pJ.js.map → input-field-phone-number.s2fP7BVR.js.map} +1 -1
- package/dist/chunks/{input-field.NEKXqT4R.js → input-field.CSCJTxk1.js} +10 -10
- package/dist/chunks/input-field.CSCJTxk1.js.map +1 -0
- package/dist/chunks/{inspector.BomNgVb-.js → inspector.DgI3voTk.js} +3 -3
- package/dist/chunks/{inspector.BomNgVb-.js.map → inspector.DgI3voTk.js.map} +1 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
- package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
- package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
- package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
- package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
- package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
- package/dist/chunks/{layout-row.BxuMJU4E.js → layout-row.B_IQC9Nq.js} +2 -2
- package/dist/chunks/{layout-row.BxuMJU4E.js.map → layout-row.B_IQC9Nq.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cv3y0TvQ.js → listbox-option-tag.BhPVuAjJ.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cv3y0TvQ.js.map → listbox-option-tag.BhPVuAjJ.js.map} +1 -1
- package/dist/chunks/modal-fullscreen.DJtDO8TR.js +235 -0
- package/dist/chunks/modal-fullscreen.DJtDO8TR.js.map +1 -0
- package/dist/chunks/{modal.DOR8c0gy.js → modal.BbsIM3qp.js} +4 -4
- package/dist/chunks/{modal.DOR8c0gy.js.map → modal.BbsIM3qp.js.map} +1 -1
- package/dist/chunks/{pagination.wuEIlDcq.js → pagination.iN0eYByB.js} +157 -138
- package/dist/chunks/pagination.iN0eYByB.js.map +1 -0
- package/dist/chunks/popover.types.hA13DZPg.js +6 -0
- package/dist/chunks/{popover.types.DkiRUQ4Z.js.map → popover.types.hA13DZPg.js.map} +1 -1
- package/dist/chunks/{popper-container.D4dworD4.js → popper-container.C_n9Ds1W.js} +2 -2
- package/dist/chunks/{popper-container.D4dworD4.js.map → popper-container.C_n9Ds1W.js.map} +1 -1
- package/dist/chunks/{promo-banner.bjMDm76T.js → promo-banner.BQreywWK.js} +2 -2
- package/dist/chunks/{promo-banner.bjMDm76T.js.map → promo-banner.BQreywWK.js.map} +1 -1
- package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
- package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
- package/dist/chunks/{radio-group.DKRxfGtE.js → radio-group.5ZxqWguJ.js} +6 -6
- package/dist/chunks/radio-group.5ZxqWguJ.js.map +1 -0
- package/dist/chunks/{rich-text-editor.RHbCDQhe.js → rich-text-editor.BJ-FvvNc.js} +132 -132
- package/dist/chunks/{rich-text-editor.RHbCDQhe.js.map → rich-text-editor.BJ-FvvNc.js.map} +1 -1
- package/dist/chunks/{search-bar.UVSaoX0h.js → search-bar.GPl6NU_w.js} +3 -3
- package/dist/chunks/{search-bar.UVSaoX0h.js.map → search-bar.GPl6NU_w.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C6ldQMZ2.js → secondary-nav.DMHDxGDq.js} +3 -3
- package/dist/chunks/{secondary-nav.C6ldQMZ2.js.map → secondary-nav.DMHDxGDq.js.map} +1 -1
- package/dist/chunks/{segmented-control.BLnuxgnJ.js → segmented-control.BqIiX9hv.js} +2 -2
- package/dist/chunks/{segmented-control.BLnuxgnJ.js.map → segmented-control.BqIiX9hv.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DdvpTgg4.js → selection-card-group.Hol_gJKN.js} +28 -28
- package/dist/chunks/selection-card-group.Hol_gJKN.js.map +1 -0
- package/dist/chunks/{sidepanel.BKE87Uef.js → sidepanel.CSA5e8AF.js} +5 -5
- package/dist/chunks/{sidepanel.BKE87Uef.js.map → sidepanel.CSA5e8AF.js.map} +1 -1
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DRFRap_S.js → structured-list-item.C7W3zYcT.js} +4 -4
- package/dist/chunks/{structured-list-item.DRFRap_S.js.map → structured-list-item.C7W3zYcT.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.OldkhD7S.js → summary-grid.types.nrVagy9s.js} +5 -5
- package/dist/chunks/{summary-grid.types.OldkhD7S.js.map → summary-grid.types.nrVagy9s.js.map} +1 -1
- package/dist/chunks/{tag.Cy3XkSDQ.js → tag.CocLKztJ.js} +2 -2
- package/dist/chunks/{tag.Cy3XkSDQ.js.map → tag.CocLKztJ.js.map} +1 -1
- package/dist/chunks/{textarea.Bm9MZb_W.js → textarea.CpVhEv6I.js} +33 -33
- package/dist/chunks/textarea.CpVhEv6I.js.map +1 -0
- package/dist/chunks/{timeline-item.Cpbm8IUw.js → timeline-item.CSDdHboz.js} +52 -54
- package/dist/chunks/timeline-item.CSDdHboz.js.map +1 -0
- package/dist/chunks/{tooltip.DF11J3k3.js → tooltip.CbsNGnhw.js} +2 -2
- package/dist/chunks/{tooltip.DF11J3k3.js.map → tooltip.CbsNGnhw.js.map} +1 -1
- package/dist/chunks/{tutorial.D5xtZ1Pt.js → tutorial.3dTfBKtZ.js} +4 -4
- package/dist/chunks/{tutorial.D5xtZ1Pt.js.map → tutorial.3dTfBKtZ.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.wn2xnwYG.js → use-cached-selected-values.DiIjmiF_.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.wn2xnwYG.js.map → use-cached-selected-values.DiIjmiF_.js.map} +1 -1
- package/dist/chunks/use-date-input-formatter.Dcjry8op.js +1732 -0
- package/dist/chunks/use-date-input-formatter.Dcjry8op.js.map +1 -0
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.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 +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +1 -1
- package/dist/dropdown.js +4 -4
- 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 +50 -50
- 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/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/web-types.json +104 -5
- package/package.json +7 -12
- package/dist/chunks/anchor-scroller.3_idPubO.js +0 -178
- package/dist/chunks/button-actions.VSc47LLH.js.map +0 -1
- package/dist/chunks/calendar.DiXkjQDP.js.map +0 -1
- package/dist/chunks/checkbox-group.BOZpz83Y.js.map +0 -1
- package/dist/chunks/checkbox.DoeTl4xh.js.map +0 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
- package/dist/chunks/controls-group.HUWlAOhG.js.map +0 -1
- package/dist/chunks/date-input.etw_pFpA.js +0 -20
- package/dist/chunks/date-input.etw_pFpA.js.map +0 -1
- package/dist/chunks/date-picker.CITeN8WH.js +0 -173
- package/dist/chunks/date-picker.CITeN8WH.js.map +0 -1
- package/dist/chunks/date-range-picker.BhBpy-oH.js +0 -877
- package/dist/chunks/date-range-picker.BhBpy-oH.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +0 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
- package/dist/chunks/error-message.VenUl2OK.js.map +0 -1
- package/dist/chunks/file-uploader.BU1V40qK.js.map +0 -1
- package/dist/chunks/filter-bar.BUVhS3jE.js +0 -3321
- package/dist/chunks/filter-bar.BUVhS3jE.js.map +0 -1
- package/dist/chunks/form-layout-title.Bbq05nMT.js +0 -197
- package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
- package/dist/chunks/fr.Dj7wEToe.js +0 -47
- package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
- package/dist/chunks/header-meta.CuMQSsOm.js.map +0 -1
- package/dist/chunks/input-field.NEKXqT4R.js.map +0 -1
- package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
- package/dist/chunks/ko.Ceaof6EP.js +0 -348
- package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
- package/dist/chunks/match.CMBZxEs9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.6bAjPENL.js +0 -225
- package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +0 -1
- package/dist/chunks/nl.B6vCf2B9.js +0 -327
- package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
- package/dist/chunks/pagination.wuEIlDcq.js.map +0 -1
- package/dist/chunks/popover.types.DkiRUQ4Z.js +0 -6
- package/dist/chunks/radio-group.DKRxfGtE.js.map +0 -1
- package/dist/chunks/selection-card-group.DdvpTgg4.js.map +0 -1
- package/dist/chunks/sv.f8EfZjMZ.js +0 -377
- package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
- package/dist/chunks/textarea.Bm9MZb_W.js.map +0 -1
- package/dist/chunks/timeline-item.Cpbm8IUw.js.map +0 -1
|
@@ -1,877 +0,0 @@
|
|
|
1
|
-
import { reactive as De, defineComponent as je, useSlots as at, ref as O, computed as y, onMounted as Ye, toRaw as ye, watch as me, toRef as pe } from "vue";
|
|
2
|
-
import { j as nt } from "./index.BkJqgYF1.js";
|
|
3
|
-
import { B as rt } from "./divider.DX5gwN7p.js";
|
|
4
|
-
import { h as st, B as ot } from "./button-actions.VSc47LLH.js";
|
|
5
|
-
import { B as Qe, d as Ee } from "./typography.C8lPlsbD.js";
|
|
6
|
-
import { B as lt } from "./input-field.NEKXqT4R.js";
|
|
7
|
-
import { B as it } from "./dropdown.DDPfKc74.js";
|
|
8
|
-
import { B as ut } from "./segmented-control.BLnuxgnJ.js";
|
|
9
|
-
import { u as ge } from "./index.B6WW_F-J.js";
|
|
10
|
-
import { f as E, h as We, i as A, j as dt, k as we, l as ct, s as Fe, m as mt, n as re, o as Ce, b as j, u as Dt, e as S, p as w, g as pt } from "./calendar.DiXkjQDP.js";
|
|
11
|
-
import { d as ce } from "./debounce.DUTu11PS.js";
|
|
12
|
-
import { u as ft } from "./use-has-slot.C9lQZ6nz.js";
|
|
13
|
-
import { e as N, a as xe } from "./differenceInMonths.BR4Z2HIa.js";
|
|
14
|
-
import { s as Be } from "./startOfWeek.D8Yh4c0G.js";
|
|
15
|
-
import { f as Ae, v as vt, u as yt } from "./date-input.etw_pFpA.js";
|
|
16
|
-
import { t as Y, c as gt, n as Tt } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
|
|
17
|
-
import { c as _t } from "./constructNow.B8T1ljs6.js";
|
|
18
|
-
import { n as $e } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
19
|
-
import { D as Rt } from "./dropdown-default-textbox.5WjhJWdh.js";
|
|
20
|
-
import { g as ae } 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.rXUeDb8p.js";
|
|
25
|
-
import { F as kt, E as St } from "./error-message.VenUl2OK.js";
|
|
26
|
-
import { B as Mt } from "./button-actions.types.BptAXjD8.js";
|
|
27
|
-
import "../assets/date-range-picker.css";
|
|
28
|
-
function ne(r) {
|
|
29
|
-
if (r == null)
|
|
30
|
-
return E(/* @__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 Ge(r, t, e) {
|
|
35
|
-
return We(r, t * 3, e);
|
|
36
|
-
}
|
|
37
|
-
function Ot(r, t, e) {
|
|
38
|
-
return Ge(r, -1, e);
|
|
39
|
-
}
|
|
40
|
-
const Et = ({
|
|
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 ? E(t) : null, p = e ? N(e) : null;
|
|
48
|
-
if ((l == null ? void 0 : l.type) === "weekly") {
|
|
49
|
-
if (l.earliest)
|
|
50
|
-
D = E(l.earliest);
|
|
51
|
-
else if (D) {
|
|
52
|
-
const f = Be(D, { weekStartsOn: r });
|
|
53
|
-
A(D, f) || (D = E(dt(we(D, { weekStartsOn: r }), 1)));
|
|
54
|
-
}
|
|
55
|
-
if (l.latest)
|
|
56
|
-
p = N(l.latest);
|
|
57
|
-
else if (p) {
|
|
58
|
-
const f = we(p, { weekStartsOn: r });
|
|
59
|
-
A(p, f) || (p = N(ct(Be(p, { weekStartsOn: r }), 1)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if ((l == null ? void 0 : l.type) === "monthly") {
|
|
63
|
-
if (l.earliest)
|
|
64
|
-
D = E(l.earliest);
|
|
65
|
-
else if (D) {
|
|
66
|
-
const f = Fe(D);
|
|
67
|
-
A(D, f) || (D = Fe(We(D, 1)));
|
|
68
|
-
}
|
|
69
|
-
if (l.latest)
|
|
70
|
-
p = N(l.latest);
|
|
71
|
-
else if (p) {
|
|
72
|
-
const f = xe(p);
|
|
73
|
-
A(p, f) || (p = xe(mt(p, 1)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if ((l == null ? void 0 : l.type) === "quarterly") {
|
|
77
|
-
if (l.earliest)
|
|
78
|
-
D = re(l.earliest);
|
|
79
|
-
else if (D) {
|
|
80
|
-
const f = re(D);
|
|
81
|
-
A(D, f) || (D = re(Ge(D, 1)));
|
|
82
|
-
}
|
|
83
|
-
if (l.latest)
|
|
84
|
-
p = N(l.latest);
|
|
85
|
-
else if (p) {
|
|
86
|
-
const f = Ce(p);
|
|
87
|
-
A(p, f) || (p = Ce(Ot(p)));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return { min: D, max: p };
|
|
91
|
-
} }), wt = () => {
|
|
92
|
-
const r = De({
|
|
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 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 = Y(r, e == null ? void 0 : e.in);
|
|
111
|
-
return a.setHours(t), a;
|
|
112
|
-
}
|
|
113
|
-
function Ct(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 qe(r, t) {
|
|
122
|
-
const e = Y(r, t == null ? void 0 : t.in);
|
|
123
|
-
return e.setMilliseconds(0), e;
|
|
124
|
-
}
|
|
125
|
-
function fe(r, t) {
|
|
126
|
-
return +qe(r) == +qe(t);
|
|
127
|
-
}
|
|
128
|
-
function ve(r, t) {
|
|
129
|
-
return +Y(r) == +Y(t);
|
|
130
|
-
}
|
|
131
|
-
function Bt(r, t) {
|
|
132
|
-
return A(
|
|
133
|
-
gt(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
|
-
}, Lt = {
|
|
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
|
-
}, Ut = {
|
|
196
|
-
name: "date-range-picker-calendar",
|
|
197
|
-
i18n: { messages: Lt }
|
|
198
|
-
}, jt = /* @__PURE__ */ je({
|
|
199
|
-
...Ut,
|
|
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: j.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: j.props.isDateDisabled,
|
|
228
|
-
/**
|
|
229
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
230
|
-
*/
|
|
231
|
-
maxRange: j.props.maxRange,
|
|
232
|
-
/**
|
|
233
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
234
|
-
*/
|
|
235
|
-
min: j.props.min,
|
|
236
|
-
/**
|
|
237
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
238
|
-
*/
|
|
239
|
-
max: j.props.max,
|
|
240
|
-
/**
|
|
241
|
-
* Number of months rendered on pane
|
|
242
|
-
*/
|
|
243
|
-
numberOfMonths: {
|
|
244
|
-
type: j.props.numberOfMonths.type,
|
|
245
|
-
default: j.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: j.props.variant
|
|
271
|
-
},
|
|
272
|
-
emits: [
|
|
273
|
-
v.CUSTOM_RANGE,
|
|
274
|
-
v.INPUT,
|
|
275
|
-
v.ERROR,
|
|
276
|
-
v.FORM_DATE,
|
|
277
|
-
v.START_DATE_SELECTED
|
|
278
|
-
],
|
|
279
|
-
setup(r, { emit: t }) {
|
|
280
|
-
var ke, Se, Me, Oe;
|
|
281
|
-
const e = r, a = 300, l = "customRange", D = at(), p = ft(D), { t: f } = ge(), q = O({}), b = y(() => e.variant === "month" ? "monthly" : "daily"), z = y(() => e.numberOfMonths === 0), s = De({
|
|
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
|
-
...e.granularities ? {
|
|
286
|
-
granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || b.value
|
|
287
|
-
} : {}
|
|
288
|
-
}), m = y(() => {
|
|
289
|
-
var n, i;
|
|
290
|
-
return (
|
|
291
|
-
// eslint-disable-next-line consistent-return
|
|
292
|
-
((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: d, data: u }) => {
|
|
293
|
-
var I;
|
|
294
|
-
if (!u.endDate) {
|
|
295
|
-
if (u.isRelativeToNow) {
|
|
296
|
-
const k = (I = q.value) == null ? void 0 : I[d];
|
|
297
|
-
return k ? ve(k.startDate, s.startDate) && ve(k.endDate, s.endDate) : (
|
|
298
|
-
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
299
|
-
// with the internal range's stored range identifier.
|
|
300
|
-
d === s.range
|
|
301
|
-
);
|
|
302
|
-
}
|
|
303
|
-
return ve(u.startDate, s.startDate) && Bt(s.endDate) && (!e.allowTimeInput || fe(s.endDate, N(s.endDate))) && (e.granularities ? u.granularity === s.granularity : !0);
|
|
304
|
-
}
|
|
305
|
-
if (e.allowTimeInput)
|
|
306
|
-
return fe(u.startDate, s.startDate) && fe(u.endDate, s.endDate) && (e.granularities ? u.granularity === s.granularity : !0);
|
|
307
|
-
if (u.endDate)
|
|
308
|
-
return A(u.startDate, s.startDate) && A(u.endDate, s.endDate) && (e.granularities ? u.granularity === s.granularity : !0);
|
|
309
|
-
})) == null ? void 0 : i.value) ?? l
|
|
310
|
-
);
|
|
311
|
-
}), Q = y(() => ({
|
|
312
|
-
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
313
|
-
})), g = y(() => [
|
|
314
|
-
{ label: f("customRange"), value: l },
|
|
315
|
-
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
316
|
-
]), M = y(
|
|
317
|
-
() => {
|
|
318
|
-
var n;
|
|
319
|
-
return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === s.granularity)) || null;
|
|
320
|
-
}
|
|
321
|
-
), R = y(
|
|
322
|
-
() => {
|
|
323
|
-
var n;
|
|
324
|
-
return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: d }) => ({
|
|
325
|
-
label: f(i),
|
|
326
|
-
value: i,
|
|
327
|
-
disabled: d
|
|
328
|
-
}))) ?? [];
|
|
329
|
-
}
|
|
330
|
-
), { getGranularCalendarLimits: H } = Et(e), T = y(
|
|
331
|
-
() => e.granularities ? H(M.value) : { min: e.min ? E(e.min) : null, max: e.max ? N(e.max) : null }
|
|
332
|
-
), {
|
|
333
|
-
adjustDateForQuarterly: J,
|
|
334
|
-
adjustDateForMonthly: X,
|
|
335
|
-
adjustDateForWeekly: se,
|
|
336
|
-
adjustStartDateInputForWeekly: Z,
|
|
337
|
-
adjustEndDateInputForWeekly: ee,
|
|
338
|
-
adjustStartDateInputForMonthly: W,
|
|
339
|
-
adjustEndDateInputForMonthly: _,
|
|
340
|
-
adjustStartDateInputForQuarterly: oe,
|
|
341
|
-
adjustEndDateInputForQuarterly: le
|
|
342
|
-
} = Dt(e.firstDayOfWeek), { savedRanges: F, saveRange: ie, resetSavedRanges: $ } = wt(), C = (n) => n ? S(n) : "", h = O(!1), x = O(!1), L = O(!1), U = O(!1), o = De({
|
|
343
|
-
startDate: e.dateFormData.startDate,
|
|
344
|
-
endDate: e.dateFormData.endDate,
|
|
345
|
-
startTime: e.dateFormData.startTime,
|
|
346
|
-
endTime: e.dateFormData.endTime
|
|
347
|
-
}), ue = (n, i) => {
|
|
348
|
-
let d = new Date(n);
|
|
349
|
-
const [u, I, k] = i.split(":");
|
|
350
|
-
return d = Ft(d, parseInt(u, 10)), d = Ct(d, parseInt(I, 10)), d = xt(d, parseInt(k, 10)), d;
|
|
351
|
-
}, de = (n) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(n), K = (n, i) => {
|
|
352
|
-
const d = () => {
|
|
353
|
-
if (i && P(i)) {
|
|
354
|
-
const u = ue(new Date(i), n);
|
|
355
|
-
if (e.min && u < Pe(e.min, 0) || e.max && u > Pe(e.max, 0))
|
|
356
|
-
return !1;
|
|
357
|
-
}
|
|
358
|
-
return !0;
|
|
359
|
-
};
|
|
360
|
-
return de(n) && d();
|
|
361
|
-
}, B = (n, i) => !i || !de(i) || e.variant === "month" ? n : ue(new Date(n), i), Te = (n) => {
|
|
362
|
-
o.startTime = w(
|
|
363
|
-
e.min && e.allowTimeInput && A(e.min, n.startDate) ? e.min : E(n.startDate)
|
|
364
|
-
), o.endTime = w(
|
|
365
|
-
e.max && e.allowTimeInput && A(e.max, n.endDate) ? e.max : N(n.endDate)
|
|
366
|
-
), s.startDate = B(n.startDate, o.startTime), s.endDate = B(n.endDate, o.endTime), s.range = null, e.granularities && $(), t(v.INPUT, {
|
|
367
|
-
...s,
|
|
368
|
-
range: m.value
|
|
369
|
-
});
|
|
370
|
-
}, P = (n) => {
|
|
371
|
-
if (!n)
|
|
372
|
-
return !1;
|
|
373
|
-
const i = (u) => e.min && E(u) < E(e.min) || e.max && E(u) > E(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(E(u)) : !0;
|
|
374
|
-
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(n) && i(new Date(n));
|
|
375
|
-
};
|
|
376
|
-
Ye(() => {
|
|
377
|
-
h.value = !!(e.dateFormData.startDate && !P(e.dateFormData.startDate)), e.allowTimeInput ? L.value = !!(e.dateFormData.startTime && !K(e.dateFormData.startTime, e.dateFormData.startDate)) : L.value = !1, x.value = !!(e.dateFormData.endDate && !P(e.dateFormData.endDate)), e.allowTimeInput ? U.value = !!(e.dateFormData.endTime && !K(e.dateFormData.endTime, e.dateFormData.endDate)) : U.value = !1;
|
|
378
|
-
});
|
|
379
|
-
const c = (n) => {
|
|
380
|
-
var i;
|
|
381
|
-
o.startDate = S(n), o.startTime ? L.value && (o.startTime = (i = e.dateFormData) == null ? void 0 : i.startTime) : o.startTime = w(n), h.value = !1, L.value = !1, t(v.START_DATE_SELECTED, n);
|
|
382
|
-
}, V = (n) => {
|
|
383
|
-
var i;
|
|
384
|
-
o.endDate = S(n), o.endTime ? U.value && (o.endTime = (i = e.dateFormData) == null ? void 0 : i.endTime) : o.endTime = w(N(n)), x.value = !1, U.value = !1;
|
|
385
|
-
}, G = (n) => {
|
|
386
|
-
const i = e.value[n];
|
|
387
|
-
if (i)
|
|
388
|
-
return i;
|
|
389
|
-
if (e.dateFormData[n] && P(e.dateFormData[n]))
|
|
390
|
-
return new Date(e.dateFormData[n]);
|
|
391
|
-
}, _e = ce((n) => {
|
|
392
|
-
var i;
|
|
393
|
-
if (P(n)) {
|
|
394
|
-
let d = n;
|
|
395
|
-
switch (h.value = !1, (i = M.value) == null ? void 0 : i.type) {
|
|
396
|
-
case "weekly":
|
|
397
|
-
d = Z(
|
|
398
|
-
n,
|
|
399
|
-
C,
|
|
400
|
-
T.value.min,
|
|
401
|
-
T.value.max
|
|
402
|
-
), o.startDate = d;
|
|
403
|
-
break;
|
|
404
|
-
case "monthly":
|
|
405
|
-
d = W(
|
|
406
|
-
n,
|
|
407
|
-
C,
|
|
408
|
-
T.value.min,
|
|
409
|
-
T.value.max
|
|
410
|
-
), o.startDate = d;
|
|
411
|
-
break;
|
|
412
|
-
case "quarterly":
|
|
413
|
-
d = oe(
|
|
414
|
-
n,
|
|
415
|
-
C,
|
|
416
|
-
T.value.min,
|
|
417
|
-
T.value.max
|
|
418
|
-
), o.startDate = d;
|
|
419
|
-
break;
|
|
420
|
-
}
|
|
421
|
-
const u = ne(d);
|
|
422
|
-
s.startDate = B(u, o.startTime), s.endDate = B(
|
|
423
|
-
ne(o.endDate),
|
|
424
|
-
o.endTime
|
|
425
|
-
), P(o.endDate) && (s.endDate = B(
|
|
426
|
-
ne(o.endDate),
|
|
427
|
-
o.endTime
|
|
428
|
-
));
|
|
429
|
-
const I = G("endDate");
|
|
430
|
-
s.range = null, t(v.FORM_DATE, {
|
|
431
|
-
startDate: u,
|
|
432
|
-
endDate: I
|
|
433
|
-
}), t(v.INPUT, {
|
|
434
|
-
...s,
|
|
435
|
-
range: m.value
|
|
436
|
-
});
|
|
437
|
-
} else
|
|
438
|
-
h.value = !0, t(v.ERROR, { ...o });
|
|
439
|
-
}, a), He = (n) => {
|
|
440
|
-
o.startDate = Ae(n), _e(o.startDate);
|
|
441
|
-
}, Re = ce((n) => {
|
|
442
|
-
var i;
|
|
443
|
-
if (P(n)) {
|
|
444
|
-
let d = n;
|
|
445
|
-
switch (x.value = !1, (i = M.value) == null ? void 0 : i.type) {
|
|
446
|
-
case "weekly":
|
|
447
|
-
d = ee(
|
|
448
|
-
n,
|
|
449
|
-
C,
|
|
450
|
-
T.value.min,
|
|
451
|
-
T.value.max
|
|
452
|
-
), o.endDate = d;
|
|
453
|
-
break;
|
|
454
|
-
case "monthly":
|
|
455
|
-
d = _(
|
|
456
|
-
n,
|
|
457
|
-
C,
|
|
458
|
-
T.value.min,
|
|
459
|
-
T.value.max
|
|
460
|
-
), o.endDate = d;
|
|
461
|
-
break;
|
|
462
|
-
case "quarterly":
|
|
463
|
-
d = le(
|
|
464
|
-
n,
|
|
465
|
-
C,
|
|
466
|
-
T.value.min,
|
|
467
|
-
T.value.max
|
|
468
|
-
), o.endDate = d;
|
|
469
|
-
break;
|
|
470
|
-
}
|
|
471
|
-
const u = ne(d);
|
|
472
|
-
s.endDate = B(u, o.endTime), P(o.startDate) && (s.startDate = B(
|
|
473
|
-
ne(o.startDate),
|
|
474
|
-
o.startTime
|
|
475
|
-
));
|
|
476
|
-
const I = G("startDate");
|
|
477
|
-
s.range = null, t(v.FORM_DATE, {
|
|
478
|
-
startDate: I,
|
|
479
|
-
endDate: u
|
|
480
|
-
}), t(v.INPUT, {
|
|
481
|
-
...s,
|
|
482
|
-
range: m.value
|
|
483
|
-
});
|
|
484
|
-
} else
|
|
485
|
-
x.value = !0, t(v.ERROR, { ...o });
|
|
486
|
-
}, a), Ke = (n) => {
|
|
487
|
-
o.endDate = Ae(n), Re(o.endDate);
|
|
488
|
-
}, Ve = (n) => {
|
|
489
|
-
vt(n);
|
|
490
|
-
}, Ie = ce((n) => {
|
|
491
|
-
if (K(n, e.dateFormData.startDate)) {
|
|
492
|
-
L.value = !1, s.startDate = B(s.startDate, n);
|
|
493
|
-
const i = G("endDate");
|
|
494
|
-
t(v.FORM_DATE, {
|
|
495
|
-
startDate: s.startDate,
|
|
496
|
-
endDate: i,
|
|
497
|
-
startTime: n,
|
|
498
|
-
endTime: o.endTime ?? e.dateFormData.endTime
|
|
499
|
-
}), t(v.INPUT, {
|
|
500
|
-
...s,
|
|
501
|
-
range: m.value
|
|
502
|
-
});
|
|
503
|
-
} else
|
|
504
|
-
L.value = !0, t(v.ERROR, { ...o });
|
|
505
|
-
}), be = ce((n) => {
|
|
506
|
-
K(n, e.dateFormData.endDate) ? (U.value = !1, s.endDate = B(s.endDate, n), t(v.FORM_DATE, {
|
|
507
|
-
startDate: s.startDate,
|
|
508
|
-
endDate: s.endDate,
|
|
509
|
-
startTime: o.startTime ?? e.dateFormData.startTime,
|
|
510
|
-
endTime: n
|
|
511
|
-
}), t(v.INPUT, {
|
|
512
|
-
...s,
|
|
513
|
-
range: m.value
|
|
514
|
-
})) : (U.value = !0, t(v.ERROR, { ...o }));
|
|
515
|
-
}), ze = (n) => {
|
|
516
|
-
o.startTime = Ne(n), Ie(o.startTime);
|
|
517
|
-
}, Je = (n) => {
|
|
518
|
-
o.endTime = Ne(n), be(o.endTime);
|
|
519
|
-
}, Xe = (n) => {
|
|
520
|
-
Nt(n);
|
|
521
|
-
}, te = (n, i, d, u) => {
|
|
522
|
-
s.startDate = n, s.endDate = i, d && (s.granularity = d), u && (s.range = u);
|
|
523
|
-
}, Ze = (n) => {
|
|
524
|
-
var d;
|
|
525
|
-
const i = (d = e.quickSelectRanges) == null ? void 0 : d.find(({ value: u }) => u === n);
|
|
526
|
-
if (i) {
|
|
527
|
-
$();
|
|
528
|
-
const u = i.data, I = u.endDate || (u.isRelativeToNow ? new Date(Date.now()) : N(new Date(Date.now()))), k = u.isRelativeToNow && u.timeDifference ? new Date(I.getTime() - u.timeDifference) : u.startDate;
|
|
529
|
-
o.endDate = S(I), o.startDate = S(k), te(k, I, null, n), e.granularities && (s.granularity = u.granularity || b.value), o.startTime = w(k), o.endTime = w(I), s.startDate = k, s.endDate = I, u.isRelativeToNow && (q.value = {
|
|
530
|
-
...q.value,
|
|
531
|
-
[n]: {
|
|
532
|
-
startDate: k,
|
|
533
|
-
endDate: I
|
|
534
|
-
}
|
|
535
|
-
}), t(v.CUSTOM_RANGE, {
|
|
536
|
-
...i.data,
|
|
537
|
-
startDate: k,
|
|
538
|
-
endDate: I,
|
|
539
|
-
range: i.value
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
}, he = {
|
|
543
|
-
weekly: se,
|
|
544
|
-
monthly: X,
|
|
545
|
-
quarterly: J
|
|
546
|
-
}, et = (n) => {
|
|
547
|
-
const i = s.granularity;
|
|
548
|
-
if (s.granularity = n, i && ie(i, structuredClone(ye(s))), s.startDate && s.endDate) {
|
|
549
|
-
switch (n) {
|
|
550
|
-
case "quarterly":
|
|
551
|
-
case "monthly":
|
|
552
|
-
case "weekly": {
|
|
553
|
-
if (F[n]) {
|
|
554
|
-
te(F[n].startDate, F[n].endDate, n);
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
const { startDate: d, endDate: u } = he[n](
|
|
558
|
-
s.startDate,
|
|
559
|
-
s.endDate,
|
|
560
|
-
T.value.min,
|
|
561
|
-
T.value.max
|
|
562
|
-
);
|
|
563
|
-
te(d, u, n);
|
|
564
|
-
break;
|
|
565
|
-
}
|
|
566
|
-
case "daily":
|
|
567
|
-
F.daily && te(F.daily.startDate, F.daily.endDate, n);
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
o.startDate = S(s.startDate), o.endDate = S(s.endDate), t(v.INPUT, {
|
|
571
|
-
...s,
|
|
572
|
-
range: m.value
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
}, tt = y(() => ({
|
|
576
|
-
"b-date-range-picker-calendar__form-container--no-calendars": z.value
|
|
577
|
-
}));
|
|
578
|
-
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: q, defaultGranularity: b, hasNoCalendars: z, internalRangeDate: s, selectedRangeSelectorValue: m, formInputWrapperConditionalClasses: Q, quickSelectRangeDefaultItems: g, selectedGranularity: M, granularityItems: R, getGranularCalendarLimits: H, computedMinMax: T, adjustDateForQuarterly: J, adjustDateForMonthly: X, adjustDateForWeekly: se, adjustStartDateInputForWeekly: Z, adjustEndDateInputForWeekly: ee, adjustStartDateInputForMonthly: W, adjustEndDateInputForMonthly: _, adjustStartDateInputForQuarterly: oe, adjustEndDateInputForQuarterly: le, savedRanges: F, saveRange: ie, resetSavedRanges: $, formatDate: C, startDateError: h, endDateError: x, startTimeError: L, endTimeError: U, dateTextInput: o, setTimeInDateObject: ue, isValidTimeString: de, isValidTime: K, setTimeInDateRef: B, onDateInput: Te, isValidDate: P, onStartDateSelected: c, onEndDateSelected: V, getDate: G, validateStartDate: _e, onStartDateInput: He, validateEndDate: Re, onEndDateInput: Ke, onDateInputKeyDown: Ve, validateStartTime: Ie, validateEndTime: be, onStartTimeInput: ze, onEndTimeInput: Je, onTimeInputKeyDown: Xe, setInternalRange: te, onRangeSelectorInput: Ze, adjustDate: he, onGranularityInput: et, computedFormContainerClasses: tt, Calendar: j, BentoTypography: Qe, BentoInputField: lt, BentoDropdown: it, BentoSegmentedControl: ut };
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
var Yt = function() {
|
|
582
|
-
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
583
|
-
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() {
|
|
584
|
-
return [t._v("YYYY-MM-DD")];
|
|
585
|
-
}, 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() {
|
|
586
|
-
return [t._v("HH:MM:SS")];
|
|
587
|
-
}, 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() {
|
|
588
|
-
return [t._v("YYYY-MM-DD")];
|
|
589
|
-
}, 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() {
|
|
590
|
-
return [t._v("HH:MM:SS")];
|
|
591
|
-
}, 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)]);
|
|
592
|
-
}, Qt = [], Wt = /* @__PURE__ */ $e(
|
|
593
|
-
jt,
|
|
594
|
-
Yt,
|
|
595
|
-
Qt,
|
|
596
|
-
!1,
|
|
597
|
-
null,
|
|
598
|
-
"7b94a28f"
|
|
599
|
-
);
|
|
600
|
-
const $t = Wt.exports;
|
|
601
|
-
function Le(r, t) {
|
|
602
|
-
const e = Y(r, t == null ? void 0 : t.in);
|
|
603
|
-
return Math.trunc(e.getMonth() / 3) + 1;
|
|
604
|
-
}
|
|
605
|
-
function Ue(r, t) {
|
|
606
|
-
return Y(r, t == null ? void 0 : t.in).getFullYear();
|
|
607
|
-
}
|
|
608
|
-
function Gt(r, t, e) {
|
|
609
|
-
const [a, l] = Tt(
|
|
610
|
-
e == null ? void 0 : e.in,
|
|
611
|
-
r,
|
|
612
|
-
t
|
|
613
|
-
);
|
|
614
|
-
return +re(a) == +re(l);
|
|
615
|
-
}
|
|
616
|
-
const Ht = {
|
|
617
|
-
"en-US": {
|
|
618
|
-
apply: "Apply",
|
|
619
|
-
cancel: "Cancel",
|
|
620
|
-
dateRangePicker: "Date range picker {name}",
|
|
621
|
-
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
622
|
-
quarter: "Q{quarter} {year}",
|
|
623
|
-
selectDate: "Select a date",
|
|
624
|
-
selectDateRange: "Select a date range",
|
|
625
|
-
selectedDateIsNotAvailable: "Selected date is not available"
|
|
626
|
-
},
|
|
627
|
-
"ja-JP": {
|
|
628
|
-
apply: "適用",
|
|
629
|
-
cancel: "キャンセル",
|
|
630
|
-
dateRangePicker: "日付範囲ピッカー {name}",
|
|
631
|
-
provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
|
|
632
|
-
quarter: "{year}年第{quarter}四半期",
|
|
633
|
-
selectDate: "日付を選択",
|
|
634
|
-
selectDateRange: "日付範囲を選択",
|
|
635
|
-
selectedDateIsNotAvailable: "選択した日付は利用できません"
|
|
636
|
-
},
|
|
637
|
-
"pt-BR": {
|
|
638
|
-
apply: "Aplicar",
|
|
639
|
-
cancel: "Cancelar",
|
|
640
|
-
dateRangePicker: "Seletor de intervalo de datas {name}",
|
|
641
|
-
provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
|
|
642
|
-
quarter: "{quarter}º trimestre de {year}",
|
|
643
|
-
selectDate: "Selecione uma data",
|
|
644
|
-
selectDateRange: "Selecione um intervalo de datas",
|
|
645
|
-
selectedDateIsNotAvailable: "A data selecionada não está disponível"
|
|
646
|
-
}
|
|
647
|
-
}, Kt = ({
|
|
648
|
-
datePickerValue: r,
|
|
649
|
-
isDateIncorrect: t,
|
|
650
|
-
quickSelectRanges: e,
|
|
651
|
-
isMonthVariant: a,
|
|
652
|
-
withTimeInput: l,
|
|
653
|
-
placeholder: D
|
|
654
|
-
}) => {
|
|
655
|
-
const { locale: p, t: f } = ge(), q = (m) => !!m && !isNaN(m.getTime()), b = De({
|
|
656
|
-
startDate: null,
|
|
657
|
-
endDate: null,
|
|
658
|
-
startTime: null,
|
|
659
|
-
endTime: null
|
|
660
|
-
});
|
|
661
|
-
return me(
|
|
662
|
-
r,
|
|
663
|
-
(m) => {
|
|
664
|
-
b.startDate = S(m == null ? void 0 : m.startDate), b.endDate = S(m == null ? void 0 : m.endDate), b.startTime = w(m == null ? void 0 : m.startDate), b.endTime = w(m == null ? void 0 : m.endDate);
|
|
665
|
-
},
|
|
666
|
-
{ immediate: !0 }
|
|
667
|
-
), {
|
|
668
|
-
// Values
|
|
669
|
-
dateDisplayValue: y(() => {
|
|
670
|
-
var Q;
|
|
671
|
-
if (t.value)
|
|
672
|
-
return `${b.startDate || ""} - ${b.endDate || ""}`;
|
|
673
|
-
if (!r.value || !r.value.startDate && !r.value.endDate)
|
|
674
|
-
return (D == null ? void 0 : D.value) || f("selectDateRange");
|
|
675
|
-
if ((Q = e.value) != null && Q.length) {
|
|
676
|
-
const g = e.value.find(({ value: M }) => {
|
|
677
|
-
var R;
|
|
678
|
-
return M === ((R = r.value) == null ? void 0 : R.range);
|
|
679
|
-
});
|
|
680
|
-
if (g)
|
|
681
|
-
return g.label;
|
|
682
|
-
}
|
|
683
|
-
if (r.value.granularity === "quarterly") {
|
|
684
|
-
const { startDate: g, endDate: M } = r.value, R = f("quarter", { quarter: Le(g), year: Ue(g) });
|
|
685
|
-
if (Gt(g, M))
|
|
686
|
-
return R;
|
|
687
|
-
const H = f("quarter", { quarter: Le(M), year: Ue(M) });
|
|
688
|
-
return `${R} - ${H}`;
|
|
689
|
-
}
|
|
690
|
-
if (!q(r.value.startDate) || !q(r.value.endDate))
|
|
691
|
-
return `${b.startDate || ""} - ${b.endDate || ""}`;
|
|
692
|
-
let m = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
693
|
-
return l.value && (m = {
|
|
694
|
-
...m,
|
|
695
|
-
hour: "numeric",
|
|
696
|
-
minute: "numeric",
|
|
697
|
-
second: "numeric",
|
|
698
|
-
hour12: !1
|
|
699
|
-
}), pt(p.value, m).formatRange(
|
|
700
|
-
r.value.startDate,
|
|
701
|
-
r.value.endDate
|
|
702
|
-
);
|
|
703
|
-
}),
|
|
704
|
-
textInputDisplayValue: b,
|
|
705
|
-
// Methods
|
|
706
|
-
formatTextInputDisplayValue: () => ""
|
|
707
|
-
};
|
|
708
|
-
}, Vt = {
|
|
709
|
-
i18n: { messages: Ht },
|
|
710
|
-
name: "bento-date-range-picker",
|
|
711
|
-
model: { prop: "modelValue" }
|
|
712
|
-
}, zt = /* @__PURE__ */ je({
|
|
713
|
-
...Vt,
|
|
714
|
-
props: {
|
|
715
|
-
description: { default: void 0 },
|
|
716
|
-
disabled: { type: Boolean, default: !1 },
|
|
717
|
-
errorMessage: { default: null },
|
|
718
|
-
label: { default: void 0 },
|
|
719
|
-
optional: { type: Boolean, default: !1 },
|
|
720
|
-
placeholder: { default: null },
|
|
721
|
-
readonly: { type: Boolean, default: !1 },
|
|
722
|
-
required: { type: Boolean, default: !1 },
|
|
723
|
-
tooltipText: { default: null },
|
|
724
|
-
allowTimeInput: { type: Boolean },
|
|
725
|
-
firstDayOfWeek: { default: void 0 },
|
|
726
|
-
granularities: null,
|
|
727
|
-
isDateDisabled: { default: void 0 },
|
|
728
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
729
|
-
quickSelectRanges: { default: void 0 },
|
|
730
|
-
maxRange: { default: null },
|
|
731
|
-
min: { default: null },
|
|
732
|
-
max: { default: null },
|
|
733
|
-
numberOfMonths: { default: void 0 },
|
|
734
|
-
modelValue: { default: null },
|
|
735
|
-
value: { default: null },
|
|
736
|
-
variant: { default: void 0 },
|
|
737
|
-
hasActions: { type: Boolean, default: !1 }
|
|
738
|
-
},
|
|
739
|
-
emits: ["update:model-value", "input"],
|
|
740
|
-
setup(r, { emit: t }) {
|
|
741
|
-
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"), q = ae("bento-date-range-picker-date-error"), b = y(() => e.label || a("dateRangePicker", { name: l })), { resolvedFirstDayOfWeek: z } = yt(pe(e, "firstDayOfWeek")), s = nt({
|
|
742
|
-
none: 0,
|
|
743
|
-
one: 710,
|
|
744
|
-
// width of date range picker with one panes
|
|
745
|
-
two: 1030,
|
|
746
|
-
// width of date range picker with two panes
|
|
747
|
-
three: 1290
|
|
748
|
-
// width of date range picker with three panes
|
|
749
|
-
}), m = y(() => {
|
|
750
|
-
const c = s.active().value, V = {
|
|
751
|
-
none: 0,
|
|
752
|
-
one: 1,
|
|
753
|
-
two: 2
|
|
754
|
-
};
|
|
755
|
-
if (c in V) {
|
|
756
|
-
const G = V[c];
|
|
757
|
-
return e.numberOfMonths === void 0 ? G : Math.min(e.numberOfMonths, G);
|
|
758
|
-
}
|
|
759
|
-
return e.numberOfMonths;
|
|
760
|
-
}), Q = y(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((c) => {
|
|
761
|
-
const V = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
|
|
762
|
-
return {
|
|
763
|
-
...c,
|
|
764
|
-
data: {
|
|
765
|
-
...c.data,
|
|
766
|
-
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
767
|
-
timeDifference: V
|
|
768
|
-
}
|
|
769
|
-
};
|
|
770
|
-
})), g = O(!1), M = O(null), R = O(!1), { isReadOnly: H } = It(pe(e, "readonly")), { emitValue: T } = bt(t);
|
|
771
|
-
me(
|
|
772
|
-
() => e.disabled,
|
|
773
|
-
() => {
|
|
774
|
-
e.disabled && R.value && (R.value = !1);
|
|
775
|
-
}
|
|
776
|
-
);
|
|
777
|
-
const J = y(() => e.modelValue || e.value), X = y(() => e.hasActions ? !x.value && g.value : g.value), se = y(() => ({
|
|
778
|
-
"b-date-range-picker__description--error": !!e.errorMessage || X.value
|
|
779
|
-
})), Z = y(() => e.variant === "month"), ee = y(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: W, textInputDisplayValue: _, formatTextInputDisplayValue: oe } = Kt({
|
|
780
|
-
datePickerValue: J,
|
|
781
|
-
isDateIncorrect: g,
|
|
782
|
-
quickSelectRanges: Q,
|
|
783
|
-
isMonthVariant: Z,
|
|
784
|
-
withTimeInput: ee,
|
|
785
|
-
placeholder: pe(e, "placeholder")
|
|
786
|
-
}), le = y(
|
|
787
|
-
() => `${e.description ? p : ""} ${e.errorMessage ? f : ""} ${g.value ? q : ""}`.trim() || null
|
|
788
|
-
), F = () => {
|
|
789
|
-
R.value = !1;
|
|
790
|
-
}, ie = () => {
|
|
791
|
-
R.value = !0;
|
|
792
|
-
}, $ = O(W.value), C = O(
|
|
793
|
-
// textInputDisplayValue is a reactive object
|
|
794
|
-
structuredClone(ye(_))
|
|
795
|
-
), h = O(e.modelValue ?? e.value), x = O(!0), L = y(
|
|
796
|
-
() => e.hasActions ? C.value : _
|
|
797
|
-
), U = y(
|
|
798
|
-
() => e.hasActions ? $.value : W.value
|
|
799
|
-
);
|
|
800
|
-
Ye(() => {
|
|
801
|
-
if (e.hasActions || Ee(
|
|
802
|
-
'BentoDateRangePicker "hasActions" property',
|
|
803
|
-
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
804
|
-
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
805
|
-
"2.0.0"
|
|
806
|
-
), e.value && Ee(
|
|
807
|
-
'BentoDateRangePicker "value" property',
|
|
808
|
-
'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
809
|
-
"2.0.0"
|
|
810
|
-
), e.granularities && e.variant !== "month" && e.granularities.find(({ type: c }) => c === "quarterly"))
|
|
811
|
-
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
812
|
-
}), me([() => e.value, () => e.modelValue], () => {
|
|
813
|
-
$.value = W.value, C.value = structuredClone(ye(_));
|
|
814
|
-
});
|
|
815
|
-
const o = y(() => [
|
|
816
|
-
{
|
|
817
|
-
title: a("apply"),
|
|
818
|
-
event: () => {
|
|
819
|
-
T(h.value), F(), x.value = !0;
|
|
820
|
-
},
|
|
821
|
-
disabled: x.value
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
title: a("cancel"),
|
|
825
|
-
event: F
|
|
826
|
-
}
|
|
827
|
-
]);
|
|
828
|
-
return me(h, (c) => {
|
|
829
|
-
if (e.hasActions) {
|
|
830
|
-
x.value = g.value;
|
|
831
|
-
return;
|
|
832
|
-
}
|
|
833
|
-
T(c);
|
|
834
|
-
}), { __sfc: !0, emit: t, props: e, t: a, datePickerContainerId: l, labelId: D, descriptionId: p, errorId: f, dateErrorId: q, popoverAriaLabel: b, resolvedFirstDayOfWeek: z, breakpoints: s, computedNumberOfMonths: m, adjustedQuickSelectRanges: Q, isDateIncorrect: g, inputContainerRef: M, isDateRangePickerOpen: R, isReadOnly: H, emitValue: T, internalModelValue: J, shouldDisplayError: X, descriptionConditionalClasses: se, isMonthVariant: Z, withTimeInput: ee, dateDisplayValue: W, textInputDisplayValue: _, formatTextInputDisplayValue: oe, ariaDescribedBy: le, closeDateRangePicker: F, openDateRangePicker: ie, localDateDisplayValue: $, localTextInputDisplayValue: C, selectedDate: h, isApplyDisabled: x, displayedTextInputValue: L, displayedDateValue: U, rangePickerButtonActions: o, onDateRangePickerInput: (c) => {
|
|
835
|
-
g.value = !1, _.startDate = S(c.startDate), _.endDate = S(c.endDate), _.startTime = w(c.startDate), _.endTime = w(c.endDate), h.value = c;
|
|
836
|
-
}, clearDateRangePickerValue: async () => {
|
|
837
|
-
g.value && (g.value = !1), h.value = null;
|
|
838
|
-
}, onEnterPressedOverInput: () => {
|
|
839
|
-
if (!R.value) {
|
|
840
|
-
R.value = !0;
|
|
841
|
-
return;
|
|
842
|
-
}
|
|
843
|
-
g.value || (R.value = !1);
|
|
844
|
-
}, onDateRangePickerFormDateInputUpdate: (c) => {
|
|
845
|
-
g.value = !1, c.startTime && (_.startTime = c.startTime), c.endTime && (_.endTime = c.endTime);
|
|
846
|
-
}, onDateRangePickerError: (c) => {
|
|
847
|
-
g.value = !0, _.startDate = c.startDate, _.endDate = c.endDate, h.value = { startDate: null, endDate: null };
|
|
848
|
-
}, onRangeSelectorInput: (c) => {
|
|
849
|
-
c && (_.startDate = S(c.startDate), _.endDate = S(c.endDate), _.startTime = w(c.startDate), _.endTime = w(c.endDate), h.value = c);
|
|
850
|
-
}, BentoButtonActions: ot, BentoButtonActionsLayout: Mt, BentoDivider: rt, BentoPopover: st, BentoTypography: Qe, DateRangePickerCalendar: $t, DropdownInputDefault: Rt, ErrorMessage: St, FieldLabel: kt, vBentoClickOutsideDirective: ht };
|
|
851
|
-
}
|
|
852
|
-
});
|
|
853
|
-
var Jt = function() {
|
|
854
|
-
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
855
|
-
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) {
|
|
856
|
-
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
|
|
857
|
-
} } }, [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) {
|
|
858
|
-
return !l.type.indexOf("key") && t._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
|
|
859
|
-
} } }, [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() {
|
|
860
|
-
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)];
|
|
861
|
-
}, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
|
|
862
|
-
}, Xt = [], Zt = /* @__PURE__ */ $e(
|
|
863
|
-
zt,
|
|
864
|
-
Jt,
|
|
865
|
-
Xt,
|
|
866
|
-
!1,
|
|
867
|
-
null,
|
|
868
|
-
"20451845"
|
|
869
|
-
);
|
|
870
|
-
const Sa = Zt.exports;
|
|
871
|
-
export {
|
|
872
|
-
Sa as B,
|
|
873
|
-
$t as D,
|
|
874
|
-
Bt as a,
|
|
875
|
-
ve as i
|
|
876
|
-
};
|
|
877
|
-
//# sourceMappingURL=date-range-picker.BhBpy-oH.js.map
|