@adyen/bento-vue3 1.85.0 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +358 -260
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +5 -0
- package/dist/anchor-scroller.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.yRlQj4VF.js → accordion-item.QQ06tTjt.js} +8 -8
- package/dist/chunks/{accordion-item.yRlQj4VF.js.map → accordion-item.QQ06tTjt.js.map} +1 -1
- package/dist/chunks/{action-bar.BlhZoFfL.js → action-bar.g7rM3wUc.js} +15 -15
- package/dist/chunks/{action-bar.BlhZoFfL.js.map → action-bar.g7rM3wUc.js.map} +1 -1
- package/dist/chunks/{ai-button.PAbhTT01.js → ai-button.XfeGC4-Q.js} +6 -6
- package/dist/chunks/{ai-button.PAbhTT01.js.map → ai-button.XfeGC4-Q.js.map} +1 -1
- package/dist/chunks/{ai-tag.CqMBHSfn.js → ai-tag.UlRkq54l.js} +34 -26
- package/dist/chunks/{ai-tag.CqMBHSfn.js.map → ai-tag.UlRkq54l.js.map} +1 -1
- package/dist/chunks/{alert.BYcw-u3b.js → alert.CDWtu0Hu.js} +11 -11
- package/dist/chunks/{alert.BYcw-u3b.js.map → alert.CDWtu0Hu.js.map} +1 -1
- package/dist/chunks/anchor-scroller.CKIQu3NK.js +215 -0
- package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +1 -0
- package/dist/chunks/{arrow-left.DoP6zFsY.js → arrow-left.C6UiqO-c.js} +5 -5
- package/dist/chunks/{arrow-left.DoP6zFsY.js.map → arrow-left.C6UiqO-c.js.map} +1 -1
- package/dist/chunks/{arrow-right.BVd1Dgd8.js → arrow-right.fSdLV_ho.js} +5 -5
- package/dist/chunks/{arrow-right.BVd1Dgd8.js.map → arrow-right.fSdLV_ho.js.map} +1 -1
- package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js → artificial-intelligence-ai-filled.AhDHffzT.js} +4 -4
- package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js.map → artificial-intelligence-ai-filled.AhDHffzT.js.map} +1 -1
- package/dist/chunks/{avatar.CNGMjwg3.js → avatar.Caeba-pw.js} +3 -3
- package/dist/chunks/{avatar.CNGMjwg3.js.map → avatar.Caeba-pw.js.map} +1 -1
- package/dist/chunks/{base-button.CUd03aA2.js → base-button.CRYAiuzn.js} +9 -9
- package/dist/chunks/{base-button.CUd03aA2.js.map → base-button.CRYAiuzn.js.map} +1 -1
- package/dist/chunks/{base-modal.CNETR72d.js → base-modal.D5HrjwL1.js} +23 -23
- package/dist/chunks/{base-modal.CNETR72d.js.map → base-modal.D5HrjwL1.js.map} +1 -1
- package/dist/chunks/{bin.DuHlEQBO.js → bin.Cude0fiB.js} +4 -4
- package/dist/chunks/{bin.DuHlEQBO.js.map → bin.Cude0fiB.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js → button-actions-with-menu.DBqA3Ws5.js} +7 -7
- package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js.map → button-actions-with-menu.DBqA3Ws5.js.map} +1 -1
- package/dist/chunks/{button-actions.Dk8xU2cz.js → button-actions.BH-J7dux.js} +17 -17
- package/dist/chunks/{button-actions.Dk8xU2cz.js.map → button-actions.BH-J7dux.js.map} +1 -1
- package/dist/chunks/{button.CSp48LJt.js → button.C6t9_lzm.js} +12 -12
- package/dist/chunks/{button.CSp48LJt.js.map → button.C6t9_lzm.js.map} +1 -1
- package/dist/chunks/{calendar.Dbc0yjyg.js → calendar.DzeJoNc2.js} +11 -11
- package/dist/chunks/{calendar.Dbc0yjyg.js.map → calendar.DzeJoNc2.js.map} +1 -1
- package/dist/chunks/{card.C7LbwK7Q.js → card.DcXXdxWL.js} +7 -7
- package/dist/chunks/{card.C7LbwK7Q.js.map → card.DcXXdxWL.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CCpe-S-E.js → checkbox-group.Bh_aqKoA.js} +11 -11
- package/dist/chunks/{checkbox-group.CCpe-S-E.js.map → checkbox-group.Bh_aqKoA.js.map} +1 -1
- package/dist/chunks/{checkbox-input.Dk9iFQQe.js → checkbox-input.BZjSoCQW.js} +4 -4
- package/dist/chunks/{checkbox-input.Dk9iFQQe.js.map → checkbox-input.BZjSoCQW.js.map} +1 -1
- package/dist/chunks/{checkbox.A35e7MsN.js → checkbox.7kpOXm-b.js} +22 -22
- package/dist/chunks/{checkbox.A35e7MsN.js.map → checkbox.7kpOXm-b.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill._6-d40ru.js → checkmark-circle-fill.DugX5fbG.js} +4 -4
- package/dist/chunks/{checkmark-circle-fill._6-d40ru.js.map → checkmark-circle-fill.DugX5fbG.js.map} +1 -1
- package/dist/chunks/{checkmark-small.x-gmK2Dt.js → checkmark-small.CRuZauJc.js} +5 -5
- package/dist/chunks/{checkmark-small.x-gmK2Dt.js.map → checkmark-small.CRuZauJc.js.map} +1 -1
- package/dist/chunks/{chevron-down.DCQ6ZLaq.js → chevron-down.XeE-LBV_.js} +5 -5
- package/dist/chunks/{chevron-down.DCQ6ZLaq.js.map → chevron-down.XeE-LBV_.js.map} +1 -1
- package/dist/chunks/{chevron-left.Cfn1uGLH.js → chevron-left.C_vPW7OR.js} +8 -8
- package/dist/chunks/{chevron-left.Cfn1uGLH.js.map → chevron-left.C_vPW7OR.js.map} +1 -1
- package/dist/chunks/{chevron-up.kfuLRpZb.js → chevron-up.Cmgl2a3x.js} +5 -5
- package/dist/chunks/{chevron-up.kfuLRpZb.js.map → chevron-up.Cmgl2a3x.js.map} +1 -1
- package/dist/chunks/{chip.eefnwpgE.js → chip.CyW1V8RU.js} +7 -7
- package/dist/chunks/{chip.eefnwpgE.js.map → chip.CyW1V8RU.js.map} +1 -1
- package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
- package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
- package/dist/chunks/{code-snippet.DKkTjYdC.js → code-snippet.UIqVTv4U.js} +15 -15
- package/dist/chunks/{code-snippet.DKkTjYdC.js.map → code-snippet.UIqVTv4U.js.map} +1 -1
- package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
- package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
- package/dist/chunks/{controls-group.BHOKajou.js → controls-group.Dip3WAKV.js} +10 -10
- package/dist/chunks/{controls-group.BHOKajou.js.map → controls-group.Dip3WAKV.js.map} +1 -1
- package/dist/chunks/{copy.CgITv6wr.js → copy.ByyQlckP.js} +6 -6
- package/dist/chunks/{copy.CgITv6wr.js.map → copy.ByyQlckP.js.map} +1 -1
- package/dist/chunks/{country.vSfTQW51.js → country.DJts6kCv.js} +5 -5
- package/dist/chunks/{country.vSfTQW51.js.map → country.DJts6kCv.js.map} +1 -1
- package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
- package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js → cross-circle-fill-small.H1wH-vcZ.js} +5 -5
- package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js.map → cross-circle-fill-small.H1wH-vcZ.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.CYLL7jfC.js → cross-circle-fill.BWCKKn0E.js} +4 -4
- package/dist/chunks/{cross-circle-fill.CYLL7jfC.js.map → cross-circle-fill.BWCKKn0E.js.map} +1 -1
- package/dist/chunks/{cross-small.n1UO5wNB.js → cross-small.Bjq2Gqvh.js} +5 -5
- package/dist/chunks/{cross-small.n1UO5wNB.js.map → cross-small.Bjq2Gqvh.js.map} +1 -1
- package/dist/chunks/{cross.B92GxFTY.js → cross.CCHdi6v3.js} +5 -5
- package/dist/chunks/{cross.B92GxFTY.js.map → cross.CCHdi6v3.js.map} +1 -1
- package/dist/chunks/{currency.DijmAkAB.js → currency.Afx8MVdY.js} +4 -4
- package/dist/chunks/{currency.DijmAkAB.js.map → currency.Afx8MVdY.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CrXdP_MQ.js → dashboard-section.CIHtXoeW.js} +8 -8
- package/dist/chunks/{dashboard-section.CrXdP_MQ.js.map → dashboard-section.CIHtXoeW.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BzppJBtk.js → dashed-underline.CLwPU-C2.js} +14 -14
- package/dist/chunks/{dashed-underline.BzppJBtk.js.map → dashed-underline.CLwPU-C2.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DFjdgxwb.js → data-grid-template.BTpSfkQt.js} +8 -8
- package/dist/chunks/{data-grid-template.DFjdgxwb.js.map → data-grid-template.BTpSfkQt.js.map} +1 -1
- package/dist/chunks/{data-grid.KkCt0Bgm.js → data-grid.CXDdiHz8.js} +457 -453
- package/dist/chunks/data-grid.CXDdiHz8.js.map +1 -0
- package/dist/chunks/date-input.XSJuuCHe.js +20 -0
- package/dist/chunks/date-input.XSJuuCHe.js.map +1 -0
- package/dist/chunks/{date-picker.dQuj_OF_.js → date-picker.CvTSZhMI.js} +82 -81
- package/dist/chunks/date-picker.CvTSZhMI.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BPCt7cwj.js +1100 -0
- package/dist/chunks/{date-range-picker.BAKR_gDf.js.map → date-range-picker.BPCt7cwj.js.map} +1 -1
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date.CL55prL0.js → date.BtB1HyWQ.js} +4 -4
- package/dist/chunks/{date.CL55prL0.js.map → date.BtB1HyWQ.js.map} +1 -1
- package/dist/chunks/dialog-page.B3ptLXXP.js +162 -0
- package/dist/chunks/dialog-page.B3ptLXXP.js.map +1 -0
- package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
- package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
- package/dist/chunks/{divider.Dho4_hQ7.js → divider.BIY84UH7.js} +5 -5
- package/dist/chunks/{divider.Dho4_hQ7.js.map → divider.BIY84UH7.js.map} +1 -1
- package/dist/chunks/{dot.ob6N-5Um.js → dot.DBmwmOUN.js} +5 -5
- package/dist/chunks/{dot.ob6N-5Um.js.map → dot.DBmwmOUN.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DFtFMu5G.js → dropdown-default-textbox.B-_dTUVX.js} +107 -117
- package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +1 -0
- package/dist/chunks/{dropdown-tag.CBgns9Y3.js → dropdown-tag.DDNOZhEG.js} +20 -20
- package/dist/chunks/{dropdown-tag.CBgns9Y3.js.map → dropdown-tag.DDNOZhEG.js.map} +1 -1
- package/dist/chunks/dropdown.CU6nfq3V.js +836 -0
- package/dist/chunks/dropdown.CU6nfq3V.js.map +1 -0
- package/dist/chunks/{empty-state.D_ifpeU-.js → empty-state.DqdPzU-g.js} +15 -15
- package/dist/chunks/{empty-state.D_ifpeU-.js.map → empty-state.DqdPzU-g.js.map} +1 -1
- package/dist/chunks/{field-label.OurHuGZS.js → error-message.BYA2_fPV.js} +67 -67
- package/dist/chunks/error-message.BYA2_fPV.js.map +1 -0
- package/dist/chunks/{expand.C9IAqYYL.js → expand.BrywY9jl.js} +4 -4
- package/dist/chunks/{expand.C9IAqYYL.js.map → expand.BrywY9jl.js.map} +1 -1
- package/dist/chunks/{file-uploader.CQgu9YIY.js → file-uploader.Q2ufNRTY.js} +79 -79
- package/dist/chunks/{file-uploader.CQgu9YIY.js.map → file-uploader.Q2ufNRTY.js.map} +1 -1
- package/dist/chunks/{filter-bar.BJmaoSr2.js → filter-bar.BVj9YVv-.js} +213 -205
- package/dist/chunks/{filter-bar.BJmaoSr2.js.map → filter-bar.BVj9YVv-.js.map} +1 -1
- package/dist/chunks/fixed-scroller.i1tmEmst.js +161 -0
- package/dist/chunks/{fixed-scroller.e56yJp7Q.js.map → fixed-scroller.i1tmEmst.js.map} +1 -1
- package/dist/chunks/{focus-trap.DH57j-Ov.js → focus-trap.CBvh2H_m.js} +294 -277
- package/dist/chunks/focus-trap.CBvh2H_m.js.map +1 -0
- package/dist/chunks/{footer-actions.BMggOsip.js → footer-actions.DLzMOB7j.js} +8 -8
- package/dist/chunks/{footer-actions.BMggOsip.js.map → footer-actions.DLzMOB7j.js.map} +1 -1
- package/dist/chunks/{form-layout-title.wnvpIbOe.js → form-layout-title.DYmTc6M7.js} +6 -6
- package/dist/chunks/{form-layout-title.wnvpIbOe.js.map → form-layout-title.DYmTc6M7.js.map} +1 -1
- package/dist/chunks/{grab.B63hmf-_.js → grab.DJYL4kBq.js} +5 -5
- package/dist/chunks/{grab.B63hmf-_.js.map → grab.DJYL4kBq.js.map} +1 -1
- package/dist/chunks/{grid-layout.DDaRNz4-.js → grid-layout.Vhv1_zFs.js} +21 -21
- package/dist/chunks/{grid-layout.DDaRNz4-.js.map → grid-layout.Vhv1_zFs.js.map} +1 -1
- package/dist/chunks/{header-meta.CkLmuprc.js → header-meta.Bw8ZGwJW.js} +13 -13
- package/dist/chunks/{header-meta.CkLmuprc.js.map → header-meta.Bw8ZGwJW.js.map} +1 -1
- package/dist/chunks/{header-with-views.BXZmqtnz.js → header-with-views.CJDoE4hw.js} +20 -20
- package/dist/chunks/{header-with-views.BXZmqtnz.js.map → header-with-views.CJDoE4hw.js.map} +1 -1
- package/dist/chunks/{header.RiaBKasj.js → header.BeH8KH_l.js} +14 -14
- package/dist/chunks/{header.RiaBKasj.js.map → header.BeH8KH_l.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.pdBj0KQU.js → index.B875RXHM.js} +3 -3
- package/dist/chunks/{index.pdBj0KQU.js.map → index.B875RXHM.js.map} +1 -1
- package/dist/chunks/index.CbxHJr39.js +691 -0
- package/dist/chunks/{index.CL07S4Wa.js.map → index.CbxHJr39.js.map} +1 -1
- package/dist/chunks/{info-icon.B6wfo65e.js → info-icon.BLtyJvY4.js} +9 -9
- package/dist/chunks/{info-icon.B6wfo65e.js.map → info-icon.BLtyJvY4.js.map} +1 -1
- package/dist/chunks/{info.BKwey1HA.js → info.6Z6NxUst.js} +4 -4
- package/dist/chunks/{info.BKwey1HA.js.map → info.6Z6NxUst.js.map} +1 -1
- package/dist/chunks/{input-field-password.ClyJRN6h.js → input-field-password.KeKQPIZv.js} +21 -21
- package/dist/chunks/{input-field-password.ClyJRN6h.js.map → input-field-password.KeKQPIZv.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CUdzwXz0.js → input-field-phone-number.eaU9p15A.js} +10 -10
- package/dist/chunks/{input-field-phone-number.CUdzwXz0.js.map → input-field-phone-number.eaU9p15A.js.map} +1 -1
- package/dist/chunks/{input-field.CFNofr-W.js → input-field.CNdqlGw6.js} +9 -9
- package/dist/chunks/{input-field.CFNofr-W.js.map → input-field.CNdqlGw6.js.map} +1 -1
- package/dist/chunks/{inspector.I4-8J_fd.js → inspector.Bnf0g7QE.js} +16 -16
- package/dist/chunks/{inspector.I4-8J_fd.js.map → inspector.Bnf0g7QE.js.map} +1 -1
- package/dist/chunks/{isSameWeek.5sjhTHiU.js → isSameWeek.DjeUtLwI.js} +2 -2
- package/dist/chunks/{isSameWeek.5sjhTHiU.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
- package/dist/chunks/{it.DEniTaO2.js → it.DIafuXtH.js} +2 -2
- package/dist/chunks/{it.DEniTaO2.js.map → it.DIafuXtH.js.map} +1 -1
- package/dist/chunks/{layout-row.Ccw24NzW.js → layout-row.Bz-mRqAq.js} +4 -4
- package/dist/chunks/{layout-row.Ccw24NzW.js.map → layout-row.Bz-mRqAq.js.map} +1 -1
- package/dist/chunks/{link.BLCQlEZU.js → link.DTCn2EtX.js} +11 -11
- package/dist/chunks/{link.BLCQlEZU.js.map → link.DTCn2EtX.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BHQiD5oC.js → listbox-option-tag.C3ihNg6_.js} +9 -9
- package/dist/chunks/{listbox-option-tag.BHQiD5oC.js.map → listbox-option-tag.C3ihNg6_.js.map} +1 -1
- package/dist/chunks/{loading-indicator.Db794TT5.js → loading-indicator.BPol9I84.js} +3 -3
- package/dist/chunks/{loading-indicator.Db794TT5.js.map → loading-indicator.BPol9I84.js.map} +1 -1
- package/dist/chunks/{minus-small.DYIyF5XW.js → minus-small.CnYLTuSv.js} +5 -5
- package/dist/chunks/{minus-small.DYIyF5XW.js.map → minus-small.CnYLTuSv.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.f445bZ94.js → modal-fullscreen.B3AGUJgl.js} +100 -96
- package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js} +13 -13
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map} +1 -1
- package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
- package/dist/chunks/{pagination.DuRU9Xg_.js → pagination.lu9nx8j8.js} +10 -10
- package/dist/chunks/{pagination.DuRU9Xg_.js.map → pagination.lu9nx8j8.js.map} +1 -1
- package/dist/chunks/{payment-method.BGEBaa4w.js → payment-method.AeKHZlAO.js} +3 -3
- package/dist/chunks/{payment-method.BGEBaa4w.js.map → payment-method.AeKHZlAO.js.map} +1 -1
- package/dist/chunks/popover.types.C_Z2JeVK.js +6 -0
- package/dist/chunks/{popover.types.BbYumG-N.js.map → popover.types.C_Z2JeVK.js.map} +1 -1
- package/dist/chunks/popper-container.BefZxTzP.js +1432 -0
- package/dist/chunks/popper-container.BefZxTzP.js.map +1 -0
- package/dist/chunks/{promo-banner.DzIYjBfG.js → promo-banner.BLie64oS.js} +11 -11
- package/dist/chunks/{promo-banner.DzIYjBfG.js.map → promo-banner.BLie64oS.js.map} +1 -1
- package/dist/chunks/{radio-group.EqsvAKt2.js → radio-group.C6nQRQDB.js} +20 -20
- package/dist/chunks/{radio-group.EqsvAKt2.js.map → radio-group.C6nQRQDB.js.map} +1 -1
- package/dist/chunks/{radio-input.CBNE-AkM.js → radio-input.DektLjN4.js} +3 -3
- package/dist/chunks/{radio-input.CBNE-AkM.js.map → radio-input.DektLjN4.js.map} +1 -1
- package/dist/chunks/{refresh.BB4ouvz_.js → refresh.C31KClfx.js} +5 -5
- package/dist/chunks/{refresh.BB4ouvz_.js.map → refresh.C31KClfx.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.-JS_rIjs.js → rich-text-editor.C39NKgl0.js} +11 -15
- package/dist/chunks/rich-text-editor.C39NKgl0.js.map +1 -0
- package/dist/chunks/{search-bar.DPc0omnd.js → search-bar.CbTrg2Sk.js} +10 -10
- package/dist/chunks/{search-bar.DPc0omnd.js.map → search-bar.CbTrg2Sk.js.map} +1 -1
- package/dist/chunks/{search.PczW-onY.js → search.ClLmZAgC.js} +4 -4
- package/dist/chunks/{search.PczW-onY.js.map → search.ClLmZAgC.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BGKR8l0u.js → secondary-nav.DTOZQewf.js} +25 -25
- package/dist/chunks/secondary-nav.DTOZQewf.js.map +1 -0
- package/dist/chunks/{segmented-control.CFPAl4HD.js → segmented-control.D9rHBysM.js} +9 -9
- package/dist/chunks/{segmented-control.CFPAl4HD.js.map → segmented-control.D9rHBysM.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BL0LTYhI.js → selection-card-group.KEsG0D5V.js} +9 -9
- package/dist/chunks/{selection-card-group.BL0LTYhI.js.map → selection-card-group.KEsG0D5V.js.map} +1 -1
- package/dist/chunks/{show.CT4Augxb.js → show.BreRPkgL.js} +6 -6
- package/dist/chunks/{show.CT4Augxb.js.map → show.BreRPkgL.js.map} +1 -1
- package/dist/chunks/{sidepanel.sWMdYcUC.js → sidepanel.DJCagqzl.js} +73 -69
- package/dist/chunks/sidepanel.DJCagqzl.js.map +1 -0
- package/dist/chunks/{startOfWeek.CM1KIrNi.js → startOfWeek.D8Yh4c0G.js} +3 -3
- package/dist/chunks/{startOfWeek.CM1KIrNi.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
- package/dist/chunks/{status.types.ChOI6XGU.js → status.types.D3v3k-Q8.js} +6 -6
- package/dist/chunks/{status.types.ChOI6XGU.js.map → status.types.D3v3k-Q8.js.map} +1 -1
- package/dist/chunks/{step.DpgnDx29.js → step.BV7MsrRF.js} +9 -9
- package/dist/chunks/{step.DpgnDx29.js.map → step.BV7MsrRF.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Uky_MJPp.js → structured-list-item.f1tmHSEN.js} +9 -9
- package/dist/chunks/{structured-list-item.Uky_MJPp.js.map → structured-list-item.f1tmHSEN.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.R-TEtkgx.js → summary-grid.types.COcV-sOB.js} +13 -13
- package/dist/chunks/{summary-grid.types.R-TEtkgx.js.map → summary-grid.types.COcV-sOB.js.map} +1 -1
- package/dist/chunks/{tab.JPngc9oS.js → tab.DRrnMCxe.js} +6 -6
- package/dist/chunks/{tab.JPngc9oS.js.map → tab.DRrnMCxe.js.map} +1 -1
- package/dist/chunks/{tag.CNN_D55j.js → tag.Dr7MKe9q.js} +9 -9
- package/dist/chunks/{tag.CNN_D55j.js.map → tag.Dr7MKe9q.js.map} +1 -1
- package/dist/chunks/{textarea.BGcYYD8C.js → textarea.CtgbUCjH.js} +7 -7
- package/dist/chunks/{textarea.BGcYYD8C.js.map → textarea.CtgbUCjH.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cbd_rb9J.js → timeline-item.D9nmCe6u.js} +41 -41
- package/dist/chunks/{timeline-item.Cbd_rb9J.js.map → timeline-item.D9nmCe6u.js.map} +1 -1
- package/dist/chunks/{toast.DiIIrX7h.js → toast.Bbtq3Icj.js} +22 -22
- package/dist/chunks/{toast.DiIIrX7h.js.map → toast.Bbtq3Icj.js.map} +1 -1
- package/dist/chunks/{toggle.vl0ZwLhN.js → toggle.BupEBkIG.js} +6 -6
- package/dist/chunks/{toggle.vl0ZwLhN.js.map → toggle.BupEBkIG.js.map} +1 -1
- package/dist/chunks/{tooltip.CqV3Okcs.js → tooltip.DYpJZ-99.js} +60 -60
- package/dist/chunks/tooltip.DYpJZ-99.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js} +9 -9
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map} +1 -1
- package/dist/chunks/{typography.6Oo5TOMP.js → typography.B3J6_tYk.js} +5 -5
- package/dist/chunks/{typography.6Oo5TOMP.js.map → typography.B3J6_tYk.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js → use-bento-toast-controller.BFctDoMg.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js.map → use-bento-toast-controller.BFctDoMg.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.iGHt7ROs.js → use-cached-selected-values.BiSuG1eX.js} +20 -20
- package/dist/chunks/use-cached-selected-values.BiSuG1eX.js.map +1 -0
- package/dist/chunks/{use-country-items.JZCYNoW7.js → use-country-items.BTzByPdQ.js} +9 -9
- package/dist/chunks/{use-country-items.JZCYNoW7.js.map → use-country-items.BTzByPdQ.js.map} +1 -1
- package/dist/chunks/utils.BzUwtTXc.js +21 -0
- package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
- package/dist/chunks/{warning-filled.BMGD0G-_.js → warning-filled.BzyK_mMj.js} +5 -5
- package/dist/chunks/{warning-filled.BMGD0G-_.js.map → warning-filled.BzyK_mMj.js.map} +1 -1
- package/dist/chunks/{zh-CN.CgIooHto.js → zh-CN.Bw_6j9Cd.js} +2 -2
- package/dist/chunks/{zh-CN.CgIooHto.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/draggable-handle.js +73 -57
- package/dist/draggable-handle.js.map +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-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +278 -276
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +42 -42
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/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 +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/use-form-v4.js +756 -7787
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/assets/field-label.css +0 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
- package/dist/chunks/data-grid.KkCt0Bgm.js.map +0 -1
- package/dist/chunks/date-input.BbZqj10S.js +0 -15
- package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
- package/dist/chunks/date-picker.dQuj_OF_.js.map +0 -1
- package/dist/chunks/date-range-picker.BAKR_gDf.js +0 -1100
- package/dist/chunks/dialog-page.CF10AQQ3.js +0 -158
- package/dist/chunks/dialog-page.CF10AQQ3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +0 -1
- package/dist/chunks/dropdown.DmzMGz30.js +0 -837
- package/dist/chunks/dropdown.DmzMGz30.js.map +0 -1
- package/dist/chunks/field-label.OurHuGZS.js.map +0 -1
- package/dist/chunks/fixed-scroller.e56yJp7Q.js +0 -155
- package/dist/chunks/focus-trap.DH57j-Ov.js.map +0 -1
- package/dist/chunks/index.CL07S4Wa.js +0 -592
- package/dist/chunks/modal-fullscreen.f445bZ94.js.map +0 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
- package/dist/chunks/popover.types.BbYumG-N.js +0 -6
- package/dist/chunks/popper-container.DdG_YvVF.js +0 -1413
- package/dist/chunks/popper-container.DdG_YvVF.js.map +0 -1
- package/dist/chunks/rich-text-editor.-JS_rIjs.js.map +0 -1
- package/dist/chunks/secondary-nav.BGKR8l0u.js.map +0 -1
- package/dist/chunks/sidepanel.sWMdYcUC.js.map +0 -1
- package/dist/chunks/tooltip.CqV3Okcs.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.iGHt7ROs.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as p, useSlots as f, computed as m, onMounted as b,
|
|
2
|
-
import { B as I } from "./button.
|
|
3
|
-
import { A as S } from "./artificial-intelligence-ai-filled.
|
|
1
|
+
import { defineComponent as p, useSlots as f, computed as m, onMounted as b, openBlock as _, createElementBlock as v, normalizeClass as B, createElementVNode as k, createVNode as o, withModifiers as C, withCtx as n, renderSlot as y, unref as A } from "vue";
|
|
2
|
+
import { B as I } from "./button.C6t9_lzm.js";
|
|
3
|
+
import { A as S } from "./artificial-intelligence-ai-filled.AhDHffzT.js";
|
|
4
4
|
import { u as g } from "./use-has-slot.B7eQSabc.js";
|
|
5
|
-
import { p as h } from "./typography.
|
|
5
|
+
import { p as h } from "./typography.B3J6_tYk.js";
|
|
6
6
|
import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import "../assets/ai-button.css";
|
|
8
8
|
const E = {
|
|
@@ -25,7 +25,7 @@ const E = {
|
|
|
25
25
|
};
|
|
26
26
|
return b(() => {
|
|
27
27
|
r("default") || h("An icon-only button cannot be a AI button");
|
|
28
|
-
}), (t, e) => (
|
|
28
|
+
}), (t, e) => (_(), v("div", {
|
|
29
29
|
class: B(["b-ai-button", c.value])
|
|
30
30
|
}, [
|
|
31
31
|
e[0] || (e[0] = k("div", { class: "b-ai-button__animation" }, null, -1)),
|
|
@@ -54,4 +54,4 @@ const E = {
|
|
|
54
54
|
export {
|
|
55
55
|
P as a
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=ai-button.
|
|
57
|
+
//# sourceMappingURL=ai-button.XfeGC4-Q.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-button.
|
|
1
|
+
{"version":3,"file":"ai-button.XfeGC4-Q.js","sources":["../../../vue2/src/components/button/components/ai-button/ai-button.vue"],"sourcesContent":["<template>\n <div class=\"b-ai-button\" :class=\"conditionalClass\">\n <div class=\"b-ai-button__animation\" />\n\n <bento-button\n class=\"b-ai-button__button\"\n :condensed=\"condensed\"\n :disabled=\"disabled\"\n :inverse=\"inverse\"\n variant=\"secondary\"\n @click.capture.stop=\"onClick\"\n >\n <template #iconLeft>\n <ai-filled-icon aria-hidden=\"true\" class=\"b-ai-button__icon\" />\n </template>\n\n <slot></slot>\n </bento-button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n import BentoButton from '../../button.vue';\n import AiFilledIcon from '@adyen/ui-assets-icons-16/vue/artificial-intelligence-ai-filled';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import { type BentoAiButtonProps } from './ai-button.types';\n\n const props = withDefaults(defineProps<BentoAiButtonProps>(), {\n link: undefined,\n type: 'button',\n condensed: false,\n disabled: false,\n inverse: false,\n });\n\n const emit = defineEmits<{\n /**\n * Click event handler\n */\n (e: 'click', event: MouseEvent): void;\n }>();\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const conditionalClass = computed(() => ({\n 'b-ai-button--disabled': props.disabled,\n }));\n\n const onClick = (e: MouseEvent) => {\n // Prevent Vue3 from triggering event twice\n e.stopPropagation();\n\n emit('click', e);\n };\n\n onMounted(() => {\n if (!hasSlot('default')) {\n printDevelopmentWarning('An icon-only button cannot be a AI button');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * AI Button component is used for cases where pressing a button starts an AI-related action.\n *\n * @example\n * import { BentoAiButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAiButton },\n * template: `\n * <bento-ai-button @click=\"onClick\">Generate with AI</bento-ai-button>\n * `\n * }\n */\n export default {\n name: 'bento-ai-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./ai-button.scss\" />\n"],"names":["__default__","props","__props","emit","__emit","slots","useSlots","hasSlot","useHasSlot","conditionalClass","computed","onClick","e","onMounted","printDevelopmentWarning"],"mappings":";;;;;;;AA+EI,MAAAA,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;AApDA,UAAAC,IAAAC,GAQAC,IAAAC,GAOAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OAAA;AAAA,MAAyC,yBAAAT,EAAA;AAAA,IACN,EAAA,GAGnCU,IAAA,CAAAC,MAAA;AAEI,MAAAA,EAAA,gBAAA,GAEAT,EAAA,SAAAS,CAAA;AAAA,IAAe;AAGnB,WAAAC,EAAA,MAAA;AACI,MAAAN,EAAA,SAAA,KACIO,EAAA,2CAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as N, c as D, h as
|
|
3
|
-
import { B as g } from "./typography.
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as
|
|
6
|
-
import { A as
|
|
7
|
-
import { _ as
|
|
1
|
+
import { defineComponent as x, ref as d, watch as E, computed as T, openBlock as p, createElementBlock as V, withKeys as w, createVNode as i, unref as e, withCtx as a, createTextVNode as r, toDisplayString as s, createBlock as v, createElementVNode as C, createCommentVNode as y } from "vue";
|
|
2
|
+
import { u as N, c as D, h as P } from "./button-actions.BH-J7dux.js";
|
|
3
|
+
import { B as g } from "./typography.B3J6_tYk.js";
|
|
4
|
+
import { u as R } from "./index.B875RXHM.js";
|
|
5
|
+
import { g as U } from "./generate-uid.NJ8tVoha.js";
|
|
6
|
+
import { A as I } from "./artificial-intelligence-ai-filled.AhDHffzT.js";
|
|
7
|
+
import { _ as K } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import "../assets/ai-tag.css";
|
|
9
|
-
const
|
|
9
|
+
const h = {
|
|
10
10
|
"en-US": {
|
|
11
11
|
ai: "AI",
|
|
12
12
|
aiExplained: "AI explained"
|
|
13
|
+
},
|
|
14
|
+
"ja-JP": {
|
|
15
|
+
ai: "AI",
|
|
16
|
+
aiExplained: "AIについての説明"
|
|
17
|
+
},
|
|
18
|
+
"pt-BR": {
|
|
19
|
+
ai: "IA",
|
|
20
|
+
aiExplained: "IA explicada"
|
|
13
21
|
}
|
|
14
|
-
},
|
|
15
|
-
i18n: { messages:
|
|
16
|
-
},
|
|
22
|
+
}, O = { class: "b-ai-tag__popover-content" }, S = {
|
|
23
|
+
i18n: { messages: h }
|
|
24
|
+
}, j = /* @__PURE__ */ x({
|
|
17
25
|
...S,
|
|
18
26
|
__name: "ai-tag",
|
|
19
27
|
props: {
|
|
@@ -24,9 +32,9 @@ const k = {
|
|
|
24
32
|
action: { default: void 0 }
|
|
25
33
|
},
|
|
26
34
|
emits: ["update:toggled"],
|
|
27
|
-
setup(
|
|
28
|
-
const n =
|
|
29
|
-
|
|
35
|
+
setup(A, { emit: B }) {
|
|
36
|
+
const n = A, { t: u } = R({ messages: h }), o = d(n.toggled), f = d(null), c = d(null), m = U("b-ai-tag-popover");
|
|
37
|
+
E(
|
|
30
38
|
() => n.toggled,
|
|
31
39
|
(t) => {
|
|
32
40
|
o.value = t;
|
|
@@ -34,23 +42,23 @@ const k = {
|
|
|
34
42
|
), N(f, () => {
|
|
35
43
|
l();
|
|
36
44
|
});
|
|
37
|
-
const
|
|
45
|
+
const k = T(
|
|
38
46
|
() => n.action ? [
|
|
39
47
|
{
|
|
40
48
|
...n.action,
|
|
41
49
|
variant: "secondary"
|
|
42
50
|
}
|
|
43
51
|
] : void 0
|
|
44
|
-
),
|
|
45
|
-
o.value = t,
|
|
52
|
+
), b = B, _ = (t) => {
|
|
53
|
+
o.value = t, b("update:toggled", t);
|
|
46
54
|
}, l = () => {
|
|
47
55
|
o.value && _(!1);
|
|
48
56
|
};
|
|
49
|
-
return (t,
|
|
57
|
+
return (t, J) => (p(), V("div", {
|
|
50
58
|
ref_key: "aiTagRef",
|
|
51
59
|
ref: f,
|
|
52
60
|
class: "b-ai-tag",
|
|
53
|
-
onKeydown:
|
|
61
|
+
onKeydown: w(l, ["esc"])
|
|
54
62
|
}, [
|
|
55
63
|
i(e(D), {
|
|
56
64
|
ref_key: "targetElement",
|
|
@@ -63,7 +71,7 @@ const k = {
|
|
|
63
71
|
"onUpdate:toggled": _
|
|
64
72
|
}, {
|
|
65
73
|
iconLeft: a(() => [
|
|
66
|
-
i(e(
|
|
74
|
+
i(e(I), {
|
|
67
75
|
class: "b-ai-tag__trigger-icon",
|
|
68
76
|
"aria-hidden": !0
|
|
69
77
|
})
|
|
@@ -73,12 +81,12 @@ const k = {
|
|
|
73
81
|
]),
|
|
74
82
|
_: 1
|
|
75
83
|
}, 8, ["toggled", "aria-controls"]),
|
|
76
|
-
c.value ? (p(), v(e(
|
|
84
|
+
c.value ? (p(), v(e(P), {
|
|
77
85
|
key: 0,
|
|
78
86
|
id: e(m),
|
|
79
87
|
open: o.value,
|
|
80
88
|
"target-element": c.value,
|
|
81
|
-
actions:
|
|
89
|
+
actions: k.value,
|
|
82
90
|
"actions-layout": "fill-container",
|
|
83
91
|
title: e(u)("aiExplained"),
|
|
84
92
|
"trap-all": "",
|
|
@@ -88,13 +96,13 @@ const k = {
|
|
|
88
96
|
onDismiss: l
|
|
89
97
|
}, {
|
|
90
98
|
headerIcon: a(() => [
|
|
91
|
-
i(e(
|
|
99
|
+
i(e(I), {
|
|
92
100
|
class: "b-ai-tag__popover-header-icon",
|
|
93
101
|
"aria-hidden": !0
|
|
94
102
|
})
|
|
95
103
|
]),
|
|
96
104
|
default: a(() => [
|
|
97
|
-
C("div",
|
|
105
|
+
C("div", O, [
|
|
98
106
|
t.influencedValue ? (p(), v(e(g), {
|
|
99
107
|
key: 0,
|
|
100
108
|
variant: "title",
|
|
@@ -124,8 +132,8 @@ const k = {
|
|
|
124
132
|
}, 8, ["id", "open", "target-element", "actions", "title", "trap-all-options"])) : y("", !0)
|
|
125
133
|
], 544));
|
|
126
134
|
}
|
|
127
|
-
}), Q = /* @__PURE__ */
|
|
135
|
+
}), Q = /* @__PURE__ */ K(j, [["__scopeId", "data-v-18003291"]]);
|
|
128
136
|
export {
|
|
129
137
|
Q as a
|
|
130
138
|
};
|
|
131
|
-
//# sourceMappingURL=ai-tag.
|
|
139
|
+
//# sourceMappingURL=ai-tag.UlRkq54l.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-tag.
|
|
1
|
+
{"version":3,"file":"ai-tag.UlRkq54l.js","sources":["../../../vue2/src/components/ai-tag/ai-tag.vue"],"sourcesContent":["<template>\n <div ref=\"aiTagRef\" class=\"b-ai-tag\" @keydown.esc=\"closePopover\">\n <bento-toggle-button\n ref=\"targetElement\"\n :toggled=\"toggled\"\n :aria-controls=\"popoverId\"\n variant=\"secondary\"\n condensed\n class=\"b-ai-tag__trigger\"\n @update:toggled=\"onToggle\"\n >\n <template #iconLeft>\n <artificial-intelligence-ai-icon class=\"b-ai-tag__trigger-icon\" :aria-hidden=\"true\" />\n </template>\n {{ t('ai') }}\n </bento-toggle-button>\n\n <bento-popover\n v-if=\"targetElement\"\n :id=\"popoverId\"\n :open=\"toggled\"\n :target-element=\"targetElement\"\n :actions=\"popoverActions\"\n actions-layout=\"fill-container\"\n :title=\"t('aiExplained')\"\n trap-all\n :trap-all-options=\"{ onDeactivate: closePopover, allowOutsideClick: true }\"\n fixed-positioning\n overflow-visible\n @dismiss=\"closePopover\"\n >\n <template #headerIcon>\n <artificial-intelligence-ai-icon class=\"b-ai-tag__popover-header-icon\" :aria-hidden=\"true\" />\n </template>\n <div class=\"b-ai-tag__popover-content\">\n <bento-typography v-if=\"influencedValue\" variant=\"title\" medium class=\"b-ai-tag__influenced-value\">\n {{ influencedValue }}\n </bento-typography>\n\n <bento-typography variant=\"title\">\n {{ title }}\n </bento-typography>\n\n <bento-typography>\n {{ description }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, watch } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoToggleButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { useClickOutside } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import type { BentoButtonActionsList } from '@/components/button/components/button-actions/button-actions.types';\n import ArtificialIntelligenceAiIcon from '@adyen/ui-assets-icons-16/vue/artificial-intelligence-ai-filled';\n import type { BentoAiTagProps } from './ai-tag.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoAiTagProps>(), {\n influencedValue: undefined,\n toggled: false,\n action: undefined,\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const toggled = ref(props.toggled);\n const aiTagRef = ref<HTMLElement | null>(null);\n const targetElement = ref<InstanceType<typeof BentoToggleButton> | null>(null);\n const popoverId = generateUid('b-ai-tag-popover');\n\n watch(\n () => props.toggled,\n value => {\n toggled.value = value;\n }\n );\n\n useClickOutside(aiTagRef, () => {\n closePopover();\n });\n\n const popoverActions = computed<BentoButtonActionsList>(() =>\n props.action\n ? [\n {\n ...props.action,\n variant: 'secondary',\n },\n ]\n : undefined\n );\n\n const emit = defineEmits<{\n /**\n * Triggered when the popover is toggled\n */\n (e: 'update:toggled', toggled: boolean): void;\n }>();\n\n const onToggle = (value: boolean) => {\n toggled.value = value;\n emit('update:toggled', value);\n };\n\n const closePopover = () => {\n if (toggled.value) {\n onToggle(false);\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * The AI tag is a component used to transparently identify content, data, or experiences that have been generated or\n * enhanced by artificial intelligence.\n *\n * @example\n * import { BentoAiTag } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAiTag },\n * template: `\n * <bento-ai-tag\n * title=\"Input fields auto-filled by AI\"\n * description=\"Based on your documents uploaded, AI has auto-filled some information for you.\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./ai-tag.scss\" />\n"],"names":["__default__","messages","props","__props","t","useI18n","toggled","ref","aiTagRef","targetElement","popoverId","generateUid","watch","value","useClickOutside","closePopover","popoverActions","computed","emit","__emit","onToggle"],"mappings":";;;;;;;;;;;;;;;;;;;;;+CA0IIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;AA1EA,UAAAC,IAAAC,GAMA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAJ,EAAA,CAAA,GAEAK,IAAAC,EAAAL,EAAA,OAAA,GACAM,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAC,EAAA,kBAAA;AAEA,IAAAC;AAAA,MAAA,MAAAV,EAAA;AAAA,MACgB,CAAAW,MAAA;AAER,QAAAP,EAAA,QAAAO;AAAA,MAAgB;AAAA,IACpB,GAGJC,EAAAN,GAAA,MAAA;AACI,MAAAO,EAAA;AAAA,IAAa,CAAA;AAGjB,UAAAC,IAAAC;AAAA,MAAuB,MAAAf,EAAA,SAAA;AAAA,QAEb;AAAA,UACI,GAAAA,EAAA;AAAA,UACa,SAAA;AAAA,QACA;AAAA,MACb,IAAA;AAAA,IAEJ,GAGVgB,IAAAC,GAOAC,IAAA,CAAAP,MAAA;AACI,MAAAP,EAAA,QAAAO,GACAK,EAAA,kBAAAL,CAAA;AAAA,IAA4B,GAGhCE,IAAA,MAAA;AACI,MAAAT,EAAA,SACIc,EAAA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { B as W } from "./button.
|
|
4
|
-
import { C as M } from "./cross-small.
|
|
5
|
-
import { W as Z } from "./warning-filled.
|
|
6
|
-
import { C as q } from "./cross-circle-fill.
|
|
7
|
-
import { C as j } from "./checkmark-circle-fill.
|
|
1
|
+
import { openBlock as o, createElementBlock as f, mergeProps as L, toDisplayString as V, createCommentVNode as c, createElementVNode as s, defineComponent as N, useSlots as R, computed as r, onMounted as A, normalizeClass as P, createBlock as p, resolveDynamicComponent as D, unref as e, withCtx as _, renderSlot as h, createVNode as F } from "vue";
|
|
2
|
+
import { c as I, a as U, B as y } from "./typography.B3J6_tYk.js";
|
|
3
|
+
import { B as W } from "./button.C6t9_lzm.js";
|
|
4
|
+
import { C as M } from "./cross-small.Bjq2Gqvh.js";
|
|
5
|
+
import { W as Z } from "./warning-filled.BzyK_mMj.js";
|
|
6
|
+
import { C as q } from "./cross-circle-fill.BWCKKn0E.js";
|
|
7
|
+
import { C as j } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { _ as b } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
10
|
import { u as z } from "./use-has-slot.B7eQSabc.js";
|
|
11
|
-
import { u as J } from "./index.
|
|
11
|
+
import { u as J } from "./index.B875RXHM.js";
|
|
12
12
|
import "../assets/alert.css";
|
|
13
13
|
var m = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.TIP = "tip", t))(m || {}), n = /* @__PURE__ */ ((t) => (t.WARNING = "warning", t.CRITICAL = "critical", t.HIGHLIGHT = "highlight", t.SUCCESS = "success", t))(n || {}), S = /* @__PURE__ */ ((t) => (t.CLOSE_ALERT = "close-alert", t))(S || {});
|
|
14
14
|
let H = 0;
|
|
@@ -172,8 +172,8 @@ const x = /* @__PURE__ */ b(O, [["render", X]]), T = {
|
|
|
172
172
|
}), vt = /* @__PURE__ */ b(nt, [["__scopeId", "data-v-5c5a81b8"]]);
|
|
173
173
|
export {
|
|
174
174
|
vt as B,
|
|
175
|
-
|
|
175
|
+
S as a,
|
|
176
176
|
n as b,
|
|
177
|
-
|
|
177
|
+
m as c
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=alert.
|
|
179
|
+
//# sourceMappingURL=alert.CDWtu0Hu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.BYcw-u3b.js","sources":["../../../vue2/src/components/alert/alert.types.ts","../../../ui-assets/icons-16/dist/vue/info-filled.vue","../../../vue2/src/components/alert/alert.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertVariant {\n DEFAULT = 'default',\n TIP = 'tip',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertTypeOption {\n WARNING = 'warning',\n CRITICAL = 'critical',\n HIGHLIGHT = 'highlight',\n SUCCESS = 'success',\n}\n\n/**\n * @deprecated from version 2.0.0. Use \"@close-alert\" instead.\n */\nexport enum BentoAlertEvent {\n CLOSE_ALERT = 'close-alert',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-ui-assets/icons-16-info_filled__a' + uuid + ')'\"><path fill=\"#001222\" fill-rule=\"evenodd\" d=\"M5.03418 0.839544C6.45015 0.253058 8.00853 0.0992122 9.51172 0.398138C11.015 0.697159 12.3966 1.43547 13.4805 2.51923C14.5642 3.60301 15.3025 4.98476 15.6016 6.48798C15.9005 7.99113 15.7466 9.54958 15.1602 10.9655C14.5736 12.3816 13.5801 13.5925 12.3057 14.444C11.1109 15.2423 9.71924 15.6917 8.28711 15.7448L8 15.7497C5.94458 15.7497 3.97294 14.9336 2.51953 13.4802C1.06623 12.0268 0.250005 10.055 0.25 7.9997C0.250066 6.4671 0.70424 4.96838 1.55566 3.69404C2.40724 2.41967 3.61814 1.42609 5.03418 0.839544ZM6.25 6.2497V7.7497H7.25V10.2497H6.25V11.7497H9.75V10.2497H8.75V6.2497H6.25ZM7.75 3.4997C7.58674 3.4997 7.42763 3.54211 7.28418 3.61786C7.25386 3.63389 7.22303 3.64949 7.19434 3.66865L7.07812 3.75947C7.04744 3.78732 7.01817 3.817 6.99121 3.84833C6.97917 3.86236 6.96827 3.8776 6.95703 3.89228C6.93942 3.91522 6.9228 3.93915 6.90723 3.96357C6.90005 3.97485 6.89248 3.98618 6.88574 3.99775C6.86351 4.03594 6.84324 4.07574 6.82617 4.11689L6.78027 4.25751C6.77017 4.29795 6.7628 4.33927 6.75781 4.38056C6.75552 4.39961 6.75411 4.41902 6.75293 4.43818C6.75166 4.45856 6.75196 4.47926 6.75195 4.4997C6.75195 4.52207 6.75144 4.54472 6.75293 4.56708C6.75579 4.60979 6.76114 4.65273 6.76953 4.69501L6.80859 4.83661C6.82299 4.87685 6.84098 4.91584 6.86035 4.9538C6.86847 4.96971 6.87775 4.98522 6.88672 5.00068C6.89748 5.01922 6.90895 5.03753 6.9209 5.05536C6.93323 5.07376 6.94544 5.09248 6.95898 5.11005C6.98495 5.14371 7.01269 5.17643 7.04297 5.20673L7.1543 5.30341C7.19021 5.33003 7.2285 5.35325 7.26758 5.3747C7.27775 5.38031 7.28847 5.38508 7.29883 5.39033C7.32903 5.40554 7.35995 5.41924 7.3916 5.43134C7.40264 5.43559 7.41361 5.44018 7.4248 5.44404C7.46721 5.45855 7.51041 5.47134 7.55469 5.48017C7.59672 5.48853 7.63919 5.49291 7.68164 5.49579C7.70021 5.49707 7.71872 5.49751 7.7373 5.49775C7.76179 5.49804 7.78614 5.49729 7.81055 5.49579C7.82982 5.49462 7.84899 5.4932 7.86816 5.49091C7.90982 5.48592 7.95139 5.47962 7.99219 5.46943L8.13281 5.42353C8.1739 5.40649 8.21283 5.38517 8.25098 5.36298C8.2626 5.35623 8.27383 5.3487 8.28516 5.3415C8.30964 5.32589 8.33345 5.30934 8.35645 5.29169C8.37116 5.28043 8.38633 5.26958 8.40039 5.25751C8.43176 5.23053 8.46235 5.20229 8.49023 5.17158L8.58105 5.05536C8.69084 4.89096 8.75 4.6974 8.75 4.4997C8.74992 4.2346 8.64449 3.98013 8.45703 3.79267C8.26951 3.60523 8.01514 3.4997 7.75 3.4997Z\" clip-rule=\"evenodd\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info_filled__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-alert\" :role=\"computedRole\">\n <div class=\"b-alert__inner-container\" :class=\"alertConditionalClasses\">\n <div class=\"b-alert__icon\">\n <component :is=\"iconComponent\" aria-hidden=\"true\" :svg-title=\"iconSvgTitle\" />\n </div>\n\n <div class=\"b-alert__content\">\n <bento-typography\n v-if=\"hasSlot('default') && !isTipVariant\"\n class=\"b-alert__title\"\n el=\"div\"\n variant=\"body\"\n strongest\n wide\n >\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-alert__description\"\n v-bind=\"descriptionTypography\"\n data-testid=\"alert-description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n\n <div v-if=\"hasSlot('actions') && !isTipVariant\" class=\"b-alert__actions\" data-testid=\"alert-actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n\n <bento-button\n v-if=\"closeButton && !isTipVariant\"\n class=\"b-alert__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n @click=\"onCloseButtonClick\"\n >\n <cross-small :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n\n // Component\n import { BentoAlertEvent, BentoAlertTypeOption, BentoAlertVariant } from '@/components/alert/alert.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n\n import CrossSmall from '@adyen/ui-assets-icons-16/vue/cross-small';\n import Warning from '@adyen/ui-assets-icons-16/vue/warning-filled';\n import CrossCircle from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CheckedCircle from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import Info from '@adyen/ui-assets-icons-16/vue/info-filled';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits event when the alert is closed. `closeButton` must be `true`\n */\n (e: 'close-alert');\n }>();\n\n const props = withDefaults(\n defineProps<{\n /**\n * Adds a close button on the right side of the alert\n */\n closeButton?: boolean;\n\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values HIGHLIGHT, SUCCESS, CRITICAL, WARNING\n */\n type?: BentoAlertTypeOption | `${BentoAlertTypeOption}`;\n\n /**\n * Variant for the alert\n * @values DEFAULT, TIP\n */\n variant?: BentoAlertVariant | `${BentoAlertVariant}`;\n }>(),\n {\n closeButton: false,\n type: BentoAlertTypeOption.HIGHLIGHT,\n variant: BentoAlertVariant.DEFAULT,\n }\n );\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isTipVariant = computed(() => props.variant === BentoAlertVariant.TIP);\n\n const alertConditionalClasses = computed(() => ({\n [`b-alert--${props.type}`]: props.type,\n [`b-alert--${BentoAlertVariant.TIP}`]: isTipVariant.value,\n }));\n\n const iconSvgTitle = computed(() => t(`${props.type}Icon`));\n\n const iconComponent = computed(() => {\n switch (props.type) {\n case BentoAlertTypeOption.CRITICAL:\n return CrossCircle;\n case BentoAlertTypeOption.SUCCESS:\n return CheckedCircle;\n case BentoAlertTypeOption.WARNING:\n return Warning;\n case BentoAlertTypeOption.HIGHLIGHT:\n default:\n return Info;\n }\n });\n\n const descriptionTypography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant: isTipVariant.value ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY,\n wide: true,\n }));\n\n const computedRole = computed(() => (props.type === BentoAlertTypeOption.HIGHLIGHT ? 'status' : 'alert'));\n\n const onCloseButtonClick = () => {\n emit(BentoAlertEvent.CLOSE_ALERT);\n };\n\n onMounted(() => {\n if (!slots.default && !slots.description) {\n throw new Error('Alert Component requires a title or a description');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An Alert component is used to display a persistent\n * notification containing information important to the user\n *\n * @example\n * import { BentoAlert, BentoAlertTypeOption } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAlert },\n * template: `\n * <bento-alert type=\"highlight\">\n * Title of the Alert\n * </bento-alert>\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-alert',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./alert.scss\" />\n"],"names":["BentoAlertVariant","BentoAlertVariant2","BentoAlertTypeOption","BentoAlertTypeOption2","BentoAlertEvent","BentoAlertEvent2","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","messages","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","t","useI18n","isTipVariant","computed","alertConditionalClasses","iconSvgTitle","iconComponent","CrossCircleFillIcon","CheckmarkCircleFillIcon","WarningFilledIcon","Info","descriptionTypography","BentoTypographyElement","BentoTypographyVariant","computedRole","onCloseButtonClick","onMounted"],"mappings":";;;;;;;;;;;;AAGO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAQLE,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,cAAA,eADQA,IAAAD,KAAA,CAAA,CAAA;ACdR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;mBAZZC,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;gFAFzHC,EAAA,IAAA,EAAA;AAAA;MAE4M,aAAA,+CAAAD,EAAA,OAAA;AAAA;;QAA4E,MAAA;AAAA,QAAe,aAAA;AAAA,QAAoB,GAAA;AAAA,QAAwyE,aAAA;AAAA;IAFnmF,IAAA,GAAAL,CAAA;AAAA;;QAE6oF,IAAA,0CAAAK,EAAA;AAAA;;UAA0D,OAAA;AAAA,UAAW,QAAA;AAAA,UAAY,MAAA;AAAA;MAF9tF,IAAA,GAAAJ,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCqKIM,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;AApGA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GA0BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAV,EAAA,CAAA,GAEAW,IAAAC,EAAA,MAAAL,EAAA,YAAAtB,EAAA,GAAA,GAEA4B,IAAAD,EAAA,OAAA;AAAA,MAAgD,CAAA,YAAAL,EAAA,IAAA,EAAA,GAAAA,EAAA;AAAA,MACV,CAAA,YAAAtB,EAAA,GAAA,EAAA,GAAA0B,EAAA;AAAA,IACkB,EAAA,GAGxDG,IAAAF,EAAA,MAAAH,EAAA,GAAAF,EAAA,IAAA,MAAA,CAAA,GAEAQ,IAAAH,EAAA,MAAA;AACI,cAAAL,EAAA,MAAA;AAAA,QAAoB,KAAApB,EAAA;AAEZ,iBAAA6B;AAAA,QAAO,KAAA7B,EAAA;AAEP,iBAAA8B;AAAA,QAAO,KAAA9B,EAAA;AAEP,iBAAA+B;AAAA,QAAO,KAAA/B,EAAA;AAAA,QACe;AAEtB,iBAAAgC;AAAA,MAAO;AAAA,IACf,CAAA,GAGJC,IAAAR,EAAA,OAAA;AAAA,MAA8C,IAAAS,EAAA;AAAA,MACf,SAAAV,EAAA,QAAAW,EAAA,UAAAA,EAAA;AAAA,MAC2D,MAAA;AAAA,IAChF,EAAA,GAGVC,IAAAX,EAAA,MAAAL,EAAA,SAAApB,EAAA,YAAA,WAAA,OAAA,GAEAqC,IAAA,MAAA;AACI,MAAAnB,EAAAhB,EAAA,WAAA;AAAA,IAAgC;AAGpC,WAAAoC,EAAA,MAAA;AACI,UAAA,CAAAxB,EAAA,WAAA,CAAAA,EAAA;AACI,cAAA,IAAA,MAAA,mDAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"alert.CDWtu0Hu.js","sources":["../../../vue2/src/components/alert/alert.types.ts","../../../ui-assets/icons-16/dist/vue/info-filled.vue","../../../vue2/src/components/alert/alert.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertVariant {\n DEFAULT = 'default',\n TIP = 'tip',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoAlertTypeOption {\n WARNING = 'warning',\n CRITICAL = 'critical',\n HIGHLIGHT = 'highlight',\n SUCCESS = 'success',\n}\n\n/**\n * @deprecated from version 2.0.0. Use \"@close-alert\" instead.\n */\nexport enum BentoAlertEvent {\n CLOSE_ALERT = 'close-alert',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-ui-assets/icons-16-info_filled__a' + uuid + ')'\"><path fill=\"#001222\" fill-rule=\"evenodd\" d=\"M5.03418 0.839544C6.45015 0.253058 8.00853 0.0992122 9.51172 0.398138C11.015 0.697159 12.3966 1.43547 13.4805 2.51923C14.5642 3.60301 15.3025 4.98476 15.6016 6.48798C15.9005 7.99113 15.7466 9.54958 15.1602 10.9655C14.5736 12.3816 13.5801 13.5925 12.3057 14.444C11.1109 15.2423 9.71924 15.6917 8.28711 15.7448L8 15.7497C5.94458 15.7497 3.97294 14.9336 2.51953 13.4802C1.06623 12.0268 0.250005 10.055 0.25 7.9997C0.250066 6.4671 0.70424 4.96838 1.55566 3.69404C2.40724 2.41967 3.61814 1.42609 5.03418 0.839544ZM6.25 6.2497V7.7497H7.25V10.2497H6.25V11.7497H9.75V10.2497H8.75V6.2497H6.25ZM7.75 3.4997C7.58674 3.4997 7.42763 3.54211 7.28418 3.61786C7.25386 3.63389 7.22303 3.64949 7.19434 3.66865L7.07812 3.75947C7.04744 3.78732 7.01817 3.817 6.99121 3.84833C6.97917 3.86236 6.96827 3.8776 6.95703 3.89228C6.93942 3.91522 6.9228 3.93915 6.90723 3.96357C6.90005 3.97485 6.89248 3.98618 6.88574 3.99775C6.86351 4.03594 6.84324 4.07574 6.82617 4.11689L6.78027 4.25751C6.77017 4.29795 6.7628 4.33927 6.75781 4.38056C6.75552 4.39961 6.75411 4.41902 6.75293 4.43818C6.75166 4.45856 6.75196 4.47926 6.75195 4.4997C6.75195 4.52207 6.75144 4.54472 6.75293 4.56708C6.75579 4.60979 6.76114 4.65273 6.76953 4.69501L6.80859 4.83661C6.82299 4.87685 6.84098 4.91584 6.86035 4.9538C6.86847 4.96971 6.87775 4.98522 6.88672 5.00068C6.89748 5.01922 6.90895 5.03753 6.9209 5.05536C6.93323 5.07376 6.94544 5.09248 6.95898 5.11005C6.98495 5.14371 7.01269 5.17643 7.04297 5.20673L7.1543 5.30341C7.19021 5.33003 7.2285 5.35325 7.26758 5.3747C7.27775 5.38031 7.28847 5.38508 7.29883 5.39033C7.32903 5.40554 7.35995 5.41924 7.3916 5.43134C7.40264 5.43559 7.41361 5.44018 7.4248 5.44404C7.46721 5.45855 7.51041 5.47134 7.55469 5.48017C7.59672 5.48853 7.63919 5.49291 7.68164 5.49579C7.70021 5.49707 7.71872 5.49751 7.7373 5.49775C7.76179 5.49804 7.78614 5.49729 7.81055 5.49579C7.82982 5.49462 7.84899 5.4932 7.86816 5.49091C7.90982 5.48592 7.95139 5.47962 7.99219 5.46943L8.13281 5.42353C8.1739 5.40649 8.21283 5.38517 8.25098 5.36298C8.2626 5.35623 8.27383 5.3487 8.28516 5.3415C8.30964 5.32589 8.33345 5.30934 8.35645 5.29169C8.37116 5.28043 8.38633 5.26958 8.40039 5.25751C8.43176 5.23053 8.46235 5.20229 8.49023 5.17158L8.58105 5.05536C8.69084 4.89096 8.75 4.6974 8.75 4.4997C8.74992 4.2346 8.64449 3.98013 8.45703 3.79267C8.26951 3.60523 8.01514 3.4997 7.75 3.4997Z\" clip-rule=\"evenodd\"/></g><defs><clipPath :id=\"'uia-ui-assets/icons-16-info_filled__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-alert\" :role=\"computedRole\">\n <div class=\"b-alert__inner-container\" :class=\"alertConditionalClasses\">\n <div class=\"b-alert__icon\">\n <component :is=\"iconComponent\" aria-hidden=\"true\" :svg-title=\"iconSvgTitle\" />\n </div>\n\n <div class=\"b-alert__content\">\n <bento-typography\n v-if=\"hasSlot('default') && !isTipVariant\"\n class=\"b-alert__title\"\n el=\"div\"\n variant=\"body\"\n strongest\n wide\n >\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-alert__description\"\n v-bind=\"descriptionTypography\"\n data-testid=\"alert-description\"\n >\n <slot name=\"description\" />\n </bento-typography>\n\n <div v-if=\"hasSlot('actions') && !isTipVariant\" class=\"b-alert__actions\" data-testid=\"alert-actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n\n <bento-button\n v-if=\"closeButton && !isTipVariant\"\n class=\"b-alert__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n @click=\"onCloseButtonClick\"\n >\n <cross-small :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n\n // Component\n import { BentoAlertEvent, BentoAlertTypeOption, BentoAlertVariant } from '@/components/alert/alert.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n\n import CrossSmall from '@adyen/ui-assets-icons-16/vue/cross-small';\n import Warning from '@adyen/ui-assets-icons-16/vue/warning-filled';\n import CrossCircle from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CheckedCircle from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import Info from '@adyen/ui-assets-icons-16/vue/info-filled';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emits event when the alert is closed. `closeButton` must be `true`\n */\n (e: 'close-alert');\n }>();\n\n const props = withDefaults(\n defineProps<{\n /**\n * Adds a close button on the right side of the alert\n */\n closeButton?: boolean;\n\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values HIGHLIGHT, SUCCESS, CRITICAL, WARNING\n */\n type?: BentoAlertTypeOption | `${BentoAlertTypeOption}`;\n\n /**\n * Variant for the alert\n * @values DEFAULT, TIP\n */\n variant?: BentoAlertVariant | `${BentoAlertVariant}`;\n }>(),\n {\n closeButton: false,\n type: BentoAlertTypeOption.HIGHLIGHT,\n variant: BentoAlertVariant.DEFAULT,\n }\n );\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const isTipVariant = computed(() => props.variant === BentoAlertVariant.TIP);\n\n const alertConditionalClasses = computed(() => ({\n [`b-alert--${props.type}`]: props.type,\n [`b-alert--${BentoAlertVariant.TIP}`]: isTipVariant.value,\n }));\n\n const iconSvgTitle = computed(() => t(`${props.type}Icon`));\n\n const iconComponent = computed(() => {\n switch (props.type) {\n case BentoAlertTypeOption.CRITICAL:\n return CrossCircle;\n case BentoAlertTypeOption.SUCCESS:\n return CheckedCircle;\n case BentoAlertTypeOption.WARNING:\n return Warning;\n case BentoAlertTypeOption.HIGHLIGHT:\n default:\n return Info;\n }\n });\n\n const descriptionTypography = computed(() => ({\n el: BentoTypographyElement.DIV,\n variant: isTipVariant.value ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY,\n wide: true,\n }));\n\n const computedRole = computed(() => (props.type === BentoAlertTypeOption.HIGHLIGHT ? 'status' : 'alert'));\n\n const onCloseButtonClick = () => {\n emit(BentoAlertEvent.CLOSE_ALERT);\n };\n\n onMounted(() => {\n if (!slots.default && !slots.description) {\n throw new Error('Alert Component requires a title or a description');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * An Alert component is used to display a persistent\n * notification containing information important to the user\n *\n * @example\n * import { BentoAlert, BentoAlertTypeOption } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAlert },\n * template: `\n * <bento-alert type=\"highlight\">\n * Title of the Alert\n * </bento-alert>\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-alert',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./alert.scss\" />\n"],"names":["BentoAlertVariant","BentoAlertVariant2","BentoAlertTypeOption","BentoAlertTypeOption2","BentoAlertEvent","BentoAlertEvent2","uuid","_hoisted_2$1","_hoisted_3$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","__default__","messages","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","t","useI18n","isTipVariant","computed","alertConditionalClasses","iconSvgTitle","iconComponent","CrossCircleFillIcon","CheckmarkCircleFillIcon","WarningFilledIcon","Info","descriptionTypography","BentoTypographyElement","BentoTypographyVariant","computedRole","onCloseButtonClick","onMounted"],"mappings":";;;;;;;;;;;;AAGO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAQLE,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,cAAA,eADQA,IAAAD,KAAA,CAAA,CAAA;ACdR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;mBAZZC,IAAA,CAAA,WAAA,GAAAC,IAAA,CAAA,IAAA;;AAEI,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;gFAFzHC,EAAA,IAAA,EAAA;AAAA;MAE4M,aAAA,+CAAAD,EAAA,OAAA;AAAA;;QAA4E,MAAA;AAAA,QAAe,aAAA;AAAA,QAAoB,GAAA;AAAA,QAAwyE,aAAA;AAAA;IAFnmF,IAAA,GAAAL,CAAA;AAAA;;QAE6oF,IAAA,0CAAAK,EAAA;AAAA;;UAA0D,OAAA;AAAA,UAAW,QAAA;AAAA,UAAY,MAAA;AAAA;MAF9tF,IAAA,GAAAJ,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCqKIM,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;AApGA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GA0BA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAV,EAAA,CAAA,GAEAW,IAAAC,EAAA,MAAAL,EAAA,YAAAtB,EAAA,GAAA,GAEA4B,IAAAD,EAAA,OAAA;AAAA,MAAgD,CAAA,YAAAL,EAAA,IAAA,EAAA,GAAAA,EAAA;AAAA,MACV,CAAA,YAAAtB,EAAA,GAAA,EAAA,GAAA0B,EAAA;AAAA,IACkB,EAAA,GAGxDG,IAAAF,EAAA,MAAAH,EAAA,GAAAF,EAAA,IAAA,MAAA,CAAA,GAEAQ,IAAAH,EAAA,MAAA;AACI,cAAAL,EAAA,MAAA;AAAA,QAAoB,KAAApB,EAAA;AAEZ,iBAAA6B;AAAA,QAAO,KAAA7B,EAAA;AAEP,iBAAA8B;AAAA,QAAO,KAAA9B,EAAA;AAEP,iBAAA+B;AAAA,QAAO,KAAA/B,EAAA;AAAA,QACe;AAEtB,iBAAAgC;AAAA,MAAO;AAAA,IACf,CAAA,GAGJC,IAAAR,EAAA,OAAA;AAAA,MAA8C,IAAAS,EAAA;AAAA,MACf,SAAAV,EAAA,QAAAW,EAAA,UAAAA,EAAA;AAAA,MAC2D,MAAA;AAAA,IAChF,EAAA,GAGVC,IAAAX,EAAA,MAAAL,EAAA,SAAApB,EAAA,YAAA,WAAA,OAAA,GAEAqC,IAAA,MAAA;AACI,MAAAnB,EAAAhB,EAAA,WAAA;AAAA,IAAgC;AAGpC,WAAAoC,EAAA,MAAA;AACI,UAAA,CAAAxB,EAAA,WAAA,CAAAA,EAAA;AACI,cAAA,IAAA,MAAA,mDAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { defineComponent as V, ref as k, computed as h, watch as D, openBlock as g, createElementBlock as x, Fragment as K, renderList as L, createVNode as I, withKeys as C, withModifiers as T, normalizeClass as M, withCtx as w, createTextVNode as N, toDisplayString as R, watchEffect as H, toRef as O, createElementVNode as B, unref as b, renderSlot as W, createCommentVNode as j } from "vue";
|
|
2
|
+
import { f as z, d as U, u as J, g as Y, t as A, h as q, w as G } from "./index.CbxHJr39.js";
|
|
3
|
+
import { p as E, B as P } from "./typography.B3J6_tYk.js";
|
|
4
|
+
import { u as Q } from "./index.B875RXHM.js";
|
|
5
|
+
import { g as X } from "./generate-uid.NJ8tVoha.js";
|
|
6
|
+
import { u as y } from "./utils.BzUwtTXc.js";
|
|
7
|
+
import { F as Z } from "./fixed-scroller.i1tmEmst.js";
|
|
8
|
+
import { B as ee } from "./button.C6t9_lzm.js";
|
|
9
|
+
import { _ as $ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import "../assets/anchor-scroller.css";
|
|
11
|
+
const te = /* @__PURE__ */ V({
|
|
12
|
+
__name: "anchor-scroller-list",
|
|
13
|
+
props: {
|
|
14
|
+
activeIndex: { default: void 0 },
|
|
15
|
+
items: {},
|
|
16
|
+
scrollOffset: { default: void 0 }
|
|
17
|
+
},
|
|
18
|
+
setup(m) {
|
|
19
|
+
const s = m, c = k([]), r = h(
|
|
20
|
+
() => s.items.map((t, a) => ({ disabled: t.disabled, originalIndex: a })).filter(({ disabled: t }) => !t).map(({ originalIndex: t }) => t)
|
|
21
|
+
), {
|
|
22
|
+
state: d,
|
|
23
|
+
next: f,
|
|
24
|
+
prev: u
|
|
25
|
+
} = z(r, {
|
|
26
|
+
initialValue: s.activeIndex ?? r.value[0]
|
|
27
|
+
});
|
|
28
|
+
D(d, async (t) => {
|
|
29
|
+
const a = c.value[t], n = y(a);
|
|
30
|
+
n && typeof n.focus == "function" && n.focus();
|
|
31
|
+
});
|
|
32
|
+
const l = (t, a) => {
|
|
33
|
+
if (a)
|
|
34
|
+
return;
|
|
35
|
+
const n = y(t);
|
|
36
|
+
if (!n) {
|
|
37
|
+
E("[bento-anchor-scroller] element ref not found");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (!n.style.scrollMarginTop && s.scrollOffset) {
|
|
41
|
+
const o = window.getComputedStyle(n).scrollMarginTop;
|
|
42
|
+
(o === "0px" || o === "") && (n.style.scrollMarginTop = `${s.scrollOffset}px`);
|
|
43
|
+
}
|
|
44
|
+
n.hasAttribute("tabindex") || n.setAttribute("tabindex", "-1"), n.scrollIntoView({
|
|
45
|
+
behavior: "smooth",
|
|
46
|
+
block: "start",
|
|
47
|
+
inline: "nearest"
|
|
48
|
+
}), n.focus({ preventScroll: !0 });
|
|
49
|
+
}, v = (t) => {
|
|
50
|
+
switch (t.key) {
|
|
51
|
+
case "ArrowRight":
|
|
52
|
+
t.preventDefault(), f();
|
|
53
|
+
break;
|
|
54
|
+
case "ArrowLeft":
|
|
55
|
+
t.preventDefault(), u();
|
|
56
|
+
break;
|
|
57
|
+
case "Home":
|
|
58
|
+
t.preventDefault(), d.value = 0;
|
|
59
|
+
break;
|
|
60
|
+
case "End":
|
|
61
|
+
t.preventDefault(), d.value = r.value.length - 1;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return (t, a) => (g(), x("ul", {
|
|
66
|
+
class: "b-anchor-scroller-list",
|
|
67
|
+
onKeydown: v
|
|
68
|
+
}, [
|
|
69
|
+
(g(!0), x(K, null, L(t.items, ({ title: n, disabled: o, elementRef: p }, i) => (g(), x("li", {
|
|
70
|
+
key: i,
|
|
71
|
+
class: "b-anchor-scroller-list__item"
|
|
72
|
+
}, [
|
|
73
|
+
I(ee, {
|
|
74
|
+
ref_for: !0,
|
|
75
|
+
ref_key: "listItemRefs",
|
|
76
|
+
ref: c,
|
|
77
|
+
"aria-current": t.activeIndex === i ? "location" : null,
|
|
78
|
+
class: M(["b-anchor-scroller-list__item-button", {
|
|
79
|
+
"b-anchor-scroller-list__item-button--active": t.activeIndex === i,
|
|
80
|
+
"b-anchor-scroller-list__item-button--disabled": o
|
|
81
|
+
}]),
|
|
82
|
+
"aria-disabled": o,
|
|
83
|
+
tabindex: t.activeIndex === i ? null : "-1",
|
|
84
|
+
variant: "tertiary-with-background",
|
|
85
|
+
onClick: (e) => l(p, o),
|
|
86
|
+
onKeydown: [
|
|
87
|
+
C(T((e) => l(p, o), ["prevent"]), ["space", "native"]),
|
|
88
|
+
C(T((e) => l(p, o), ["prevent"]), ["enter", "native"])
|
|
89
|
+
]
|
|
90
|
+
}, {
|
|
91
|
+
default: w(() => [
|
|
92
|
+
N(R(n), 1)
|
|
93
|
+
]),
|
|
94
|
+
_: 2
|
|
95
|
+
}, 1032, ["aria-current", "class", "aria-disabled", "tabindex", "onClick", "onKeydown"])
|
|
96
|
+
]))), 128))
|
|
97
|
+
], 32));
|
|
98
|
+
}
|
|
99
|
+
}), ne = /* @__PURE__ */ $(te, [["__scopeId", "data-v-03d99bd8"]]), F = {
|
|
100
|
+
"en-US": {
|
|
101
|
+
jumpTo: "Jump to"
|
|
102
|
+
}
|
|
103
|
+
}, oe = (m, s) => {
|
|
104
|
+
var u;
|
|
105
|
+
const c = k(((u = s.default) == null ? void 0 : u.value) ?? -1), { y: r } = U(), { height: d } = J(), f = () => {
|
|
106
|
+
const l = A(m), v = d.value, t = v / 2;
|
|
107
|
+
let a = -1, n = 0;
|
|
108
|
+
for (let o = 0; o < l.length; o++) {
|
|
109
|
+
const i = l[o];
|
|
110
|
+
if (!i)
|
|
111
|
+
continue;
|
|
112
|
+
const e = i.getBoundingClientRect();
|
|
113
|
+
if (e.top > t)
|
|
114
|
+
continue;
|
|
115
|
+
const _ = Math.min(e.bottom, v) - Math.max(e.top, 0);
|
|
116
|
+
if (_ <= 0)
|
|
117
|
+
continue;
|
|
118
|
+
const S = _ / e.height;
|
|
119
|
+
S > n && (n = S, a = o);
|
|
120
|
+
}
|
|
121
|
+
a !== -1 && c.value !== a && (c.value = a);
|
|
122
|
+
};
|
|
123
|
+
return Y([r, d], f, { throttle: 100, trailing: !0 }), H(() => {
|
|
124
|
+
A(m).length && f();
|
|
125
|
+
}), {
|
|
126
|
+
activeIndex: c
|
|
127
|
+
};
|
|
128
|
+
}, ae = {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "b-anchor-scroller"
|
|
131
|
+
}, re = ["aria-labelledby"], ie = { class: "b-anchor-scroller__navigation-panel" }, le = {
|
|
132
|
+
i18n: { messages: F },
|
|
133
|
+
name: "bento-anchor-scroller"
|
|
134
|
+
}, se = /* @__PURE__ */ V({
|
|
135
|
+
...le,
|
|
136
|
+
props: {
|
|
137
|
+
activeIndex: { default: void 0 },
|
|
138
|
+
items: {}
|
|
139
|
+
},
|
|
140
|
+
emits: ["update:active-index"],
|
|
141
|
+
setup(m, { emit: s }) {
|
|
142
|
+
const { t: c } = Q({ messages: F }), r = m, d = s, f = k(null), u = h(() => r.items.map((e) => ({ ...e }))), l = h(
|
|
143
|
+
() => r.items.map((e, _) => ({
|
|
144
|
+
element: y(e.elementRef),
|
|
145
|
+
originalIndex: _,
|
|
146
|
+
disabled: e.disabled
|
|
147
|
+
})).filter(
|
|
148
|
+
(e) => !e.disabled && !!e.element
|
|
149
|
+
)
|
|
150
|
+
), v = h(() => l.value.map((e) => e.element)), t = h(() => ({
|
|
151
|
+
"b-anchor-scroller__navigation--pinned": o.value <= 1
|
|
152
|
+
})), a = h(() => {
|
|
153
|
+
const e = l.value[n.value];
|
|
154
|
+
return e ? e.originalIndex : 0;
|
|
155
|
+
}), { activeIndex: n } = oe(v, {
|
|
156
|
+
default: O(r, "activeIndex")
|
|
157
|
+
}), { top: o, bottom: p } = q(f);
|
|
158
|
+
G(
|
|
159
|
+
a,
|
|
160
|
+
(e) => {
|
|
161
|
+
Number.isFinite(e) && d("update:active-index", e);
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
debounce: 250
|
|
165
|
+
// ensure that if you are scrolling through multiple sections quickly, it fires only once.
|
|
166
|
+
}
|
|
167
|
+
), D(
|
|
168
|
+
() => r.activeIndex,
|
|
169
|
+
(e) => {
|
|
170
|
+
Number.isFinite(e) && u.value[e].disabled && E("[bento-anchor-scroller] activeIndex should not be a disabled item");
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
const i = X("bento-anchor-scroller-label");
|
|
174
|
+
return (e, _) => u.value.length ? (g(), x("div", ae, [
|
|
175
|
+
B("nav", {
|
|
176
|
+
ref_key: "navigationRef",
|
|
177
|
+
ref: f,
|
|
178
|
+
class: M(["b-anchor-scroller__navigation", t.value]),
|
|
179
|
+
"aria-labelledby": b(i)
|
|
180
|
+
}, [
|
|
181
|
+
I(b(Z), {
|
|
182
|
+
condensed: "",
|
|
183
|
+
centered: ""
|
|
184
|
+
}, {
|
|
185
|
+
default: w(() => [
|
|
186
|
+
B("div", ie, [
|
|
187
|
+
I(P, {
|
|
188
|
+
id: b(i),
|
|
189
|
+
el: "span",
|
|
190
|
+
class: "b-anchor-scroller__navigation-panel-label",
|
|
191
|
+
stronger: ""
|
|
192
|
+
}, {
|
|
193
|
+
default: w(() => [
|
|
194
|
+
N(R(b(c)("jumpTo")), 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["id"]),
|
|
198
|
+
I(b(ne), {
|
|
199
|
+
items: u.value,
|
|
200
|
+
"active-index": a.value,
|
|
201
|
+
"scroll-offset": b(p)
|
|
202
|
+
}, null, 8, ["items", "active-index", "scroll-offset"])
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
], 10, re),
|
|
208
|
+
W(e.$slots, "default", {}, void 0, !0)
|
|
209
|
+
])) : j("", !0);
|
|
210
|
+
}
|
|
211
|
+
}), _e = /* @__PURE__ */ $(se, [["__scopeId", "data-v-4628dbb5"]]);
|
|
212
|
+
export {
|
|
213
|
+
_e as a
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=anchor-scroller.CKIQu3NK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-scroller.CKIQu3NK.js","sources":["../../../vue2/src/components/anchor-scroller/components/anchor-scroller-list/anchor-scroller-list.vue","../../../vue2/src/components/anchor-scroller/composables/use-scroll-spy/use-scroll-spy.ts","../../../vue2/src/components/anchor-scroller/anchor-scroller.vue"],"sourcesContent":["<template>\n <ul class=\"b-anchor-scroller-list\" @keydown=\"onKeydownNavigation\">\n <li v-for=\"({ title, disabled, elementRef }, index) in items\" :key=\"index\" class=\"b-anchor-scroller-list__item\">\n <bento-button\n ref=\"listItemRefs\"\n :aria-current=\"activeIndex === index ? 'location' : null\"\n class=\"b-anchor-scroller-list__item-button\"\n :class=\"{\n 'b-anchor-scroller-list__item-button--active': activeIndex === index,\n 'b-anchor-scroller-list__item-button--disabled': disabled,\n }\"\n :aria-disabled=\"disabled\"\n :tabindex=\"activeIndex === index ? null : '-1'\"\n variant=\"tertiary-with-background\"\n @click=\"scrollToSection(elementRef, disabled)\"\n @keydown.space.native.prevent=\"scrollToSection(elementRef, disabled)\"\n @keydown.enter.native.prevent=\"scrollToSection(elementRef, disabled)\"\n >\n {{ title }}\n </bento-button>\n </li>\n </ul>\n</template>\n\n<script setup lang=\"ts\">\n import BentoButton from '@/components/button/button.vue';\n import { unrefElement } from '@/directives/click-outside/utils';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import { type BentoAnchorScrollerItem } from '../../anchor-scroller.types';\n import { type AnchorScrollerListProps } from './anchor-scroller-list.types';\n import { computed, ref, watch } from 'vue';\n import { useCycleList } from '@vueuse/core';\n\n const props = withDefaults(defineProps<AnchorScrollerListProps>(), {\n activeIndex: undefined,\n scrollOffset: undefined,\n });\n\n const listItemRefs = ref([]);\n const listIndices = computed(() =>\n props.items\n .map((item, index) => ({ disabled: item.disabled, originalIndex: index }))\n .filter(({ disabled }) => !disabled)\n .map(({ originalIndex }) => originalIndex)\n );\n\n const {\n state: focusedIndex,\n next,\n prev,\n } = useCycleList(listIndices, {\n initialValue: props.activeIndex ?? listIndices.value[0],\n });\n\n watch(focusedIndex, async newIndex => {\n const targetComponent = listItemRefs.value[newIndex];\n const el = unrefElement(targetComponent); // Handles Component or DOM node\n\n if (el && typeof el.focus === 'function') {\n el.focus();\n }\n });\n\n const scrollToSection = (elementRef: BentoAnchorScrollerItem['elementRef'], disabled?: boolean) => {\n if (disabled) {\n return;\n }\n\n const el = unrefElement(elementRef);\n\n if (!el) {\n printDevelopmentWarning(`[bento-anchor-scroller] element ref not found`);\n return;\n }\n\n if (!el.style.scrollMarginTop && props.scrollOffset) {\n const currentScrollMargin = window.getComputedStyle(el).scrollMarginTop;\n\n if (currentScrollMargin === '0px' || currentScrollMargin === '') {\n el.style.scrollMarginTop = `${props.scrollOffset}px`;\n }\n }\n\n if (!el.hasAttribute('tabindex')) {\n el.setAttribute('tabindex', '-1');\n }\n\n el.scrollIntoView({\n behavior: 'smooth',\n block: 'start',\n inline: 'nearest',\n });\n\n el.focus({ preventScroll: true });\n };\n\n const onKeydownNavigation = (e: KeyboardEvent) => {\n switch (e.key) {\n case 'ArrowRight':\n e.preventDefault();\n next();\n break;\n case 'ArrowLeft':\n e.preventDefault();\n prev();\n break;\n case 'Home':\n e.preventDefault();\n focusedIndex.value = 0;\n break;\n case 'End':\n e.preventDefault();\n focusedIndex.value = listIndices.value.length - 1;\n break;\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./anchor-scroller-list.scss\" />\n","import { type Ref, ref, watchEffect } from 'vue';\nimport { type MaybeRef, toValue, useWindowScroll, useWindowSize, watchThrottled } from '@vueuse/core';\n\n/**\n * Options for the useScrollSpy composable.\n */\nexport interface useScrollSpyOptions {\n /**\n * The default active index to use when no item is active or initially.\n */\n default?: Ref<number>;\n}\n\n/**\n * Composable to spy on scroll position and determine the active item based on visibility.\n *\n * @param items - The list of elements to spy on.\n * @param options - Configuration options for the scroll spy.\n * @returns An object containing the active index.\n */\nexport const useScrollSpy = (items: MaybeRef<Array<Element>>, options: useScrollSpyOptions) => {\n const activeIndex = ref(options.default?.value ?? -1);\n\n const { y: scrollY } = useWindowScroll();\n const { height: windowHeight } = useWindowSize();\n\n // Logic to find the \"winner\" when there are multiple items on the same page\n const calculateActiveIndex = () => {\n const list = toValue(items);\n const viewportHeight = windowHeight.value;\n const midpoint = viewportHeight / 2;\n\n let winnerIndex = -1;\n let maxVisibleRatio = 0;\n\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n const el = item;\n\n if (!el) {\n continue;\n }\n\n const rect = el.getBoundingClientRect();\n\n // Constraint 1: Must pass midpoint\n if (rect.top > midpoint) {\n continue;\n }\n\n // Constraint 2: Must be visible\n const visibleHeight = Math.min(rect.bottom, viewportHeight) - Math.max(rect.top, 0);\n if (visibleHeight <= 0) {\n continue;\n }\n\n // Constraint 3: Highest visible % wins\n const ratio = visibleHeight / rect.height;\n\n if (ratio > maxVisibleRatio) {\n maxVisibleRatio = ratio;\n winnerIndex = i;\n }\n }\n\n // Only update if changed to avoid unnecessary patch triggers\n if (winnerIndex !== -1 && activeIndex.value !== winnerIndex) {\n activeIndex.value = winnerIndex;\n }\n };\n\n watchThrottled([scrollY, windowHeight], calculateActiveIndex, { throttle: 100, trailing: true });\n\n watchEffect(() => {\n if (toValue(items).length) {\n calculateActiveIndex();\n }\n });\n\n return {\n activeIndex,\n };\n};\n","<template>\n <div v-if=\"computedItems.length\" class=\"b-anchor-scroller\">\n <nav\n ref=\"navigationRef\"\n class=\"b-anchor-scroller__navigation\"\n :class=\"navigationConditionalClasses\"\n :aria-labelledby=\"navLabelId\"\n >\n <fixed-scroller condensed centered>\n <div class=\"b-anchor-scroller__navigation-panel\">\n <bento-typography\n :id=\"navLabelId\"\n el=\"span\"\n class=\"b-anchor-scroller__navigation-panel-label\"\n stronger\n >\n {{ t('jumpTo') }}\n </bento-typography>\n\n <anchor-scroller-list\n :items=\"computedItems\"\n :active-index=\"currentActiveIndex\"\n :scroll-offset=\"bottom\"\n />\n </div>\n </fixed-scroller>\n </nav>\n\n <slot />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, toRef, watch } from 'vue';\n import { useElementBounding, watchDebounced } from '@vueuse/core';\n import BentoTypography from '@/components/typography/typography.vue';\n import { FixedScroller } from '@/internal';\n import { type BentoAnchorScrollerItem, type BentoAnchorScrollerProps } from './anchor-scroller.types';\n import { AnchorScrollerList } from './components/anchor-scroller-list';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import { unrefElement } from '@/directives/click-outside/utils';\n import messages from './messages.json';\n import { useScrollSpy } from './composables';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<BentoAnchorScrollerProps>(), {\n activeIndex: undefined,\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when the active index is changed\n */\n (e: 'update:active-index', value: number): void;\n }>();\n\n const navigationRef = ref(null);\n\n const computedItems = computed<Array<BentoAnchorScrollerItem>>(() => props.items.map(item => ({ ...item })));\n\n // Skip and cache only items that are enabled\n const enabledItems = computed(() =>\n props.items\n .map((item, originalIndex) => ({\n element: unrefElement(item.elementRef),\n originalIndex,\n disabled: item.disabled,\n }))\n .filter(\n (item): item is { element: Element; originalIndex: number; disabled: boolean } =>\n !item.disabled && !!item.element\n )\n );\n\n // Extract strictly the elements for the ScrollSpy to watch\n const scrollToTargets = computed(() => enabledItems.value.map(c => c.element));\n\n const navigationConditionalClasses = computed(() => ({\n 'b-anchor-scroller__navigation--pinned': top.value <= 1,\n }));\n\n const currentActiveIndex = computed(() => {\n const candidate = enabledItems.value[relativeActiveIndex.value];\n\n return candidate ? candidate.originalIndex : 0;\n });\n\n const { activeIndex: relativeActiveIndex } = useScrollSpy(scrollToTargets, {\n default: toRef(props, 'activeIndex'),\n });\n\n const { top, bottom } = useElementBounding(navigationRef);\n\n watchDebounced(\n currentActiveIndex,\n val => {\n if (Number.isFinite(val)) {\n emit('update:active-index', val);\n }\n },\n {\n debounce: 250, // ensure that if you are scrolling through multiple sections quickly, it fires only once.\n }\n );\n\n watch(\n () => props.activeIndex,\n val => {\n if (Number.isFinite(val) && computedItems.value[val].disabled) {\n printDevelopmentWarning(`[bento-anchor-scroller] activeIndex should not be a disabled item`);\n }\n }\n );\n\n const navLabelId = generateUid('bento-anchor-scroller-label');\n</script>\n\n<script lang=\"ts\">\n /**\n * A navigation component that tracks page scroll and allows jumping to sections.\n *\n * @example\n * import { BentoAnchorScroller } from '@adyen/bento-vue2';\n * import { ref } from 'vue';\n *\n * export default {\n * components: { BentoAnchorScroller },\n * template: `\n * <bento-anchor-scroller :items=\"items\">\n * <section ref=\"section1\">Section 1</section>\n * <section ref=\"section2\">Section 2</section>\n * </bento-anchor-scroller>\n * `,\n * setup() {\n * const section1 = ref(null);\n * const section2 = ref(null);\n * const items = ref([\n * { title: 'Section 1', elementRef: section1 },\n * { title: 'Section 2', elementRef: section2 },\n * ]);\n * return {\n * items,\n * section1,\n * section2,\n * }\n * }\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-anchor-scroller',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./anchor-scroller.scss\" />\n"],"names":["props","__props","listItemRefs","ref","listIndices","computed","item","index","disabled","originalIndex","focusedIndex","next","prev","useCycleList","watch","newIndex","targetComponent","el","unrefElement","scrollToSection","elementRef","printDevelopmentWarning","currentScrollMargin","onKeydownNavigation","e","useScrollSpy","items","options","activeIndex","_a","scrollY","useWindowScroll","windowHeight","useWindowSize","calculateActiveIndex","list","toValue","viewportHeight","midpoint","winnerIndex","maxVisibleRatio","i","rect","visibleHeight","ratio","watchThrottled","watchEffect","__default__","messages","t","useI18n","emit","__emit","navigationRef","computedItems","enabledItems","scrollToTargets","c","navigationConditionalClasses","top","currentActiveIndex","candidate","relativeActiveIndex","toRef","bottom","useElementBounding","watchDebounced","val","navLabelId","generateUid"],"mappings":";;;;;;;;;;;;;;;;;;AAiCI,UAAAA,IAAAC,GAKAC,IAAAC,EAAA,CAAA,CAAA,GACAC,IAAAC;AAAA,MAAoB,MAAAL,EAAA,MAAA,IAAA,CAAAM,GAAAC,OAAA,EAAA,UAAAD,EAAA,UAAA,eAAAC,EAAA,EAAA,EAAA,OAAA,CAAA,EAAA,UAAAC,EAAA,MAAA,CAAAA,CAAA,EAAA,IAAA,CAAA,EAAA,eAAAC,EAAA,MAAAA,CAAA;AAAA,IAI6B,GAGjD;AAAA,MAAM,OAAAC;AAAA,MACK,MAAAC;AAAA,MACP,MAAAC;AAAA,IACA,IAAAC,EAAAT,GAAA;AAAA,MAC0B,cAAAJ,EAAA,eAAAI,EAAA,MAAA,CAAA;AAAA,IAC4B,CAAA;AAG1D,IAAAU,EAAAJ,GAAA,OAAAK,MAAA;AACI,YAAAC,IAAAd,EAAA,MAAAa,CAAA,GACAE,IAAAC,EAAAF,CAAA;AAEA,MAAAC,KAAA,OAAAA,EAAA,SAAA,cACIA,EAAA,MAAA;AAAA,IACJ,CAAA;AAGJ,UAAAE,IAAA,CAAAC,GAAAZ,MAAA;AACI,UAAAA;AACI;AAGJ,YAAAS,IAAAC,EAAAE,CAAA;AAEA,UAAA,CAAAH,GAAA;AACI,QAAAI,EAAA,+CAAA;AACA;AAAA,MAAA;AAGJ,UAAA,CAAAJ,EAAA,MAAA,mBAAAjB,EAAA,cAAA;AACI,cAAAsB,IAAA,OAAA,iBAAAL,CAAA,EAAA;AAEA,SAAAK,MAAA,SAAAA,MAAA,QACIL,EAAA,MAAA,kBAAA,GAAAjB,EAAA,YAAA;AAAA,MACJ;AAGJ,MAAAiB,EAAA,aAAA,UAAA,KACIA,EAAA,aAAA,YAAA,IAAA,GAGJA,EAAA,eAAA;AAAA,QAAkB,UAAA;AAAA,QACJ,OAAA;AAAA,QACH,QAAA;AAAA,MACC,CAAA,GAGZA,EAAA,MAAA,EAAA,eAAA,GAAA,CAAA;AAAA,IAAgC,GAGpCM,IAAA,CAAAC,MAAA;AACI,cAAAA,EAAA,KAAA;AAAA,QAAe,KAAA;AAEP,UAAAA,EAAA,eAAA,GACAb,EAAA;AACA;AAAA,QAAA,KAAA;AAEA,UAAAa,EAAA,eAAA,GACAZ,EAAA;AACA;AAAA,QAAA,KAAA;AAEA,UAAAY,EAAA,eAAA,GACAd,EAAA,QAAA;AACA;AAAA,QAAA,KAAA;AAEA,UAAAc,EAAA,eAAA,GACAd,EAAA,QAAAN,EAAA,MAAA,SAAA;AACA;AAAA,MAAA;AAAA,IACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC9FDqB,KAAA,CAAAC,GAAAC,MAAA;;AACH,QAAAC,IAAAzB,IAAA0B,IAAAF,EAAA,YAAA,gBAAAE,EAAA,UAAA,EAAA,GAEA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACA,EAAA,QAAAC,EAAA,IAAAC,EAAA,GAGAC,IAAA,MAAA;AACI,UAAAC,IAAAC,EAAAV,CAAA,GACAW,IAAAL,EAAA,OACAM,IAAAD,IAAA;AAEA,QAAAE,IAAA,IACAC,IAAA;AAEA,aAAAC,IAAA,GAAAA,IAAAN,EAAA,QAAAM,KAAA;AAEI,YAAAxB,IADAkB,EAAAM,CAAA;AAGA,UAAA,CAAAxB;AACI;AAGJ,YAAAyB,IAAAzB,EAAA,sBAAA;AAGA,UAAAyB,EAAA,MAAAJ;AACI;AAIJ,YAAAK,IAAA,KAAA,IAAAD,EAAA,QAAAL,CAAA,IAAA,KAAA,IAAAK,EAAA,KAAA,CAAA;AACA,UAAAC,KAAA;AACI;AAIJ,YAAAC,IAAAD,IAAAD,EAAA;AAEA,MAAAE,IAAAJ,MACIA,IAAAI,GACAL,IAAAE;AAAA,IACJ;AAIJ,IAAAF,MAAA,MAAAX,EAAA,UAAAW,MACIX,EAAA,QAAAW;AAAA,EACJ;AAGJ,SAAAM,EAAA,CAAAf,GAAAE,CAAA,GAAAE,GAAA,EAAA,UAAA,KAAA,UAAA,GAAA,CAAA,GAEAY,EAAA,MAAA;AACI,IAAAV,EAAAV,CAAA,EAAA,UACIQ,EAAA;AAAA,EACJ,CAAA,GAGJ;AAAA,IAAO,aAAAN;AAAA,EACH;AAER;;;oFCuEImB,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;AA5GA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAhD,IAAAC,GAIAkD,IAAAC,GAOAC,IAAAlD,EAAA,IAAA,GAEAmD,IAAAjD,EAAA,MAAAL,EAAA,MAAA,IAAA,CAAAM,OAAA,EAAA,GAAAA,EAAA,EAAA,CAAA,GAGAiD,IAAAlD;AAAA,MAAqB,MAAAL,EAAA,MAAA,IAAA,CAAAM,GAAAG,OAAA;AAAA,QAEkB,SAAAS,EAAAZ,EAAA,UAAA;AAAA,QACU,eAAAG;AAAA,QACrC,UAAAH,EAAA;AAAA,MACe,EAAA,EAAA;AAAA,QAElB,CAAAA,MAAA,CAAAA,EAAA,YAAA,CAAA,CAAAA,EAAA;AAAA,MAEgC;AAAA,IACjC,GAIRkD,IAAAnD,EAAA,MAAAkD,EAAA,MAAA,IAAA,CAAAE,MAAAA,EAAA,OAAA,CAAA,GAEAC,IAAArD,EAAA,OAAA;AAAA,MAAqD,yCAAAsD,EAAA,SAAA;AAAA,IACK,EAAA,GAG1DC,IAAAvD,EAAA,MAAA;AACI,YAAAwD,IAAAN,EAAA,MAAAO,EAAA,KAAA;AAEA,aAAAD,IAAAA,EAAA,gBAAA;AAAA,IAA6C,CAAA,GAGjD,EAAA,aAAAC,EAAA,IAAArC,GAAA+B,GAAA;AAAA,MAA2E,SAAAO,EAAA/D,GAAA,aAAA;AAAA,IACpC,CAAA,GAGvC,EAAA,KAAA2D,GAAA,QAAAK,EAAA,IAAAC,EAAAZ,CAAA;AAEA,IAAAa;AAAA,MAAAN;AAAA,MACI,CAAAO,MAAA;AAEI,QAAA,OAAA,SAAAA,CAAA,KACIhB,EAAA,uBAAAgB,CAAA;AAAA,MACJ;AAAA,MACJ;AAAA,QACA,UAAA;AAAA;AAAA,MACc;AAAA,IACd,GAGJrD;AAAA,MAAA,MAAAd,EAAA;AAAA,MACgB,CAAAmE,MAAA;AAER,QAAA,OAAA,SAAAA,CAAA,KAAAb,EAAA,MAAAa,CAAA,EAAA,YACI9C,EAAA,mEAAA;AAAA,MACJ;AAAA,IACJ;AAGJ,UAAA+C,IAAAC,EAAA,6BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
2
|
+
import { openBlock as o, createElementBlock as r, mergeProps as i, toDisplayString as n, createCommentVNode as l, createElementVNode as a } from "vue";
|
|
3
3
|
import { _ as p } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
let s = 0;
|
|
5
5
|
const m = {
|
|
@@ -8,15 +8,15 @@ const m = {
|
|
|
8
8
|
}
|
|
9
9
|
}, c = { key: 0 };
|
|
10
10
|
function d(t, e, f, g, u, L) {
|
|
11
|
-
return
|
|
11
|
+
return o(), r("svg", i({ role: "img" }, t.$attrs, {
|
|
12
12
|
class: "ui-assets-icons-16",
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: "16",
|
|
15
15
|
height: "16",
|
|
16
16
|
fill: "none"
|
|
17
17
|
}), [
|
|
18
|
-
t.$attrs["svg-title"] ? (
|
|
19
|
-
e[0] || (e[0] =
|
|
18
|
+
t.$attrs["svg-title"] ? (o(), r("title", c, n(t.$attrs["svg-title"]), 1)) : l("", !0),
|
|
19
|
+
e[0] || (e[0] = a("path", {
|
|
20
20
|
fill: "#001222",
|
|
21
21
|
d: "M3.80655 7.25434L8.06077 3.00011L7.00011 1.93945L0.939453 8.00011L7.00011 14.0608L8.06077 13.0001L3.81499 8.75433L14.7508 8.74316L14.7492 7.24316L3.80655 7.25434Z"
|
|
22
22
|
}, null, -1))
|
|
@@ -26,4 +26,4 @@ const _ = /* @__PURE__ */ p(m, [["render", d]]);
|
|
|
26
26
|
export {
|
|
27
27
|
_ as A
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=arrow-left.
|
|
29
|
+
//# sourceMappingURL=arrow-left.C6UiqO-c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-left.
|
|
1
|
+
{"version":3,"file":"arrow-left.C6UiqO-c.js","sources":["../../../ui-assets/icons-16/dist/vue/arrow-left.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M3.80655 7.25434L8.06077 3.00011L7.00011 1.93945L0.939453 8.00011L7.00011 14.0608L8.06077 13.0001L3.81499 8.75433L14.7508 8.74316L14.7492 7.24316L3.80655 7.25434Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_createElementVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAQ,GACzBA,KAAQ;AAAA,EACZ;SAbR,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAuY,OAAvYC,EAAuY,EAAlY,MAAK,MAAK,GAASC,EAAA,QAAM;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAA,OAAM,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAA,OAAM,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,oBAEwMC,EAA6L,QAAA;AAAA,MAAvL,MAAK;AAAA,MAAU,GAAE;AAAA;;;;"}
|