@adyen/bento-vue3 1.84.2 → 1.85.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 +4 -0
- package/dist/@types/index.d.ts +244 -130
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +5 -0
- package/dist/ai-tag.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-tag.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/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
- package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
- package/dist/chunks/action-bar.BlhZoFfL.js +209 -0
- package/dist/chunks/action-bar.BlhZoFfL.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
- package/dist/chunks/ai-button.PAbhTT01.js +57 -0
- package/dist/chunks/ai-button.PAbhTT01.js.map +1 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js +131 -0
- package/dist/chunks/ai-tag.CqMBHSfn.js.map +1 -0
- package/dist/chunks/alert.BYcw-u3b.js.map +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/arrow-left.DoP6zFsY.js +29 -0
- package/dist/chunks/arrow-left.DoP6zFsY.js.map +1 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js +29 -0
- package/dist/chunks/arrow-right.BVd1Dgd8.js.map +1 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js +44 -0
- package/dist/chunks/artificial-intelligence-ai-filled.G_Yr_37U.js.map +1 -0
- package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
- package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
- package/dist/chunks/{base-modal.D3GyeCFT.js → base-modal.CNETR72d.js} +5 -5
- package/dist/chunks/{base-modal.D3GyeCFT.js.map → base-modal.CNETR72d.js.map} +1 -1
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js → button-actions-with-menu.DY0pTtk-.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.B8xFgt-p.js.map → button-actions-with-menu.DY0pTtk-.js.map} +1 -1
- package/dist/chunks/{button-actions.Crj4QFAd.js → button-actions.Dk8xU2cz.js} +2 -2
- package/dist/chunks/{button-actions.Crj4QFAd.js.map → button-actions.Dk8xU2cz.js.map} +1 -1
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.CSp48LJt.js.map +1 -1
- package/dist/chunks/{calendar.DKPx_cQU.js → calendar.Dbc0yjyg.js} +106 -100
- package/dist/chunks/{calendar.DKPx_cQU.js.map → calendar.Dbc0yjyg.js.map} +1 -1
- package/dist/chunks/{card.C_03IYJe.js → card.C7LbwK7Q.js} +2 -2
- package/dist/chunks/{card.C_03IYJe.js.map → card.C7LbwK7Q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DZrhxIHp.js → checkbox-group.CCpe-S-E.js} +4 -4
- package/dist/chunks/{checkbox-group.DZrhxIHp.js.map → checkbox-group.CCpe-S-E.js.map} +1 -1
- package/dist/chunks/{checkbox.BWgWtiLJ.js → checkbox.A35e7MsN.js} +3 -3
- package/dist/chunks/{checkbox.BWgWtiLJ.js.map → checkbox.A35e7MsN.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
- package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
- package/dist/chunks/{code-snippet.BX3Yeo0x.js → code-snippet.DKkTjYdC.js} +4 -4
- package/dist/chunks/{code-snippet.BX3Yeo0x.js.map → code-snippet.DKkTjYdC.js.map} +1 -1
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
- package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
- package/dist/chunks/{controls-group.DpFv8c4E.js → controls-group.BHOKajou.js} +2 -2
- package/dist/chunks/{controls-group.DpFv8c4E.js.map → controls-group.BHOKajou.js.map} +1 -1
- package/dist/chunks/{copy.xg9ElNxd.js → copy.CgITv6wr.js} +3 -3
- package/dist/chunks/{copy.xg9ElNxd.js.map → copy.CgITv6wr.js.map} +1 -1
- package/dist/chunks/country.types.DaVCMxk-.js.map +1 -1
- package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
- package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
- package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
- package/dist/chunks/cross.B92GxFTY.js.map +1 -1
- package/dist/chunks/currency.DijmAkAB.js.map +1 -1
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js → dashboard-section.CrXdP_MQ.js} +3 -3
- package/dist/chunks/{dashboard-section.D_k3_Z2T.js.map → dashboard-section.CrXdP_MQ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js → dashed-underline.BzppJBtk.js} +3 -3
- package/dist/chunks/{dashed-underline.B0z2ZZh7.js.map → dashed-underline.BzppJBtk.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DdIrvOXp.js → data-grid-template.DFjdgxwb.js} +3 -3
- package/dist/chunks/{data-grid-template.DdIrvOXp.js.map → data-grid-template.DFjdgxwb.js.map} +1 -1
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
- package/dist/chunks/{data-grid.CqtJp9rE.js → data-grid.KkCt0Bgm.js} +1064 -1065
- package/dist/chunks/data-grid.KkCt0Bgm.js.map +1 -0
- package/dist/chunks/date-input.BbZqj10S.js.map +1 -1
- package/dist/chunks/{date-picker.DGIwFh6T.js → date-picker.dQuj_OF_.js} +16 -16
- package/dist/chunks/{date-picker.DGIwFh6T.js.map → date-picker.dQuj_OF_.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BAKR_gDf.js +1100 -0
- package/dist/chunks/date-range-picker.BAKR_gDf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date.CL55prL0.js.map +1 -1
- package/dist/chunks/de.DvtL0g75.js.map +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
- package/dist/chunks/dialog-page.CF10AQQ3.js +158 -0
- package/dist/chunks/dialog-page.CF10AQQ3.js.map +1 -0
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
- package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
- package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
- package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
- package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js → dropdown-tag.CBgns9Y3.js} +3 -3
- package/dist/chunks/{dropdown-tag.Bf6TiNZw.js.map → dropdown-tag.CBgns9Y3.js.map} +1 -1
- package/dist/chunks/{dropdown.Dct8gr_q.js → dropdown.DmzMGz30.js} +22 -22
- package/dist/chunks/{dropdown.Dct8gr_q.js.map → dropdown.DmzMGz30.js.map} +1 -1
- package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
- package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
- package/dist/chunks/es.bz0mzkMq.js.map +1 -1
- package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
- package/dist/chunks/events.BQOQSSb7.js.map +1 -1
- package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
- package/dist/chunks/{field-label.D7vU2Icm.js → field-label.OurHuGZS.js} +2 -2
- package/dist/chunks/{field-label.D7vU2Icm.js.map → field-label.OurHuGZS.js.map} +1 -1
- package/dist/chunks/{file-uploader.BmBKLzIx.js → file-uploader.CQgu9YIY.js} +4 -4
- package/dist/chunks/file-uploader.CQgu9YIY.js.map +1 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js +4117 -0
- package/dist/chunks/filter-bar.BJmaoSr2.js.map +1 -0
- package/dist/chunks/{focus-trap.BaHvK7aT.js → focus-trap.DH57j-Ov.js} +2 -2
- package/dist/chunks/{focus-trap.BaHvK7aT.js.map → focus-trap.DH57j-Ov.js.map} +1 -1
- package/dist/chunks/{footer-actions.BqNvwVk7.js → footer-actions.BMggOsip.js} +2 -2
- package/dist/chunks/{footer-actions.BqNvwVk7.js.map → footer-actions.BMggOsip.js.map} +1 -1
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
- package/dist/chunks/{form-layout-title.CPsEzRzS.js → form-layout-title.wnvpIbOe.js} +2 -2
- package/dist/chunks/{form-layout-title.CPsEzRzS.js.map → form-layout-title.wnvpIbOe.js.map} +1 -1
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
- package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
- package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
- package/dist/chunks/grab.B63hmf-_.js +26 -0
- package/dist/chunks/grab.B63hmf-_.js.map +1 -0
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
- package/dist/chunks/{header-meta.PysBmkSU.js → header-meta.CkLmuprc.js} +8 -8
- package/dist/chunks/{header-meta.PysBmkSU.js.map → header-meta.CkLmuprc.js.map} +1 -1
- package/dist/chunks/{header-with-views.XzJCg2Ln.js → header-with-views.BXZmqtnz.js} +612 -630
- package/dist/chunks/header-with-views.BXZmqtnz.js.map +1 -0
- package/dist/chunks/{header.yMTOq8MR.js → header.RiaBKasj.js} +3 -3
- package/dist/chunks/{header.yMTOq8MR.js.map → header.RiaBKasj.js.map} +1 -1
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{index.E60QniEu.js → index.CL07S4Wa.js} +3 -3
- package/dist/chunks/{index.E60QniEu.js.map → index.CL07S4Wa.js.map} +1 -1
- package/dist/chunks/index.pdBj0KQU.js.map +1 -1
- package/dist/chunks/{info-icon.BQDGteil.js → info-icon.B6wfo65e.js} +3 -3
- package/dist/chunks/{info-icon.BQDGteil.js.map → info-icon.B6wfo65e.js.map} +1 -1
- package/dist/chunks/info.BKwey1HA.js.map +1 -1
- package/dist/chunks/{input-field-password.Drp3Gn3x.js → input-field-password.ClyJRN6h.js} +6 -6
- package/dist/chunks/{input-field-password.Drp3Gn3x.js.map → input-field-password.ClyJRN6h.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js → input-field-phone-number.CUdzwXz0.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CcCrGAZb.js.map → input-field-phone-number.CUdzwXz0.js.map} +1 -1
- package/dist/chunks/{input-field.CBegTqdQ.js → input-field.CFNofr-W.js} +3 -3
- package/dist/chunks/{input-field.CBegTqdQ.js.map → input-field.CFNofr-W.js.map} +1 -1
- package/dist/chunks/{inspector.Dox76eqN.js → inspector.I4-8J_fd.js} +3 -3
- package/dist/chunks/{inspector.Dox76eqN.js.map → inspector.I4-8J_fd.js.map} +1 -1
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
- package/dist/chunks/isSameWeek.5sjhTHiU.js +14 -0
- package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.5sjhTHiU.js.map} +1 -1
- package/dist/chunks/{it.Oaj6BklL.js → it.DEniTaO2.js} +2 -2
- package/dist/chunks/{it.Oaj6BklL.js.map → it.DEniTaO2.js.map} +1 -1
- package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
- package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
- package/dist/chunks/{layout-row.CX8kV_w0.js → layout-row.Ccw24NzW.js} +3 -3
- package/dist/chunks/layout-row.Ccw24NzW.js.map +1 -0
- package/dist/chunks/link.BLCQlEZU.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js → listbox-option-tag.BHQiD5oC.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BQZJF00q.js.map → listbox-option-tag.BHQiD5oC.js.map} +1 -1
- package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
- package/dist/chunks/match.CMBZxEs9.js.map +1 -1
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js → modal-fullscreen.f445bZ94.js} +4 -4
- package/dist/chunks/{modal-fullscreen.BXjxVsAq.js.map → modal-fullscreen.f445bZ94.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map → modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map} +1 -1
- package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
- package/dist/chunks/{pagination.BofKoYTB.js → pagination.DuRU9Xg_.js} +2 -2
- package/dist/chunks/{pagination.BofKoYTB.js.map → pagination.DuRU9Xg_.js.map} +1 -1
- package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
- package/dist/chunks/popover.types.BbYumG-N.js +6 -0
- package/dist/chunks/{popover.types.DgfeurkF.js.map → popover.types.BbYumG-N.js.map} +1 -1
- package/dist/chunks/{popper-container.I9gzp1NR.js → popper-container.DdG_YvVF.js} +2 -2
- package/dist/chunks/{popper-container.I9gzp1NR.js.map → popper-container.DdG_YvVF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIRH5sVX.js → promo-banner.DzIYjBfG.js} +2 -2
- package/dist/chunks/{promo-banner.BIRH5sVX.js.map → promo-banner.DzIYjBfG.js.map} +1 -1
- package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
- package/dist/chunks/{radio-group.BqsQRDjs.js → radio-group.EqsvAKt2.js} +4 -4
- package/dist/chunks/{radio-group.BqsQRDjs.js.map → radio-group.EqsvAKt2.js.map} +1 -1
- package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
- package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js → rich-text-editor.-JS_rIjs.js} +4 -4
- package/dist/chunks/{rich-text-editor.Bafyvjc3.js.map → rich-text-editor.-JS_rIjs.js.map} +1 -1
- package/dist/chunks/{search-bar.DrkPxPDP.js → search-bar.DPc0omnd.js} +3 -3
- package/dist/chunks/{search-bar.DrkPxPDP.js.map → search-bar.DPc0omnd.js.map} +1 -1
- package/dist/chunks/search.PczW-onY.js.map +1 -1
- package/dist/chunks/{secondary-nav.C0_VfFa9.js → secondary-nav.BGKR8l0u.js} +3 -3
- package/dist/chunks/{secondary-nav.C0_VfFa9.js.map → secondary-nav.BGKR8l0u.js.map} +1 -1
- package/dist/chunks/{segmented-control.CFlHfj3N.js → segmented-control.CFPAl4HD.js} +2 -2
- package/dist/chunks/{segmented-control.CFlHfj3N.js.map → segmented-control.CFPAl4HD.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.DNPlEqEq.js → selection-card-group.BL0LTYhI.js} +4 -4
- package/dist/chunks/{selection-card-group.DNPlEqEq.js.map → selection-card-group.BL0LTYhI.js.map} +1 -1
- package/dist/chunks/show.CT4Augxb.js.map +1 -1
- package/dist/chunks/{sidepanel.RJihFo_R.js → sidepanel.sWMdYcUC.js} +5 -5
- package/dist/chunks/{sidepanel.RJihFo_R.js.map → sidepanel.sWMdYcUC.js.map} +1 -1
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.CM1KIrNi.js} +2 -2
- package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.CM1KIrNi.js.map} +1 -1
- package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
- package/dist/chunks/step.DpgnDx29.js.map +1 -1
- package/dist/chunks/{structured-list-item.B-hdp7rW.js → structured-list-item.Uky_MJPp.js} +4 -4
- package/dist/chunks/{structured-list-item.B-hdp7rW.js.map → structured-list-item.Uky_MJPp.js.map} +1 -1
- package/dist/chunks/success.DhioLvPD.js.map +1 -1
- package/dist/chunks/success.nNwxJRBS.js.map +1 -1
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js → summary-grid.types.R-TEtkgx.js} +5 -5
- package/dist/chunks/{summary-grid.types.BVLRSBAF.js.map → summary-grid.types.R-TEtkgx.js.map} +1 -1
- package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
- package/dist/chunks/tab.JPngc9oS.js.map +1 -1
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
- package/dist/chunks/{tag.DFJIvNLs.js → tag.CNN_D55j.js} +2 -2
- package/dist/chunks/{tag.DFJIvNLs.js.map → tag.CNN_D55j.js.map} +1 -1
- package/dist/chunks/{textarea.CEDkF8BB.js → textarea.BGcYYD8C.js} +2 -2
- package/dist/chunks/{textarea.CEDkF8BB.js.map → textarea.BGcYYD8C.js.map} +1 -1
- package/dist/chunks/{timeline-item.BxGaSGLf.js → timeline-item.Cbd_rb9J.js} +6 -6
- package/dist/chunks/{timeline-item.BxGaSGLf.js.map → timeline-item.Cbd_rb9J.js.map} +1 -1
- package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
- package/dist/chunks/{tooltip.Nn3o8_vO.js → tooltip.CqV3Okcs.js} +2 -2
- package/dist/chunks/{tooltip.Nn3o8_vO.js.map → tooltip.CqV3Okcs.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js} +28 -28
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map → tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map} +1 -1
- package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
- package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js → use-cached-selected-values.iGHt7ROs.js} +15 -15
- package/dist/chunks/{use-cached-selected-values.BZIa5TRx.js.map → use-cached-selected-values.iGHt7ROs.js.map} +1 -1
- package/dist/chunks/use-country-items.JZCYNoW7.js.map +1 -1
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
- package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.CgIooHto.js} +2 -2
- package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.CgIooHto.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +6 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +163 -0
- package/dist/draggable-handle.js.map +1 -0
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +319 -315
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -7
- package/dist/chunks/action-bar.CriH15oF.js +0 -204
- package/dist/chunks/action-bar.CriH15oF.js.map +0 -1
- package/dist/chunks/ai-button.CDRPf7IY.js +0 -93
- package/dist/chunks/ai-button.CDRPf7IY.js.map +0 -1
- package/dist/chunks/constructNow.DuaJst0D.js +0 -8
- package/dist/chunks/data-grid.CqtJp9rE.js.map +0 -1
- package/dist/chunks/date-range-picker.Df9XyFMH.js +0 -1896
- package/dist/chunks/date-range-picker.Df9XyFMH.js.map +0 -1
- package/dist/chunks/dialog-page.DaZSlMzY.js +0 -181
- package/dist/chunks/dialog-page.DaZSlMzY.js.map +0 -1
- package/dist/chunks/file-uploader.BmBKLzIx.js.map +0 -1
- package/dist/chunks/filter-bar.DHRuvmx9.js +0 -3363
- package/dist/chunks/filter-bar.DHRuvmx9.js.map +0 -1
- package/dist/chunks/header-with-views.XzJCg2Ln.js.map +0 -1
- package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
- package/dist/chunks/layout-row.CX8kV_w0.js.map +0 -1
- package/dist/chunks/popover.types.DgfeurkF.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-tag.Bf6TiNZw.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue"],"sourcesContent":["<template>\n <div>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"$props\"\n :items=\"dropdownItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-avatar :username=\"label\" :src=\"data\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { type BentoAvatarListboxOptions } from './dropdown-avatar.types';\n import { BentoAvatar } from '@/components/avatar';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the avatar dropdown with.\n * It must be an array of {@see BentoAvatarListboxOptions }\n * @property {string} value.label - Text to be displayed in the option.\n * @property {string | number} value.value - Value of the option.\n * @property {string} value.src - Image source of the avatar image.\n */\n items: {\n type: Array as PropType<BentoAvatarListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const dropdownItems = computed(() => props.items.map(({ value, label, src }) => ({ value, label, data: src })));\n\n if (props.value) {\n deprecate(\n 'BentoDropdownAvatar \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownAvatar\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Avatar Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownAvatar } from '@adyen/bento-vue2';\n * import type { BentoAvatarListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownAvatar },\n * template: `\n * <bento-dropdown-avatar\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('user-id-1') // Default value\n * const options: BentoAvatarListboxOptions = [\n * { label: 'User 1', value: 'user-id-1' },\n * { label: 'User 2', value: 'user-id-2', src: 'image-source.jpeg' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-avatar',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <div>\n <bento-dropdown\n v-slot=\"{ label }\"\n v-bind=\"$props\"\n :items=\"countryItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, toRefs } from 'vue';\n import { type BentoCountryListboxOptions } from './dropdown-country.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { BentoTypography } from '@/components/typography';\n import { useCountryItems } from './composables/use-country-items';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoCountryVariant } from '@/components/country';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCountryListboxOptions }\n * * @deprecated {string} value.label - Use BentoDropdown instead of custom labels\n * * @property {BentoCountryCode | string} value.value - Country code of the option\n */\n items: {\n type: Array as PropType<BentoCountryListboxOptions>,\n default: () => [],\n },\n\n /**\n * Which label variant to display.\n * @values iso, name, phone_code, capital\n */\n variant: {\n type: String as PropType<BentoCountryVariant | `${BentoCountryVariant}`>,\n default: BentoCountryVariant.CUSTOM,\n validator: (value: BentoCountryVariant) => Object.values(BentoCountryVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const { variant, items } = toRefs(props);\n const countryItems = useCountryItems(variant, items);\n\n if (variant.value === 'custom' || items.value.some(item => item.label)) {\n deprecate(\n 'BentoDropdownCountry \"custom\" variant and \"items\" prop \"label\" key',\n 'Use any of the other BentoDropdownCountry variants instead OR use BentoDropdown component for custom labels',\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoDropdownCountry \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownCountry\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Country Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-country\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-country',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <bento-dropdown\n v-slot=\"slotProps\"\n v-bind=\"$props\"\n :search=\"search\"\n :items=\"filteredItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, ref, watch } from 'vue';\n import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '@/internal/listbox/';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the currency dropdown with.\n * It must be an array of {@see BentoCurrencyListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option\n */\n items: {\n type: Array as PropType<BentoCurrencyListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const filteredItems = ref<BentoCurrencyListboxOptions>([]);\n\n watch(\n () => props.items,\n () => (filteredItems.value = props.items),\n { immediate: true }\n );\n\n const search = props.search\n ? props.search\n : {\n debounceTime: 500,\n searchEvent: async (searchTerm: string) => {\n // Combine value and label to be able to search by the currency code\n const searchableItems = props.items.map(item => ({\n ...item,\n label: `${item.value} ${item.label}`,\n }));\n\n const searchResults = useSearchBarFilter(\n ref(searchTerm),\n ref<BentoCurrencyListboxOptions>(searchableItems),\n props?.search?.searchEvent,\n ref(false)\n ).value;\n\n // Restore original labels by removing the prepended value\n const normalizedResults = searchResults?.map(result => ({\n ...result,\n label: result.label.substring(result.value.length + 1),\n }));\n\n filteredItems.value = normalizedResults;\n },\n };\n\n if (props.value) {\n deprecate(\n 'BentoDropdownCurrency \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownCurrency\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Currency Dropdown showing a selectable list of currencies.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-currency\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-currency',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <div>\n <bento-dropdown\n class=\"b-dropdown-payment-method\"\n v-bind=\"$props\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <template #display-value=\"{ label, value }\">\n <bento-payment-method :type=\"value\" :label=\"label\" />\n </template>\n\n <template #default=\"{ value, label, description }\">\n <div class=\"b-dropdown-payment-method__item\">\n <bento-payment-method :type=\"value\" :label=\"description ? undefined : label\" />\n\n <div v-if=\"description\" class=\"b-dropdown-payment-method__text\">\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n <bento-typography el=\"span\" class=\"b-dropdown-payment-method__description\">{{\n description\n }}</bento-typography>\n </div>\n </div>\n </template>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType } from 'vue';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import { BentoTypography } from '@/components/typography';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { type BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the payment method dropdown with.\n * It must be an array of {@see BentoPaymentMethodListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string} value.value - Payment type code that translates to a payment icon name {@see https://adyen-ui-assets.netlify.app/?path=/story/packages-ui-assets-payment-method-icons--icons}\n */\n items: {\n type: Array as PropType<BentoPaymentMethodListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n if (props.value) {\n deprecate(\n 'BentoDropdownPaymentMethod \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownPaymentMethod\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Payment method Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownPaymentMethod } from '@adyen/bento-vue2';\n * import type { BentoPaymentMethodListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownPaymentMethod },\n * template: `\n * <bento-dropdown-payment-method\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 'Visa'\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('ideal') // Default value\n * const options: BentoPaymentMethodListboxOptions = [\n * { label: 'Option 1', value: 'ideal' },\n * { label: 'Option 2', value: 'visa' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-payment-method',\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-payment-method.scss\" />\n","<template>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"$props\"\n class=\"b-dropdown-tag\"\n :items=\"tagItems\"\n show-slot-content-in-multiple\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"{ value: label, data, label: '' }\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import type { BentoTagListboxOptions } from './dropdown-tag.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '../../../../internal';\n import BentoDropdown from '../../../dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the tag dropdown with.\n * It must be an array of {@see BentoTagListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string | number} value.value - Value of the option\n * @property {string} value.variant - The BentTag variant shown for the option.\n */\n items: {\n type: Array as PropType<BentoTagListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const tagItems = computed(() => props.items?.map(({ label, value, variant }) => ({ label, value, data: variant })));\n\n if (props.value) {\n deprecate(\n 'BentoDropdownTag \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownTag\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Tag Dropdown showing a selectable list of tags.\n *\n * @example\n * import { BentoDropdownTag } from '@adyen/bento-vue2';\n * import type { BentoTagListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownTag },\n * template: `\n * <bento-dropdown-tag\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('unique-id-1') // Default value\n * const options: BentoTagListboxOptions = [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-tag',\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-tag.scss\" />\n"],"names":["__default__$4","defineComponent","props","__props","emit","__emit","emitValue","useFormFieldEmits","onUpdateModelValue","selectedValue","dropdownItems","computed","value","label","src","deprecate","__default__$3","variant","items","toRefs","countryItems","useCountryItems","item","__default__$2","filteredItems","ref","watch","search","searchTerm","searchableItems","searchResults","useSearchBarFilter","_a","normalizedResults","result","__default__$1","__default__","tagItems"],"mappings":";;;;;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I;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mECoBRqB,IAAAnC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,OAAA,EAAA,MAAA,aAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAeAC,IAAAC,GAyBA,EAAA,WAAAC,EAAA,IAAAC,EAAAH,CAAA,GAEAI,IAAA,CAAAC,MAAAH,EAAAG,CAAA,GAEA4B,IAAA1B,EAAA,MAAA;;AAAA,cAAAqB,IAAA9B,EAAA,UAAA,gBAAA8B,EAAA,IAAA,CAAA,EAAA,OAAAnB,GAAA,OAAAD,GAAA,SAAAK,EAAA,OAAA,EAAA,OAAAJ,GAAA,OAAAD,GAAA,MAAAK,EAAA;AAAA,KAAA;AAEA,WAAAf,EAAA,SACIa;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"dropdown-tag.CBgns9Y3.js","sources":["../../../vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue","../../../vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue"],"sourcesContent":["<template>\n <div>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"$props\"\n :items=\"dropdownItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-avatar :username=\"label\" :src=\"data\" />\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { type BentoAvatarListboxOptions } from './dropdown-avatar.types';\n import { BentoAvatar } from '@/components/avatar';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the avatar dropdown with.\n * It must be an array of {@see BentoAvatarListboxOptions }\n * @property {string} value.label - Text to be displayed in the option.\n * @property {string | number} value.value - Value of the option.\n * @property {string} value.src - Image source of the avatar image.\n */\n items: {\n type: Array as PropType<BentoAvatarListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const dropdownItems = computed(() => props.items.map(({ value, label, src }) => ({ value, label, data: src })));\n\n if (props.value) {\n deprecate(\n 'BentoDropdownAvatar \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownAvatar\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Avatar Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownAvatar } from '@adyen/bento-vue2';\n * import type { BentoAvatarListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownAvatar },\n * template: `\n * <bento-dropdown-avatar\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('user-id-1') // Default value\n * const options: BentoAvatarListboxOptions = [\n * { label: 'User 1', value: 'user-id-1' },\n * { label: 'User 2', value: 'user-id-2', src: 'image-source.jpeg' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-avatar',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <div>\n <bento-dropdown\n v-slot=\"{ label }\"\n v-bind=\"$props\"\n :items=\"countryItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, toRefs } from 'vue';\n import { type BentoCountryListboxOptions } from './dropdown-country.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { BentoTypography } from '@/components/typography';\n import { useCountryItems } from './composables/use-country-items';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoCountryVariant } from '@/components/country';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the country dropdown with.\n * It must be an array of {@see BentoCountryListboxOptions }\n * * @deprecated {string} value.label - Use BentoDropdown instead of custom labels\n * * @property {BentoCountryCode | string} value.value - Country code of the option\n */\n items: {\n type: Array as PropType<BentoCountryListboxOptions>,\n default: () => [],\n },\n\n /**\n * Which label variant to display.\n * @values iso, name, phone_code, capital\n */\n variant: {\n type: String as PropType<BentoCountryVariant | `${BentoCountryVariant}`>,\n default: BentoCountryVariant.CUSTOM,\n validator: (value: BentoCountryVariant) => Object.values(BentoCountryVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const { variant, items } = toRefs(props);\n const countryItems = useCountryItems(variant, items);\n\n if (variant.value === 'custom' || items.value.some(item => item.label)) {\n deprecate(\n 'BentoDropdownCountry \"custom\" variant and \"items\" prop \"label\" key',\n 'Use any of the other BentoDropdownCountry variants instead OR use BentoDropdown component for custom labels',\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoDropdownCountry \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownCountry\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Country Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-country\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-country',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <bento-dropdown\n v-slot=\"slotProps\"\n v-bind=\"$props\"\n :search=\"search\"\n :items=\"filteredItems\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType, ref, watch } from 'vue';\n import type { BentoCurrencyListboxOptions } from './dropdown-currency.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '@/internal/listbox/';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the currency dropdown with.\n * It must be an array of {@see BentoCurrencyListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {BentoCurrencyISOCode} value.code - Currency ISO code of the option\n */\n items: {\n type: Array as PropType<BentoCurrencyListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const filteredItems = ref<BentoCurrencyListboxOptions>([]);\n\n watch(\n () => props.items,\n () => (filteredItems.value = props.items),\n { immediate: true }\n );\n\n const search = props.search\n ? props.search\n : {\n debounceTime: 500,\n searchEvent: async (searchTerm: string) => {\n // Combine value and label to be able to search by the currency code\n const searchableItems = props.items.map(item => ({\n ...item,\n label: `${item.value} ${item.label}`,\n }));\n\n const searchResults = useSearchBarFilter(\n ref(searchTerm),\n ref<BentoCurrencyListboxOptions>(searchableItems),\n props?.search?.searchEvent,\n ref(false)\n ).value;\n\n // Restore original labels by removing the prepended value\n const normalizedResults = searchResults?.map(result => ({\n ...result,\n label: result.label.substring(result.value.length + 1),\n }));\n\n filteredItems.value = normalizedResults;\n },\n };\n\n if (props.value) {\n deprecate(\n 'BentoDropdownCurrency \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownCurrency\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Currency Dropdown showing a selectable list of currencies.\n *\n * @example\n * import { BentoDropdownCountry, BentoCountryCode } from '@adyen/bento-vue2';\n * import type { BentoCountryListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown-currency\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(BentoCountryCode.NL) // Default value\n * const options: BentoCountryListboxOptions = [\n * { label: 'Option 1', value: BentoCountryCode.NL },\n * { label: 'Option 2', value: BentoCountryCode.BE },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'b-dropdown-currency',\n model: { prop: 'modelValue' },\n });\n</script>\n","<template>\n <div>\n <bento-dropdown\n class=\"b-dropdown-payment-method\"\n v-bind=\"$props\"\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <template #display-value=\"{ label, value }\">\n <bento-payment-method :type=\"value\" :label=\"label\" />\n </template>\n\n <template #default=\"{ value, label, description }\">\n <div class=\"b-dropdown-payment-method__item\">\n <bento-payment-method :type=\"value\" :label=\"description ? undefined : label\" />\n\n <div v-if=\"description\" class=\"b-dropdown-payment-method__text\">\n <bento-typography el=\"span\">{{ label }}</bento-typography>\n <bento-typography el=\"span\" class=\"b-dropdown-payment-method__description\">{{\n description\n }}</bento-typography>\n </div>\n </div>\n </template>\n </bento-dropdown>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, type PropType } from 'vue';\n import { BentoPaymentMethod } from '@/components/payment-method';\n import { BentoTypography } from '@/components/typography';\n import BentoDropdown from '@/components/dropdown/dropdown.vue';\n import { type BentoPaymentMethodListboxOptions } from './dropdown-payment-method.types';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the payment method dropdown with.\n * It must be an array of {@see BentoPaymentMethodListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string} value.value - Payment type code that translates to a payment icon name {@see https://adyen-ui-assets.netlify.app/?path=/story/packages-ui-assets-payment-method-icons--icons}\n */\n items: {\n type: Array as PropType<BentoPaymentMethodListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n if (props.value) {\n deprecate(\n 'BentoDropdownPaymentMethod \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownPaymentMethod\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Payment method Dropdown showing a selectable list of countries.\n *\n * @example\n * import { BentoDropdownPaymentMethod } from '@adyen/bento-vue2';\n * import type { BentoPaymentMethodListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownPaymentMethod },\n * template: `\n * <bento-dropdown-payment-method\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 'Visa'\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('ideal') // Default value\n * const options: BentoPaymentMethodListboxOptions = [\n * { label: 'Option 1', value: 'ideal' },\n * { label: 'Option 2', value: 'visa' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-payment-method',\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-payment-method.scss\" />\n","<template>\n <bento-dropdown\n v-slot=\"{ label, data }\"\n v-bind=\"$props\"\n class=\"b-dropdown-tag\"\n :items=\"tagItems\"\n show-slot-content-in-multiple\n @update:model-value=\"onUpdateModelValue\"\n @show-more=\"emit('show-more')\"\n @open=\"emit('open')\"\n >\n <listbox-option-tag :option=\"{ value: label, data, label: '' }\" />\n </bento-dropdown>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType } from 'vue';\n import type { BentoTagListboxOptions } from './dropdown-tag.types';\n import type { BentoListboxSelectedValue } from '@/types/listbox';\n import { ListboxOptionTag } from '../../../../internal';\n import BentoDropdown from '../../../dropdown.vue';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n ...BentoDropdown.props,\n /**\n * The option elements to populate the tag dropdown with.\n * It must be an array of {@see BentoTagListboxOptions }\n * @property {string} value.label - Text to be displayed in the option\n * @property {string | number} value.value - Value of the option\n * @property {string} value.variant - The BentTag variant shown for the option.\n */\n items: {\n type: Array as PropType<BentoTagListboxOptions>,\n default: () => [],\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated from version 2.0.0. Use `v-model` or `update:model-value instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const onUpdateModelValue = (selectedValue: BentoListboxSelectedValue) => emitValue(selectedValue);\n\n const tagItems = computed(() => props.items?.map(({ label, value, variant }) => ({ label, value, data: variant })));\n\n if (props.value) {\n deprecate(\n 'BentoDropdownTag \"value\" property',\n `The use of \"value\" prop in \"BentoDropdownTag\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A Tag Dropdown showing a selectable list of tags.\n *\n * @example\n * import { BentoDropdownTag } from '@adyen/bento-vue2';\n * import type { BentoTagListboxOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdownTag },\n * template: `\n * <bento-dropdown-tag\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref('unique-id-1') // Default value\n * const options: BentoTagListboxOptions = [\n * { label: 'Offline', value: 'unique-id-1', variant: 'red' },\n * { label: 'Online', value: 'unique-id-2', variant: 'green' },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-dropdown-tag',\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-tag.scss\" />\n"],"names":["__default__$4","defineComponent","props","__props","emit","__emit","emitValue","useFormFieldEmits","onUpdateModelValue","selectedValue","dropdownItems","computed","value","label","src","deprecate","__default__$3","variant","items","toRefs","countryItems","useCountryItems","item","__default__$2","filteredItems","ref","watch","search","searchTerm","searchableItems","searchResults","useSearchBarFilter","_a","normalizedResults","result","__default__$1","__default__","tagItems"],"mappings":";;;;;;;;;;;AA6GI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,OAAA,EAAA,MAAA,aAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;AAxFA,UAAAC,IAAAC,GAeAC,IAAAC,GAyBA,EAAA,WAAAC,EAAA,IAAAC,EAAAH,CAAA,GAEAI,IAAA,CAAAC,MAAAH,EAAAG,CAAA,GAEAC,IAAAC,EAAA,MAAAT,EAAA,MAAA,IAAA,CAAA,EAAA,OAAAU,GAAA,OAAAC,GAAA,KAAAC,EAAA,OAAA,EAAA,OAAAF,GAAA,OAAAC,GAAA,MAAAC,EAAA,EAAA,CAAA;AAEA,WAAAZ,EAAA,SACIa;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;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,MAAAK,EAAA;AAAA,KAAA;AAEA,WAAAf,EAAA,SACIa;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ref as C, watch as ge, computed as d, defineComponent as W, useSlots as $e, toRefs as Re, createBlock as K, openBlock as w, resolveDynamicComponent as ke, mergeProps as k, withCtx as V, createElementVNode as ae, withKeys as nt, unref as s, createVNode as X, toHandlers as te, createSlots as pe, renderList as fe, renderSlot as G, normalizeProps as me, guardReactiveProps as ve, createElementBlock as P, createCommentVNode as z, toDisplayString as he, normalizeClass as ye, withDirectives as oe, vShow as Ie, nextTick as N, useAttrs as st, toRef as x, inject as it, createTextVNode as rt } from "vue";
|
|
2
2
|
import { d as de, B as dt } from "./typography.6Oo5TOMP.js";
|
|
3
|
+
import { a as ue, b as H, c as ut, B as ee, D as ct } from "./dropdown-default-textbox.DFtFMu5G.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { s as ce } from "./events.BQOQSSb7.js";
|
|
3
7
|
import { g as J } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
-
import { u as
|
|
8
|
+
import { u as pt } from "./aria-label.CaUURpnB.js";
|
|
5
9
|
import { u as Le } from "./index.pdBj0KQU.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { a as f, b as be, B as xe, c as
|
|
8
|
-
import { u as
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as M, a as
|
|
11
|
-
import { a as ue, b as H, c as gt, B as ee, D as ht } from "./dropdown-default-textbox.DFtFMu5G.js";
|
|
10
|
+
import { u as ft } from "./form-field.D_2g7vaP.js";
|
|
11
|
+
import { a as f, b as be, B as xe, c as mt, u as vt, d as yt } from "./use-cached-selected-values.iGHt7ROs.js";
|
|
12
|
+
import { u as bt } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
13
|
+
import { B as gt } from "./directive.Cbdox5VL.js";
|
|
14
|
+
import { B as M, a as ht } from "./keyboard-navigation.DWmhelVv.js";
|
|
12
15
|
import { u as Lt } from "./use-has-slot.B7eQSabc.js";
|
|
13
|
-
import { F as St, E as wt } from "./field-label.
|
|
14
|
-
import { P as Ne } from "./popper-container.
|
|
15
|
-
import { h as Et } from "./button-actions.
|
|
16
|
-
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
17
|
-
/* empty css */
|
|
18
|
-
import { s as ce } from "./events.BQOQSSb7.js";
|
|
16
|
+
import { F as St, E as wt } from "./field-label.OurHuGZS.js";
|
|
17
|
+
import { P as Ne } from "./popper-container.DdG_YvVF.js";
|
|
18
|
+
import { h as Et } from "./button-actions.Dk8xU2cz.js";
|
|
19
19
|
import "../assets/dropdown.css";
|
|
20
20
|
const Se = {
|
|
21
21
|
"en-US": {
|
|
@@ -415,7 +415,7 @@ const Rt = /* @__PURE__ */ Y(At, [["render", $t]]), kt = { class: "b-dropdown-sm
|
|
|
415
415
|
}), (m, B) => (w(), P("div", {
|
|
416
416
|
class: ye(["b-dropdown-small-textbox", e.value])
|
|
417
417
|
}, [
|
|
418
|
-
X(
|
|
418
|
+
X(ut, k({
|
|
419
419
|
ref_key: "baseTextbox",
|
|
420
420
|
ref: l
|
|
421
421
|
}, { ...m.$attrs, ...m.$props }, {
|
|
@@ -562,7 +562,7 @@ const _e = {
|
|
|
562
562
|
i18n: { messages: _e },
|
|
563
563
|
name: "b-dropdown",
|
|
564
564
|
components: {
|
|
565
|
-
DropdownInputDefault:
|
|
565
|
+
DropdownInputDefault: ct,
|
|
566
566
|
DropdownInputSmall: Ft
|
|
567
567
|
},
|
|
568
568
|
model: { prop: "modelValue" }
|
|
@@ -602,12 +602,12 @@ const _e = {
|
|
|
602
602
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
603
603
|
setup(a, { expose: r, emit: i }) {
|
|
604
604
|
var Te;
|
|
605
|
-
const o = st(), n = $e(), l = Lt(n), e = a, c = i, { t: v } = Le({ messages: _e }), { emitValue: L } =
|
|
605
|
+
const o = st(), n = $e(), l = Lt(n), e = a, c = i, { t: v } = Le({ messages: _e }), { emitValue: L } = ft(c), u = C(null), h = C(null), g = C(null), p = C(!1), O = J("bento-dropdown-options-container"), m = J("dropdown-label"), B = J("dropdown-description"), D = J("dropdown-error"), { isReadOnly: b } = bt(x(e, "readonly")), S = d(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: _, cachedListboxSelectedValues: A, setCachedValues: T } = mt(
|
|
606
606
|
x(e, "items"),
|
|
607
607
|
S,
|
|
608
608
|
x(e, "multiple"),
|
|
609
609
|
x(e, "enableValueLabelPair")
|
|
610
|
-
), q = C(o["aria-label"]), y = C(o["aria-describedby"]), { ariaLabel: E, label: $ } = Re(e), Z = d(() => v("ariaLabelFallback")), we =
|
|
610
|
+
), q = C(o["aria-label"]), y = C(o["aria-describedby"]), { ariaLabel: E, label: $ } = Re(e), Z = d(() => v("ariaLabelFallback")), we = pt({
|
|
611
611
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
612
612
|
ariaLabel: E.value || q,
|
|
613
613
|
label: $,
|
|
@@ -636,7 +636,7 @@ const _e = {
|
|
|
636
636
|
}), qe = d(() => {
|
|
637
637
|
const t = le.value.findIndex(({ value: I }) => e.enableValueLabelPair ? S.value.value === I : S.value === I);
|
|
638
638
|
return t > -1 ? t : 0;
|
|
639
|
-
}), { isMultiLevelSelect: Oe, flattenedItemsList: Ue } =
|
|
639
|
+
}), { isMultiLevelSelect: Oe, flattenedItemsList: Ue } = vt(Q), je = d(() => Oe.value && !e.staticCategories), He = d(() => je.value ? "treeitem" : "option"), Je = d(() => {
|
|
640
640
|
if (e.multiple) {
|
|
641
641
|
const t = Array.isArray(S.value) ? S.value.length : 0, I = Oe.value ? Ue.value.length : Q.value.length;
|
|
642
642
|
return t === 0 ? null : !e.hasMoreItems && I > 0 && I === t ? v("all") : t;
|
|
@@ -651,7 +651,7 @@ const _e = {
|
|
|
651
651
|
), Ze = d(() => {
|
|
652
652
|
var t;
|
|
653
653
|
return (t = g.value) == null ? void 0 : t.$el;
|
|
654
|
-
}), { visibleDomOptions: Qe, updateVisibleDomOptions: Be } =
|
|
654
|
+
}), { visibleDomOptions: Qe, updateVisibleDomOptions: Be } = yt(
|
|
655
655
|
Ze,
|
|
656
656
|
le,
|
|
657
657
|
He
|
|
@@ -770,7 +770,7 @@ const _e = {
|
|
|
770
770
|
}))
|
|
771
771
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "required", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
772
772
|
], 16)), [
|
|
773
|
-
[s(
|
|
773
|
+
[s(ht)]
|
|
774
774
|
]),
|
|
775
775
|
u.value ? (w(), K(s(Dt), k({
|
|
776
776
|
key: 1,
|
|
@@ -822,7 +822,7 @@ const _e = {
|
|
|
822
822
|
_: 3
|
|
823
823
|
}, 8, ["id", "class"])) : z("", !0)
|
|
824
824
|
], 2)), [
|
|
825
|
-
[s(
|
|
825
|
+
[s(gt), Ge]
|
|
826
826
|
]);
|
|
827
827
|
};
|
|
828
828
|
}
|
|
@@ -834,4 +834,4 @@ export {
|
|
|
834
834
|
mo as b,
|
|
835
835
|
qt as u
|
|
836
836
|
};
|
|
837
|
-
//# sourceMappingURL=dropdown.
|
|
837
|
+
//# sourceMappingURL=dropdown.DmzMGz30.js.map
|