@adyen/bento-vue2 1.94.0 → 1.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +296 -126
- 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/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date-time-picker.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/form-layout-group.css +1 -0
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.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/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
- package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
- package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
- package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
- package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
- package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
- package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
- package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
- package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
- package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
- package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
- package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
- package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
- package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
- package/dist/chunks/{calendar.CCUVI1IF.js → calendar.ofn3G6eW.js} +19 -19
- package/dist/chunks/{calendar.CCUVI1IF.js.map → calendar.ofn3G6eW.js.map} +1 -1
- package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
- package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
- package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
- package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
- package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
- package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.B3iCsNmb.js} +5 -5
- package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.B3iCsNmb.js.map} +1 -1
- package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
- package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
- package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
- package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.HFJcf8-_.js} +4 -4
- package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.HFJcf8-_.js.map} +1 -1
- package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
- package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
- package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BjfPUEoH.js} +4 -4
- package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BjfPUEoH.js.map} +1 -1
- package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Cua2Jxvq.js} +212 -212
- package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Cua2Jxvq.js.map} +1 -1
- package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.CYDTf6De.js} +90 -82
- package/dist/chunks/date-picker.CYDTf6De.js.map +1 -0
- package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.DGGvwRfn.js} +252 -271
- package/dist/chunks/date-range-picker.DGGvwRfn.js.map +1 -0
- package/dist/chunks/date-time-picker.CyNb-xDm.js +129 -0
- package/dist/chunks/date-time-picker.CyNb-xDm.js.map +1 -0
- package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
- package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
- package/dist/chunks/directive.BBWhsNtO.js +28 -0
- package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
- package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.CU1L7J87.js} +3 -3
- package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.CU1L7J87.js.map} +1 -1
- package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
- package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.C1qg52L9.js} +3 -3
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.C1qg52L9.js.map} +1 -1
- package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.BEurqT8m.js} +323 -323
- package/dist/chunks/dropdown.BEurqT8m.js.map +1 -0
- package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
- package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
- package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
- package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
- package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
- package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
- package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.gjMPoK6d.js} +19 -19
- package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.gjMPoK6d.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
- package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
- package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
- package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
- package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
- package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
- package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
- package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
- package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
- package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
- package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.B2Ok5KI1.js} +11 -11
- package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.B2Ok5KI1.js.map} +1 -1
- package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
- package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
- package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
- package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
- package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
- package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
- package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.viF49CQh.js} +20 -21
- package/dist/chunks/{input-field-password.C2ogXvbh.js.map → input-field-password.viF49CQh.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DnpTj7q5.js} +13 -14
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DnpTj7q5.js.map} +1 -1
- package/dist/chunks/{input-field.CRsU2NBh.js → input-field.D86PSAiu.js} +77 -74
- package/dist/chunks/input-field.D86PSAiu.js.map +1 -0
- package/dist/chunks/{input-time.BSrSAN3r.js → input-time.LyKZXnVO.js} +7 -8
- package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.LyKZXnVO.js.map} +1 -1
- package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
- package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
- package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
- package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
- package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
- package/dist/chunks/link.BpuCRgok.js.map +1 -0
- package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
- package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
- package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
- package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
- package/dist/chunks/{pagination.Jv60K59y.js → pagination.CJ3d1O_s.js} +3 -3
- package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.CJ3d1O_s.js.map} +1 -1
- package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
- package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
- package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
- package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
- package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
- package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
- package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
- package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
- package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.BvHhXdNu.js} +10 -11
- package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.BvHhXdNu.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BLF9iQOV.js → secondary-nav.BvbT8LXa.js} +5 -5
- package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.BvbT8LXa.js.map} +1 -1
- package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
- package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
- package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
- package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
- package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
- package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
- package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
- package/dist/chunks/{tab.t1v1GxSA.js → tab.YQXssvyU.js} +3 -3
- package/dist/chunks/{tab.t1v1GxSA.js.map → tab.YQXssvyU.js.map} +1 -1
- package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
- package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
- package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
- package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
- package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
- package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
- package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
- package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
- package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
- package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
- package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
- package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.txnml8sE.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.txnml8sE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.D7Ud6Ana.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.D7Ud6Ana.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +5 -0
- package/dist/date-time-picker.js.map +1 -0
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +3 -3
- 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 +5 -4
- package/dist/form-layout.js.map +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +273 -268
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- 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/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +160 -3
- package/package.json +7 -7
- package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
- package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
- package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
- package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
- package/dist/chunks/directive.Bfr4fuOy.js +0 -23
- package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
- package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
- package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
- package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
- package/dist/chunks/header-meta._l0IV3jf.js +0 -248
- package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
- package/dist/chunks/link.DB5g6d48.js.map +0 -1
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
- package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, toRefs as r, computed as l, onMounted as c } from "vue";
|
|
2
2
|
import { B as u } from "./typography.C8lPlsbD.js";
|
|
3
|
-
import { b as _ } from "./button.
|
|
4
|
-
import { B as d } from "./button-actions.
|
|
3
|
+
import { b as _ } from "./button.DITA6YtS.js";
|
|
4
|
+
import { B as d } from "./button-actions.D1jRC1fs.js";
|
|
5
5
|
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
6
|
import "../assets/footer-actions.css";
|
|
7
7
|
const p = {}, g = /* @__PURE__ */ i({
|
|
@@ -93,4 +93,4 @@ const w = b.exports;
|
|
|
93
93
|
export {
|
|
94
94
|
w as F
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=footer-actions.
|
|
96
|
+
//# sourceMappingURL=footer-actions.CZE9dcmA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-actions.
|
|
1
|
+
{"version":3,"file":"footer-actions.CZE9dcmA.js","sources":["../../src/components/internal/footer-actions/footer-actions.vue"],"sourcesContent":["<template>\n <div class=\"b-footer-actions\">\n <div class=\"b-footer-actions__wrapper\">\n <bento-typography v-if=\"actionsLabel\" class=\"b-footer-actions__label\" el=\"span\" variant=\"body\" stronger>\n {{ actionsLabel }}\n </bento-typography>\n\n <bento-button-actions\n v-if=\"alignedActions.leftAligned\"\n class=\"b-footer-actions__left-group\"\n :actions=\"alignedActions.leftAligned\"\n layout=\"buttons-start\"\n ></bento-button-actions>\n\n <bento-button-actions\n class=\"b-footer-actions__right-group\"\n :actions=\"alignedActions.rightAligned\"\n layout=\"buttons-end\"\n ></bento-button-actions>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import { computed, onMounted, type PropType, toRefs } from 'vue';\n import { BentoButtonActions, type BentoButtonActionsList, BentoButtonVariant } from '@/components/button';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n });\n\n const { actions, destructiveActions } = toRefs(props);\n\n const alignedActions = computed(() => {\n const rightAlignedButtons =\n actions.value.length < 3 ? actions.value : actions.value.slice(0, actions.value.length - 1);\n\n // Add red color to the 1-st Action button\n rightAlignedButtons[0].critical = destructiveActions.value || rightAlignedButtons[0].critical;\n\n return {\n leftAligned:\n actions.value.length === 3\n ? [\n {\n ...actions.value[actions.value.length - 1],\n variant: BentoButtonVariant.SECONDARY,\n },\n ]\n : null,\n rightAligned: [...rightAlignedButtons],\n };\n });\n\n onMounted(() => {\n if (props.actions && props.actions.length > 3) {\n throw new Error('Not more than 3 action buttons may be provided to Bento Modal default variant');\n }\n\n if (props.actionsLabel && props.actions && props.actions.length > 2) {\n throw new Error(\n 'Not more than 2 action buttons may be provided with actions label to Bento Modal default variant'\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the logic of displaying actions in default Modal and Sidepanel\n\n * @example\n * import { FooterActions } from '@/components/internal/footer-actions';\n *\n * export default {\n * components: { FooterActions },\n * template: `\n * <footer-actions :actions=\"BentoButtonActionsList\" actions-label=\"Label\" :destructive-actions=\"true\" />\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./footer-actions.scss\" />\n"],"names":["__default__","actions","destructiveActions","toRefs","props","alignedActions","computed","rightAlignedButtons","BentoButtonVariant","onMounted"],"mappings":";;;;;;AA+HI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAlDA,EAAA,SAAAC,GAAA,oBAAAC,EAAA,IAAAC,EAAAC,CAAA,GAEAC,IAAAC,EAAA,MAAA;AACI,YAAAC,IAAAN,EAAA,MAAA,SAAA,IAAAA,EAAA,QAAAA,EAAA,MAAA,MAAA,GAAAA,EAAA,MAAA,SAAA,CAAA;AAIA,aAAAM,EAAA,CAAA,EAAA,WAAAL,EAAA,SAAAK,EAAA,CAAA,EAAA,UAEA;AAAA,QAAO,aAAAN,EAAA,MAAA,WAAA,IAAA;AAAA,UAGO;AAAA,YACI,GAAAA,EAAA,MAAAA,EAAA,MAAA,SAAA,CAAA;AAAA,YAC6C,SAAAO,EAAA;AAAA,UACb;AAAA,QAChC,IAAA;AAAA,QAEJ,cAAA,CAAA,GAAAD,CAAA;AAAA,MAC2B;AAAA,IACzC,CAAA;AAGJ,WAAAE,EAAA,MAAA;AACI,UAAAL,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,+EAAA;AAGJ,UAAAA,EAAA,gBAAAA,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAAA,IAER,CAAA;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as n, computed as a } from "vue";
|
|
2
|
+
import { E as l } from "./error-message.CyERcfdt.js";
|
|
3
|
+
import { n as p } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
4
|
+
import "../assets/form-layout-group.css";
|
|
5
|
+
const t = [
|
|
6
|
+
"100",
|
|
7
|
+
"50",
|
|
8
|
+
"33",
|
|
9
|
+
"25",
|
|
10
|
+
"66-33",
|
|
11
|
+
"33-66",
|
|
12
|
+
"75-25",
|
|
13
|
+
"25-75",
|
|
14
|
+
"50-50",
|
|
15
|
+
"33-33-33"
|
|
16
|
+
], _ = {}, c = /* @__PURE__ */ n({
|
|
17
|
+
..._,
|
|
18
|
+
__name: "form-layout-group",
|
|
19
|
+
props: {
|
|
20
|
+
/**
|
|
21
|
+
* The layout of the pair group of components.
|
|
22
|
+
* This will render the components within the width of the proportions.
|
|
23
|
+
* Only two columns are available.
|
|
24
|
+
*
|
|
25
|
+
* If only one value is entered, then it will assume there's only one child in the group.
|
|
26
|
+
* If two values are entered, the first value will be use for the first child and the second
|
|
27
|
+
* value for the second child.
|
|
28
|
+
*
|
|
29
|
+
* If the value entered is not listed in the example
|
|
30
|
+
* list below it will use 100% by default.
|
|
31
|
+
* @example
|
|
32
|
+
* '33-33-33'
|
|
33
|
+
* '50-50'
|
|
34
|
+
* '25-75'
|
|
35
|
+
* '75-25'
|
|
36
|
+
* '33-66'
|
|
37
|
+
* '66-33'
|
|
38
|
+
* '25'
|
|
39
|
+
* '33'
|
|
40
|
+
* '50'
|
|
41
|
+
* '100'
|
|
42
|
+
*/
|
|
43
|
+
layout: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "100",
|
|
46
|
+
validator: (s) => t.includes(s)
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* The error message to be displayed for the whole group.
|
|
50
|
+
*
|
|
51
|
+
* If set, individual error messages for all components within this group will be hidden.
|
|
52
|
+
* This is particularly useful for field pairs where a single group error is displayed.
|
|
53
|
+
*/
|
|
54
|
+
errorMessage: { type: String, default: null }
|
|
55
|
+
},
|
|
56
|
+
setup(s) {
|
|
57
|
+
const o = s, r = 100, e = a(
|
|
58
|
+
() => t.includes(o.layout) ? o.layout : r
|
|
59
|
+
), u = a(() => ({
|
|
60
|
+
// Transform into column if the layout is unsupported
|
|
61
|
+
"b-form-layout-group--column": !t.includes(o.layout),
|
|
62
|
+
// Assings the correct layout class
|
|
63
|
+
[`b-form-layout-group--${e.value}`]: !0,
|
|
64
|
+
"b-form-layout-group--group-error-messages": !!o.errorMessage
|
|
65
|
+
}));
|
|
66
|
+
return { __sfc: !0, DEFAULT_PROPORTION: r, props: o, computedLayout: e, conditionalClasses: u, ErrorMessage: l };
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var m = function() {
|
|
70
|
+
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
71
|
+
return r("div", { staticClass: "b-form-layout-group", class: e.conditionalClasses }, [o._t("default"), o.errorMessage ? r(e.ErrorMessage, { staticClass: "b-form-layout-group__error-message", attrs: { "error-message": o.errorMessage } }) : o._e()], 2);
|
|
72
|
+
}, i = [], f = /* @__PURE__ */ p(
|
|
73
|
+
c,
|
|
74
|
+
m,
|
|
75
|
+
i,
|
|
76
|
+
!1,
|
|
77
|
+
null,
|
|
78
|
+
"6fb88d9e"
|
|
79
|
+
);
|
|
80
|
+
const v = f.exports;
|
|
81
|
+
export {
|
|
82
|
+
v as B
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=form-layout-group.zE6TNlzD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-layout-group.zE6TNlzD.js","sources":["../../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../src/components/form-layout/components/form-layout-group/form-layout-group.vue"],"sourcesContent":["export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n <error-message v-if=\"!!errorMessage\" :error-message=\"errorMessage\" class=\"b-form-layout-group__error-message\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType } from 'vue';\n import { ErrorMessage } from '@/internal';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two columns are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n\n /**\n * The error message to be displayed for the whole group.\n *\n * If set, individual error messages for all components within this group will be hidden.\n * This is particularly useful for field pairs where a single group error is displayed.\n */\n errorMessage: { type: String, default: null },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n 'b-form-layout-group--group-error-messages': !!props.errorMessage,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n"],"names":["BentoLayoutGroupProportions","__default__","DEFAULT_PROPORTION","computedLayout","computed","props","conditionalClasses"],"mappings":";;;;AAYO,MAAAA,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCkEIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA5EAC,IAAA,KA0CAC,IAAAC;AAAA,MAAuB,MAAAJ,EAAA,SAAAK,EAAA,MAAA,IAAAA,EAAA,SAAAH;AAAA,IACiD,GAGxEI,IAAAF,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAJ,EAAA,SAAAK,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAF,EAAA,KAAA,EAAA,GAAA;AAAA,MAE/B,6CAAA,CAAA,CAAAE,EAAA;AAAA,IACG,EAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { defineComponent as n, useSlots as c, computed as i, provide as f, toRef as m } from "vue";
|
|
2
|
+
import { B as p } from "./alert.B4bHCE8V.js";
|
|
3
|
+
import { u } from "./use-has-slot.C9lQZ6nz.js";
|
|
4
|
+
import { F as y } from "./form-layout.types.bZW9iR6_.js";
|
|
5
|
+
import { n as _ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { B as d, a as v } from "./typography.C8lPlsbD.js";
|
|
7
|
+
import { u as g } from "./index.B6WW_F-J.js";
|
|
8
|
+
import "../assets/form-layout-title.css";
|
|
9
|
+
const h = {}, b = /* @__PURE__ */ n({
|
|
10
|
+
...h,
|
|
11
|
+
__name: "form-layout",
|
|
12
|
+
props: {
|
|
13
|
+
/**
|
|
14
|
+
* Renders the form layout as an HTML `form`
|
|
15
|
+
*/
|
|
16
|
+
form: { type: Boolean, default: !1 },
|
|
17
|
+
/**
|
|
18
|
+
* Sets the state of the form and its fields to
|
|
19
|
+
* a read only status.
|
|
20
|
+
*/
|
|
21
|
+
loading: { type: Boolean, default: !1 }
|
|
22
|
+
},
|
|
23
|
+
emits: ["submit"],
|
|
24
|
+
setup(o, { emit: t }) {
|
|
25
|
+
const s = o, e = c(), r = u(e), a = i(() => s.form ? "form" : "div"), l = i(() => r("actions-left") || r("actions-right"));
|
|
26
|
+
return f(y, m(s, "loading")), { __sfc: !0, slots: e, hasSlot: r, emit: t, props: s, formLayoutElement: a, hasActions: l, BentoAlert: p };
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var F = function() {
|
|
30
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
31
|
+
return s(e.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" }, on: { submit: function(r) {
|
|
32
|
+
return e.emit("submit", r);
|
|
33
|
+
} } }, [e.hasSlot("error-message") ? s(e.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
34
|
+
return [t._t("error-message")];
|
|
35
|
+
}, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), e.hasActions ? s("div", { staticClass: "b-form-layout__actions-container" }, [s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
|
|
36
|
+
}, q = [], S = /* @__PURE__ */ _(
|
|
37
|
+
b,
|
|
38
|
+
F,
|
|
39
|
+
q,
|
|
40
|
+
!1,
|
|
41
|
+
null,
|
|
42
|
+
"b895dc37"
|
|
43
|
+
);
|
|
44
|
+
const J = S.exports, B = ["warning", "critical", "highlight", "success"], T = {}, C = /* @__PURE__ */ n({
|
|
45
|
+
...T,
|
|
46
|
+
__name: "form-layout-field-tip",
|
|
47
|
+
props: {
|
|
48
|
+
/**
|
|
49
|
+
* Type of a alert; set a distinctive icon and color. Defaults to highlight.
|
|
50
|
+
* @values highlight, success, critical, warning
|
|
51
|
+
*/
|
|
52
|
+
type: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "highlight",
|
|
55
|
+
validator: (o) => B.includes(o)
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Unique identifier to the form field. Used for accessibility.
|
|
59
|
+
*/
|
|
60
|
+
id: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: void 0
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
setup(o) {
|
|
66
|
+
const t = c(), s = u(t);
|
|
67
|
+
return { __sfc: !0, slots: t, hasSlot: s, BentoAlert: p };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var $ = function() {
|
|
71
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
72
|
+
return s("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), e.hasSlot("message") ? s(e.BentoAlert, { attrs: { id: t.id, variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
73
|
+
return [t._t("message")];
|
|
74
|
+
}, proxy: !0 }], null, !0) }) : t._e()], 2);
|
|
75
|
+
}, A = [], R = /* @__PURE__ */ _(
|
|
76
|
+
C,
|
|
77
|
+
$,
|
|
78
|
+
A,
|
|
79
|
+
!1,
|
|
80
|
+
null,
|
|
81
|
+
"47d36a49"
|
|
82
|
+
);
|
|
83
|
+
const M = R.exports, x = {
|
|
84
|
+
"de-DE": {
|
|
85
|
+
requiredFields: "Alle Felder sind erforderlich."
|
|
86
|
+
},
|
|
87
|
+
"en-GB": {
|
|
88
|
+
requiredFields: "All fields are required."
|
|
89
|
+
},
|
|
90
|
+
"en-US": {
|
|
91
|
+
requiredFields: "All fields are required."
|
|
92
|
+
},
|
|
93
|
+
"es-ES": {
|
|
94
|
+
requiredFields: "Todos los campos son obligatorios."
|
|
95
|
+
},
|
|
96
|
+
"es-MX": {
|
|
97
|
+
requiredFields: "Todos los campos son obligatorios."
|
|
98
|
+
},
|
|
99
|
+
"fr-FR": {
|
|
100
|
+
requiredFields: "Tous les champs sont obligatoires."
|
|
101
|
+
},
|
|
102
|
+
"it-IT": {
|
|
103
|
+
requiredFields: "Tutti i campi sono obbligatori."
|
|
104
|
+
},
|
|
105
|
+
"ja-JP": {
|
|
106
|
+
requiredFields: "すべてのフィールドは必須です。"
|
|
107
|
+
},
|
|
108
|
+
"pt-BR": {
|
|
109
|
+
requiredFields: "Todos os campos são obrigatórios."
|
|
110
|
+
},
|
|
111
|
+
"zh-CN": {
|
|
112
|
+
requiredFields: "所有字段均为必填项。"
|
|
113
|
+
}
|
|
114
|
+
}, L = {
|
|
115
|
+
name: "bento-form-layout-title",
|
|
116
|
+
i18n: { messages: x }
|
|
117
|
+
}, E = /* @__PURE__ */ n({
|
|
118
|
+
...L,
|
|
119
|
+
props: {
|
|
120
|
+
/**
|
|
121
|
+
* Defines if the Form Layout title is
|
|
122
|
+
* a "section" or a "subsection".
|
|
123
|
+
* Default is "section" (false). Turn into "true" for "subsection"
|
|
124
|
+
*/
|
|
125
|
+
subsection: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: !1
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* Sets the HTML DOM element.
|
|
131
|
+
* @values h1, h2, h3, h4, h5, h6, div, p, span
|
|
132
|
+
*/
|
|
133
|
+
el: {
|
|
134
|
+
type: d.props.el.type,
|
|
135
|
+
required: !0,
|
|
136
|
+
validator: (o) => Object.values(v).includes(o)
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Defines if the Form Layout title displays
|
|
140
|
+
* a message indicating that all fields are required.
|
|
141
|
+
*/
|
|
142
|
+
allFieldsRequired: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
setup(o) {
|
|
148
|
+
const t = o, s = c(), { t: e } = g(), r = i(() => !t.subsection), a = u(s), l = i(() => ({
|
|
149
|
+
"b-form-layout-title--subsection": t.subsection
|
|
150
|
+
}));
|
|
151
|
+
return { __sfc: !0, slots: s, t: e, props: t, isSection: r, hasSlot: a, conditionalClasses: l, BentoTypography: d };
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
var O = function() {
|
|
155
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
156
|
+
return s("div", { staticClass: "b-form-layout-title", class: e.conditionalClasses }, [s(e.BentoTypography, { attrs: { el: t.el, variant: "title", medium: e.isSection } }, [t._t("default")], 2), e.hasSlot("description") || t.allFieldsRequired ? s(e.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description"), t.allFieldsRequired ? [t._v(" " + t._s(e.hasSlot("description") ? ` ${e.t("requiredFields")}` : e.t("requiredFields")) + " ")] : t._e()], 2) : t._e()], 1);
|
|
157
|
+
}, I = [], N = /* @__PURE__ */ _(
|
|
158
|
+
E,
|
|
159
|
+
O,
|
|
160
|
+
I,
|
|
161
|
+
!1,
|
|
162
|
+
null,
|
|
163
|
+
"8ee24e3a"
|
|
164
|
+
);
|
|
165
|
+
const U = N.exports;
|
|
166
|
+
export {
|
|
167
|
+
M as a,
|
|
168
|
+
U as b,
|
|
169
|
+
J as f
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=form-layout-title.CXXdsiK5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-layout-title.CXXdsiK5.js","sources":["../../src/components/form-layout/form-layout.vue","../../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\" @submit=\"emit('submit', $event)\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits([\"submit\"]);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { type BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" :id=\"id\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { type PropType, useSlots } from 'vue';\n import {\n type BentoFormLayoutFieldTipTypeOption,\n BentoFormLayoutFieldTipTypeOptions,\n } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n /**\n * Unique identifier to the form field. Used for accessibility.\n */\n id: {\n type: String,\n default: undefined,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description') || allFieldsRequired\"\n class=\"b-form-layout-title__description\"\n el=\"span\"\n wide\n >\n <slot name=\"description\" />\n <template v-if=\"allFieldsRequired\">\n {{ hasSlot('description') ? ` ${t('requiredFields')}` : t('requiredFields') }}\n </template>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Defines if the Form Layout title displays\n * a message indicating that all fields are required.\n */\n allFieldsRequired: {\n type: Boolean,\n default: false,\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organize related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {\n name: 'bento-form-layout-title',\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$2","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$1","__default__","messages","t","useI18n","isSection","conditionalClasses"],"mappings":";;;;;;;;AAwFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;iBA5DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAiBAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC9CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GC+DHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCsDAa,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,MAAA,EAAA,UAAAC,EAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBApEAd,IAAAC,EAAA,GACA,EAAA,GAAAc,EAAA,IAAAC,EAAA,GAkCAC,IAAAZ,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAkB,IAAAb,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { shallowRef as b, watch as x, defineComponent as M, ref as j, computed as h, useSlots as T } from "vue";
|
|
2
|
+
import { h as R, a as P } from "./button-actions.D1jRC1fs.js";
|
|
3
|
+
import { B as X } from "./popover.types.B9TXaqAt.js";
|
|
4
|
+
import "./index.Cl4_42j5.js";
|
|
5
|
+
import { p as z, B as y } from "./typography.C8lPlsbD.js";
|
|
6
|
+
import { g as C } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
+
import { u as B } from "./index.B6WW_F-J.js";
|
|
8
|
+
import { I as E } from "./info.CcMZ4aGg.js";
|
|
9
|
+
import { u as O } from "./use-bento-delayed-hover.D4rfUUOr.js";
|
|
10
|
+
import { n as S } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
11
|
+
import { u as w } from "./use-has-slot.C9lQZ6nz.js";
|
|
12
|
+
import { c as F } from "./constructNow.CK0ryPil.js";
|
|
13
|
+
import { t as I, d as L, n as $, k as g, j as N, o as D, p as u, g as H } from "./en-US.BK5uiAND.js";
|
|
14
|
+
import { d as k } from "./differenceInMonths.CpwVtHZX.js";
|
|
15
|
+
import { g as A } from "./getRoundingMethod.C3eaeGLR.js";
|
|
16
|
+
import { R as Y } from "./refresh.arF7jP-l.js";
|
|
17
|
+
import "../assets/header-meta.css";
|
|
18
|
+
const p = /* @__PURE__ */ Object.assign({
|
|
19
|
+
"../../../node_modules/date-fns/locale/de.js": () => import("./de.pvjpUJ1o.js"),
|
|
20
|
+
"../../../node_modules/date-fns/locale/en-GB.js": () => import("./en-GB.-Q7Oq-nY.js"),
|
|
21
|
+
"../../../node_modules/date-fns/locale/en-US.js": () => import("./en-US.BK5uiAND.js").then((n) => n.x),
|
|
22
|
+
"../../../node_modules/date-fns/locale/es.js": () => import("./es.2H4LvTyV.js"),
|
|
23
|
+
"../../../node_modules/date-fns/locale/fr.js": () => import("./fr.Cu0IIfBP.js"),
|
|
24
|
+
"../../../node_modules/date-fns/locale/it.js": () => import("./it.B65snrJA.js"),
|
|
25
|
+
"../../../node_modules/date-fns/locale/ja.js": () => import("./ja.xGVfFSzL.js"),
|
|
26
|
+
"../../../node_modules/date-fns/locale/pt-BR.js": () => import("./pt-BR.D9FuAQZm.js"),
|
|
27
|
+
"../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.Be4pa3-g.js")
|
|
28
|
+
});
|
|
29
|
+
function G(n) {
|
|
30
|
+
const e = b(void 0);
|
|
31
|
+
return x(
|
|
32
|
+
n,
|
|
33
|
+
async (t) => {
|
|
34
|
+
if (!t) {
|
|
35
|
+
e.value = void 0;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const a = (i) => `../../../node_modules/date-fns/locale/${i}.js`;
|
|
39
|
+
let o = a(t);
|
|
40
|
+
if (p[o] || (o = a(t.substring(0, 2))), p[o] || (o = a("en-US")), p[o])
|
|
41
|
+
try {
|
|
42
|
+
const i = await p[o]();
|
|
43
|
+
e.value = i.default;
|
|
44
|
+
} catch (i) {
|
|
45
|
+
z(`Failed to load date-fns locale: ${t}`, i);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{ immediate: !0 }
|
|
49
|
+
), e;
|
|
50
|
+
}
|
|
51
|
+
function W(n, e) {
|
|
52
|
+
return +I(n) - +I(e);
|
|
53
|
+
}
|
|
54
|
+
function J(n, e, t) {
|
|
55
|
+
const a = W(n, e) / 1e3;
|
|
56
|
+
return A(t == null ? void 0 : t.roundingMethod)(a);
|
|
57
|
+
}
|
|
58
|
+
function q(n, e, t) {
|
|
59
|
+
const a = H(), o = (t == null ? void 0 : t.locale) ?? a.locale ?? N, i = 2520, f = L(n, e);
|
|
60
|
+
if (isNaN(f)) throw new RangeError("Invalid time value");
|
|
61
|
+
const s = Object.assign({}, t, {
|
|
62
|
+
addSuffix: t == null ? void 0 : t.addSuffix,
|
|
63
|
+
comparison: f
|
|
64
|
+
}), [m, _] = $(
|
|
65
|
+
t == null ? void 0 : t.in,
|
|
66
|
+
...f > 0 ? [e, n] : [n, e]
|
|
67
|
+
), l = J(_, m), U = (g(_) - g(m)) / 1e3, r = Math.round((l - U) / 60);
|
|
68
|
+
let c;
|
|
69
|
+
if (r < 2)
|
|
70
|
+
return t != null && t.includeSeconds ? l < 5 ? o.formatDistance("lessThanXSeconds", 5, s) : l < 10 ? o.formatDistance("lessThanXSeconds", 10, s) : l < 20 ? o.formatDistance("lessThanXSeconds", 20, s) : l < 40 ? o.formatDistance("halfAMinute", 0, s) : l < 60 ? o.formatDistance("lessThanXMinutes", 1, s) : o.formatDistance("xMinutes", 1, s) : r === 0 ? o.formatDistance("lessThanXMinutes", 1, s) : o.formatDistance("xMinutes", r, s);
|
|
71
|
+
if (r < 45)
|
|
72
|
+
return o.formatDistance("xMinutes", r, s);
|
|
73
|
+
if (r < 90)
|
|
74
|
+
return o.formatDistance("aboutXHours", 1, s);
|
|
75
|
+
if (r < D) {
|
|
76
|
+
const d = Math.round(r / 60);
|
|
77
|
+
return o.formatDistance("aboutXHours", d, s);
|
|
78
|
+
} else {
|
|
79
|
+
if (r < i)
|
|
80
|
+
return o.formatDistance("xDays", 1, s);
|
|
81
|
+
if (r < u) {
|
|
82
|
+
const d = Math.round(r / D);
|
|
83
|
+
return o.formatDistance("xDays", d, s);
|
|
84
|
+
} else if (r < u * 2)
|
|
85
|
+
return c = Math.round(r / u), o.formatDistance("aboutXMonths", c, s);
|
|
86
|
+
}
|
|
87
|
+
if (c = k(_, m), c < 12) {
|
|
88
|
+
const d = Math.round(r / u);
|
|
89
|
+
return o.formatDistance("xMonths", d, s);
|
|
90
|
+
} else {
|
|
91
|
+
const d = c % 12, v = Math.trunc(c / 12);
|
|
92
|
+
return d < 3 ? o.formatDistance("aboutXYears", v, s) : d < 9 ? o.formatDistance("overXYears", v, s) : o.formatDistance("almostXYears", v + 1, s);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function K(n, e) {
|
|
96
|
+
return q(n, F(n), e);
|
|
97
|
+
}
|
|
98
|
+
const Q = {
|
|
99
|
+
"de-DE": {
|
|
100
|
+
moreInformation: "Weitere Informationen"
|
|
101
|
+
},
|
|
102
|
+
"en-GB": {
|
|
103
|
+
moreInformation: "More information"
|
|
104
|
+
},
|
|
105
|
+
"en-US": {
|
|
106
|
+
moreInformation: "More information"
|
|
107
|
+
},
|
|
108
|
+
"es-ES": {
|
|
109
|
+
moreInformation: "Más información"
|
|
110
|
+
},
|
|
111
|
+
"es-MX": {
|
|
112
|
+
moreInformation: "Más información"
|
|
113
|
+
},
|
|
114
|
+
"fr-FR": {
|
|
115
|
+
moreInformation: "Plus d'informations"
|
|
116
|
+
},
|
|
117
|
+
"it-IT": {
|
|
118
|
+
moreInformation: "Ulteriori informazioni"
|
|
119
|
+
},
|
|
120
|
+
"ja-JP": {
|
|
121
|
+
moreInformation: "詳細情報"
|
|
122
|
+
},
|
|
123
|
+
"pt-BR": {
|
|
124
|
+
moreInformation: "Mais informações"
|
|
125
|
+
},
|
|
126
|
+
"zh-CN": {
|
|
127
|
+
moreInformation: "更多信息"
|
|
128
|
+
}
|
|
129
|
+
}, V = {
|
|
130
|
+
i18n: { messages: Q }
|
|
131
|
+
}, Z = /* @__PURE__ */ M({
|
|
132
|
+
...V,
|
|
133
|
+
__name: "info-icon-with-popover",
|
|
134
|
+
props: {
|
|
135
|
+
/**
|
|
136
|
+
* Text showed in the popover on hover
|
|
137
|
+
*/
|
|
138
|
+
popoverText: { type: String, default: null },
|
|
139
|
+
/**
|
|
140
|
+
* Position the popover should take if space is available
|
|
141
|
+
*/
|
|
142
|
+
popoverPosition: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: "bottom-start",
|
|
145
|
+
validator: (n) => Object.values(X).includes(n)
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
setup(n) {
|
|
149
|
+
const { t: e } = B(), t = j(null), a = C("bento-info-icon-with-popover"), { isOpen: o, hoverEvents: i } = O();
|
|
150
|
+
return { __sfc: !0, t: e, targetElement: t, popoverId: a, isOpen: o, hoverEvents: i, BentoPopover: R, BentoTypography: y, InfoIcon: E };
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var ee = function() {
|
|
154
|
+
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
155
|
+
return t("div", e._g({ staticClass: "b-info-icon-with-popover", attrs: { tabindex: "0", "data-testid": "info-icon-with-popover" } }, a.hoverEvents), [t(a.InfoIcon, { ref: "targetElement", staticClass: "b-info-icon-with-popover__svg", attrs: { "aria-expanded": a.isOpen, "aria-describedby": a.popoverId, "svg-title": a.t("moreInformation") } }), a.targetElement ? t(a.BentoPopover, { attrs: { open: a.isOpen, "target-element": a.targetElement, position: e.popoverPosition, role: "tooltip", "fit-content": "", "disable-focus-trap": "" } }, [t(a.BentoTypography, [e._t("default", function() {
|
|
156
|
+
return [e.popoverText ? t("div", [e._v(" " + e._s(e.popoverText) + " ")]) : e._e()];
|
|
157
|
+
})], 2)], 1) : e._e()], 1);
|
|
158
|
+
}, te = [], ae = /* @__PURE__ */ S(
|
|
159
|
+
Z,
|
|
160
|
+
ee,
|
|
161
|
+
te,
|
|
162
|
+
!1,
|
|
163
|
+
null,
|
|
164
|
+
"4cb2adfc"
|
|
165
|
+
);
|
|
166
|
+
const Ue = ae.exports, oe = {
|
|
167
|
+
"de-DE": {
|
|
168
|
+
lastUpdated: "Letzte Aktualisierung: {date}"
|
|
169
|
+
},
|
|
170
|
+
"en-GB": {
|
|
171
|
+
lastUpdated: "Last updated: {date}"
|
|
172
|
+
},
|
|
173
|
+
"en-US": {
|
|
174
|
+
lastUpdated: "Last updated: {date}"
|
|
175
|
+
},
|
|
176
|
+
"es-ES": {
|
|
177
|
+
lastUpdated: "Última actualización: {date}"
|
|
178
|
+
},
|
|
179
|
+
"es-MX": {
|
|
180
|
+
lastUpdated: "Última actualización: {date}"
|
|
181
|
+
},
|
|
182
|
+
"fr-FR": {
|
|
183
|
+
lastUpdated: "Dernière mise à jour : le {date}"
|
|
184
|
+
},
|
|
185
|
+
"it-IT": {
|
|
186
|
+
lastUpdated: "Ultimo aggiornamento: {date}"
|
|
187
|
+
},
|
|
188
|
+
"ja-JP": {
|
|
189
|
+
lastUpdated: "最終更新日: {date}"
|
|
190
|
+
},
|
|
191
|
+
"pt-BR": {
|
|
192
|
+
lastUpdated: "Última atualização: {date}"
|
|
193
|
+
},
|
|
194
|
+
"zh-CN": {
|
|
195
|
+
lastUpdated: "最后更新时间:{date}"
|
|
196
|
+
}
|
|
197
|
+
}, ne = {
|
|
198
|
+
i18n: { messages: oe }
|
|
199
|
+
}, se = /* @__PURE__ */ M({
|
|
200
|
+
...ne,
|
|
201
|
+
__name: "header-meta",
|
|
202
|
+
props: {
|
|
203
|
+
description: { default: null },
|
|
204
|
+
lastUpdated: { default: null },
|
|
205
|
+
reloadButton: { default: null }
|
|
206
|
+
},
|
|
207
|
+
setup(n) {
|
|
208
|
+
const e = n, { t, locale: a } = B(), o = h(() => e.lastUpdated ? a.value : ""), i = G(o), f = h(
|
|
209
|
+
() => e.lastUpdated ? t("lastUpdated", {
|
|
210
|
+
date: K(e.lastUpdated, {
|
|
211
|
+
locale: i.value,
|
|
212
|
+
addSuffix: !0
|
|
213
|
+
})
|
|
214
|
+
}) : null
|
|
215
|
+
), s = T(), m = w(s);
|
|
216
|
+
return { __sfc: !0, t, locale: a, props: e, activeLocale: o, dateLocale: i, timestamp: f, slots: s, hasSlot: m, BentoTypography: y, BentoLoadingButton: P, ReloadIcon: Y };
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
var re = function() {
|
|
220
|
+
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
221
|
+
return t("div", { staticClass: "b-header-meta__container" }, [e.description || a.hasSlot("description") ? t(a.BentoTypography, { staticClass: "b-header-meta__description", attrs: { el: "div" } }, [e._t("description", function() {
|
|
222
|
+
return [e._v(e._s(e.description))];
|
|
223
|
+
})], 2) : e._e(), e.lastUpdated ? t("div", { staticClass: "b-header-meta__timestamp-section" }, [t(a.BentoTypography, { staticClass: "b-header-meta__timestamp", attrs: { el: "div" } }, [e._v(" " + e._s(a.timestamp) + " ")]), e.reloadButton ? t(a.BentoLoadingButton, { attrs: { variant: "tertiary", state: e.reloadButton.state }, on: { click: e.reloadButton.event }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
224
|
+
return [t(a.ReloadIcon, { attrs: { "aria-hidden": "true" } })];
|
|
225
|
+
}, proxy: !0 }], null, !1, 750518660) }, [e._v(e._s(e.reloadButton.title))]) : e._e()], 1) : e._e()], 1);
|
|
226
|
+
}, ie = [], de = /* @__PURE__ */ S(
|
|
227
|
+
se,
|
|
228
|
+
re,
|
|
229
|
+
ie,
|
|
230
|
+
!1,
|
|
231
|
+
null,
|
|
232
|
+
"0b8d63cc"
|
|
233
|
+
);
|
|
234
|
+
const be = de.exports;
|
|
235
|
+
export {
|
|
236
|
+
be as H,
|
|
237
|
+
Ue as I
|
|
238
|
+
};
|
|
239
|
+
//# sourceMappingURL=header-meta.6rZdOgXD.js.map
|