@adyen/bento-vue2 2.1.0 → 2.2.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/index.d.ts +67 -10
- 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 +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-filter.css +1 -0
- package/dist/assets/date-range-filter.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-with-dropdown-filter.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.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.D29UQHoA.js → action-bar.DCknEWYe.js} +3 -3
- package/dist/chunks/{action-bar.D29UQHoA.js.map → action-bar.DCknEWYe.js.map} +1 -1
- package/dist/chunks/{ai-tag.BLi-Xoh_.js → ai-tag.DfnRfKPR.js} +2 -2
- package/dist/chunks/{ai-tag.BLi-Xoh_.js.map → ai-tag.DfnRfKPR.js.map} +1 -1
- package/dist/chunks/{alert.BddJPWMN.js → alert.DNS4RH4N.js} +52 -70
- package/dist/chunks/alert.DNS4RH4N.js.map +1 -0
- package/dist/chunks/{anchor-scroller.Clb_9RNz.js → anchor-scroller.BQc3CyTV.js} +2 -2
- package/dist/chunks/{anchor-scroller.Clb_9RNz.js.map → anchor-scroller.BQc3CyTV.js.map} +1 -1
- package/dist/chunks/{base-modal._-Cc6jfi.js → base-modal.BDLjv1Nd.js} +5 -5
- package/dist/chunks/{base-modal._-Cc6jfi.js.map → base-modal.BDLjv1Nd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.1vZJWN1K.js → button-actions-with-menu.DnzDde3w.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.1vZJWN1K.js.map → button-actions-with-menu.DnzDde3w.js.map} +1 -1
- package/dist/chunks/{button-actions.CdetBz3J.js → button-actions.B332AjJp.js} +2 -2
- package/dist/chunks/button-actions.B332AjJp.js.map +1 -0
- package/dist/chunks/{calendar.BalfhApP.js → calendar.BZDISQai.js} +18 -18
- package/dist/chunks/{calendar.BalfhApP.js.map → calendar.BZDISQai.js.map} +1 -1
- package/dist/chunks/{card.BhhC01dV.js → card.CW8CUymm.js} +3 -3
- package/dist/chunks/{card.BhhC01dV.js.map → card.CW8CUymm.js.map} +1 -1
- package/dist/chunks/{checkbox-group.C-1v4X3c.js → checkbox-group.4OUTLAFJ.js} +3 -3
- package/dist/chunks/{checkbox-group.C-1v4X3c.js.map → checkbox-group.4OUTLAFJ.js.map} +1 -1
- package/dist/chunks/{checkbox.CnuIUi4-.js → checkbox.D-S3f_zM.js} +2 -2
- package/dist/chunks/{checkbox.CnuIUi4-.js.map → checkbox.D-S3f_zM.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bkd8R0vf.js → code-snippet.D9BVc5mO.js} +4 -4
- package/dist/chunks/{code-snippet.Bkd8R0vf.js.map → code-snippet.D9BVc5mO.js.map} +1 -1
- package/dist/chunks/{controls-group.Bku83Fm_.js → controls-group.Bj-gJZ6W.js} +2 -2
- package/dist/chunks/{controls-group.Bku83Fm_.js.map → controls-group.Bj-gJZ6W.js.map} +1 -1
- package/dist/chunks/{copy.B12-P_8A.js → copy.Cmu6Z-5X.js} +3 -3
- package/dist/chunks/{copy.B12-P_8A.js.map → copy.Cmu6Z-5X.js.map} +1 -1
- package/dist/chunks/{dashboard-section.yS2FNoIV.js → dashboard-section.BJGzt3yh.js} +3 -3
- package/dist/chunks/{dashboard-section.yS2FNoIV.js.map → dashboard-section.BJGzt3yh.js.map} +1 -1
- package/dist/chunks/{dashed-underline.RcRbre03.js → dashed-underline.CCGmjCty.js} +3 -3
- package/dist/chunks/{dashed-underline.RcRbre03.js.map → dashed-underline.CCGmjCty.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B5A9whlD.js → data-grid-template.BMdKtfXm.js} +4 -4
- package/dist/chunks/{data-grid-template.B5A9whlD.js.map → data-grid-template.BMdKtfXm.js.map} +1 -1
- package/dist/chunks/{data-grid.Pg5iM8CJ.js → data-grid.DP4IQ00C.js} +20 -20
- package/dist/chunks/{data-grid.Pg5iM8CJ.js.map → data-grid.DP4IQ00C.js.map} +1 -1
- package/dist/chunks/date-filter.DbgzfI2t.js +117 -0
- package/dist/chunks/date-filter.DbgzfI2t.js.map +1 -0
- package/dist/chunks/{date-picker.RFus1MVJ.js → date-picker.DxcdtoNh.js} +7 -7
- package/dist/chunks/{date-picker.RFus1MVJ.js.map → date-picker.DxcdtoNh.js.map} +1 -1
- package/dist/chunks/date-range-filter.DNYsTcZy.js +869 -0
- package/dist/chunks/date-range-filter.DNYsTcZy.js.map +1 -0
- package/dist/chunks/{date-range-picker.B2B4hO6R.js → date-range-picker.Pz5NFYCO.js} +34 -34
- package/dist/chunks/{date-range-picker.B2B4hO6R.js.map → date-range-picker.Pz5NFYCO.js.map} +1 -1
- package/dist/chunks/{date-time-picker.DJxDa81N.js → date-time-picker.DfE8jCuG.js} +5 -5
- package/dist/chunks/{date-time-picker.DJxDa81N.js.map → date-time-picker.DfE8jCuG.js.map} +1 -1
- package/dist/chunks/{draggable-handle.BM07OVdH.js → draggable-handle.De5DnjDK.js} +2 -2
- package/dist/chunks/{draggable-handle.BM07OVdH.js.map → draggable-handle.De5DnjDK.js.map} +1 -1
- package/dist/chunks/{draggable.BczXedk7.js → draggable.B1opQncT.js} +2 -2
- package/dist/chunks/{draggable.BczXedk7.js.map → draggable.B1opQncT.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BmUNKoNw.js → dropdown-tag.B5vttt56.js} +3 -3
- package/dist/chunks/{dropdown-tag.BmUNKoNw.js.map → dropdown-tag.B5vttt56.js.map} +1 -1
- package/dist/chunks/{dropdown.CpZQYisR.js → dropdown.Dd8RNGXv.js} +963 -918
- package/dist/chunks/dropdown.Dd8RNGXv.js.map +1 -0
- package/dist/chunks/{empty-state.L3DTfiY7.js → empty-state.jbVOuwyN.js} +2 -2
- package/dist/chunks/{empty-state.L3DTfiY7.js.map → empty-state.jbVOuwyN.js.map} +1 -1
- package/dist/chunks/{field-label.BQaDr37D.js → field-label.Bz2PGQ-8.js} +2 -2
- package/dist/chunks/{field-label.BQaDr37D.js.map → field-label.Bz2PGQ-8.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bo17jWtf.js → file-uploader.DmSy3J1u.js} +7 -6
- package/dist/chunks/{file-uploader.Bo17jWtf.js.map → file-uploader.DmSy3J1u.js.map} +1 -1
- package/dist/chunks/filter-bar.U5VrFM6-.js +1865 -0
- package/dist/chunks/filter-bar.U5VrFM6-.js.map +1 -0
- package/dist/chunks/{fixed-scroller.CHmrgoTQ.js → fixed-scroller.CkoOFRzH.js} +3 -3
- package/dist/chunks/{fixed-scroller.CHmrgoTQ.js.map → fixed-scroller.CkoOFRzH.js.map} +1 -1
- package/dist/chunks/{focus-trap.fd6_d2EW.js → focus-trap.BDpcWIxI.js} +1 -2
- package/dist/chunks/{focus-trap.fd6_d2EW.js.map → focus-trap.BDpcWIxI.js.map} +1 -1
- package/dist/chunks/{footer-actions.B8f-gEQV.js → footer-actions.CQYJ8Xvw.js} +2 -2
- package/dist/chunks/{footer-actions.B8f-gEQV.js.map → footer-actions.CQYJ8Xvw.js.map} +1 -1
- package/dist/chunks/{form-layout-title.b2BMYjnl.js → form-layout-title.MjuCRO9t.js} +2 -2
- package/dist/chunks/{form-layout-title.b2BMYjnl.js.map → form-layout-title.MjuCRO9t.js.map} +1 -1
- package/dist/chunks/grid-layout.m-5ySv9K.js +77 -0
- package/dist/chunks/grid-layout.m-5ySv9K.js.map +1 -0
- package/dist/chunks/{header-with-views.BJCjvhem.js → header-with-views.CvcWBdKH.js} +209 -209
- package/dist/chunks/{header-with-views.BJCjvhem.js.map → header-with-views.CvcWBdKH.js.map} +1 -1
- package/dist/chunks/{header.CDiold9n.js → header.CVKe-1fx.js} +4 -4
- package/dist/chunks/{header.CDiold9n.js.map → header.CVKe-1fx.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.BzGVcMqy.js → info-icon-with-popover.BtholUjs.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.BzGVcMqy.js.map → info-icon-with-popover.BtholUjs.js.map} +1 -1
- package/dist/chunks/{info-icon.D11usblr.js → info-icon.D_VTjUV3.js} +3 -3
- package/dist/chunks/{info-icon.D11usblr.js.map → info-icon.D_VTjUV3.js.map} +1 -1
- package/dist/chunks/{input-field-password.D4Jn2yCi.js → input-field-password.DhFP1D1o.js} +4 -4
- package/dist/chunks/{input-field-password.D4Jn2yCi.js.map → input-field-password.DhFP1D1o.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.lV7yePoJ.js → input-field-phone-number.BRxttmou.js} +2 -2
- package/dist/chunks/{input-field-phone-number.lV7yePoJ.js.map → input-field-phone-number.BRxttmou.js.map} +1 -1
- package/dist/chunks/{input-field.90DWNO1a.js → input-field.FsFuEZ1l.js} +3 -3
- package/dist/chunks/{input-field.90DWNO1a.js.map → input-field.FsFuEZ1l.js.map} +1 -1
- package/dist/chunks/{input-time.D7IsprlH.js → input-time.DMBL8dyh.js} +3 -3
- package/dist/chunks/{input-time.D7IsprlH.js.map → input-time.DMBL8dyh.js.map} +1 -1
- package/dist/chunks/input-with-dropdown-filter.DtYX8oGX.js +80 -0
- package/dist/chunks/input-with-dropdown-filter.DtYX8oGX.js.map +1 -0
- package/dist/chunks/{inspector-page.IoC9naSV.js → inspector-page.DvS0wYuG.js} +2 -2
- package/dist/chunks/{inspector-page.IoC9naSV.js.map → inspector-page.DvS0wYuG.js.map} +1 -1
- package/dist/chunks/{inspector.BwtV4rE9.js → inspector.DZau1W4j.js} +2 -2
- package/dist/chunks/{inspector.BwtV4rE9.js.map → inspector.DZau1W4j.js.map} +1 -1
- package/dist/chunks/{list-item.ByyA5h1d.js → list-item.DTHD5vRf.js} +3 -3
- package/dist/chunks/{list-item.ByyA5h1d.js.map → list-item.DTHD5vRf.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cp_W_p4z.js → listbox-option-tag.JQxyZV07.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cp_W_p4z.js.map → listbox-option-tag.JQxyZV07.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.DG8Q-jHL.js → modal-fullscreen.DdlC1oF4.js} +3 -3
- package/dist/chunks/{modal-fullscreen.DG8Q-jHL.js.map → modal-fullscreen.DdlC1oF4.js.map} +1 -1
- package/dist/chunks/{modal.UkzON4bz.js → modal.CcyPb4mE.js} +4 -4
- package/dist/chunks/{modal.UkzON4bz.js.map → modal.CcyPb4mE.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.BzKRuhrd.js → navigation-menu-group.Syx9ckwd.js} +2 -2
- package/dist/chunks/{navigation-menu-group.BzKRuhrd.js.map → navigation-menu-group.Syx9ckwd.js.map} +1 -1
- package/dist/chunks/{pagination.DZEVT-CA.js → pagination.BVGAPUhn.js} +2 -2
- package/dist/chunks/{pagination.DZEVT-CA.js.map → pagination.BVGAPUhn.js.map} +1 -1
- package/dist/chunks/popover.types.CoDfZgDc.js +6 -0
- package/dist/chunks/{popover.types.DvIwSAAp.js.map → popover.types.CoDfZgDc.js.map} +1 -1
- package/dist/chunks/{popper-container.Cj3AWXSd.js → popper-container.Co4j6qME.js} +2 -2
- package/dist/chunks/{popper-container.Cj3AWXSd.js.map → popper-container.Co4j6qME.js.map} +1 -1
- package/dist/chunks/{progress-bar.CaurNYsc.js → progress-bar.BVQrgM_5.js} +2 -2
- package/dist/chunks/{progress-bar.CaurNYsc.js.map → progress-bar.BVQrgM_5.js.map} +1 -1
- package/dist/chunks/promo-banner.CcYpFY9b.js.map +1 -1
- package/dist/chunks/{radio-group.CLbYlzD7.js → radio-group.Do6wZ8p5.js} +3 -3
- package/dist/chunks/{radio-group.CLbYlzD7.js.map → radio-group.Do6wZ8p5.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.5SMm2BbC.js → rich-text-editor.CTJGGcFd.js} +5 -5
- package/dist/chunks/{rich-text-editor.5SMm2BbC.js.map → rich-text-editor.CTJGGcFd.js.map} +1 -1
- package/dist/chunks/{search-bar.DrIwlAQj.js → search-bar.DFvrkNTD.js} +3 -3
- package/dist/chunks/{search-bar.DrIwlAQj.js.map → search-bar.DFvrkNTD.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DRs5yAve.js → secondary-nav.BMsZqzdr.js} +3 -3
- package/dist/chunks/{secondary-nav.DRs5yAve.js.map → secondary-nav.BMsZqzdr.js.map} +1 -1
- package/dist/chunks/{segmented-control.CcQoBTfT.js → segmented-control.CgQbt9HC.js} +2 -2
- package/dist/chunks/{segmented-control.CcQoBTfT.js.map → segmented-control.CgQbt9HC.js.map} +1 -1
- package/dist/chunks/select-avatar-filter.DzuDTc_M.js +51 -0
- package/dist/chunks/select-avatar-filter.DzuDTc_M.js.map +1 -0
- package/dist/chunks/select-country-filter.DfLRX6oH.js +55 -0
- package/dist/chunks/select-country-filter.DfLRX6oH.js.map +1 -0
- package/dist/chunks/select-currency-filter.DZdYgqq3.js +89 -0
- package/dist/chunks/select-currency-filter.DZdYgqq3.js.map +1 -0
- package/dist/chunks/select-payment-method-filter.8NdbJiG5.js +51 -0
- package/dist/chunks/select-payment-method-filter.8NdbJiG5.js.map +1 -0
- package/dist/chunks/select-tag-filter.CTiPiXzG.js +59 -0
- package/dist/chunks/select-tag-filter.CTiPiXzG.js.map +1 -0
- package/dist/chunks/{selection-card-group.BYBAG8ig.js → selection-card-group.BhbzoA3X.js} +3 -3
- package/dist/chunks/{selection-card-group.BYBAG8ig.js.map → selection-card-group.BhbzoA3X.js.map} +1 -1
- package/dist/chunks/{sidepanel.CLbVkH7v.js → sidepanel.CbFGBFMX.js} +8 -8
- package/dist/chunks/sidepanel.CbFGBFMX.js.map +1 -0
- package/dist/chunks/{structured-list-item.BgcR0XlO.js → structured-list-item.C-9xk326.js} +4 -4
- package/dist/chunks/{structured-list-item.BgcR0XlO.js.map → structured-list-item.C-9xk326.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Do2PZQGm.js → summary-grid.types.C4-lY9Xr.js} +6 -6
- package/dist/chunks/{summary-grid.types.Do2PZQGm.js.map → summary-grid.types.C4-lY9Xr.js.map} +1 -1
- package/dist/chunks/{tab.zeRxc-3T.js → tab.BHaKwojJ.js} +3 -3
- package/dist/chunks/{tab.zeRxc-3T.js.map → tab.BHaKwojJ.js.map} +1 -1
- package/dist/chunks/{tag.CgsX8v2m.js → tag.DSyMRETc.js} +2 -2
- package/dist/chunks/{tag.CgsX8v2m.js.map → tag.DSyMRETc.js.map} +1 -1
- package/dist/chunks/{textarea.DMBnJaB1.js → textarea.DFKus3jR.js} +2 -2
- package/dist/chunks/{textarea.DMBnJaB1.js.map → textarea.DFKus3jR.js.map} +1 -1
- package/dist/chunks/{timeline-item.CS7TCdoU.js → timeline-item.bXwmfW79.js} +80 -68
- package/dist/chunks/timeline-item.bXwmfW79.js.map +1 -0
- package/dist/chunks/{title-details.BhR2nis-.js → title-details.cMpPBjrP.js} +2 -2
- package/dist/chunks/{title-details.BhR2nis-.js.map → title-details.cMpPBjrP.js.map} +1 -1
- package/dist/chunks/{tooltip.BOe7LOfD.js → tooltip.BeDzwoCN.js} +3 -3
- package/dist/chunks/{tooltip.BOe7LOfD.js.map → tooltip.BeDzwoCN.js.map} +1 -1
- package/dist/chunks/{tutorial.DSbBx_2h.js → tutorial.C8ApuHSy.js} +4 -4
- package/dist/chunks/{tutorial.DSbBx_2h.js.map → tutorial.C8ApuHSy.js.map} +1 -1
- package/dist/chunks/typography.Cd386LC_.js.map +1 -1
- package/dist/chunks/{use-date-input-formatter.CouOE5tF.js → use-date-input-formatter.DgTh6Zx4.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CouOE5tF.js.map → use-date-input-formatter.DgTh6Zx4.js.map} +1 -1
- package/dist/chunks/warning-filled.DI6aB6vH.js +26 -0
- package/dist/chunks/warning-filled.DI6aB6vH.js.map +1 -0
- 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/date-time-picker.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/dropdown.js +2 -2
- 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 +57 -57
- 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/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +13 -13
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/progress-bar.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/tabs.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 +74 -10
- package/package.json +7 -7
- package/dist/chunks/alert.BddJPWMN.js.map +0 -1
- package/dist/chunks/button-actions.CdetBz3J.js.map +0 -1
- package/dist/chunks/dropdown.CpZQYisR.js.map +0 -1
- package/dist/chunks/filter-bar.Bio9nf9V.js +0 -3132
- package/dist/chunks/filter-bar.Bio9nf9V.js.map +0 -1
- package/dist/chunks/grid-layout.BeCrjPgT.js +0 -75
- package/dist/chunks/grid-layout.BeCrjPgT.js.map +0 -1
- package/dist/chunks/popover.types.DvIwSAAp.js +0 -6
- package/dist/chunks/sidepanel.CLbVkH7v.js.map +0 -1
- package/dist/chunks/timeline-item.CS7TCdoU.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as A, computed as r, ref as T, toRefs as
|
|
1
|
+
import { defineComponent as A, computed as r, ref as T, toRefs as V, watch as j, provide as S, nextTick as G, getCurrentInstance as W, useSlots as X, inject as D, onUnmounted as Z } from "vue";
|
|
2
2
|
import { B as Y } from "./button.tsTeQRcP.js";
|
|
3
|
-
import { B as Q } from "./textarea.
|
|
4
|
-
import { u as
|
|
5
|
-
import { B as ee } from "./button-actions.
|
|
3
|
+
import { B as Q } from "./textarea.DFKus3jR.js";
|
|
4
|
+
import { u as P } from "./index.CPOlyau9.js";
|
|
5
|
+
import { B as ee } from "./button-actions.B332AjJp.js";
|
|
6
6
|
import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
-
import { B as te } from "./dashed-underline.
|
|
7
|
+
import { B as te } from "./dashed-underline.CCGmjCty.js";
|
|
8
8
|
import { B as se } from "./date.P3Xx7JdV.js";
|
|
9
9
|
import { B as ae } from "./link.iNnolG9W.js";
|
|
10
|
-
import { B as ie } from "./tag.
|
|
11
|
-
import {
|
|
12
|
-
import { S as
|
|
10
|
+
import { B as ie } from "./tag.DSyMRETc.js";
|
|
11
|
+
import { d as ne, B as oe } from "./typography.Cd386LC_.js";
|
|
12
|
+
import { S as re, a as le, B as me } from "./structured-list-item.C-9xk326.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { g as
|
|
15
|
-
import { u as
|
|
16
|
-
import { k as
|
|
17
|
-
import { g as
|
|
14
|
+
import { g as ce } from "./generate-uid.DBWe4g6T.js";
|
|
15
|
+
import { u as de } from "./use-has-slot.C9lQZ6nz.js";
|
|
16
|
+
import { k as ue, d as _e, n as pe, j as O, o as k, p as $, q as F, g as fe, r as z } from "./en-US.C412g-7U.js";
|
|
17
|
+
import { g as ve } from "./getRoundingMethod.C3eaeGLR.js";
|
|
18
18
|
import "../assets/timeline-item.css";
|
|
19
19
|
function U(a, e, t) {
|
|
20
|
-
const s =
|
|
20
|
+
const s = fe(), l = t?.locale ?? s.locale ?? ue, f = _e(a, e);
|
|
21
21
|
if (isNaN(f))
|
|
22
22
|
throw new RangeError("Invalid time value");
|
|
23
23
|
const d = Object.assign({}, t, {
|
|
24
24
|
addSuffix: t?.addSuffix,
|
|
25
25
|
comparison: f
|
|
26
|
-
}), [g, v] =
|
|
26
|
+
}), [g, v] = pe(
|
|
27
27
|
t?.in,
|
|
28
28
|
...f > 0 ? [e, a] : [a, e]
|
|
29
|
-
), u =
|
|
29
|
+
), u = ve(t?.roundingMethod ?? "round"), c = v.getTime() - g.getTime(), _ = c / z, b = O(v) - O(g), i = (c - b) / z, h = t?.unit;
|
|
30
30
|
let n;
|
|
31
31
|
if (h ? n = h : _ < 1 ? n = "second" : _ < 60 ? n = "minute" : _ < k ? n = "hour" : i < $ ? n = "day" : i < F ? n = "month" : n = "year", n === "second") {
|
|
32
32
|
const o = u(c / 1e3);
|
|
@@ -48,8 +48,8 @@ function U(a, e, t) {
|
|
|
48
48
|
return l.formatDistance("xYears", o, d);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
var N = /* @__PURE__ */ ((a) => (a.BOTTOM = "bottom", a.AFTER_FIRST = "after-first", a.BEFORE_LAST = "before-last", a))(N || {}),
|
|
52
|
-
const
|
|
51
|
+
var N = /* @__PURE__ */ ((a) => (a.BOTTOM = "bottom", a.AFTER_FIRST = "after-first", a.BEFORE_LAST = "before-last", a))(N || {}), he = /* @__PURE__ */ ((a) => (a.SECOND = "second", a.MINUTE = "minute", a.HOUR = "hour", a.DAY = "day", a.MONTH = "month", a.YEAR = "year", a))(he || {}), ge = /* @__PURE__ */ ((a) => (a.DEFAULT = "SquareSmallIcon", a.SUCCESS = "CheckedCircleIcon", a.CRITICAL = "CrossCircleIcon", a))(ge || {}), be = /* @__PURE__ */ ((a) => (a.BLACK = "black", a.BLUE = "blue", a.GREEN = "green", a.GREY = "grey", a.ORANGE = "orange", a.RED = "red", a.YELLOW = "yellow", a))(be || {});
|
|
52
|
+
const H = /* @__PURE__ */ Symbol("timeline register entry injection key"), q = /* @__PURE__ */ Symbol("timeline config obj injection key"), we = {
|
|
53
53
|
"de-DE": { addNote: "Notiz hinzufügen", cancel: "Abbrechen" },
|
|
54
54
|
"en-GB": { addNote: "Add note", cancel: "Cancel" },
|
|
55
55
|
"en-US": { addNote: "Add note", cancel: "Cancel" },
|
|
@@ -61,11 +61,11 @@ const P = /* @__PURE__ */ Symbol("timeline register entry injection key"), H = /
|
|
|
61
61
|
"ja-JP": { addNote: "メモを追加", cancel: "キャンセル" },
|
|
62
62
|
"pt-BR": { addNote: "Adicionar anotação", cancel: "Cancelar" },
|
|
63
63
|
"zh-CN": { addNote: "添加备注", cancel: "取消" }
|
|
64
|
-
},
|
|
65
|
-
i18n: { messages:
|
|
64
|
+
}, ye = A({
|
|
65
|
+
i18n: { messages: we },
|
|
66
66
|
name: "bento-timeline"
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
67
|
+
}), Ce = /* @__PURE__ */ A({
|
|
68
|
+
...ye,
|
|
69
69
|
props: {
|
|
70
70
|
addNote: { type: Boolean, default: !1 },
|
|
71
71
|
showMore: { default: null },
|
|
@@ -73,7 +73,7 @@ const P = /* @__PURE__ */ Symbol("timeline register entry injection key"), H = /
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["add-timeline-note"],
|
|
75
75
|
setup(a, { emit: e }) {
|
|
76
|
-
const t = a, { t: s } =
|
|
76
|
+
const t = a, { t: s } = P(), l = r(() => s("addNote")), f = r(() => s("cancel")), d = T(), g = (p) => {
|
|
77
77
|
d.value = p;
|
|
78
78
|
}, v = T(null), u = T(null), c = T(!1), _ = async () => {
|
|
79
79
|
c.value = !c.value, await G(), c.value ? v.value.$refs.textareaElement?.focus() : u.value.$el?.focus();
|
|
@@ -85,10 +85,10 @@ const P = /* @__PURE__ */ Symbol("timeline register entry injection key"), H = /
|
|
|
85
85
|
}), _();
|
|
86
86
|
}, i = T([]), h = r(
|
|
87
87
|
() => t.showMore && i.value.length > t.showMore.limit ? i.value.length - t.showMore.limit : null
|
|
88
|
-
), n = T(!1), { timegapLimit: o } =
|
|
88
|
+
), n = T(!1), { timegapLimit: o } = V(t), m = r(() => Array.from(i.value.keys())), w = r(() => t.showMore ? t.showMore.placement === N.BEFORE_LAST ? [
|
|
89
89
|
...m.value.slice(0, t.showMore.limit - 1),
|
|
90
90
|
m.value[m.value.length - 1]
|
|
91
|
-
] : t.showMore.placement === N.AFTER_FIRST ? [m.value[0], ...m.value.slice(-(t.showMore.limit - 1))] : m.value.slice(0, t.showMore.limit) : null),
|
|
91
|
+
] : t.showMore.placement === N.AFTER_FIRST ? [m.value[0], ...m.value.slice(-(t.showMore.limit - 1))] : m.value.slice(0, t.showMore.limit) : null), I = r(() => {
|
|
92
92
|
if (!t.showMore)
|
|
93
93
|
return null;
|
|
94
94
|
switch (t.showMore.placement) {
|
|
@@ -100,60 +100,60 @@ const P = /* @__PURE__ */ Symbol("timeline register entry injection key"), H = /
|
|
|
100
100
|
default:
|
|
101
101
|
return t.showMore.limit - 1;
|
|
102
102
|
}
|
|
103
|
-
}),
|
|
103
|
+
}), M = () => {
|
|
104
104
|
i.value.sort((p, C) => new Date(C.date).getTime() - new Date(p.date).getTime());
|
|
105
|
-
},
|
|
105
|
+
}, L = (p) => () => {
|
|
106
106
|
const C = i.value.indexOf(p);
|
|
107
107
|
C > -1 && i.value.splice(C, 1);
|
|
108
|
-
}, y = (p) => (i.value.push(p), { timelineEntries: i, unregisterTimelineEntry:
|
|
109
|
-
|
|
108
|
+
}, y = (p) => (i.value.push(p), { timelineEntries: i, unregisterTimelineEntry: L(p) });
|
|
109
|
+
j(
|
|
110
110
|
() => i.value.length,
|
|
111
|
-
() =>
|
|
111
|
+
() => M()
|
|
112
112
|
);
|
|
113
|
-
const
|
|
113
|
+
const B = {
|
|
114
114
|
showAll: n,
|
|
115
|
-
showMoreIndex:
|
|
115
|
+
showMoreIndex: I,
|
|
116
116
|
hiddenItems: h,
|
|
117
117
|
visibleIndexes: w,
|
|
118
118
|
timegapLimit: o,
|
|
119
119
|
timelineEntries: i
|
|
120
120
|
};
|
|
121
|
-
return S(
|
|
121
|
+
return S(H, y), S(q, B), { __sfc: !0, props: t, emit: e, t: s, addNoteLabel: l, cancelLabel: f, newNoteContent: d, updateNoteContent: g, addNoteTextareaRef: v, addNoteButtonRef: u, showAddNoteTextArea: c, toggleAddNote: _, addNoteToTimeline: b, timelineEntries: i, hiddenItems: h, showAll: n, timegapLimit: o, timelineIndexes: m, visibleIndexes: w, showMoreIndex: I, sortEntries: M, unregisterTimelineEntry: L, registerTimelineEntry: y, configData: B, BentoButton: Y, BentoButtonActions: ee, BentoTextarea: Q };
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
var
|
|
124
|
+
var Te = function() {
|
|
125
125
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
126
126
|
return t("div", { staticClass: "b-timeline" }, [e.addNote ? t("div", { staticClass: "b-timeline__add-note-section" }, [s.showAddNoteTextArea ? e._e() : t(s.BentoButton, { ref: "addNoteButtonRef", attrs: { variant: "tertiary" }, on: { click: s.toggleAddNote } }, [e._v(e._s(s.addNoteLabel))]), s.showAddNoteTextArea ? t("div", [t(s.BentoTextarea, { ref: "addNoteTextareaRef", attrs: { label: s.addNoteLabel, "character-limit": 150, resizable: "vertical" }, on: { "update:model-value": s.updateNoteContent } }), t(s.BentoButtonActions, { attrs: { actions: [
|
|
127
127
|
{ title: s.addNoteLabel, event: s.addNoteToTimeline },
|
|
128
128
|
{ title: s.cancelLabel, event: s.toggleAddNote }
|
|
129
129
|
] } })], 1) : e._e()], 1) : e._e(), t("ol", { staticClass: "b-timeline__items" }, [e._t("default")], 2)]);
|
|
130
|
-
},
|
|
131
|
-
ye,
|
|
130
|
+
}, Ne = [], Me = /* @__PURE__ */ x(
|
|
132
131
|
Ce,
|
|
133
132
|
Te,
|
|
133
|
+
Ne,
|
|
134
134
|
!1,
|
|
135
135
|
null,
|
|
136
136
|
"1524dd4e"
|
|
137
137
|
);
|
|
138
|
-
const
|
|
138
|
+
const et = Me.exports, Ee = {
|
|
139
139
|
__name: "square-small-fill",
|
|
140
140
|
setup(a) {
|
|
141
141
|
const e = W(), t = String(e?.uid ?? e?.proxy?._uid);
|
|
142
142
|
return { __sfc: !0, instance: e, uuid: t };
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
var
|
|
145
|
+
var Ie = function() {
|
|
146
146
|
var e = this, t = e._self._c;
|
|
147
147
|
return e._self._setupProxy, t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#001222", d: "M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z" } })]);
|
|
148
|
-
},
|
|
149
|
-
Me,
|
|
148
|
+
}, Le = [], Be = /* @__PURE__ */ x(
|
|
150
149
|
Ee,
|
|
151
150
|
Ie,
|
|
151
|
+
Le,
|
|
152
152
|
!1,
|
|
153
153
|
null,
|
|
154
154
|
null
|
|
155
155
|
);
|
|
156
|
-
const Ae =
|
|
156
|
+
const Ae = Be.exports, Se = {
|
|
157
157
|
"de-DE": { showLess: "Weniger anzeigen", showMore: "Mehr {items} anzeigen", timegap: "{timegap} ist zwischen den Ereignissen in der Zeitleiste vergangen." },
|
|
158
158
|
"en-GB": { showLess: "Show less", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
|
|
159
159
|
"en-US": { showLess: "Show less", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
|
|
@@ -165,11 +165,11 @@ const Ae = Le.exports, Be = {
|
|
|
165
165
|
"ja-JP": { showLess: "表示内容を減らす", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
|
|
166
166
|
"pt-BR": { showLess: "Mostrar menos", showMore: "Show {items} more", timegap: "{timegap} passed between the timeline events" },
|
|
167
167
|
"zh-CN": { showLess: "显示更少", showMore: "显示更多 {items}", timegap: "在时间线事件之间经过了 {timegap}" }
|
|
168
|
-
},
|
|
168
|
+
}, xe = A({
|
|
169
169
|
name: "bento-timeline-item",
|
|
170
|
-
i18n: { messages:
|
|
171
|
-
}),
|
|
172
|
-
...
|
|
170
|
+
i18n: { messages: Se }
|
|
171
|
+
}), Re = /* @__PURE__ */ A({
|
|
172
|
+
...xe,
|
|
173
173
|
props: {
|
|
174
174
|
additionalTimestamp: { default: null },
|
|
175
175
|
dataList: { default: null },
|
|
@@ -181,35 +181,47 @@ const Ae = Le.exports, Be = {
|
|
|
181
181
|
type: { default: "milestone" }
|
|
182
182
|
},
|
|
183
183
|
setup(a) {
|
|
184
|
-
const e = a, { t } =
|
|
184
|
+
const e = a, { t } = P(), s = X(), l = de(s), f = r(() => e.type === "note"), d = r(() => ({
|
|
185
185
|
[`b-timeline-item__icon--${e.status}`]: e.status && !f.value
|
|
186
186
|
})), g = r(() => ({
|
|
187
187
|
"b-timeline-item--note": f.value
|
|
188
188
|
}));
|
|
189
|
-
S(
|
|
189
|
+
S(re, !0);
|
|
190
190
|
const v = {
|
|
191
191
|
title: e.title,
|
|
192
192
|
date: e.timestamp.date
|
|
193
|
-
}, u = D(
|
|
193
|
+
}, u = D(H), { timelineEntries: c, unregisterTimelineEntry: _ } = u(v);
|
|
194
194
|
Z(() => _());
|
|
195
|
-
const { showAll: b, showMoreIndex: i, hiddenItems: h, visibleIndexes: n, timegapLimit: o } = D(
|
|
195
|
+
const { showAll: b, showMoreIndex: i, hiddenItems: h, visibleIndexes: n, timegapLimit: o } = D(q), m = r(() => c.value.indexOf(v)), w = r(() => b.value || !n.value), I = r(() => w.value ? !0 : n.value.includes(m.value)), M = r(() => e.title !== null && typeof e.title == "object"), L = r(() => e.title), y = r(() => {
|
|
196
196
|
if (!o.value)
|
|
197
197
|
return null;
|
|
198
|
-
const
|
|
199
|
-
if (!
|
|
198
|
+
const E = c.value[m.value - 1]?.date, J = w.value || n.value.includes(m.value - 1);
|
|
199
|
+
if (!E || !J)
|
|
200
200
|
return null;
|
|
201
|
-
const { date: R } = c.value[m.value],
|
|
202
|
-
U(
|
|
201
|
+
const { date: R } = c.value[m.value], K = parseInt(
|
|
202
|
+
U(E, R, { unit: o.value.unit }),
|
|
203
203
|
10
|
|
204
204
|
);
|
|
205
|
-
return o.value.amount <
|
|
206
|
-
}),
|
|
207
|
-
return
|
|
205
|
+
return o.value.amount < K ? U(E, R, { roundingMethod: "floor" }) : null;
|
|
206
|
+
}), B = r(() => y.value ? t("timegap", { timegap: y.value }) : ""), p = r(() => h.value && i.value === m.value), C = r(() => m.value !== -1 && m.value === c.value.length - 1);
|
|
207
|
+
return j(
|
|
208
|
+
M,
|
|
209
|
+
(E) => {
|
|
210
|
+
E && ne(
|
|
211
|
+
'BentoTimelineItem object value for the "title" prop',
|
|
212
|
+
"Use a slot <template #title></template> to render a link instead",
|
|
213
|
+
"3.0.0"
|
|
214
|
+
);
|
|
215
|
+
},
|
|
216
|
+
{ immediate: !0 }
|
|
217
|
+
), { __sfc: !0, props: e, t, slots: s, hasSlot: l, isNoteType: f, iconConditionalClasses: d, conditionalClasses: g, entry: v, registerTimelineEntry: u, timelineEntries: c, unregisterTimelineEntry: _, showAll: b, showMoreIndex: i, hiddenItems: h, visibleIndexes: n, timegapLimit: o, index: m, allItemsShowing: w, isVisible: I, isLinkTitle: M, linkTitleProps: L, timegap: y, timegapAriaLabel: B, displayShowMoreButton: p, isLastItem: C, BentoButton: Y, BentoDashedUnderline: te, BentoDate: se, BentoLink: ae, BentoTag: ie, BentoTypography: oe, BentoStructuredList: me, BentoStructuredListItem: le, SquareSmallIcon: Ae, generateUid: ce };
|
|
208
218
|
}
|
|
209
219
|
});
|
|
210
|
-
var
|
|
220
|
+
var De = function() {
|
|
211
221
|
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
212
|
-
return s.isVisible ? t("li", { staticClass: "b-timeline-item", class: s.conditionalClasses }, [s.timegap ? t("div", { staticClass: "b-timeline-item__row" }, [e._m(0), t("div", { staticClass: "b-timeline-item__content" }, [t(s.BentoTypography, { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": s.timegapAriaLabel } }, [e._v(" " + e._s(s.timegap) + " ")])], 1)]) : e._e(), t("div", { staticClass: "b-timeline-item__row" }, [t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t(s.SquareSmallIcon, { staticClass: "b-timeline-item__icon", class: s.iconConditionalClasses }), s.isLastItem ? e._e() : t("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), t("div", { staticClass: "b-timeline-item__content" }, [s.isNoteType ? e._e() : t(s.BentoTypography, { staticClass: "b-timeline-item__title", attrs: { el: "div", variant: "body", strongest: "", role: "heading", "aria-level": "2" } }, [
|
|
222
|
+
return s.isVisible ? t("li", { staticClass: "b-timeline-item", class: s.conditionalClasses }, [s.timegap ? t("div", { staticClass: "b-timeline-item__row" }, [e._m(0), t("div", { staticClass: "b-timeline-item__content" }, [t(s.BentoTypography, { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": s.timegapAriaLabel } }, [e._v(" " + e._s(s.timegap) + " ")])], 1)]) : e._e(), t("div", { staticClass: "b-timeline-item__row" }, [t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t(s.SquareSmallIcon, { staticClass: "b-timeline-item__icon", class: s.iconConditionalClasses }), s.isLastItem ? e._e() : t("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), t("div", { staticClass: "b-timeline-item__content" }, [s.isNoteType ? e._e() : t(s.BentoTypography, { staticClass: "b-timeline-item__title", attrs: { el: "div", variant: "body", strongest: "", role: "heading", "aria-level": "2" } }, [e._t("title", function() {
|
|
223
|
+
return [s.isLinkTitle ? t(s.BentoLink, e._b({ attrs: { "disable-typography": "" } }, "bento-link", s.linkTitleProps, !1), [e._v(e._s(s.linkTitleProps.title))]) : t("span", [e._v(e._s(e.title))])];
|
|
224
|
+
})], 2), s.isNoteType && (e.description || s.hasSlot("default")) ? t(s.BentoTypography, { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [e._t("default", function() {
|
|
213
225
|
return [e._v(e._s(e.description))];
|
|
214
226
|
})], 2) : e._e(), e.timestamp ? t(s.BentoTypography, { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [t(s.BentoDate, { attrs: { date: e.timestamp.date, format: e.timestamp.format, "disable-typography": "" } }), e.timestamp.description ? t(s.BentoDashedUnderline, e._b({}, "bento-dashed-underline", e.timestamp.description, !1), [e._v(" " + e._s(e.timestamp.value) + " ")]) : t("span", [e._v(e._s(e.timestamp.value))])], 1) : e._e(), !s.isNoteType && e.additionalTimestamp ? t(s.BentoTypography, { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [t(s.BentoDate, { attrs: { date: e.additionalTimestamp.date, format: e.additionalTimestamp.format, "disable-typography": "" } }), e.additionalTimestamp.description ? t(s.BentoDashedUnderline, e._b({}, "bento-dashed-underline", e.additionalTimestamp.description, !1), [e._v(" " + e._s(e.additionalTimestamp.value) + " ")]) : t("span", [e._v(" " + e._s(e.additionalTimestamp.value) + " ")])], 1) : e._e(), !s.isNoteType && (e.description || s.hasSlot("default")) ? t(s.BentoTypography, { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [e._t("default", function() {
|
|
215
227
|
return [e._v(e._s(e.description))];
|
|
@@ -218,27 +230,27 @@ var Re = function() {
|
|
|
218
230
|
}), 1)], 1) : e._e(), !s.isNoteType && e.tag ? t(s.BentoTag, e._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", e.tag, !1)) : e._e()], 1)]), s.displayShowMoreButton ? t("div", { staticClass: "b-timeline-item__row" }, [e._m(1), t("div", { staticClass: "b-timeline-item__content" }, [t(s.BentoButton, { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(l) {
|
|
219
231
|
s.showAll = !s.showAll;
|
|
220
232
|
} } }, [s.showAll ? [e._v(e._s(s.t("showLess")))] : [e._v(e._s(s.t("showMore", { items: s.hiddenItems })))]], 2)], 1)]) : e._e()]) : e._e();
|
|
221
|
-
},
|
|
233
|
+
}, Oe = [function() {
|
|
222
234
|
var a = this, e = a._self._c;
|
|
223
235
|
return a._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__icon b-timeline-item__icon--timegap" }), e("div", { staticClass: "b-timeline-item__separator" })]);
|
|
224
236
|
}, function() {
|
|
225
237
|
var a = this, e = a._self._c;
|
|
226
238
|
return a._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__separator" })]);
|
|
227
|
-
}],
|
|
228
|
-
xe,
|
|
239
|
+
}], ke = /* @__PURE__ */ x(
|
|
229
240
|
Re,
|
|
230
241
|
De,
|
|
242
|
+
Oe,
|
|
231
243
|
!1,
|
|
232
244
|
null,
|
|
233
|
-
"
|
|
245
|
+
"4427ba30"
|
|
234
246
|
);
|
|
235
|
-
const
|
|
247
|
+
const tt = ke.exports;
|
|
236
248
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
249
|
+
he as B,
|
|
250
|
+
tt as a,
|
|
251
|
+
ge as b,
|
|
240
252
|
N as c,
|
|
241
|
-
|
|
242
|
-
|
|
253
|
+
be as d,
|
|
254
|
+
et as t
|
|
243
255
|
};
|
|
244
|
-
//# sourceMappingURL=timeline-item.
|
|
256
|
+
//# sourceMappingURL=timeline-item.bXwmfW79.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-item.bXwmfW79.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceStrict.js","../../src/components/timeline/timeline.types.ts","../../src/components/timeline/timeline.keys.ts","../../src/components/timeline/timeline.vue","../../../ui-assets/icons-16/dist/vue/square-small-fill.vue","../../src/components/timeline/components/timeline-item/timeline-item.vue"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport {\n millisecondsInMinute,\n minutesInDay,\n minutesInMonth,\n minutesInYear,\n} from \"./constants.js\";\n\n/**\n * The {@link formatDistanceStrict} function options.\n */\n\n/**\n * The unit used to format the distance in {@link formatDistanceStrict}.\n */\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport function formatDistanceStrict(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const roundingMethod = getRoundingMethod(options?.roundingMethod ?? \"round\");\n\n const milliseconds = earlierDate_.getTime() - laterDate_.getTime();\n const minutes = milliseconds / millisecondsInMinute;\n\n const timezoneOffset =\n getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n const dstNormalizedMinutes =\n (milliseconds - timezoneOffset) / millisecondsInMinute;\n\n const defaultUnit = options?.unit;\n let unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = \"second\";\n } else if (minutes < 60) {\n unit = \"minute\";\n } else if (minutes < minutesInDay) {\n unit = \"hour\";\n } else if (dstNormalizedMinutes < minutesInMonth) {\n unit = \"day\";\n } else if (dstNormalizedMinutes < minutesInYear) {\n unit = \"month\";\n } else {\n unit = \"year\";\n }\n } else {\n unit = defaultUnit;\n }\n\n // 0 up to 60 seconds\n if (unit === \"second\") {\n const seconds = roundingMethod(milliseconds / 1000);\n return locale.formatDistance(\"xSeconds\", seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === \"minute\") {\n const roundedMinutes = roundingMethod(minutes);\n return locale.formatDistance(\"xMinutes\", roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === \"hour\") {\n const hours = roundingMethod(minutes / 60);\n return locale.formatDistance(\"xHours\", hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === \"day\") {\n const days = roundingMethod(dstNormalizedMinutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === \"month\") {\n const months = roundingMethod(dstNormalizedMinutes / minutesInMonth);\n return months === 12 && defaultUnit !== \"month\"\n ? locale.formatDistance(\"xYears\", 1, localizeOptions)\n : locale.formatDistance(\"xMonths\", months, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const years = roundingMethod(dstNormalizedMinutes / minutesInYear);\n return locale.formatDistance(\"xYears\", years, localizeOptions);\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceStrict;\n","import { type BentoDashedUnderlineProps } from '@/components/dashed-underline/dashed-underline.types';\nimport { type BentoDateFormat } from '@/components/date/date.types';\nimport { type BentoTag } from '@/components/tag';\nimport { type Ref } from 'vue';\nimport type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n\nexport enum BentoTimelineShowMorePlacement {\n BOTTOM = 'bottom',\n AFTER_FIRST = 'after-first',\n BEFORE_LAST = 'before-last',\n}\n\nexport interface BentoTimelineShowMoreObject {\n limit: number;\n placement?: BentoTimelineShowMorePlacement;\n}\n\nexport enum BentoTimelineGapUnit {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\nexport interface BentoTimelineGapObject {\n amount: number;\n unit: BentoTimelineGapUnit;\n}\n\n/**\n * @deprecated Since v3.0.0. Do not use. Use the `status` prop instead.\n */\nexport enum BentoTimelineItemVariant {\n DEFAULT = 'SquareSmallIcon',\n SUCCESS = 'CheckedCircleIcon',\n CRITICAL = 'CrossCircleIcon',\n}\n\nexport enum BentoTimelineStatus {\n BLACK = 'black',\n BLUE = 'blue',\n GREEN = 'green',\n GREY = 'grey',\n ORANGE = 'orange',\n RED = 'red',\n YELLOW = 'yellow',\n}\n\n/**\n * @deprecated Since v3.0.0. Do not use. Use a slot `<template #title></template>` to render a link instead.\n */\nexport interface BentoTimelineItemTitle extends RouterLinkProps {\n /**\n * Link label.\n */\n title: string;\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n // This has been added to allow users to add HTML and Aria attribute\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [name: string]: any;\n}\n\nexport interface BentoTimelineTimestamp {\n date: Date | number;\n format?: BentoDateFormat;\n value?: string;\n description?: BentoDashedUnderlineProps;\n}\n\nexport interface BentoTimelineDataListObject {\n label: string;\n value: string;\n}\n\nexport type BentoTimelineDataList = Array<BentoTimelineDataListObject>;\n\nexport type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];\n\nexport interface BentoTimelineEntry {\n title?: string | BentoTimelineItemTitle;\n description?: string;\n date: Date | number;\n}\n\nexport interface BentoTimelineConfigData {\n showAll: Ref<boolean>;\n showMoreIndex: Ref<number>;\n hiddenItems: Ref<number>;\n visibleIndexes: Ref<Array<number>>;\n timegapLimit: Ref<BentoTimelineGapObject>;\n timelineEntries: Ref<Array<BentoTimelineEntry>>;\n}\n\nexport interface BentoTimelineProps {\n /**\n * If set to true, gives the possibility to manually add notes to the timeline via a textarea\n */\n addNote?: boolean;\n /**\n * Object that determines the max number of items to show without clicking the show more button\n * and where in the timeline is the show more button placed\n */\n showMore?: BentoTimelineShowMoreObject;\n /**\n * Object that determines minimum amount of time for the automatic timegap indicator;\n * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).\n * If null, automatic timegap detection will be turned off\n */\n timegapLimit?: BentoTimelineGapObject;\n}\n\nexport interface BentoTimelineItemProps {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp?: BentoTimelineTimestamp;\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList?: BentoTimelineDataList;\n /**\n * Description of the event\n */\n description?: string;\n /**\n * Modifier that changes the color of the timeline icon\n * @values blue, black, green, grey, orange, red, yellow\n */\n status?: string;\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag?: BentoTimelineTagProps;\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: BentoTimelineTimestamp;\n /**\n * Title of the event\n */\n title?: BentoTimelineItemTitle | string;\n /**\n * Type of the timeline item. If set to 'note', it renders a note item in the timeline. Defaults to 'milestone'.\n * @values milestone, note\n */\n type?: string;\n}\n","export const TIMELINE_REGISTER_ENTRY_INJECTION_KEY = Symbol('timeline register entry injection key');\nexport const TIMELINE_CONFIG_INJECTION_KEY = Symbol('timeline config obj injection key');\n","<template>\n <div class=\"b-timeline\">\n <div v-if=\"addNote\" class=\"b-timeline__add-note-section\">\n <bento-button\n v-if=\"!showAddNoteTextArea\"\n ref=\"addNoteButtonRef\"\n variant=\"tertiary\"\n @click=\"toggleAddNote\"\n >{{ addNoteLabel }}</bento-button\n >\n <div v-if=\"showAddNoteTextArea\">\n <bento-textarea\n ref=\"addNoteTextareaRef\"\n :label=\"addNoteLabel\"\n :character-limit=\"150\"\n resizable=\"vertical\"\n @update:model-value=\"updateNoteContent\"\n />\n <bento-button-actions\n :actions=\"[\n { title: addNoteLabel, event: addNoteToTimeline },\n { title: cancelLabel, event: toggleAddNote },\n ]\"\n />\n </div>\n </div>\n <ol class=\"b-timeline__items\">\n <slot />\n </ol>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, provide, ref, type Ref, toRefs, watch } from 'vue';\n import { BentoButton, BentoButtonActions } from '@/components/button';\n import { BentoTextarea } from '@/components/textarea';\n import { type BentoInternalTimelineRegisterEntry } from './timeline.internal.types';\n import {\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineProps,\n BentoTimelineShowMorePlacement,\n } from './timeline.types';\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from './timeline.keys';\n import messages from './messages.json';\n import { useI18n } from '@/utils/ts/i18n';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n addNote: { type: Boolean, default: false },\n showMore: { default: null },\n timegapLimit: { default: null }\n});\n\n const emit = defineEmits(['add-timeline-note']);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const addNoteLabel = computed(() => t('addNote') as string);\n const cancelLabel = computed(() => t('cancel') as string);\n\n const newNoteContent: Ref<string> = ref();\n const updateNoteContent = (newTimelineNoteContent: string): void => {\n newNoteContent.value = newTimelineNoteContent;\n };\n\n const addNoteTextareaRef: Ref<InstanceType<typeof BentoTextarea>> = ref(null);\n const addNoteButtonRef: Ref<InstanceType<typeof BentoButton>> = ref(null);\n const showAddNoteTextArea = ref(false);\n const toggleAddNote = async () => {\n showAddNoteTextArea.value = !showAddNoteTextArea.value;\n\n await nextTick();\n\n if (showAddNoteTextArea.value) {\n (addNoteTextareaRef.value.$refs.textareaElement as HTMLTextAreaElement)?.focus();\n } else {\n (addNoteButtonRef.value.$el as HTMLButtonElement)?.focus();\n }\n };\n const addNoteToTimeline = () => {\n emit('add-timeline-note', {\n description: newNoteContent.value,\n timestamp: { date: new Date() },\n type: 'note',\n });\n toggleAddNote();\n };\n\n const timelineEntries = ref<Array<BentoTimelineEntry>>([]);\n const hiddenItems = computed(() =>\n props.showMore && timelineEntries.value.length > props.showMore.limit\n ? timelineEntries.value.length - props.showMore.limit\n : null\n );\n const showAll = ref(false);\n const { timegapLimit } = toRefs(props);\n\n const timelineIndexes = computed(() => Array.from(timelineEntries.value.keys()));\n\n const visibleIndexes = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.BEFORE_LAST) {\n return [\n ...timelineIndexes.value.slice(0, props.showMore.limit - 1),\n timelineIndexes.value[timelineIndexes.value.length - 1],\n ];\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.AFTER_FIRST) {\n return [timelineIndexes.value[0], ...timelineIndexes.value.slice(-(props.showMore.limit - 1))];\n }\n\n return timelineIndexes.value.slice(0, props.showMore.limit);\n });\n\n const showMoreIndex = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n switch (props.showMore.placement) {\n case BentoTimelineShowMorePlacement.BEFORE_LAST:\n return props.showMore.limit - 2;\n case BentoTimelineShowMorePlacement.AFTER_FIRST:\n return 0;\n case BentoTimelineShowMorePlacement.BOTTOM:\n default:\n return props.showMore.limit - 1;\n }\n });\n\n const sortEntries = () => {\n // Sorts timeline entries based on date in reverse chronological order (newest first).\n timelineEntries.value.sort((a, b) => {\n return new Date(b.date).getTime() - new Date(a.date).getTime();\n });\n };\n\n const unregisterTimelineEntry = (entryToRemove: BentoTimelineEntry) => () => {\n const index = timelineEntries.value.indexOf(entryToRemove);\n // The index can be -1 if the entry has already been removed by a parent re-render.\n if (index > -1) {\n timelineEntries.value.splice(index, 1);\n }\n };\n\n const registerTimelineEntry: BentoInternalTimelineRegisterEntry = entry => {\n timelineEntries.value.push(entry);\n return { timelineEntries, unregisterTimelineEntry: unregisterTimelineEntry(entry) };\n };\n\n watch(\n () => timelineEntries.value.length,\n () => sortEntries()\n );\n\n const configData: BentoTimelineConfigData = {\n showAll,\n showMoreIndex,\n hiddenItems,\n visibleIndexes,\n timegapLimit,\n timelineEntries,\n };\n\n // provide register timeline entry and config data timeline items\n provide(TIMELINE_REGISTER_ENTRY_INJECTION_KEY, registerTimelineEntry);\n provide(TIMELINE_CONFIG_INJECTION_KEY, configData);\n</script>\n<script lang=\"ts\">\n /**\n * Timeline displays a collection of events in a reverse chronological order (newest event is displayed on the top).\n *\n * @example\n * import { BentoDateFormat, BentoTimeline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimeline },\n * template: `\n * <bento-timeline>\n * <bento-timeline-item\n * title=\"Milestone 1\"\n * :timestamp=\"{ date: new Date(), value: 'Created at' }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * <bento-timeline-item\n * title=\"Milestone 2\"\n * :timestamp=\"{\n * date: new Date(),\n * value: 'Created at',\n * format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD\n * }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * />\n * </bento-timeline>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-timeline',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z\"/></svg>\n</template>\n<script setup>\n import { getCurrentInstance } from 'vue';\n import '../css/main.css';\n\n const instance = getCurrentInstance();\n const uuid = String(instance?.uid ?? instance?.proxy?._uid);\n</script>\n","<template>\n <li v-if=\"isVisible\" class=\"b-timeline-item\" :class=\"conditionalClasses\">\n <div v-if=\"timegap\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__icon b-timeline-item__icon--timegap\"></div>\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography class=\"b-timeline-item__timegap\" :aria-label=\"timegapAriaLabel\">\n {{ timegap }}\n </bento-typography>\n </div>\n </div>\n <div class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <square-small-icon class=\"b-timeline-item__icon\" :class=\"iconConditionalClasses\" />\n <div\n v-if=\"!isLastItem\"\n class=\"b-timeline-item__separator\"\n data-testid=\"last-timeline-item-separator\"\n ></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography\n v-if=\"!isNoteType\"\n el=\"div\"\n variant=\"body\"\n strongest\n class=\"b-timeline-item__title\"\n role=\"heading\"\n aria-level=\"2\"\n >\n <slot name=\"title\">\n <bento-link v-if=\"isLinkTitle\" v-bind=\"linkTitleProps\" disable-typography>{{\n linkTitleProps.title\n }}</bento-link>\n\n <span v-else>{{ title }}</span>\n </slot>\n </bento-typography>\n\n <bento-typography\n v-if=\"isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <bento-typography v-if=\"timestamp\" class=\"b-timeline-item__timestamp\" el=\"div\" variant=\"caption\">\n <bento-date :date=\"timestamp.date\" :format=\"timestamp.format\" disable-typography />\n\n <bento-dashed-underline v-if=\"timestamp.description\" v-bind=\"timestamp.description\">\n {{ timestamp.value }}\n </bento-dashed-underline>\n\n <span v-else>{{ timestamp.value }}</span>\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && additionalTimestamp\"\n class=\"b-timeline-item__timestamp\"\n el=\"div\"\n variant=\"caption\"\n >\n <bento-date\n :date=\"additionalTimestamp.date\"\n :format=\"additionalTimestamp.format\"\n disable-typography\n />\n\n <bento-dashed-underline\n v-if=\"additionalTimestamp.description\"\n v-bind=\"additionalTimestamp.description\"\n >\n {{ additionalTimestamp.value }}\n </bento-dashed-underline>\n\n <span v-else>\n {{ additionalTimestamp.value }}\n </span>\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <div v-if=\"!isNoteType && dataList\" class=\"b-timeline-item__data-list\">\n <bento-structured-list>\n <bento-structured-list-item\n v-for=\"listEntry in dataList\"\n :key=\"generateUid(listEntry.label)\"\n :label=\"listEntry.label\"\n >\n <bento-typography variant=\"caption\">{{ listEntry.value }}</bento-typography>\n </bento-structured-list-item>\n </bento-structured-list>\n </div>\n <bento-tag v-if=\"!isNoteType && tag\" v-bind=\"tag\" class=\"b-timeline-item__tag\" />\n </div>\n </div>\n <div v-if=\"displayShowMoreButton\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-button class=\"b-timeline__show-more\" variant=\"tertiary\" @click=\"showAll = !showAll\">\n <template v-if=\"!showAll\">{{ t('showMore', { items: hiddenItems }) }}</template>\n <template v-else>{{ t('showLess') }}</template>\n </bento-button>\n </div>\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, provide, useSlots, watch } from 'vue';\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoDashedUnderline } from '@/components/dashed-underline';\n import { BentoDate } from '@/components/date';\n import { BentoLink } from '@/components/link';\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { BentoStructuredList, BentoStructuredListItem } from '@/components/structured-list';\n import SquareSmallIcon from '@adyen/ui-assets-icons-16/vue/square-small-fill';\n // Utils\n import { generateUid } from '@/utils/ts/generate-uid';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { formatDistanceStrict } from 'date-fns/formatDistanceStrict';\n // Types\n import {\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineItemProps,\n type BentoTimelineItemTitle,\n } from '../../timeline.types';\n import { type BentoTimelineRegisterEntry } from '../../timeline.internal.types';\n // Keys\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from '../../timeline.keys';\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '@/components/structured-list/structured-list.keys';\n import messages from './messages.json';\n import { deprecate } from '@/utils/ts/deprecate';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n additionalTimestamp: { default: null },\n dataList: { default: null },\n description: { default: null },\n status: { default: 'black' },\n tag: { default: undefined },\n timestamp: null,\n title: { default: null },\n type: { default: 'milestone' }\n});\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const isNoteType = computed(() => props.type === 'note');\n\n const iconConditionalClasses = computed(() => ({\n [`b-timeline-item__icon--${props.status}`]: props.status && !isNoteType.value,\n }));\n const conditionalClasses = computed(() => ({\n 'b-timeline-item--note': isNoteType.value,\n }));\n\n // Provide STRUCTURED_LIST_CONDENSED_INJECTION_KEY as true, to set the internal condensed style in the BentoStructuredList comp\n provide(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, true);\n\n const entry: BentoTimelineEntry = {\n title: props.title,\n date: props.timestamp.date,\n };\n\n // Register timeline entry to the timeline entries array\n const registerTimelineEntry: BentoTimelineRegisterEntry = inject(TIMELINE_REGISTER_ENTRY_INJECTION_KEY);\n const { timelineEntries, unregisterTimelineEntry } = registerTimelineEntry(entry);\n\n // On unmounting timeline item, unregister it from the parent timeline component\n onUnmounted(() => unregisterTimelineEntry());\n\n // Get timeline config data from the parent Timeline comp\n const { showAll, showMoreIndex, hiddenItems, visibleIndexes, timegapLimit }: BentoTimelineConfigData =\n inject(TIMELINE_CONFIG_INJECTION_KEY);\n\n const index = computed(() => timelineEntries.value.indexOf(entry));\n\n const allItemsShowing = computed(() => showAll.value || !visibleIndexes.value);\n const isVisible = computed(() => (allItemsShowing.value ? true : visibleIndexes.value.includes(index.value)));\n const isLinkTitle = computed(() => props.title !== null && typeof props.title === 'object');\n const linkTitleProps = computed(() => props.title as BentoTimelineItemTitle);\n const timegap = computed(() => {\n if (!timegapLimit.value) {\n return null;\n }\n const previousDate = timelineEntries.value[index.value - 1]?.date;\n const isPreviousItemVisible = allItemsShowing.value || visibleIndexes.value.includes(index.value - 1);\n if (!previousDate || !isPreviousItemVisible) {\n return null;\n }\n const { date } = timelineEntries.value[index.value];\n const timegapInSelectedUnit = parseInt(\n formatDistanceStrict(previousDate, date, { unit: timegapLimit.value.unit }),\n 10\n );\n return timegapLimit.value.amount < timegapInSelectedUnit\n ? formatDistanceStrict(previousDate, date, { roundingMethod: 'floor' })\n : null;\n });\n const timegapAriaLabel = computed(() => (timegap.value ? t('timegap', { timegap: timegap.value }) : ''));\n const displayShowMoreButton = computed(() => hiddenItems.value && showMoreIndex.value === index.value);\n const isLastItem = computed(() => {\n // The index can be -1 before the parent has had a chance to sort the array.\n return index.value !== -1 && index.value === timelineEntries.value.length - 1;\n });\n\n watch(\n isLinkTitle,\n isLinkTitle => {\n if (isLinkTitle) {\n deprecate(\n 'BentoTimelineItem object value for the \"title\" prop',\n 'Use a slot <template #title></template> to render a link instead',\n '3.0.0'\n );\n }\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * BentoTimelineItem renders each event in the Timeline component\n *\n * @example\n * import { BentoDateFormat, BentoTimelineItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimelineItem },\n * template: `\n * <bento-timeline-item\n * title=\"Milestone\"\n * :timestamp=\"{ date: new Date(), value: 'Created at', format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline-item',\n i18n: { messages },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline-item.scss\" />\n"],"names":["formatDistanceStrict","laterDate","earlierDate","options","defaultOptions","getDefaultOptions","locale","enUS","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","roundingMethod","getRoundingMethod","milliseconds","minutes","millisecondsInMinute","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","defaultUnit","unit","minutesInDay","minutesInMonth","minutesInYear","seconds","roundedMinutes","hours","days","months","years","BentoTimelineShowMorePlacement","BentoTimelineShowMorePlacement2","BentoTimelineGapUnit","BentoTimelineGapUnit2","BentoTimelineItemVariant","BentoTimelineItemVariant2","BentoTimelineStatus","BentoTimelineStatus2","TIMELINE_REGISTER_ENTRY_INJECTION_KEY","TIMELINE_CONFIG_INJECTION_KEY","__default__$1","defineComponent","messages$1","t","useI18n","addNoteLabel","computed","cancelLabel","newNoteContent","ref","updateNoteContent","newTimelineNoteContent","addNoteTextareaRef","addNoteButtonRef","showAddNoteTextArea","toggleAddNote","nextTick","addNoteToTimeline","emit","timelineEntries","hiddenItems","props","showAll","timegapLimit","toRefs","timelineIndexes","visibleIndexes","showMoreIndex","sortEntries","a","b","unregisterTimelineEntry","entryToRemove","index","registerTimelineEntry","entry","watch","configData","provide","instance","getCurrentInstance","uuid","__default__","messages","slots","useSlots","hasSlot","useHasSlot","isNoteType","iconConditionalClasses","conditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","isLinkTitle","linkTitleProps","timegap","previousDate","isPreviousItemVisible","date","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem","isLinkTitle2","deprecate"],"mappings":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,MAAA,SAAAO,EAAA,QAAA,CAAA;AACA,UAAA,CAAA0B,KAAA,CAAAC;AACI,eAAA;AAEJ,YAAA,EAAA,MAAAC,EAAA,IAAA1C,EAAA,MAAAc,EAAA,KAAA,GACA6B,IAAA;AAAA,QAA8BzG,EAAAsG,GAAAE,GAAA,EAAA,MAAAtC,EAAA,MAAA,KAAA,CAAA;AAAA,QACgD;AAAA,MAC1E;AAEJ,aAAAA,EAAA,MAAA,SAAAuC,IAAAzG,EAAAsG,GAAAE,GAAA,EAAA,gBAAA,QAAA,CAAA,IAAA;AAAA,IAEM,CAAA,GAEVE,IAAAzD,EAAA,MAAAoD,EAAA,QAAA,EAAA,WAAA,EAAA,SAAAA,EAAA,MAAA,CAAA,IAAA,EAAA,GACAM,IAAA1D,EAAA,MAAAc,EAAA,SAAAO,EAAA,UAAAM,EAAA,KAAA,GACAgC,IAAA3D,EAAA,MAEI2B,EAAA,UAAA,MAAAA,EAAA,UAAAd,EAAA,MAAA,SAAA,CAA4E;AAGhF,WAAAiB;AAAA,MAAAoB;AAAA,MACI,CAAAU,MAAA;AAEI,QAAAA,KACIC;AAAA,UAAA;AAAA,UACI;AAAA,UACA;AAAA,QACA;AAAA,MAER;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -8,7 +8,7 @@ import { B as L } from "./typography.Cd386LC_.js";
|
|
|
8
8
|
import { R } from "./refresh.DG69D4K2.js";
|
|
9
9
|
import { u as N } from "./index.CPOlyau9.js";
|
|
10
10
|
import { u as C } from "./use-dynamic-date-fns-locale.DGqfz_nF.js";
|
|
11
|
-
import { a as O } from "./button-actions.
|
|
11
|
+
import { a as O } from "./button-actions.B332AjJp.js";
|
|
12
12
|
import { n as w } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
13
13
|
import "../assets/title-details.css";
|
|
14
14
|
function j(r, t) {
|
|
@@ -116,4 +116,4 @@ const ot = J.exports;
|
|
|
116
116
|
export {
|
|
117
117
|
ot as T
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=title-details.
|
|
119
|
+
//# sourceMappingURL=title-details.cMpPBjrP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title-details.BhR2nis-.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js","../../src/components/internal/title-details/title-details.vue"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(laterDate, earlierDate) {\n return +toDate(laterDate) - +toDate(earlierDate);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n","import { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { differenceInMilliseconds } from \"./differenceInMilliseconds.js\";\n\n/**\n * The {@link differenceInSeconds} function options.\n */\n\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of seconds\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport function differenceInSeconds(laterDate, earlierDate, options) {\n const diff = differenceInMilliseconds(laterDate, earlierDate) / 1000;\n return getRoundingMethod(options?.roundingMethod)(diff);\n}\n\n// Fallback for modularized imports:\nexport default differenceInSeconds;\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { minutesInDay, minutesInMonth } from \"./constants.js\";\nimport { differenceInMonths } from \"./differenceInMonths.js\";\nimport { differenceInSeconds } from \"./differenceInSeconds.js\";\n\n/**\n * The {@link formatDistance} function options.\n */\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistance(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n const minutesInAlmostTwoDays = 2520;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) throw new RangeError(\"Invalid time value\");\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const seconds = differenceInSeconds(earlierDate_, laterDate_);\n const offsetInSeconds =\n (getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_)) /\n 1000;\n const minutes = Math.round((seconds - offsetInSeconds) / 60);\n let months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options?.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance(\"lessThanXSeconds\", 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance(\"lessThanXSeconds\", 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance(\"lessThanXSeconds\", 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance(\"halfAMinute\", 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance(\"aboutXHours\", 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < minutesInDay) {\n const hours = Math.round(minutes / 60);\n return locale.formatDistance(\"aboutXHours\", hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < minutesInAlmostTwoDays) {\n return locale.formatDistance(\"xDays\", 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < minutesInMonth) {\n const days = Math.round(minutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < minutesInMonth * 2) {\n months = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"aboutXMonths\", months, localizeOptions);\n }\n\n months = differenceInMonths(earlierDate_, laterDate_);\n\n // 2 months up to 12 months\n if (months < 12) {\n const nearestMonth = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"xMonths\", nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const monthsSinceStartOfYear = months % 12;\n const years = Math.trunc(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance(\"aboutXYears\", years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance(\"overXYears\", years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance(\"almostXYears\", years + 1, localizeOptions);\n }\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistance;\n","import { constructNow } from \"./constructNow.js\";\n\nimport { formatDistance } from \"./formatDistance.js\";\n\n/**\n * The {@link formatDistanceToNow} function options.\n */\n\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param date - The given date\n * @param options - The object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistanceToNow(date, options) {\n return formatDistance(date, constructNow(date), options);\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceToNow;\n","<template>\n <div class=\"b-title-details__container\">\n <bento-typography v-if=\"description || hasSlot('description')\" class=\"b-title-details__description\" el=\"div\">\n <slot name=\"description\">{{ description }}</slot>\n </bento-typography>\n <div v-if=\"lastUpdatedDate\" class=\"b-title-details__timestamp-section\">\n <bento-typography class=\"b-title-details__timestamp\" el=\"div\">\n <time :datetime=\"lastUpdatedDateTime\">{{ timestamp }}</time>\n </bento-typography>\n <bento-loading-button\n v-if=\"reloadButton\"\n variant=\"tertiary\"\n :state=\"reloadButton.state\"\n @click=\"reloadButton.event\"\n ><template #iconLeft><reload-icon aria-hidden=\"true\" /></template\n >{{ reloadButton.title }}</bento-loading-button\n >\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { useDynamicDateFnsLocale, useHasSlot } from '@/composables';\n import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';\n import { BentoTypography } from '@/components/typography';\n import { BentoLoadingButton } from '@/components/button';\n import ReloadIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import { useI18n } from '@/utils/ts/i18n';\n import type { TitleDetailsProps } from './title-details.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n description: { default: null },\n lastUpdated: { default: null },\n reloadButton: { default: null }\n});\n\n const lastUpdatedDate = computed(() => {\n if (!props.lastUpdated) {\n return null;\n }\n\n const date = props.lastUpdated instanceof Date ? props.lastUpdated : new Date(props.lastUpdated);\n return Number.isNaN(date.getTime()) ? null : date;\n });\n\n const activeLocale = computed(() => (lastUpdatedDate.value ? locale.value : ''));\n const dateLocale = useDynamicDateFnsLocale(activeLocale);\n const lastUpdatedDateTime = computed(() => lastUpdatedDate.value?.toISOString());\n\n const timestamp = computed(() =>\n lastUpdatedDate.value\n ? t('lastUpdated', {\n date: formatDistanceToNow(lastUpdatedDate.value, {\n locale: dateLocale.value,\n addSuffix: true,\n }),\n })\n : null\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal component for descriptions and last-updated metadata.\n *\n * @example\n * import { TitleDetails } from '@/internal';\n *\n * export default {\n * components: { TitleDetails },\n * template: `\n * <title-details description=\"content description\" :last-updated=\"new Date()\" />\n * `\n * }\n * @slot description - The description content. Overrides the `description` prop.\n * @property description - Text showed under the title.\n * @property lastUpdated - JavaScript \"Date\" object for when the content was last updated.\n * @property reloadButton - Reload button which shows next to the header's timestamp.\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./title-details.scss\" />\n"],"names":["differenceInMilliseconds","laterDate","earlierDate","toDate","differenceInSeconds","options","diff","getRoundingMethod","formatDistance","defaultOptions","getDefaultOptions","locale","enUS","minutesInAlmostTwoDays","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","minutesInDay","hours","minutesInMonth","days","differenceInMonths","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","date","constructNow","__default__","messages","t","useI18n","lastUpdatedDate","computed","props","activeLocale","dateLocale","useDynamicDateFnsLocale","lastUpdatedDateTime","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;AAwBO,SAAAA,EAAAC,GAAAC,GAAA;AACP,SAAA,CAAAC,EAAAF,CAAA,IAAA,CAAAE,EAAAD,CAAA;AACA;ACIO,SAAAE,EAAAH,GAAAC,GAAAG,GAAA;AACP,QAAAC,IAAAN,EAAAC,GAAAC,C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,MAAAR,EAAA,QAAA,CAAA,IAAA,OAAAA;AAAA,IAA6C,CAAA,GAGjDS,IAAAF,EAAA,MAAAD,EAAA,QAAA7B,EAAA,QAAA,EAAA,GACAiC,IAAAC,EAAAF,CAAA,GACAG,IAAAL,EAAA,MAAAD,EAAA,OAAA,YAAA,CAAA,GAEAO,IAAAN;AAAA,MAAkB,MAAAD,EAAA,QAAAF,EAAA,eAAA;AAAA,QAES,MAAAL,EAAAO,EAAA,OAAA;AAAA,UACoC,QAAAI,EAAA;AAAA,UAC1B,WAAA;AAAA,QACR,CAAA;AAAA,MACd,CAAA,IAAA;AAAA,IAEL,GAGVI,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"title-details.cMpPBjrP.js","sources":["../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js","../../src/components/internal/title-details/title-details.vue"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(laterDate, earlierDate) {\n return +toDate(laterDate) - +toDate(earlierDate);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n","import { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { differenceInMilliseconds } from \"./differenceInMilliseconds.js\";\n\n/**\n * The {@link differenceInSeconds} function options.\n */\n\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of seconds\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport function differenceInSeconds(laterDate, earlierDate, options) {\n const diff = differenceInMilliseconds(laterDate, earlierDate) / 1000;\n return getRoundingMethod(options?.roundingMethod)(diff);\n}\n\n// Fallback for modularized imports:\nexport default differenceInSeconds;\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { minutesInDay, minutesInMonth } from \"./constants.js\";\nimport { differenceInMonths } from \"./differenceInMonths.js\";\nimport { differenceInSeconds } from \"./differenceInSeconds.js\";\n\n/**\n * The {@link formatDistance} function options.\n */\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistance(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n const minutesInAlmostTwoDays = 2520;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) throw new RangeError(\"Invalid time value\");\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const seconds = differenceInSeconds(earlierDate_, laterDate_);\n const offsetInSeconds =\n (getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_)) /\n 1000;\n const minutes = Math.round((seconds - offsetInSeconds) / 60);\n let months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options?.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance(\"lessThanXSeconds\", 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance(\"lessThanXSeconds\", 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance(\"lessThanXSeconds\", 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance(\"halfAMinute\", 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance(\"aboutXHours\", 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < minutesInDay) {\n const hours = Math.round(minutes / 60);\n return locale.formatDistance(\"aboutXHours\", hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < minutesInAlmostTwoDays) {\n return locale.formatDistance(\"xDays\", 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < minutesInMonth) {\n const days = Math.round(minutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < minutesInMonth * 2) {\n months = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"aboutXMonths\", months, localizeOptions);\n }\n\n months = differenceInMonths(earlierDate_, laterDate_);\n\n // 2 months up to 12 months\n if (months < 12) {\n const nearestMonth = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"xMonths\", nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const monthsSinceStartOfYear = months % 12;\n const years = Math.trunc(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance(\"aboutXYears\", years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance(\"overXYears\", years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance(\"almostXYears\", years + 1, localizeOptions);\n }\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistance;\n","import { constructNow } from \"./constructNow.js\";\n\nimport { formatDistance } from \"./formatDistance.js\";\n\n/**\n * The {@link formatDistanceToNow} function options.\n */\n\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param date - The given date\n * @param options - The object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistanceToNow(date, options) {\n return formatDistance(date, constructNow(date), options);\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceToNow;\n","<template>\n <div class=\"b-title-details__container\">\n <bento-typography v-if=\"description || hasSlot('description')\" class=\"b-title-details__description\" el=\"div\">\n <slot name=\"description\">{{ description }}</slot>\n </bento-typography>\n <div v-if=\"lastUpdatedDate\" class=\"b-title-details__timestamp-section\">\n <bento-typography class=\"b-title-details__timestamp\" el=\"div\">\n <time :datetime=\"lastUpdatedDateTime\">{{ timestamp }}</time>\n </bento-typography>\n <bento-loading-button\n v-if=\"reloadButton\"\n variant=\"tertiary\"\n :state=\"reloadButton.state\"\n @click=\"reloadButton.event\"\n ><template #iconLeft><reload-icon aria-hidden=\"true\" /></template\n >{{ reloadButton.title }}</bento-loading-button\n >\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { useDynamicDateFnsLocale, useHasSlot } from '@/composables';\n import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';\n import { BentoTypography } from '@/components/typography';\n import { BentoLoadingButton } from '@/components/button';\n import ReloadIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import { useI18n } from '@/utils/ts/i18n';\n import type { TitleDetailsProps } from './title-details.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n description: { default: null },\n lastUpdated: { default: null },\n reloadButton: { default: null }\n});\n\n const lastUpdatedDate = computed(() => {\n if (!props.lastUpdated) {\n return null;\n }\n\n const date = props.lastUpdated instanceof Date ? props.lastUpdated : new Date(props.lastUpdated);\n return Number.isNaN(date.getTime()) ? null : date;\n });\n\n const activeLocale = computed(() => (lastUpdatedDate.value ? locale.value : ''));\n const dateLocale = useDynamicDateFnsLocale(activeLocale);\n const lastUpdatedDateTime = computed(() => lastUpdatedDate.value?.toISOString());\n\n const timestamp = computed(() =>\n lastUpdatedDate.value\n ? t('lastUpdated', {\n date: formatDistanceToNow(lastUpdatedDate.value, {\n locale: dateLocale.value,\n addSuffix: true,\n }),\n })\n : null\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal component for descriptions and last-updated metadata.\n *\n * @example\n * import { TitleDetails } from '@/internal';\n *\n * export default {\n * components: { TitleDetails },\n * template: `\n * <title-details description=\"content description\" :last-updated=\"new Date()\" />\n * `\n * }\n * @slot description - The description content. Overrides the `description` prop.\n * @property description - Text showed under the title.\n * @property lastUpdated - JavaScript \"Date\" object for when the content was last updated.\n * @property reloadButton - Reload button which shows next to the header's timestamp.\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./title-details.scss\" />\n"],"names":["differenceInMilliseconds","laterDate","earlierDate","toDate","differenceInSeconds","options","diff","getRoundingMethod","formatDistance","defaultOptions","getDefaultOptions","locale","enUS","minutesInAlmostTwoDays","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","minutesInDay","hours","minutesInMonth","days","differenceInMonths","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","date","constructNow","__default__","messages","t","useI18n","lastUpdatedDate","computed","props","activeLocale","dateLocale","useDynamicDateFnsLocale","lastUpdatedDateTime","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;AAwBO,SAAAA,EAAAC,GAAAC,GAAA;AACP,SAAA,CAAAC,EAAAF,CAAA,IAAA,CAAAE,EAAAD,CAAA;AACA;ACIO,SAAAE,EAAAH,GAAAC,GAAAG,GAAA;AACP,QAAAC,IAAAN,EAAAC,GAAAC,CAAA,IAAA;AACA,SAAAK,EAAAF,GAAA,cAAA,EAAAC,CAAA;AACA;AC0DO,SAAAE,EAAAP,GAAAC,GAAAG,GAAA;AACP,QAAAI,IAAAC,EAAA,GACAC,IAAAN,GAAA,UAAAI,EAAA,UAAAG,GACAC,IAAA,MAEAC,IAAAC,EAAAd,GAAAC,CAAA;AAEA,MAAA,MAAAY,CAAA,EAAA,OAAA,IAAA,WAAA,oBAAA;AAEA,QAAAE,IAAA,OAAA,OAAA,CAAA,GAAAX,GAAA;AAAA,IACA,WAAAA,GAAA;AAAA,IACA,YAAAS;AAAA,EACA,CAAA,GAEA,CAAAG,GAAAC,CAAA,IAAAC;AAAA,IACAd,GAAA;AAAA,IACA,GAAAS,IAAA,IAAA,CAAAZ,GAAAD,CAAA,IAAA,CAAAA,GAAAC,CAAA;AAAA,EACA,GAEAkB,IAAAhB,EAAAc,GAAAD,CAAA,GACAI,KACAC,EAAAJ,CAAA,IACAI,EAAAL,CAAA,KACA,KACAM,IAAA,KAAA,OAAAH,IAAAC,KAAA,EAAA;AACA,MAAAG;AAGA,MAAAD,IAAA;AACA,WAAAlB,GAAA,iBACAe,IAAA,IACAT,EAAA,eAAA,oBAAA,GAAAK,CAAA,IACAI,IAAA,KACAT,EAAA,eAAA,oBAAA,IAAAK,CAAA,IACAI,IAAA,KACAT,EAAA,eAAA,oBAAA,IAAAK,CAAA,IACAI,IAAA,KACAT,EAAA,eAAA,eAAA,GAAAK,CAAA,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AAD,CAAA,GAAA7B,CAAA;AACA;;;;;;;;;;;;;GCHI+B,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;iBAxDA,EAAA,GAAAC,GAAA,QAAA3B,EAAA,IAAA4B,EAAA,GAQAC,IAAAC,EAAA,MAAA;AACI,UAAA,CAAAC,EAAA;AACI,eAAA;AAGJ,YAAAR,IAAAQ,EAAA,uBAAA,OAAAA,EAAA,cAAA,IAAA,KAAAA,EAAA,WAAA;AACA,aAAA,OAAA,MAAAR,EAAA,QAAA,CAAA,IAAA,OAAAA;AAAA,IAA6C,CAAA,GAGjDS,IAAAF,EAAA,MAAAD,EAAA,QAAA7B,EAAA,QAAA,EAAA,GACAiC,IAAAC,EAAAF,CAAA,GACAG,IAAAL,EAAA,MAAAD,EAAA,OAAA,YAAA,CAAA,GAEAO,IAAAN;AAAA,MAAkB,MAAAD,EAAA,QAAAF,EAAA,eAAA;AAAA,QAES,MAAAL,EAAAO,EAAA,OAAA;AAAA,UACoC,QAAAI,EAAA;AAAA,UAC1B,WAAA;AAAA,QACR,CAAA;AAAA,MACd,CAAA,IAAA;AAAA,IAEL,GAGVI,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as S, computed as O, reactive as C, nextTick as y } from "vue";
|
|
2
2
|
import { l as a } from "./events.BQOQSSb7.js";
|
|
3
3
|
import { g as D } from "./generate-uid.DBWe4g6T.js";
|
|
4
|
-
import { c as g, a as R, P as B } from "./popper-container.
|
|
4
|
+
import { c as g, a as R, P as B } from "./popper-container.Co4j6qME.js";
|
|
5
5
|
import { V as I } from "./index.Cl4_42j5.js";
|
|
6
6
|
import { B as N } from "./typography.Cd386LC_.js";
|
|
7
7
|
import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
8
|
-
import { g as k } from "./focus-trap.
|
|
8
|
+
import { g as k } from "./focus-trap.BDpcWIxI.js";
|
|
9
9
|
import "../assets/tooltip.css";
|
|
10
10
|
const m = { ...g };
|
|
11
11
|
var x = /* @__PURE__ */ ((t) => (t.HIDDEN = "hidden", t))(x || {}), T = /* @__PURE__ */ ((t) => (t.ESCAPE = "Escape", t.ENTER = "Enter", t.ARROW_LEFT = "ArrowLeft", t.ARROW_UP = "ArrowUp", t.ARROW_RIGHT = "ArrowRight", t.ARROW_DOWN = "ArrowDown", t.PAGE_UP = "PageUp", t.PAGE_DOWN = "PageDown", t.END = "End", t.HOME = "Home", t.TAB = "Tab", t.F2 = "F2", t))(T || {});
|
|
@@ -186,4 +186,4 @@ export {
|
|
|
186
186
|
m as c,
|
|
187
187
|
x as d
|
|
188
188
|
};
|
|
189
|
-
//# sourceMappingURL=tooltip.
|
|
189
|
+
//# sourceMappingURL=tooltip.BeDzwoCN.js.map
|