@adyen/bento-vue3 1.45.0 → 1.46.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 +4 -2
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.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/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- 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/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.DfOb4Pyx.js → accordion-item.BOftQTUm.js} +8 -8
- package/dist/chunks/{accordion-item.DfOb4Pyx.js.map → accordion-item.BOftQTUm.js.map} +1 -1
- package/dist/chunks/{action-bar.CmDQZkM2.js → action-bar.DHa6nS5J.js} +10 -10
- package/dist/chunks/{action-bar.CmDQZkM2.js.map → action-bar.DHa6nS5J.js.map} +1 -1
- package/dist/chunks/{alert.D1Ax6AnI.js → alert.BffQNg4e.js} +9 -9
- package/dist/chunks/{alert.D1Ax6AnI.js.map → alert.BffQNg4e.js.map} +1 -1
- package/dist/chunks/{avatar.B0-9jC6H.js → avatar.DqdDHXay.js} +3 -3
- package/dist/chunks/{avatar.B0-9jC6H.js.map → avatar.DqdDHXay.js.map} +1 -1
- package/dist/chunks/{base-button.DdNFlbgH.js → base-button.DgHMejMF.js} +9 -9
- package/dist/chunks/{base-button.DdNFlbgH.js.map → base-button.DgHMejMF.js.map} +1 -1
- package/dist/chunks/{base-modal.DbJYaHyG.js → base-modal.BP7bUB84.js} +13 -13
- package/dist/chunks/{base-modal.DbJYaHyG.js.map → base-modal.BP7bUB84.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js → button-actions-with-menu.DzQQlXXK.js} +8 -8
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js.map → button-actions-with-menu.DzQQlXXK.js.map} +1 -1
- package/dist/chunks/{button-actions.CShVMUOC.js → button-actions.C8CJcXxS.js} +8 -8
- package/dist/chunks/{button-actions.CShVMUOC.js.map → button-actions.C8CJcXxS.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.DSnv5X7y.js} +10 -10
- package/dist/chunks/{button.Cneb6rPP.js.map → button.DSnv5X7y.js.map} +1 -1
- package/dist/chunks/{calendar.1qqtC8ba.js → calendar.DlvMzTO4.js} +10 -10
- package/dist/chunks/{calendar.1qqtC8ba.js.map → calendar.DlvMzTO4.js.map} +1 -1
- package/dist/chunks/{card.rkMUtirc.js → card.9fQrkeSH.js} +11 -11
- package/dist/chunks/{card.rkMUtirc.js.map → card.9fQrkeSH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.PTNxE0kL.js → checkbox-group.Dq57AigF.js} +13 -13
- package/dist/chunks/{checkbox-group.PTNxE0kL.js.map → checkbox-group.Dq57AigF.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.D8ZUqd4m.js} +3 -3
- package/dist/chunks/{checkbox-input.CAYgiRHG.js.map → checkbox-input.D8ZUqd4m.js.map} +1 -1
- package/dist/chunks/{checkbox.D9FJcICR.js → checkbox.BphbrpUx.js} +32 -32
- package/dist/chunks/{checkbox.D9FJcICR.js.map → checkbox.BphbrpUx.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.ClIf1E3H.js} +4 -4
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.DEc2T64_.js} +5 -5
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
- package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.NvV5m76j.js} +8 -8
- package/dist/chunks/{chevron-left.CYEK2UTr.js.map → chevron-left.NvV5m76j.js.map} +1 -1
- package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.DQZG_BP3.js} +8 -8
- package/dist/chunks/{chevron-up.Cu9qXgBY.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
- package/dist/chunks/code-snippet.BXMQTve4.js +422 -0
- package/dist/chunks/code-snippet.BXMQTve4.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.OjJ-3ixa.js} +5180 -4862
- package/dist/chunks/codemirror.OjJ-3ixa.js.map +1 -0
- package/dist/chunks/{controls-group.BHxcGQ2A.js → controls-group.J99mAGhx.js} +11 -11
- package/dist/chunks/{controls-group.BHxcGQ2A.js.map → controls-group.J99mAGhx.js.map} +1 -1
- package/dist/chunks/{copy.DAMq-zRP.js → copy.CT8wuwho.js} +5 -5
- package/dist/chunks/{copy.DAMq-zRP.js.map → copy.CT8wuwho.js.map} +1 -1
- package/dist/chunks/{country.Cv_8NTmw.js → country.CcTaTBE0.js} +5 -5
- package/dist/chunks/{country.Cv_8NTmw.js.map → country.CcTaTBE0.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.BXO78Wde.js} +5 -5
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DN5b3_eL.js} +4 -4
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
- package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CXWTuKA_.js} +5 -5
- package/dist/chunks/{cross-small.Z5EKYRm0.js.map → cross-small.CXWTuKA_.js.map} +1 -1
- package/dist/chunks/{cross.BZYw4R3N.js → cross.OvPfvoqX.js} +5 -5
- package/dist/chunks/{cross.BZYw4R3N.js.map → cross.OvPfvoqX.js.map} +1 -1
- package/dist/chunks/{currency.DGX-aejv.js → currency.Dz2x17_Q.js} +3 -3
- package/dist/chunks/{currency.DGX-aejv.js.map → currency.Dz2x17_Q.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Buh9mb22.js → dashboard-section.C90L1bhS.js} +6 -6
- package/dist/chunks/{dashboard-section.Buh9mb22.js.map → dashboard-section.C90L1bhS.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DYVSwQtH.js → dashed-underline.BewlZNvL.js} +8 -8
- package/dist/chunks/{dashed-underline.DYVSwQtH.js.map → dashed-underline.BewlZNvL.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B6xmEgaM.js → data-grid-template.DeAeq2Ij.js} +7 -7
- package/dist/chunks/{data-grid-template.B6xmEgaM.js.map → data-grid-template.DeAeq2Ij.js.map} +1 -1
- package/dist/chunks/{data-grid.DVc9qzLU.js → data-grid.DSPcFy6O.js} +31 -31
- package/dist/chunks/{data-grid.DVc9qzLU.js.map → data-grid.DSPcFy6O.js.map} +1 -1
- package/dist/chunks/{date-picker.Bt4fyPQ4.js → date-picker.wNOf4DoV.js} +24 -24
- package/dist/chunks/{date-picker.Bt4fyPQ4.js.map → date-picker.wNOf4DoV.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Bna_2pBL.js → date-range-picker.C4l0Xe9R.js} +275 -275
- package/dist/chunks/{date-range-picker.Bna_2pBL.js.map → date-range-picker.C4l0Xe9R.js.map} +1 -1
- package/dist/chunks/{date.DeaBl297.js → date.DVGj7WKQ.js} +16 -14
- package/dist/chunks/{date.DeaBl297.js.map → date.DVGj7WKQ.js.map} +1 -1
- package/dist/chunks/{dialog-page.CJBSluwk.js → dialog-page.DNwtSB1o.js} +28 -29
- package/dist/chunks/{dialog-page.CJBSluwk.js.map → dialog-page.DNwtSB1o.js.map} +1 -1
- package/dist/chunks/{divider.DwBC4bpr.js → divider.ugNXYI-T.js} +3 -3
- package/dist/chunks/{divider.DwBC4bpr.js.map → divider.ugNXYI-T.js.map} +1 -1
- package/dist/chunks/{dot.cpdFEk6G.js → dot.pQfhaKda.js} +5 -5
- package/dist/chunks/{dot.cpdFEk6G.js.map → dot.pQfhaKda.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js → dropdown-default-textbox.3HzBUxC3.js} +14 -14
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js.map → dropdown-default-textbox.3HzBUxC3.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DLyxItIS.js → dropdown-tag.BRNZ7KIi.js} +8 -8
- package/dist/chunks/{dropdown-tag.DLyxItIS.js.map → dropdown-tag.BRNZ7KIi.js.map} +1 -1
- package/dist/chunks/{dropdown.CZDXXpKe.js → dropdown.DhvCTlVl.js} +270 -263
- package/dist/chunks/dropdown.DhvCTlVl.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DYfl7gnt.js} +12 -12
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DYfl7gnt.js.map} +1 -1
- package/dist/chunks/{error-message.BVE3JdTq.js → error-message.C6QpZ9ux.js} +16 -16
- package/dist/chunks/{error-message.BVE3JdTq.js.map → error-message.C6QpZ9ux.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.D11bE5vq.js} +6 -6
- package/dist/chunks/{es6.jIyAPBgt.js.map → es6.D11bE5vq.js.map} +1 -1
- package/dist/chunks/{expand.CJ162RaJ.js → expand.CgwNEbbz.js} +4 -4
- package/dist/chunks/{expand.CJ162RaJ.js.map → expand.CgwNEbbz.js.map} +1 -1
- package/dist/chunks/file-uploader.DiqPKVVt.js +2226 -0
- package/dist/chunks/file-uploader.DiqPKVVt.js.map +1 -0
- package/dist/chunks/{filter-bar.oihCCt5N.js → filter-bar.ChU2rr8r.js} +52 -52
- package/dist/chunks/{filter-bar.oihCCt5N.js.map → filter-bar.ChU2rr8r.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.XaGPUsUO.js → fixed-scroller.C4zzWgje.js} +12 -12
- package/dist/chunks/{fixed-scroller.XaGPUsUO.js.map → fixed-scroller.C4zzWgje.js.map} +1 -1
- package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DOiVbmpZ.js} +8 -8
- package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DOiVbmpZ.js.map} +1 -1
- package/dist/chunks/{footer-actions.n0JIXO4Q.js → footer-actions.Cl2aupkj.js} +8 -8
- package/dist/chunks/{footer-actions.n0JIXO4Q.js.map → footer-actions.Cl2aupkj.js.map} +1 -1
- package/dist/chunks/{form-layout-title.srkVLEUW.js → form-layout-title.Du4aY15F.js} +4 -4
- package/dist/chunks/{form-layout-title.srkVLEUW.js.map → form-layout-title.Du4aY15F.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.D-HFI38h.js} +2 -2
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.D-HFI38h.js.map} +1 -1
- package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.CqLbbEzI.js} +21 -21
- package/dist/chunks/{grid-layout.BTLE3rac.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
- package/dist/chunks/{header.CAHXObTT.js → header.CUyEq2ER.js} +65 -65
- package/dist/chunks/{header.CAHXObTT.js.map → header.CUyEq2ER.js.map} +1 -1
- package/dist/chunks/{i18n.WMYWtwxB.js → i18n.CPGoe9tN.js} +540 -540
- package/dist/chunks/{i18n.WMYWtwxB.js.map → i18n.CPGoe9tN.js.map} +1 -1
- package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js} +3 -3
- package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map} +1 -1
- package/dist/chunks/{index.BMkVmbZj.js → index.BHiMheJx.js} +5 -5
- package/dist/chunks/{index.BMkVmbZj.js.map → index.BHiMheJx.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js → info-icon-with-popover._ZiXaIcp.js} +11 -11
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js.map → info-icon-with-popover._ZiXaIcp.js.map} +1 -1
- package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.B6QPdxPi.js} +5 -5
- package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.B6QPdxPi.js.map} +1 -1
- package/dist/chunks/{info.DYNe2WnZ.js → info.CIFBUqf-.js} +4 -4
- package/dist/chunks/{info.DYNe2WnZ.js.map → info.CIFBUqf-.js.map} +1 -1
- package/dist/chunks/{input-field-password.DedPkZxg.js → input-field-password.LVaJy8_K.js} +30 -30
- package/dist/chunks/{input-field-password.DedPkZxg.js.map → input-field-password.LVaJy8_K.js.map} +1 -1
- package/dist/chunks/{input-field.3PUv6XC3.js → input-field.BVewQng_.js} +124 -115
- package/dist/chunks/input-field.BVewQng_.js.map +1 -0
- package/dist/chunks/{inspector.types.Dr0D250X.js → inspector.types.DKL2_Mku.js} +14 -14
- package/dist/chunks/{inspector.types.Dr0D250X.js.map → inspector.types.DKL2_Mku.js.map} +1 -1
- package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.CwYDJeG_.js} +4 -4
- package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.CwYDJeG_.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.DHXLGTkn.js} +11 -11
- package/dist/chunks/{link.ClFi8uSm.js.map → link.DHXLGTkn.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.zYn_kSFz.js → listbox-option-tag.DsI3DdjJ.js} +9 -9
- package/dist/chunks/{listbox-option-tag.zYn_kSFz.js.map → listbox-option-tag.DsI3DdjJ.js.map} +1 -1
- package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.N_WV9Gwz.js} +3 -3
- package/dist/chunks/{loading-indicator.DEepb9Wl.js.map → loading-indicator.N_WV9Gwz.js.map} +1 -1
- package/dist/chunks/{menu.Dmzh3Uat.js → menu.C5Y5nSvX.js} +13 -13
- package/dist/chunks/{menu.Dmzh3Uat.js.map → menu.C5Y5nSvX.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js → modal-fullscreen.Bw0CzdjS.js} +12 -12
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js.map → modal-fullscreen.Bw0CzdjS.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js} +13 -13
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js.map → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js.map} +1 -1
- package/dist/chunks/{pagination.BCC3GZV5.js → pagination.OzqU46-J.js} +11 -11
- package/dist/chunks/{pagination.BCC3GZV5.js.map → pagination.OzqU46-J.js.map} +1 -1
- package/dist/chunks/{payment-method.2IeC7f4x.js → payment-method.Lwl-3chY.js} +3 -3
- package/dist/chunks/{payment-method.2IeC7f4x.js.map → payment-method.Lwl-3chY.js.map} +1 -1
- package/dist/chunks/{popover.3KG1IoYE.js → popover.BFZU1OKv.js} +7 -7
- package/dist/chunks/{popover.3KG1IoYE.js.map → popover.BFZU1OKv.js.map} +1 -1
- package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.CQblHdJf.js} +4 -4
- package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.CQblHdJf.js.map} +1 -1
- package/dist/chunks/{promo-banner.BjLfDhBq.js → promo-banner.DB6C9Tgr.js} +12 -12
- package/dist/chunks/{promo-banner.BjLfDhBq.js.map → promo-banner.DB6C9Tgr.js.map} +1 -1
- package/dist/chunks/{radio-group.CeiSaH6M.js → radio-group.DVPnBI92.js} +8 -8
- package/dist/chunks/{radio-group.CeiSaH6M.js.map → radio-group.DVPnBI92.js.map} +1 -1
- package/dist/chunks/{radio-input.0TPahhZT.js → radio-input.ButaAWTD.js} +5 -5
- package/dist/chunks/{radio-input.0TPahhZT.js.map → radio-input.ButaAWTD.js.map} +1 -1
- package/dist/chunks/{refresh.SzRxQ44W.js → refresh.DvQeGwUF.js} +5 -5
- package/dist/chunks/{refresh.SzRxQ44W.js.map → refresh.DvQeGwUF.js.map} +1 -1
- package/dist/chunks/{search-bar.BZDJJtWB.js → search-bar.CPOGuVqp.js} +8 -8
- package/dist/chunks/{search-bar.BZDJJtWB.js.map → search-bar.CPOGuVqp.js.map} +1 -1
- package/dist/chunks/{search.KgjmJMHa.js → search.EnLryD8V.js} +4 -4
- package/dist/chunks/{search.KgjmJMHa.js.map → search.EnLryD8V.js.map} +1 -1
- package/dist/chunks/{secondary-nav.qm-rh-r6.js → secondary-nav.B1zTf8Ls.js} +11 -11
- package/dist/chunks/{secondary-nav.qm-rh-r6.js.map → secondary-nav.B1zTf8Ls.js.map} +1 -1
- package/dist/chunks/{segmented-control.BIwBQ8i3.js → segmented-control.DV9mJM7g.js} +9 -9
- package/dist/chunks/{segmented-control.BIwBQ8i3.js.map → segmented-control.DV9mJM7g.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DPGh4nwl.js → selection-card-group.z0SNFpjN.js} +17 -17
- package/dist/chunks/{selection-card-group.DPGh4nwl.js.map → selection-card-group.z0SNFpjN.js.map} +1 -1
- package/dist/chunks/{show.J9zXGWlK.js → show.ChPQTrAT.js} +6 -6
- package/dist/chunks/{show.J9zXGWlK.js.map → show.ChPQTrAT.js.map} +1 -1
- package/dist/chunks/{sidepanel.DxSdFwm1.js → sidepanel.B-YKxXQA.js} +12 -12
- package/dist/chunks/{sidepanel.DxSdFwm1.js.map → sidepanel.B-YKxXQA.js.map} +1 -1
- package/dist/chunks/{status.types.Dil95sGx.js → status.types.Bh_mGknA.js} +6 -6
- package/dist/chunks/{status.types.Dil95sGx.js.map → status.types.Bh_mGknA.js.map} +1 -1
- package/dist/chunks/{step.DAB8h_4u.js → step.CGHc2hFZ.js} +7 -7
- package/dist/chunks/{step.DAB8h_4u.js.map → step.CGHc2hFZ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DpI6jzfM.js → structured-list-item.DNP6fkCb.js} +9 -9
- package/dist/chunks/{structured-list-item.DpI6jzfM.js.map → structured-list-item.DNP6fkCb.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js → summary-grid-item-custom.Dm2rULoZ.js} +7 -7
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js.map → summary-grid-item-custom.Dm2rULoZ.js.map} +1 -1
- package/dist/chunks/{tabs.B5-PZCxc.js → tabs.BXuDJsCU.js} +5 -5
- package/dist/chunks/{tabs.B5-PZCxc.js.map → tabs.BXuDJsCU.js.map} +1 -1
- package/dist/chunks/{tag.BuUbvgok.js → tag.bo9YuJ9f.js} +5 -5
- package/dist/chunks/{tag.BuUbvgok.js.map → tag.bo9YuJ9f.js.map} +1 -1
- package/dist/chunks/{teleport.B1NhF5-O.js → teleport.B255JhsV.js} +4 -4
- package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.B255JhsV.js.map} +1 -1
- package/dist/chunks/{textarea.CCr8inwI.js → textarea.FlyFaC5n.js} +8 -8
- package/dist/chunks/{textarea.CCr8inwI.js.map → textarea.FlyFaC5n.js.map} +1 -1
- package/dist/chunks/{timeline-item.DG9YaOiC.js → timeline-item.DYgnYAx0.js} +38 -38
- package/dist/chunks/{timeline-item.DG9YaOiC.js.map → timeline-item.DYgnYAx0.js.map} +1 -1
- package/dist/chunks/{toast.CVy2sf_5.js → toast.Cp-osZLV.js} +22 -22
- package/dist/chunks/{toast.CVy2sf_5.js.map → toast.Cp-osZLV.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.BABftVnA.js} +4 -4
- package/dist/chunks/{toggle-button.CCgvi7TQ.js.map → toggle-button.BABftVnA.js.map} +1 -1
- package/dist/chunks/{toggle.Dl82VpiQ.js → toggle.Bme9eaeR.js} +5 -5
- package/dist/chunks/{toggle.Dl82VpiQ.js.map → toggle.Bme9eaeR.js.map} +1 -1
- package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.Ch4_ew27.js} +9 -9
- package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.Ch4_ew27.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js} +33 -33
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js.map → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js.map} +1 -1
- package/dist/chunks/{typography.DN5eC5ch.js → typography.DNzU41ah.js} +3 -4
- package/dist/chunks/{typography.DN5eC5ch.js.map → typography.DNzU41ah.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.C2wUDcoc.js} +3 -3
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.C2wUDcoc.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js → use-cached-selected-values.CvdhdRHz.js} +15 -15
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js.map → use-cached-selected-values.CvdhdRHz.js.map} +1 -1
- package/dist/chunks/{use-country-items.DnPo3yxj.js → use-country-items.D4T1eUtC.js} +2 -2
- package/dist/chunks/{use-country-items.DnPo3yxj.js.map → use-country-items.D4T1eUtC.js.map} +1 -1
- package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.OUOUbA6k.js} +5 -5
- package/dist/chunks/{warning-filled.tTkVob0l.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- 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.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +170 -170
- 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.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +14 -14
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +6 -5
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -4
- package/dist/chunks/code-snippet.volJxGqR.js +0 -392
- package/dist/chunks/code-snippet.volJxGqR.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/dropdown.CZDXXpKe.js.map +0 -1
- package/dist/chunks/file-uploader.BXHt0PWz.js +0 -1077
- package/dist/chunks/file-uploader.BXHt0PWz.js.map +0 -1
- package/dist/chunks/input-field.3PUv6XC3.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout-title.srkVLEUW.js","sources":["../../../vue2/src/components/form-layout/form-layout.vue","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\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 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 { 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')\" 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 { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } 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\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","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 </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\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 colums 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 // 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 }));\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","<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 v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\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\n const slots = useSlots();\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 // 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, organise 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</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;;;;AA1DA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAL,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAO,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEC5CGQ,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAb,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;kEClBGc,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjEA,UAAAX,IAAAC,GAgCAW,IAAAT;AAAA,MAAuB,MAAAO,EAAA,SAAAV,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACiD,GAGxEa,IAAAV,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAO,EAAA,SAAAV,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAY,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;kECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAvDA,UAAAlB,IAAAC,EAAA,GAEAG,IAAAC,GAuBAc,IAAAZ,EAAA,MAAA,CAAAH,EAAA,UAAA,GACAF,IAAAC,EAAAH,CAAA,GACAiB,IAAAV,EAAA,OAAA;AAAA,MAA2C,mCAAAH,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"form-layout-title.Du4aY15F.js","sources":["../../../vue2/src/components/form-layout/form-layout.vue","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\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 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 { 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')\" 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 { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } 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\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","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 </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\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 colums 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 // 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 }));\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","<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 v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\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\n const slots = useSlots();\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 // 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, organise 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</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;;;;AA1DA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAL,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAO,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEC5CGQ,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAb,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;kEClBGc,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjEA,UAAAX,IAAAC,GAgCAW,IAAAT;AAAA,MAAuB,MAAAO,EAAA,SAAAV,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACiD,GAGxEa,IAAAV,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAO,EAAA,SAAAV,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAY,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;kECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAvDA,UAAAlB,IAAAC,EAAA,GAEAG,IAAAC,GAuBAc,IAAAZ,EAAA,MAAA,CAAAH,EAAA,UAAA,GACAF,IAAAC,EAAAH,CAAA,GACAiB,IAAAV,EAAA,OAAA;AAAA,MAA2C,mCAAAH,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -17,7 +17,7 @@ function i() {
|
|
|
17
17
|
const m = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), o = { randomUUID: m };
|
|
18
18
|
function r(n, t, U) {
|
|
19
19
|
var c;
|
|
20
|
-
if (o.randomUUID && !n)
|
|
20
|
+
if (o.randomUUID && !t && !n)
|
|
21
21
|
return o.randomUUID();
|
|
22
22
|
n = n || {};
|
|
23
23
|
const d = n.random ?? ((c = n.rng) == null ? void 0 : c.call(n)) ?? i();
|
|
@@ -29,4 +29,4 @@ const p = (n) => n ? `${n}-${r()}` : r();
|
|
|
29
29
|
export {
|
|
30
30
|
p as g
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=generate-uid.
|
|
32
|
+
//# sourceMappingURL=generate-uid.D-HFI38h.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-uid.
|
|
1
|
+
{"version":3,"file":"generate-uid.D-HFI38h.js","sources":["../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/stringify.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/rng.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/native.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/v4.js","../../../core/src/utils/ts/generate-uid.ts"],"sourcesContent":["import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","let getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n if (typeof crypto === 'undefined' || !crypto.getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n getRandomValues = crypto.getRandomValues.bind(crypto);\n }\n return getRandomValues(rnds8);\n}\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default { randomUUID };\n","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { v4 } from 'uuid';\n\n/**\n * Returns a unique identifier optionally prefixed by a custom string\n * @param value - The string to be prepended to the unique identifier\n */\nexport const generateUid = (value: string): string => (value ? `${value}-${v4()}` : v4());\n"],"names":["byteToHex","i","unsafeStringify","arr","offset","getRandomValues","rnds8","rng","randomUUID","native","v4","options","buf","_a","rnds","generateUid","value"],"mappings":"AACA,MAAMA,IAAY,CAAE;AACpB,SAASC,IAAI,GAAGA,IAAI,KAAK,EAAEA;AACvB,EAAAD,EAAU,MAAMC,IAAI,KAAO,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;AAE7C,SAASC,EAAgBC,GAAKC,IAAS,GAAG;AAC7C,UAAQJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IAC7BJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzBJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzBJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzB,MACAJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzBJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzB,MACAJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzBJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzB,MACAJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzBJ,EAAUG,EAAIC,IAAS,CAAC,CAAC,IACzB,MACAJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAC1BJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAC1BJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAC1BJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAC1BJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,IAC1BJ,EAAUG,EAAIC,IAAS,EAAE,CAAC,GAAG,YAAa;AAClD;AC1BA,IAAIC;AACJ,MAAMC,IAAQ,IAAI,WAAW,EAAE;AAChB,SAASC,IAAM;AAC1B,MAAI,CAACF,GAAiB;AAClB,QAAI,OAAO,SAAW,OAAe,CAAC,OAAO;AACzC,YAAM,IAAI,MAAM,0GAA0G;AAE9H,IAAAA,IAAkB,OAAO,gBAAgB,KAAK,MAAM;AAAA,EAC5D;AACI,SAAOA,EAAgBC,CAAK;AAChC;ACVA,MAAME,IAAa,OAAO,SAAW,OAAe,OAAO,cAAc,OAAO,WAAW,KAAK,MAAM,GACvFC,IAAA,EAAE,YAAAD,EAAY;ACE7B,SAASE,EAAGC,GAASC,GAAKR,GAAQ;AHFlC,MAAAS;AGGI,MAAIJ,EAAO,cAAc,CAACG,KAAO,CAACD;AAC9B,WAAOF,EAAO,WAAY;AAE9B,EAAAE,IAAUA,KAAW,CAAE;AACvB,QAAMG,IAAOH,EAAQ,YAAUE,IAAAF,EAAQ,QAAR,gBAAAE,EAAA,KAAAF,OAAmBJ,EAAK;AACvD,MAAIO,EAAK,SAAS;AACd,UAAM,IAAI,MAAM,mCAAmC;AAEvD,SAAAA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAWtBZ,EAAgBY,CAAI;AAC/B;ACnBa,MAAAC,IAAc,CAACC,MAA2BA,IAAQ,GAAGA,CAAK,IAAIN,GAAI,KAAKA,EAAG;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as S,
|
|
1
|
+
import { defineComponent as p, computed as S, openBlock as l, createElementBlock as t, normalizeClass as e, renderSlot as u, createCommentVNode as i } from "vue";
|
|
2
2
|
import { u as v } from "./use-has-slot.B7eQSabc.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
import "../assets/grid-layout.css";
|
|
@@ -58,52 +58,52 @@ const b = p({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
function f(o, n, r, c, m, a) {
|
|
61
|
-
return
|
|
61
|
+
return l(), t("div", {
|
|
62
62
|
class: e(["b-grid-layout", o.computedClasses]),
|
|
63
63
|
"data-testid": "grid-layout"
|
|
64
64
|
}, [
|
|
65
|
-
o.hasSlot("col-1") ? (
|
|
65
|
+
o.hasSlot("col-1") ? (l(), t("div", {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: e(["b-grid-layout__column", o.computeColumnSize(0)]),
|
|
68
68
|
"data-testid": "grid-layout-col-1"
|
|
69
69
|
}, [
|
|
70
|
-
|
|
71
|
-
], 2)) :
|
|
72
|
-
o.hasSlot("col-2") ? (
|
|
70
|
+
u(o.$slots, "col-1", {}, void 0, !0)
|
|
71
|
+
], 2)) : i("", !0),
|
|
72
|
+
o.hasSlot("col-2") ? (l(), t("div", {
|
|
73
73
|
key: 1,
|
|
74
74
|
class: e(["b-grid-layout__column", o.computeColumnSize(1)]),
|
|
75
75
|
"data-testid": "grid-layout-col-2"
|
|
76
76
|
}, [
|
|
77
|
-
|
|
78
|
-
], 2)) :
|
|
79
|
-
o.hasSlot("col-3") ? (
|
|
77
|
+
u(o.$slots, "col-2", {}, void 0, !0)
|
|
78
|
+
], 2)) : i("", !0),
|
|
79
|
+
o.hasSlot("col-3") ? (l(), t("div", {
|
|
80
80
|
key: 2,
|
|
81
81
|
class: e(["b-grid-layout__column", o.computeColumnSize(2)]),
|
|
82
82
|
"data-testid": "grid-layout-col-3"
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
], 2)) :
|
|
86
|
-
o.hasSlot("col-4") ? (
|
|
84
|
+
u(o.$slots, "col-3", {}, void 0, !0)
|
|
85
|
+
], 2)) : i("", !0),
|
|
86
|
+
o.hasSlot("col-4") ? (l(), t("div", {
|
|
87
87
|
key: 3,
|
|
88
88
|
class: e(["b-grid-layout__column", o.computeColumnSize(3)]),
|
|
89
89
|
"data-testid": "grid-layout-col-4"
|
|
90
90
|
}, [
|
|
91
|
-
|
|
92
|
-
], 2)) :
|
|
93
|
-
o.hasSlot("col-5") ? (
|
|
91
|
+
u(o.$slots, "col-4", {}, void 0, !0)
|
|
92
|
+
], 2)) : i("", !0),
|
|
93
|
+
o.hasSlot("col-5") ? (l(), t("div", {
|
|
94
94
|
key: 4,
|
|
95
95
|
class: e(["b-grid-layout__column", o.computeColumnSize(4)]),
|
|
96
96
|
"data-testid": "grid-layout-col-5"
|
|
97
97
|
}, [
|
|
98
|
-
|
|
99
|
-
], 2)) :
|
|
100
|
-
o.hasSlot("col-6") ? (
|
|
98
|
+
u(o.$slots, "col-5", {}, void 0, !0)
|
|
99
|
+
], 2)) : i("", !0),
|
|
100
|
+
o.hasSlot("col-6") ? (l(), t("div", {
|
|
101
101
|
key: 5,
|
|
102
102
|
class: e(["b-grid-layout__column", o.computeColumnSize(5)]),
|
|
103
103
|
"data-testid": "grid-layout-col-6"
|
|
104
104
|
}, [
|
|
105
|
-
|
|
106
|
-
], 2)) :
|
|
105
|
+
u(o.$slots, "col-6", {}, void 0, !0)
|
|
106
|
+
], 2)) : i("", !0)
|
|
107
107
|
], 2);
|
|
108
108
|
}
|
|
109
109
|
const _ = /* @__PURE__ */ h(b, [["render", f], ["__scopeId", "data-v-bfda2e12"]]);
|
|
@@ -111,4 +111,4 @@ export {
|
|
|
111
111
|
_ as G,
|
|
112
112
|
d as a
|
|
113
113
|
};
|
|
114
|
-
//# sourceMappingURL=grid-layout.
|
|
114
|
+
//# sourceMappingURL=grid-layout.CqLbbEzI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-layout.
|
|
1
|
+
{"version":3,"file":"grid-layout.CqLbbEzI.js","sources":["../../../vue2/src/components/internal/grid-layout/grid-layout.types.ts","../../../vue2/src/components/internal/grid-layout/grid-layout.vue"],"sourcesContent":["export enum GridLayoutContainerType {\n INLINE = 'inline-size',\n SIZE = 'size',\n NORMAL = 'normal',\n}\n\nexport interface GridLayoutColumnWidth {\n small: number | string;\n medium: number | string;\n large: number | string;\n}\n\nexport type GridLayoutColumnWidths = Array<'auto' | GridLayoutColumnWidth>;\n","<template>\n <div class=\"b-grid-layout\" :class=\"computedClasses\" data-testid=\"grid-layout\">\n <div\n v-if=\"hasSlot('col-1')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(0)\"\n data-testid=\"grid-layout-col-1\"\n >\n <slot name=\"col-1\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-2')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(1)\"\n data-testid=\"grid-layout-col-2\"\n >\n <slot name=\"col-2\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-3')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(2)\"\n data-testid=\"grid-layout-col-3\"\n >\n <slot name=\"col-3\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-4')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(3)\"\n data-testid=\"grid-layout-col-4\"\n >\n <slot name=\"col-4\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-5')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(4)\"\n data-testid=\"grid-layout-col-5\"\n >\n <slot name=\"col-5\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-6')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(5)\"\n data-testid=\"grid-layout-col-6\"\n >\n <slot name=\"col-6\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { GridLayoutColumnWidth, GridLayoutColumnWidths, GridLayoutContainerType } from './grid-layout.types';\n\n /**\n * Component used to render the grid layout in the bento-summary-grid. For internal use only\n */\n export default defineComponent({\n name: 'grid-layout',\n props: {\n /**\n * Sets the responsive columns widths for the grid.\n */\n columnWidth: {\n type: Array as PropType<GridLayoutColumnWidths>,\n default: null,\n validator: (array: GridLayoutColumnWidths) => array && array.length <= 6,\n },\n\n /**\n * Set the type of CSS container the grid layout has\n * @values inline-size, size, normal\n */\n containerType: {\n type: String as PropType<GridLayoutContainerType>,\n default: GridLayoutContainerType.INLINE,\n },\n\n /**\n * Sets the gap in the grid to 0.\n */\n noGap: {\n type: Boolean,\n default: false,\n },\n },\n setup(props, { slots }) {\n const hasSlot = useHasSlot(slots);\n\n // TODO: add a computedItems computed here that only returns the slots that are presents so as to be able to render the divs in the template via a v-for\n const computeColumnSize = index => {\n if (props.columnWidth?.[index] && props.columnWidth?.[index] !== 'auto') {\n const columnWidth = props.columnWidth[index] as GridLayoutColumnWidth;\n return [\n `b-grid-layout__column--${columnWidth.small}`,\n `b-grid-layout-m__column--${columnWidth.medium}`,\n `b-grid-layout-l__column--${columnWidth.large}`,\n ];\n }\n return null;\n };\n\n const computedClasses = computed(() => ({\n 'b-grid-layout--container-type-normal': props.containerType === GridLayoutContainerType.NORMAL,\n 'b-grid-layout--container-type-size': props.containerType === GridLayoutContainerType.SIZE,\n 'b-grid-layout--all-auto':\n props.columnWidth === null || props.columnWidth.every(width => width === 'auto'),\n 'b-grid-layout--no-gap': props.noGap,\n }));\n\n return {\n // Values\n computeColumnSize,\n computedClasses,\n\n // Methods\n hasSlot,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./grid-layout.scss\" />\n"],"names":["GridLayoutContainerType","GridLayoutContainerType2","_sfc_main","defineComponent","array","props","slots","hasSlot","useHasSlot","computeColumnSize","index","_a","_b","columnWidth","computedClasses","computed","width","openBlock","createElementBlock","normalizeClass","_ctx","renderSlot","createCommentVNode"],"mappings":";;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,eACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA;AC6DR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,OAAA;AAAA;AAAA;AAAA;AAAA,IACC,aAAA;AAAA,MAIU,MAAA;AAAA,MACH,SAAA;AAAA,MACG,WAAA,CAAAC,MAAAA,KAAAA,EAAA,UAAA;AAAA,IAC8D;AAAA;AAAA;AAAA;AAAA;AAAA,IAC3E,eAAA;AAAA,MAMe,MAAA;AAAA,MACL,SAAAJ,EAAA;AAAA,IAC2B;AAAA;AAAA;AAAA;AAAA,IACrC,OAAA;AAAA,MAKO,MAAA;AAAA,MACG,SAAA;AAAA,IACG;AAAA,EACb;AAAA,EACJ,MAAAK,GAAA,EAAA,OAAAC,EAAA,GAAA;AAEI,UAAAC,IAAAC,EAAAF,CAAA,GAGAG,IAAA,CAAAC,MAAA;;AACI,WAAAC,IAAAN,EAAA,gBAAA,QAAAM,EAAAD,QAAAE,IAAAP,EAAA,gBAAA,gBAAAO,EAAAF,QAAA,QAAA;AACI,cAAAG,IAAAR,EAAA,YAAAK,CAAA;AACA,eAAA;AAAA,UAAO,0BAAAG,EAAA,KAAA;AAAA,UACwC,4BAAAA,EAAA,MAAA;AAAA,UACG,4BAAAA,EAAA,KAAA;AAAA,QACD;AAAA,MACjD;AAEJ,aAAA;AAAA,IAAO,GAGXC,IAAAC,EAAA,OAAA;AAAA,MAAwC,wCAAAV,EAAA,kBAAAL,EAAA;AAAA,MACoD,sCAAAK,EAAA,kBAAAL,EAAA;AAAA,MACF,2BAAAK,EAAA,gBAAA,QAAAA,EAAA,YAAA,MAAA,CAAAW,MAAAA,MAAA,MAAA;AAAA,MAEH,yBAAAX,EAAA;AAAA,IACpD,EAAA;AAGnC,WAAA;AAAA;AAAA,MAAO,mBAAAI;AAAA,MAEH,iBAAAK;AAAA;AAAA,MACA,SAAAP;AAAA,IAGA;AAAA,EACJ;AAER,CAAA;;AA1HoD,SAAAU,EAAA,GAAAC,EAAA,OAAA;AAAA,IAAyB,OAAAC,EAAA,CAAA,iBAAAC,EAAA,eAAA,CAAA;AAAA,IAExD,eAAA;AAAA,EAAA,GAAA;AAAA;MACP,KAAA;AAAA,MAEN,OAAAD,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MARtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IAUQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhBtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IAkBQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAxBtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IA0BQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhCtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IAkCQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAxCtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IA0CQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhDtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA;;;"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as
|
|
3
|
-
import { u as
|
|
4
|
-
import { B as
|
|
5
|
-
import { u as
|
|
6
|
-
import { r as d, t as c, l as
|
|
7
|
-
import { B as
|
|
8
|
-
import { c as M, a as
|
|
9
|
-
import { e as
|
|
10
|
-
import { e as
|
|
11
|
-
import { I as g } from "./info-icon-with-popover.
|
|
12
|
-
import { d as
|
|
13
|
-
import { _ as
|
|
1
|
+
import { defineComponent as L, computed as y, resolveComponent as p, openBlock as v, createElementBlock as C, normalizeClass as Y, createElementVNode as I, createVNode as b, mergeProps as $, withCtx as h, createTextVNode as N, toDisplayString as S, createBlock as O, createSlots as x, renderSlot as G, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { R as V } from "./refresh.DvQeGwUF.js";
|
|
3
|
+
import { u as W } from "./use-has-slot.B7eQSabc.js";
|
|
4
|
+
import { B as j, c as P, a as z } from "./typography.DNzU41ah.js";
|
|
5
|
+
import { u as q } from "./i18n.CPGoe9tN.js";
|
|
6
|
+
import { r as d, t as c, l as F, a as w, g as J } from "./get-date-locale.BN8xEjY0.js";
|
|
7
|
+
import { B as K } from "./button-actions-with-menu.DzQQlXXK.js";
|
|
8
|
+
import { c as M, a as Q } from "./index.DDnf1O9p.js";
|
|
9
|
+
import { e as Z } from "./index.DPafeRJa.js";
|
|
10
|
+
import { e as ee } from "./index.CrhTVr5J.js";
|
|
11
|
+
import { I as g } from "./info-icon-with-popover._ZiXaIcp.js";
|
|
12
|
+
import { d as te } from "./button-actions.C8CJcXxS.js";
|
|
13
|
+
import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
14
14
|
import "../assets/header.css";
|
|
15
|
-
function
|
|
15
|
+
function ne(e, a) {
|
|
16
16
|
d(2, arguments);
|
|
17
17
|
var n = c(e), t = c(a), i = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
|
|
18
18
|
return i * 12 + o;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function ae(e, a) {
|
|
21
21
|
return d(2, arguments), c(e).getTime() - c(a).getTime();
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var A = {
|
|
24
24
|
ceil: Math.ceil,
|
|
25
25
|
round: Math.round,
|
|
26
26
|
floor: Math.floor,
|
|
@@ -30,16 +30,16 @@ var ae = {
|
|
|
30
30
|
// Math.trunc is not supported by IE
|
|
31
31
|
}, re = "trunc";
|
|
32
32
|
function se(e) {
|
|
33
|
-
return
|
|
33
|
+
return e ? A[e] : A[re];
|
|
34
34
|
}
|
|
35
35
|
function ie(e) {
|
|
36
36
|
d(1, arguments);
|
|
37
37
|
var a = c(e);
|
|
38
|
-
return
|
|
38
|
+
return Z(a).getTime() === ee(a).getTime();
|
|
39
39
|
}
|
|
40
40
|
function le(e, a) {
|
|
41
41
|
d(2, arguments);
|
|
42
|
-
var n = c(e), t = c(a), i = M(n, t), o = Math.abs(
|
|
42
|
+
var n = c(e), t = c(a), i = M(n, t), o = Math.abs(ne(n, t)), s;
|
|
43
43
|
if (o < 1)
|
|
44
44
|
s = 0;
|
|
45
45
|
else {
|
|
@@ -51,20 +51,20 @@ function le(e, a) {
|
|
|
51
51
|
}
|
|
52
52
|
function ce(e, a, n) {
|
|
53
53
|
d(2, arguments);
|
|
54
|
-
var t =
|
|
55
|
-
return se()(t);
|
|
54
|
+
var t = ae(e, a) / 1e3;
|
|
55
|
+
return se(void 0)(t);
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var U = 1440, ue = 2520, E = 43200, fe = 86400;
|
|
58
58
|
function de(e, a) {
|
|
59
59
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
60
60
|
d(2, arguments);
|
|
61
|
-
var t = n.locale ||
|
|
61
|
+
var t = n.locale || F;
|
|
62
62
|
if (!t.formatDistance)
|
|
63
63
|
throw new RangeError("locale must contain formatDistance property");
|
|
64
64
|
var i = M(e, a);
|
|
65
65
|
if (isNaN(i))
|
|
66
66
|
throw new RangeError("Invalid time value");
|
|
67
|
-
var o =
|
|
67
|
+
var o = Q(n);
|
|
68
68
|
o.addSuffix = !!n.addSuffix, o.comparison = i;
|
|
69
69
|
var s, l;
|
|
70
70
|
i > 0 ? (s = c(a), l = c(e)) : (s = c(e), l = c(a));
|
|
@@ -75,21 +75,21 @@ function de(e, a) {
|
|
|
75
75
|
return t.formatDistance("xMinutes", r, o);
|
|
76
76
|
if (r < 90)
|
|
77
77
|
return t.formatDistance("aboutXHours", 1, o);
|
|
78
|
-
if (r <
|
|
79
|
-
var
|
|
80
|
-
return t.formatDistance("aboutXHours",
|
|
78
|
+
if (r < U) {
|
|
79
|
+
var k = Math.round(r / 60);
|
|
80
|
+
return t.formatDistance("aboutXHours", k, o);
|
|
81
81
|
} else {
|
|
82
82
|
if (r < ue)
|
|
83
83
|
return t.formatDistance("xDays", 1, o);
|
|
84
84
|
if (r < E) {
|
|
85
|
-
var
|
|
86
|
-
return t.formatDistance("xDays",
|
|
85
|
+
var R = Math.round(r / U);
|
|
86
|
+
return t.formatDistance("xDays", R, o);
|
|
87
87
|
} else if (r < fe)
|
|
88
88
|
return m = Math.round(r / E), t.formatDistance("aboutXMonths", m, o);
|
|
89
89
|
}
|
|
90
90
|
if (m = le(l, s), m < 12) {
|
|
91
|
-
var
|
|
92
|
-
return t.formatDistance("xMonths",
|
|
91
|
+
var H = Math.round(r / E);
|
|
92
|
+
return t.formatDistance("xMonths", H, o);
|
|
93
93
|
} else {
|
|
94
94
|
var B = m % 12, D = Math.floor(m / 12);
|
|
95
95
|
return B < 3 ? t.formatDistance("aboutXYears", D, o) : B < 9 ? t.formatDistance("overXYears", D, o) : t.formatDistance("almostXYears", D + 1, o);
|
|
@@ -99,19 +99,19 @@ function me(e, a) {
|
|
|
99
99
|
return d(1, arguments), de(e, Date.now(), a);
|
|
100
100
|
}
|
|
101
101
|
var f = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(f || {});
|
|
102
|
-
const
|
|
102
|
+
const X = {
|
|
103
103
|
"en-US": {
|
|
104
104
|
lastUpdated: "Last updated: {date} ago"
|
|
105
105
|
}
|
|
106
|
-
}, pe =
|
|
107
|
-
i18n: { messages:
|
|
106
|
+
}, pe = L({
|
|
107
|
+
i18n: { messages: X },
|
|
108
108
|
name: "bento-header",
|
|
109
109
|
components: {
|
|
110
|
-
BentoTypography:
|
|
111
|
-
ButtonActionsWithMenu:
|
|
112
|
-
BentoLoadingButton:
|
|
110
|
+
BentoTypography: j,
|
|
111
|
+
ButtonActionsWithMenu: K,
|
|
112
|
+
BentoLoadingButton: te,
|
|
113
113
|
InfoIconWithPopover: g,
|
|
114
|
-
ReloadIcon:
|
|
114
|
+
ReloadIcon: V
|
|
115
115
|
},
|
|
116
116
|
props: {
|
|
117
117
|
/**
|
|
@@ -161,11 +161,11 @@ const U = {
|
|
|
161
161
|
},
|
|
162
162
|
emits: ["reload"],
|
|
163
163
|
setup(e, { slots: a }) {
|
|
164
|
-
const { t: n, locale: t } =
|
|
164
|
+
const { t: n, locale: t } = q({ messages: X }), i = J(), o = y(() => ({
|
|
165
165
|
"b-header--component": e.variant === f.COMPONENT
|
|
166
166
|
})), s = y(() => ({
|
|
167
167
|
el: e.variant === f.PAGE ? P.H1 : P.H2,
|
|
168
|
-
variant:
|
|
168
|
+
variant: z.TITLE,
|
|
169
169
|
medium: e.variant === f.COMPONENT,
|
|
170
170
|
large: e.variant === f.PAGE
|
|
171
171
|
})), l = y(
|
|
@@ -176,71 +176,71 @@ const U = {
|
|
|
176
176
|
}) : null
|
|
177
177
|
);
|
|
178
178
|
return {
|
|
179
|
-
hasSlot:
|
|
179
|
+
hasSlot: W(a),
|
|
180
180
|
conditionalClasses: o,
|
|
181
181
|
timestamp: l,
|
|
182
182
|
typography: s
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
}),
|
|
185
|
+
}), ve = { class: "b-header__wrapper" }, he = { class: "b-header__title" }, ge = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "b-header__timestamp-section"
|
|
188
188
|
};
|
|
189
189
|
function _e(e, a, n, t, i, o) {
|
|
190
190
|
const s = p("bento-typography"), l = p("info-icon-with-popover"), u = p("reload-icon"), T = p("bento-loading-button"), r = p("button-actions-with-menu");
|
|
191
|
-
return
|
|
192
|
-
class:
|
|
191
|
+
return v(), C("div", {
|
|
192
|
+
class: Y(["b-header", e.conditionalClasses])
|
|
193
193
|
}, [
|
|
194
|
-
I("div",
|
|
195
|
-
I("div",
|
|
194
|
+
I("div", ve, [
|
|
195
|
+
I("div", he, [
|
|
196
196
|
I("div", null, [
|
|
197
|
-
|
|
198
|
-
default:
|
|
199
|
-
S(
|
|
197
|
+
b(s, $(e.typography, { class: "b-header__text" }), {
|
|
198
|
+
default: h(() => [
|
|
199
|
+
N(S(e.title), 1)
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 16),
|
|
203
|
-
e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (
|
|
203
|
+
e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (v(), O(l, {
|
|
204
204
|
key: 0,
|
|
205
205
|
class: "b-header__tooltip",
|
|
206
206
|
"popover-text": e.infoIconTooltipText
|
|
207
|
-
},
|
|
207
|
+
}, x({ _: 2 }, [
|
|
208
208
|
e.hasSlot("infoIconTooltipContent") ? {
|
|
209
209
|
name: "default",
|
|
210
|
-
fn:
|
|
211
|
-
|
|
210
|
+
fn: h(() => [
|
|
211
|
+
G(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
212
212
|
]),
|
|
213
213
|
key: "0"
|
|
214
214
|
} : void 0
|
|
215
215
|
]), 1032, ["popover-text"])) : _("", !0)
|
|
216
216
|
]),
|
|
217
|
-
e.lastUpdated ? (
|
|
218
|
-
|
|
217
|
+
e.lastUpdated ? (v(), C("div", ge, [
|
|
218
|
+
b(s, {
|
|
219
219
|
class: "b-header__timestamp",
|
|
220
220
|
el: "div"
|
|
221
221
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
S(
|
|
222
|
+
default: h(() => [
|
|
223
|
+
N(S(e.timestamp), 1)
|
|
224
224
|
]),
|
|
225
225
|
_: 1
|
|
226
226
|
}),
|
|
227
|
-
e.reloadButton ? (
|
|
227
|
+
e.reloadButton ? (v(), O(T, {
|
|
228
228
|
key: 0,
|
|
229
229
|
variant: "tertiary",
|
|
230
230
|
state: e.reloadButton.state,
|
|
231
231
|
onClick: e.reloadButton.event
|
|
232
232
|
}, {
|
|
233
|
-
iconLeft:
|
|
234
|
-
|
|
233
|
+
iconLeft: h(() => [
|
|
234
|
+
b(u)
|
|
235
235
|
]),
|
|
236
|
-
default:
|
|
237
|
-
S(
|
|
236
|
+
default: h(() => [
|
|
237
|
+
N(S(e.reloadButton.title), 1)
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["state", "onClick"])) : _("", !0)
|
|
241
241
|
])) : _("", !0)
|
|
242
242
|
]),
|
|
243
|
-
e.actions ? (
|
|
243
|
+
e.actions ? (v(), O(r, {
|
|
244
244
|
key: 0,
|
|
245
245
|
actions: e.actions,
|
|
246
246
|
"displayed-actions": 2,
|
|
@@ -249,8 +249,8 @@ function _e(e, a, n, t, i, o) {
|
|
|
249
249
|
])
|
|
250
250
|
], 2);
|
|
251
251
|
}
|
|
252
|
-
const we = /* @__PURE__ */
|
|
252
|
+
const we = /* @__PURE__ */ oe(pe, [["render", _e], ["__scopeId", "data-v-a770cf88"]]);
|
|
253
253
|
export {
|
|
254
254
|
we as B
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=header.
|
|
256
|
+
//# sourceMappingURL=header.CUyEq2ER.js.map
|