@adyen/bento-vue2 1.51.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +109 -4
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.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/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/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{action-bar.DGhojWpe.js → action-bar.DuJkjAt1.js} +5 -5
- package/dist/chunks/{action-bar.DGhojWpe.js.map → action-bar.DuJkjAt1.js.map} +1 -1
- package/dist/chunks/{alert.BSBLkXkM.js → alert.BkMKX9wD.js} +9 -9
- package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
- package/dist/chunks/{base-modal.Dan5WQin.js → base-modal.CiTysydg.js} +3 -3
- package/dist/chunks/{base-modal.Dan5WQin.js.map → base-modal.CiTysydg.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.B9oXYIgo.js +166 -0
- package/dist/chunks/button-actions-with-menu.B9oXYIgo.js.map +1 -0
- package/dist/chunks/{button-actions.GhdYBSwt.js → button-actions.DAvSJtOB.js} +3 -3
- package/dist/chunks/{button-actions.GhdYBSwt.js.map → button-actions.DAvSJtOB.js.map} +1 -1
- package/dist/chunks/calendar.Bq67h02Z.js +1130 -0
- package/dist/chunks/calendar.Bq67h02Z.js.map +1 -0
- package/dist/chunks/{card.Csazj5Qz.js → card.AQO_BjGb.js} +2 -2
- package/dist/chunks/{card.Csazj5Qz.js.map → card.AQO_BjGb.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DcJ31aLq.js → checkbox-group.CqSIn-lG.js} +4 -4
- package/dist/chunks/{checkbox-group.DcJ31aLq.js.map → checkbox-group.CqSIn-lG.js.map} +1 -1
- package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
- package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
- package/dist/chunks/checkbox.BeYtbfPv.js +170 -0
- package/dist/chunks/checkbox.BeYtbfPv.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
- package/dist/chunks/{code-snippet.z_G2UXVT.js → code-snippet.CW42FdpP.js} +5 -5
- package/dist/chunks/{code-snippet.z_G2UXVT.js.map → code-snippet.CW42FdpP.js.map} +1 -1
- package/dist/chunks/{controls-group.ghJ7a8PY.js → controls-group.D0_cJaFF.js} +2 -2
- package/dist/chunks/{controls-group.ghJ7a8PY.js.map → controls-group.D0_cJaFF.js.map} +1 -1
- package/dist/chunks/{copy.BNOiinIt.js → copy.2iD8aI5a.js} +3 -3
- package/dist/chunks/{copy.BNOiinIt.js.map → copy.2iD8aI5a.js.map} +1 -1
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
- package/dist/chunks/{dashboard-section.Db_E382r.js → dashboard-section.Cmulh6WM.js} +3 -3
- package/dist/chunks/{dashboard-section.Db_E382r.js.map → dashboard-section.Cmulh6WM.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CAhDrAG_.js → dashed-underline.eMF75SuT.js} +3 -3
- package/dist/chunks/{dashed-underline.CAhDrAG_.js.map → dashed-underline.eMF75SuT.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DG5IWdLG.js → data-grid-template.CdHnPE1-.js} +2 -2
- package/dist/chunks/{data-grid-template.DG5IWdLG.js.map → data-grid-template.CdHnPE1-.js.map} +1 -1
- package/dist/chunks/{data-grid.CHV-FvBB.js → data-grid.DedjAz4_.js} +23 -23
- package/dist/chunks/data-grid.DedjAz4_.js.map +1 -0
- package/dist/chunks/date-picker.BdMr3Sn2.js +235 -0
- package/dist/chunks/date-picker.BdMr3Sn2.js.map +1 -0
- package/dist/chunks/date-range-picker.BHfvD0GK.js +903 -0
- package/dist/chunks/date-range-picker.BHfvD0GK.js.map +1 -0
- package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
- package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js → dropdown-default-textbox.CDTdHfTv.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.K4idCLeu.js → dropdown-tag.CvZ1jckk.js} +4 -4
- package/dist/chunks/{dropdown-tag.K4idCLeu.js.map → dropdown-tag.CvZ1jckk.js.map} +1 -1
- package/dist/chunks/{dropdown.DFEGHxjw.js → dropdown.CcHoKbLz.js} +108 -107
- package/dist/chunks/dropdown.CcHoKbLz.js.map +1 -0
- package/dist/chunks/{error-message.B3oWB_HM.js → error-message.B1-ekAMa.js} +3 -3
- package/dist/chunks/{error-message.B3oWB_HM.js.map → error-message.B1-ekAMa.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DaBMZSsB.js → file-uploader.Dlfzh5QQ.js} +7 -7
- package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +1 -0
- package/dist/chunks/{filter-bar.DClIG9aP.js → filter-bar.CwqoJGiK.js} +568 -618
- package/dist/chunks/{filter-bar.DClIG9aP.js.map → filter-bar.CwqoJGiK.js.map} +1 -1
- package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CWlKh48z.js} +2 -2
- package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CWlKh48z.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0SuJroc.js → footer-actions.BkHpWa7A.js} +2 -2
- package/dist/chunks/{footer-actions.D0SuJroc.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
- package/dist/chunks/{form-layout-title.C1n2S73_.js → form-layout-title.DK1-01RH.js} +50 -47
- package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
- package/dist/chunks/header.BAKjEGmH.js +183 -0
- package/dist/chunks/header.BAKjEGmH.js.map +1 -0
- package/dist/chunks/{index.CU8GKq4C.js → index.-wO_BQCb.js} +2 -1
- package/dist/chunks/{index.CU8GKq4C.js.map → index.-wO_BQCb.js.map} +1 -1
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js → info-icon-with-popover.CxXWP4TR.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js.map → info-icon-with-popover.CxXWP4TR.js.map} +1 -1
- package/dist/chunks/{info-icon.bXR5eo6I.js → info-icon.D3neDWqH.js} +4 -4
- package/dist/chunks/{info-icon.bXR5eo6I.js.map → info-icon.D3neDWqH.js.map} +1 -1
- package/dist/chunks/info.4d_mJHvT.js +24 -0
- package/dist/chunks/info.4d_mJHvT.js.map +1 -0
- package/dist/chunks/{input-field-password.DsIpkc_9.js → input-field-password.CO0lAgMh.js} +75 -72
- package/dist/chunks/input-field-password.CO0lAgMh.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js → input-field-phone-number.TXnK0dch.js} +324 -321
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js.map → input-field-phone-number.TXnK0dch.js.map} +1 -1
- package/dist/chunks/input-field.De4sp76g.js +152 -0
- package/dist/chunks/input-field.De4sp76g.js.map +1 -0
- package/dist/chunks/{inspector.types.C9Oc8FgA.js → inspector.types.ClnPOYmb.js} +3 -3
- package/dist/chunks/{inspector.types.C9Oc8FgA.js.map → inspector.types.ClnPOYmb.js.map} +1 -1
- package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.dh2VyGoD.js} +2 -2
- package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.dh2VyGoD.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js → listbox-option-tag.xGQr3Su1.js} +2 -2
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js.map → listbox-option-tag.xGQr3Su1.js.map} +1 -1
- package/dist/chunks/{menu.CzbkunwY.js → menu.li3Kg9Uq.js} +29 -29
- package/dist/chunks/menu.li3Kg9Uq.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js → modal-fullscreen.C4eL63TC.js} +3 -3
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js.map → modal-fullscreen.C4eL63TC.js.map} +1 -1
- package/dist/chunks/{modal.DgCmKjQC.js → modal.BpDz0Dhc.js} +4 -4
- package/dist/chunks/{modal.DgCmKjQC.js.map → modal.BpDz0Dhc.js.map} +1 -1
- package/dist/chunks/{pagination.CdOxfZW2.js → pagination.FuELftBG.js} +2 -2
- package/dist/chunks/{pagination.CdOxfZW2.js.map → pagination.FuELftBG.js.map} +1 -1
- package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
- package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
- package/dist/chunks/{popover.3sHql3nd.js → popover.Cb6utVhS.js} +3 -3
- package/dist/chunks/{popover.3sHql3nd.js.map → popover.Cb6utVhS.js.map} +1 -1
- package/dist/chunks/{popper-container.Bqy3oVj6.js → popper-container.CiEkF7eb.js} +2 -2
- package/dist/chunks/{popper-container.Bqy3oVj6.js.map → popper-container.CiEkF7eb.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIICM7FC.js → promo-banner.PnHud5Wi.js} +2 -2
- package/dist/chunks/{promo-banner.BIICM7FC.js.map → promo-banner.PnHud5Wi.js.map} +1 -1
- package/dist/chunks/{radio-group.L-XokgwC.js → radio-group._8PsjPCZ.js} +4 -4
- package/dist/chunks/{radio-group.L-XokgwC.js.map → radio-group._8PsjPCZ.js.map} +1 -1
- package/dist/chunks/{search-bar.CDTWPjG1.js → search-bar.CVY2e8_B.js} +5 -5
- package/dist/chunks/{search-bar.CDTWPjG1.js.map → search-bar.CVY2e8_B.js.map} +1 -1
- package/dist/chunks/search.DLtglc02.js +24 -0
- package/dist/chunks/search.DLtglc02.js.map +1 -0
- package/dist/chunks/{secondary-nav.BwmBTvl5.js → secondary-nav.LxcuTR16.js} +3 -3
- package/dist/chunks/{secondary-nav.BwmBTvl5.js.map → secondary-nav.LxcuTR16.js.map} +1 -1
- package/dist/chunks/{segmented-control.CW6v1rDg.js → segmented-control.D69WXQGh.js} +2 -2
- package/dist/chunks/{segmented-control.CW6v1rDg.js.map → segmented-control.D69WXQGh.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CURxGbd9.js → selection-card-group.MTKkCBeK.js} +11 -11
- package/dist/chunks/{selection-card-group.CURxGbd9.js.map → selection-card-group.MTKkCBeK.js.map} +1 -1
- package/dist/chunks/{sidepanel.MBArfd4a.js → sidepanel.BStCbRqN.js} +3 -3
- package/dist/chunks/{sidepanel.MBArfd4a.js.map → sidepanel.BStCbRqN.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js → structured-list-item.CeosjL40.js} +5 -5
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js.map → structured-list-item.CeosjL40.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js → summary-grid-item-custom.CF_TS7oA.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js.map → summary-grid-item-custom.CF_TS7oA.js.map} +1 -1
- package/dist/chunks/{tag.BxmageRW.js → tag.OgtZ3-ql.js} +2 -2
- package/dist/chunks/{tag.BxmageRW.js.map → tag.OgtZ3-ql.js.map} +1 -1
- package/dist/chunks/{textarea.DmjhRupr.js → textarea.BEISPJua.js} +2 -2
- package/dist/chunks/{textarea.DmjhRupr.js.map → textarea.BEISPJua.js.map} +1 -1
- package/dist/chunks/{timeline-item.CLbS-cEf.js → timeline-item.BeWMuM8A.js} +12 -11
- package/dist/chunks/{timeline-item.CLbS-cEf.js.map → timeline-item.BeWMuM8A.js.map} +1 -1
- package/dist/chunks/{tooltip.Vgoc41cI.js → tooltip.RPURZd36.js} +2 -2
- package/dist/chunks/{tooltip.Vgoc41cI.js.map → tooltip.RPURZd36.js.map} +1 -1
- package/dist/chunks/{tutorial.CmLMgXDK.js → tutorial.Ba8PTa0x.js} +42 -42
- package/dist/chunks/tutorial.Ba8PTa0x.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js → use-cached-selected-values.CxlYYUbd.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js.map → use-cached-selected-values.CxlYYUbd.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +51 -51
- 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 +35 -33
- 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/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +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 +26 -0
- package/dist/styles/bento-light.css +26 -0
- package/dist/styles/bento.css +26 -0
- package/dist/styles/legacy.css +28 -2
- package/dist/styles/styleguide.css +26 -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/web-types.json +370 -86
- package/package.json +6 -6
- package/dist/chunks/alert.BSBLkXkM.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js +0 -112
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js.map +0 -1
- package/dist/chunks/calendar.YJTNpmzh.js +0 -888
- package/dist/chunks/calendar.YJTNpmzh.js.map +0 -1
- package/dist/chunks/checkbox-input.B4A_gL2b.js +0 -128
- package/dist/chunks/checkbox-input.B4A_gL2b.js.map +0 -1
- package/dist/chunks/checkbox.BpF0HY7C.js +0 -162
- package/dist/chunks/checkbox.BpF0HY7C.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js +0 -24
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BawVYNw7.js +0 -24
- package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +0 -1
- package/dist/chunks/data-grid.CHV-FvBB.js.map +0 -1
- package/dist/chunks/date-picker.CMj5-RQl.js +0 -213
- package/dist/chunks/date-picker.CMj5-RQl.js.map +0 -1
- package/dist/chunks/date-range-picker.Jysfo6h3.js +0 -885
- package/dist/chunks/date-range-picker.Jysfo6h3.js.map +0 -1
- package/dist/chunks/dropdown.DFEGHxjw.js.map +0 -1
- package/dist/chunks/file-uploader.DaBMZSsB.js.map +0 -1
- package/dist/chunks/form-layout-title.C1n2S73_.js.map +0 -1
- package/dist/chunks/header.CRlxEGHb.js +0 -205
- package/dist/chunks/header.CRlxEGHb.js.map +0 -1
- package/dist/chunks/index.CrhTVr5J.js +0 -10
- package/dist/chunks/index.CrhTVr5J.js.map +0 -1
- package/dist/chunks/index.DDnf1O9p.js +0 -22
- package/dist/chunks/index.DDnf1O9p.js.map +0 -1
- package/dist/chunks/index.DPafeRJa.js +0 -10
- package/dist/chunks/index.DPafeRJa.js.map +0 -1
- package/dist/chunks/info.D4SG-AIm.js +0 -24
- package/dist/chunks/info.D4SG-AIm.js.map +0 -1
- package/dist/chunks/input-field-password.DsIpkc_9.js.map +0 -1
- package/dist/chunks/input-field.Dl2lXZda.js +0 -146
- package/dist/chunks/input-field.Dl2lXZda.js.map +0 -1
- package/dist/chunks/menu.CzbkunwY.js.map +0 -1
- package/dist/chunks/payment-method.BudFG3aC.js +0 -76
- package/dist/chunks/payment-method.BudFG3aC.js.map +0 -1
- package/dist/chunks/search.pVu-JVAN.js +0 -24
- package/dist/chunks/search.pVu-JVAN.js.map +0 -1
- package/dist/chunks/tutorial.CmLMgXDK.js.map +0 -1
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as a, toRef as m, ref as c, provide as l } from "vue";
|
|
2
|
-
import { M as f, B as v } from "./menu.CzbkunwY.js";
|
|
3
|
-
import { a as A } from "./popover.3sHql3nd.js";
|
|
4
|
-
import { f as b, B } from "./button-actions.GhdYBSwt.js";
|
|
5
|
-
import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import "../assets/button-actions-with-menu.css";
|
|
7
|
-
const y = {}, N = /* @__PURE__ */ _({
|
|
8
|
-
...y,
|
|
9
|
-
__name: "button-actions-with-menu",
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* List of actions that will be used to render the buttons.
|
|
13
|
-
* First element in the list will be rendered as "primary".
|
|
14
|
-
* All elements after the first will be rendered as "secondary".
|
|
15
|
-
*
|
|
16
|
-
* Each object in the list should have a `title`, an `event` and
|
|
17
|
-
* (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
|
|
18
|
-
*
|
|
19
|
-
* `title`: Button's text.
|
|
20
|
-
*
|
|
21
|
-
* `event`: Event triggered when clicking the Button.
|
|
22
|
-
*
|
|
23
|
-
* `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.
|
|
24
|
-
*
|
|
25
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
26
|
-
*
|
|
27
|
-
* ```
|
|
28
|
-
* [{
|
|
29
|
-
* title: 'Primary',
|
|
30
|
-
* event: () => { ... },
|
|
31
|
-
* icon: FourPeopleIcon,
|
|
32
|
-
* link: {
|
|
33
|
-
variant: 'default',
|
|
34
|
-
external: true,
|
|
35
|
-
to: 'https://www.adyen.com/'
|
|
36
|
-
},
|
|
37
|
-
* }, {
|
|
38
|
-
* title: 'Secondary',
|
|
39
|
-
* event: () => { ... }
|
|
40
|
-
* disabled: true,
|
|
41
|
-
* variant: 'primary',
|
|
42
|
-
* critical: true
|
|
43
|
-
* }]
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
actions: {
|
|
47
|
-
type: Array,
|
|
48
|
-
required: !0
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.
|
|
52
|
-
*/
|
|
53
|
-
disableResponsiveBehavior: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !1
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.
|
|
59
|
-
*/
|
|
60
|
-
displayedActions: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: void 0
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* Set inverse color scheme to buttons and menu
|
|
66
|
-
*/
|
|
67
|
-
inverse: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
71
|
-
/**
|
|
72
|
-
* The position of where the menu should open.
|
|
73
|
-
*/
|
|
74
|
-
menuPosition: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: "bottom-start",
|
|
77
|
-
validator: (s) => Object.values(A).includes(s)
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
setup(s) {
|
|
81
|
-
const t = s, n = a(() => t.actions.slice(0, t.displayedActions)), e = m(t, "inverse"), r = c(null), u = c(null), i = c(!1);
|
|
82
|
-
l(f, e), t.disableResponsiveBehavior || l(b, { buttonActionsWithMenu: r, menu: u, stackButtons: i });
|
|
83
|
-
const p = a(() => ({
|
|
84
|
-
"b-button-actions-with-menu__container-wrapper--stacked-buttons": i.value
|
|
85
|
-
})), d = a(
|
|
86
|
-
() => t.displayedActions !== void 0 && t.displayedActions < t.actions.length ? t.actions.slice(t.displayedActions, t.actions.length).map((o) => ({
|
|
87
|
-
text: o.title,
|
|
88
|
-
handler: o.event,
|
|
89
|
-
icon: o.icon,
|
|
90
|
-
critical: o.critical,
|
|
91
|
-
disabled: o.disabled
|
|
92
|
-
})) : []
|
|
93
|
-
);
|
|
94
|
-
return { __sfc: !0, props: t, computedActions: n, inverseRef: e, buttonActionsWithMenu: r, menu: u, stackButtons: i, conditionalClasses: p, computedMenuActions: d, BentoMenu: v, BentoButtonActions: B };
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
var M = function() {
|
|
98
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
99
|
-
return n("div", { staticClass: "b-button-actions-with-menu" }, [n("div", { ref: "buttonActionsWithMenu", staticClass: "b-button-actions-with-menu__container-wrapper", class: e.conditionalClasses, attrs: { role: "group" } }, [n(e.BentoButtonActions, { attrs: { actions: e.computedActions, inverse: t.inverse } }), e.computedMenuActions.length ? n(e.BentoMenu, { ref: "menu", attrs: { data: e.computedMenuActions, "menu-position": t.menuPosition } }) : t._e()], 1)]);
|
|
100
|
-
}, C = [], E = /* @__PURE__ */ h(
|
|
101
|
-
N,
|
|
102
|
-
M,
|
|
103
|
-
C,
|
|
104
|
-
!1,
|
|
105
|
-
null,
|
|
106
|
-
"439f0892"
|
|
107
|
-
);
|
|
108
|
-
const g = E.exports;
|
|
109
|
-
export {
|
|
110
|
-
g as B
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=button-actions-with-menu.B5gcSgRQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-actions-with-menu.B5gcSgRQ.js","sources":["../../src/components/internal/button-actions-with-menu/button-actions-with-menu.vue"],"sourcesContent":["<template>\n <div class=\"b-button-actions-with-menu\">\n <div\n ref=\"buttonActionsWithMenu\"\n role=\"group\"\n class=\"b-button-actions-with-menu__container-wrapper\"\n :class=\"conditionalClasses\"\n >\n <bento-button-actions :actions=\"computedActions\" :inverse=\"inverse\" />\n <bento-menu\n v-if=\"computedMenuActions.length\"\n ref=\"menu\"\n :data=\"computedMenuActions\"\n :menu-position=\"menuPosition\"\n />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, provide, ref, toRef } from 'vue';\n import BentoMenu from '@/components/menu/menu.vue';\n import { BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n import { MENU_INVERSE_INJECTION_KEY } from '@/components/menu/menu.keys';\n import { BentoPopoverPositions } from '@/components/popover';\n import { BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY } from './button-actions-with-menu.keys';\n\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n variant: 'default',\n external: true,\n to: 'https://www.adyen.com/'\n },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: 'primary',\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n disableResponsiveBehavior: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n displayedActions: {\n type: Number,\n default: undefined,\n },\n\n /**\n * Set inverse color scheme to buttons and menu\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The position of where the menu should open.\n */\n menuPosition: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: 'bottom-start',\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n });\n\n const computedActions = computed(() => props.actions.slice(0, props.displayedActions));\n const inverseRef = toRef(props, 'inverse');\n const buttonActionsWithMenu = ref<HTMLDivElement>(null);\n const menu = ref<HTMLDivElement>(null);\n const stackButtons = ref(false);\n\n provide(MENU_INVERSE_INJECTION_KEY, inverseRef);\n\n if (!props.disableResponsiveBehavior) {\n provide(BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY, { buttonActionsWithMenu, menu, stackButtons });\n }\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions-with-menu__container-wrapper--stacked-buttons`]: stackButtons.value,\n }));\n\n const computedMenuActions = computed(() =>\n props.displayedActions !== undefined && props.displayedActions < props.actions.length\n ? (props.actions.slice(props.displayedActions, props.actions.length).map(el => ({\n text: el.title,\n handler: el.event,\n icon: el.icon,\n critical: el.critical,\n disabled: el.disabled,\n })) as BentoMenuItem[])\n : []\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n"],"names":["__default__","computedActions","computed","props","inverseRef","toRef","buttonActionsWithMenu","ref","menu","stackButtons","provide","MENU_INVERSE_INJECTION_KEY","BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY","conditionalClasses","computedMenuActions","el"],"mappings":";;;;;;AAsLI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAC,IAAAC,EAAA,MAAAC,EAAA,QAAA,MAAA,GAAAA,EAAA,gBAAA,CAAA,GACAC,IAAAC,EAAAF,GAAA,SAAA,GACAG,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,EAAA;AAEA,IAAAG,EAAAC,GAAAP,CAAA,GAEAD,EAAA,6BACIO,EAAAE,GAAA,EAAA,uBAAAN,GAAA,MAAAE,GAAA,cAAAC,EAAA,CAAA;AAGJ,UAAAI,IAAAX,EAAA,OAAA;AAAA,MAA2C,kEAAAO,EAAA;AAAA,IAC0C,EAAA,GAGrFK,IAAAZ;AAAA,MAA4B,MAAAC,EAAA,qBAAA,UAAAA,EAAA,mBAAAA,EAAA,QAAA,SAAAA,EAAA,QAAA,MAAAA,EAAA,kBAAAA,EAAA,QAAA,MAAA,EAAA,IAAA,CAAAY,OAAA;AAAA,QAE4D,MAAAA,EAAA;AAAA,QACjE,SAAAA,EAAA;AAAA,QACG,MAAAA,EAAA;AAAA,QACH,UAAAA,EAAA;AAAA,QACI,UAAAA,EAAA;AAAA,MACA,EAAA,IAAA,CAAA;AAAA,IAEhB;;;;;;;;;;;;;;;;"}
|