@adyen/bento-vue2 1.32.0 → 1.33.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 +21 -18
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.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/controls-group.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.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/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/loading-button.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/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.CNYpvxwN.js → accordion-item.IMlV_Vik.js} +3 -3
- package/dist/chunks/{accordion-item.CNYpvxwN.js.map → accordion-item.IMlV_Vik.js.map} +1 -1
- package/dist/chunks/{action-bar.Ds_ofJs6.js → action-bar.CxsPPZZ_.js} +17 -17
- package/dist/chunks/action-bar.CxsPPZZ_.js.map +1 -0
- package/dist/chunks/{alert.Ba2hSVeM.js → alert.DtT7BRdr.js} +4 -4
- package/dist/chunks/{alert.Ba2hSVeM.js.map → alert.DtT7BRdr.js.map} +1 -1
- package/dist/chunks/{avatar.DohItrb9.js → avatar.0ffdL8i0.js} +8 -8
- package/dist/chunks/avatar.0ffdL8i0.js.map +1 -0
- package/dist/chunks/{base-button.-qw8sZSY.js → base-button.qWj0m9-v.js} +2 -2
- package/dist/chunks/{base-button.-qw8sZSY.js.map → base-button.qWj0m9-v.js.map} +1 -1
- package/dist/chunks/{base-modal.B17Ib1QQ.js → base-modal.8sjjRWsL.js} +35 -35
- package/dist/chunks/base-modal.8sjjRWsL.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.K8p3AG8r.js → button-actions-with-menu.DKjOf4Ox.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.K8p3AG8r.js.map → button-actions-with-menu.DKjOf4Ox.js.map} +1 -1
- package/dist/chunks/{button-actions.IJs0hN8c.js → button-actions.BQHr68sA.js} +3 -3
- package/dist/chunks/{button-actions.IJs0hN8c.js.map → button-actions.BQHr68sA.js.map} +1 -1
- package/dist/chunks/{button.qOf7CXY2.js → button.79klAcOK.js} +13 -13
- package/dist/chunks/button.79klAcOK.js.map +1 -0
- package/dist/chunks/{calendar.etLGotqH.js → calendar.CaTMWZUM.js} +124 -124
- package/dist/chunks/calendar.CaTMWZUM.js.map +1 -0
- package/dist/chunks/{card.-BYuiE_X.js → card.ignL7-CH.js} +4 -4
- package/dist/chunks/card.ignL7-CH.js.map +1 -0
- package/dist/chunks/{checkbox-group.Bj9gURHB.js → checkbox-group.2mm5bv7a.js} +5 -5
- package/dist/chunks/{checkbox-group.Bj9gURHB.js.map → checkbox-group.2mm5bv7a.js.map} +1 -1
- package/dist/chunks/{checkbox-input.DwDwI2BD.js → checkbox-input.BH7MGdMj.js} +9 -6
- package/dist/chunks/checkbox-input.BH7MGdMj.js.map +1 -0
- package/dist/chunks/{checkbox.CKQZXIR3.js → checkbox.BKzfGbb1.js} +5 -5
- package/dist/chunks/{checkbox.CKQZXIR3.js.map → checkbox.BKzfGbb1.js.map} +1 -1
- package/dist/chunks/{code-snippet.Dr7HvCcg.js → code-snippet.Bh-9Sz0W.js} +7 -7
- package/dist/chunks/{code-snippet.Dr7HvCcg.js.map → code-snippet.Bh-9Sz0W.js.map} +1 -1
- package/dist/chunks/{controls-group.WoEXCpkM.js → controls-group.kIQ5t39B.js} +4 -4
- package/dist/chunks/{controls-group.WoEXCpkM.js.map → controls-group.kIQ5t39B.js.map} +1 -1
- package/dist/chunks/{copy.CIuoE2VU.js → copy.B1DYKX_q.js} +4 -4
- package/dist/chunks/{copy.CIuoE2VU.js.map → copy.B1DYKX_q.js.map} +1 -1
- package/dist/chunks/{country.DeYdzMXh.js → country.DWQ85WGG.js} +2 -2
- package/dist/chunks/{country.DeYdzMXh.js.map → country.DWQ85WGG.js.map} +1 -1
- package/dist/chunks/{currency.Cfq_Yw2V.js → currency.D_2CN1OJ.js} +2 -2
- package/dist/chunks/{currency.Cfq_Yw2V.js.map → currency.D_2CN1OJ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CKy3tW-3.js → dashboard-section.CS63czQW.js} +5 -5
- package/dist/chunks/dashboard-section.CS63czQW.js.map +1 -0
- package/dist/chunks/{dashed-underline.OyLCDT1U.js → dashed-underline.XuUFwxOe.js} +11 -11
- package/dist/chunks/dashed-underline.XuUFwxOe.js.map +1 -0
- package/dist/chunks/{data-grid-template.CxaInpI8.js → data-grid-template.DEDwDJCy.js} +9 -9
- package/dist/chunks/data-grid-template.DEDwDJCy.js.map +1 -0
- package/dist/chunks/{data-grid.Dsv60eRz.js → data-grid.caE5wVpr.js} +717 -716
- package/dist/chunks/data-grid.caE5wVpr.js.map +1 -0
- package/dist/chunks/{date-picker.CZ34YMMu.js → date-picker.D9hFJD_h.js} +7 -7
- package/dist/chunks/{date-picker.CZ34YMMu.js.map → date-picker.D9hFJD_h.js.map} +1 -1
- package/dist/chunks/{date-range-picker.C__cQBs3.js → date-range-picker.BlTFEbr-.js} +339 -320
- package/dist/chunks/date-range-picker.BlTFEbr-.js.map +1 -0
- package/dist/chunks/{date.DQaxR7TF.js → date.DaiTzNEZ.js} +2 -2
- package/dist/chunks/{date.DQaxR7TF.js.map → date.DaiTzNEZ.js.map} +1 -1
- package/dist/chunks/{dialog-page.Cc-XASGB.js → dialog-page.bmDDYmn9.js} +3 -3
- package/dist/chunks/dialog-page.bmDDYmn9.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BM9qsdzQ.js → dropdown-default-textbox.kQ3pHsZe.js} +5 -4
- package/dist/chunks/dropdown-default-textbox.kQ3pHsZe.js.map +1 -0
- package/dist/chunks/{dropdown-tag.DEqYdqVG.js → dropdown-tag.BBEI_7RS.js} +19 -19
- package/dist/chunks/dropdown-tag.BBEI_7RS.js.map +1 -0
- package/dist/chunks/{dropdown.Bn6SRkU5.js → dropdown.D6tsk4ko.js} +11 -10
- package/dist/chunks/dropdown.D6tsk4ko.js.map +1 -0
- package/dist/chunks/{empty-state.CWy3y5Ly.js → empty-state.C2ba_wDp.js} +3 -3
- package/dist/chunks/{empty-state.CWy3y5Ly.js.map → empty-state.C2ba_wDp.js.map} +1 -1
- package/dist/chunks/{error-message.epR1WJH2.js → error-message.BEtdKrpc.js} +3 -3
- package/dist/chunks/{error-message.epR1WJH2.js.map → error-message.BEtdKrpc.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/{filter-bar.Dcsv7a4q.js → filter-bar.Tl9rgAKU.js} +793 -823
- package/dist/chunks/filter-bar.Tl9rgAKU.js.map +1 -0
- package/dist/chunks/{fixed-scroller.wvGW5A2g.js → fixed-scroller.CQWDnydO.js} +2 -2
- package/dist/chunks/fixed-scroller.CQWDnydO.js.map +1 -0
- package/dist/chunks/{footer-actions.B6Q5ybfw.js → footer-actions.CwHY2-Ap.js} +4 -4
- package/dist/chunks/{footer-actions.B6Q5ybfw.js.map → footer-actions.CwHY2-Ap.js.map} +1 -1
- package/dist/chunks/{form-layout-title.ChRqPBDL.js → form-layout-title.CRsR3o2x.js} +3 -3
- package/dist/chunks/{form-layout-title.ChRqPBDL.js.map → form-layout-title.CRsR3o2x.js.map} +1 -1
- package/dist/chunks/{header.jOE8ctvn.js → header.CkUxb-Pw.js} +5 -5
- package/dist/chunks/{header.jOE8ctvn.js.map → header.CkUxb-Pw.js.map} +1 -1
- package/dist/chunks/{info-icon.DQI7sjBY.js → info-icon.DNn4oZsB.js} +3 -3
- package/dist/chunks/{info-icon.DQI7sjBY.js.map → info-icon.DNn4oZsB.js.map} +1 -1
- package/dist/chunks/{input-field.mEo-bCtk.js → input-field.7PrsNCUx.js} +5 -5
- package/dist/chunks/{input-field.mEo-bCtk.js.map → input-field.7PrsNCUx.js.map} +1 -1
- package/dist/chunks/{inspector.types.l7r-FN49.js → inspector.types.D6kCCKNk.js} +4 -4
- package/dist/chunks/inspector.types.D6kCCKNk.js.map +1 -0
- package/dist/chunks/{link.CjFBXE3D.js → link.Xce4kDGy.js} +3 -3
- package/dist/chunks/{link.CjFBXE3D.js.map → link.Xce4kDGy.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BXz3dHfF.js → listbox-option-tag.RVvWMKvz.js} +3 -3
- package/dist/chunks/{listbox-option-tag.BXz3dHfF.js.map → listbox-option-tag.RVvWMKvz.js.map} +1 -1
- package/dist/chunks/{loading-button.Ba8So0d6.js → loading-button.DDPZYO6r.js} +3 -3
- package/dist/chunks/{loading-button.Ba8So0d6.js.map → loading-button.DDPZYO6r.js.map} +1 -1
- package/dist/chunks/{menu.e-PrV4Wl.js → menu.CoT0jBpw.js} +5 -5
- package/dist/chunks/{menu.e-PrV4Wl.js.map → menu.CoT0jBpw.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.PFFfWzPD.js → modal-fullscreen.BQKE0bm0.js} +6 -6
- package/dist/chunks/{modal-fullscreen.PFFfWzPD.js.map → modal-fullscreen.BQKE0bm0.js.map} +1 -1
- package/dist/chunks/{modal.DPrBUWDe.js → modal.BnlC8y2b.js} +6 -6
- package/dist/chunks/modal.BnlC8y2b.js.map +1 -0
- package/dist/chunks/on-click-outside.MUWbmGDn.js.map +1 -1
- package/dist/chunks/{pagination.CT08YpqC.js → pagination.Cqm8aS25.js} +4 -4
- package/dist/chunks/{pagination.CT08YpqC.js.map → pagination.Cqm8aS25.js.map} +1 -1
- package/dist/chunks/{payment-method.BnLkBqVQ.js → payment-method.CyQwoqEe.js} +2 -2
- package/dist/chunks/{payment-method.BnLkBqVQ.js.map → payment-method.CyQwoqEe.js.map} +1 -1
- package/dist/chunks/{popover.Du6UI6Yh.js → popover.BAZk1sm7.js} +6 -6
- package/dist/chunks/{popover.Du6UI6Yh.js.map → popover.BAZk1sm7.js.map} +1 -1
- package/dist/chunks/{popper-container.By1AW5Od.js → popper-container.CnWphJTN.js} +2 -2
- package/dist/chunks/{popper-container.By1AW5Od.js.map → popper-container.CnWphJTN.js.map} +1 -1
- package/dist/chunks/{radio-group.D650KrHa.js → radio-group.Dt5aLsJR.js} +8 -8
- package/dist/chunks/radio-group.Dt5aLsJR.js.map +1 -0
- package/dist/chunks/{radio-input.UWFngqop.js → radio-input.q980f8Uf.js} +2 -2
- package/dist/chunks/{radio-input.UWFngqop.js.map → radio-input.q980f8Uf.js.map} +1 -1
- package/dist/chunks/{search-bar.hxEJk-w0.js → search-bar.56yYCp8_.js} +16 -16
- package/dist/chunks/search-bar.56yYCp8_.js.map +1 -0
- package/dist/chunks/{secondary-nav.Bsi7Dj0s.js → secondary-nav.CCCscrYe.js} +6 -6
- package/dist/chunks/secondary-nav.CCCscrYe.js.map +1 -0
- package/dist/chunks/{segmented-control.BeXMVbce.js → segmented-control.BZm0u0wJ.js} +13 -13
- package/dist/chunks/segmented-control.BZm0u0wJ.js.map +1 -0
- package/dist/chunks/selection-card-group.BX5SJQJl.js +255 -0
- package/dist/chunks/selection-card-group.BX5SJQJl.js.map +1 -0
- package/dist/chunks/{sidepanel.DRP_jFVq.js → sidepanel.BRe8Xgnq.js} +7 -6
- package/dist/chunks/sidepanel.BRe8Xgnq.js.map +1 -0
- package/dist/chunks/{status.types.CcGZuqg5.js → status.types.dPBUkNia.js} +10 -10
- package/dist/chunks/status.types.dPBUkNia.js.map +1 -0
- package/dist/chunks/{step.RkChji1p.js → step.CjJtlBk6.js} +5 -5
- package/dist/chunks/step.CjJtlBk6.js.map +1 -0
- package/dist/chunks/{structured-list-item.BfEARGrz.js → structured-list-item.DpLscUX4.js} +14 -14
- package/dist/chunks/structured-list-item.DpLscUX4.js.map +1 -0
- package/dist/chunks/{summary-grid-item-custom.Cjv109f8.js → summary-grid-item-custom.B7Re6OCf.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.Cjv109f8.js.map → summary-grid-item-custom.B7Re6OCf.js.map} +1 -1
- package/dist/chunks/{tabs.BLCcrVbI.js → tabs.D4ORafqH.js} +3 -3
- package/dist/chunks/{tabs.BLCcrVbI.js.map → tabs.D4ORafqH.js.map} +1 -1
- package/dist/chunks/{tag.4Vqj8tm4.js → tag.Bo_6RnVE.js} +3 -3
- package/dist/chunks/{tag.4Vqj8tm4.js.map → tag.Bo_6RnVE.js.map} +1 -1
- package/dist/chunks/{textarea.DM2Cwx14.js → textarea.C6mA9dbj.js} +14 -13
- package/dist/chunks/textarea.C6mA9dbj.js.map +1 -0
- package/dist/chunks/{timeline-item.B2c3eI3L.js → timeline-item.D_ha1hxw.js} +9 -9
- package/dist/chunks/{timeline-item.B2c3eI3L.js.map → timeline-item.D_ha1hxw.js.map} +1 -1
- package/dist/chunks/{toast.rrKNWeM6.js → toast.KVxSBsXC.js} +5 -5
- package/dist/chunks/toast.KVxSBsXC.js.map +1 -0
- package/dist/chunks/{toggle-button.CBuKACw5.js → toggle-button.bt3zBzdC.js} +3 -3
- package/dist/chunks/toggle-button.bt3zBzdC.js.map +1 -0
- package/dist/chunks/{toggle.DtrStAja.js → toggle.CLgGH4Jr.js} +2 -2
- package/dist/chunks/{toggle.DtrStAja.js.map → toggle.CLgGH4Jr.js.map} +1 -1
- package/dist/chunks/{tooltip.4f_qwm8o.js → tooltip.BN6fOXzi.js} +3 -3
- package/dist/chunks/{tooltip.4f_qwm8o.js.map → tooltip.BN6fOXzi.js.map} +1 -1
- package/dist/chunks/{tutorial.DUjlu3SH.js → tutorial.DzhfqdFU.js} +7 -7
- package/dist/chunks/tutorial.DzhfqdFU.js.map +1 -0
- package/dist/chunks/{typography.CdCYtxYj.js → typography.CqQaHXhq.js} +2 -2
- package/dist/chunks/typography.CqQaHXhq.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.C66wCsav.js → use-bento-toast-controller.DLKySNHd.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.C66wCsav.js.map → use-bento-toast-controller.DLKySNHd.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DWQ8SMSi.js → use-cached-selected-values.1vo5LvgW.js} +83 -82
- package/dist/chunks/use-cached-selected-values.1vo5LvgW.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +68 -66
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.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/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +80 -165
- package/package.json +3 -2
- package/dist/chunks/action-bar.Ds_ofJs6.js.map +0 -1
- package/dist/chunks/avatar.DohItrb9.js.map +0 -1
- package/dist/chunks/base-modal.B17Ib1QQ.js.map +0 -1
- package/dist/chunks/button.qOf7CXY2.js.map +0 -1
- package/dist/chunks/calendar.etLGotqH.js.map +0 -1
- package/dist/chunks/card.-BYuiE_X.js.map +0 -1
- package/dist/chunks/checkbox-input.DwDwI2BD.js.map +0 -1
- package/dist/chunks/dashboard-section.CKy3tW-3.js.map +0 -1
- package/dist/chunks/dashed-underline.OyLCDT1U.js.map +0 -1
- package/dist/chunks/data-grid-template.CxaInpI8.js.map +0 -1
- package/dist/chunks/data-grid.Dsv60eRz.js.map +0 -1
- package/dist/chunks/date-range-picker.C__cQBs3.js.map +0 -1
- package/dist/chunks/dialog-page.Cc-XASGB.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.BM9qsdzQ.js.map +0 -1
- package/dist/chunks/dropdown-tag.DEqYdqVG.js.map +0 -1
- package/dist/chunks/dropdown.Bn6SRkU5.js.map +0 -1
- package/dist/chunks/filter-bar.Dcsv7a4q.js.map +0 -1
- package/dist/chunks/fixed-scroller.wvGW5A2g.js.map +0 -1
- package/dist/chunks/inspector.types.l7r-FN49.js.map +0 -1
- package/dist/chunks/modal.DPrBUWDe.js.map +0 -1
- package/dist/chunks/radio-group.D650KrHa.js.map +0 -1
- package/dist/chunks/search-bar.hxEJk-w0.js.map +0 -1
- package/dist/chunks/secondary-nav.Bsi7Dj0s.js.map +0 -1
- package/dist/chunks/segmented-control.BeXMVbce.js.map +0 -1
- package/dist/chunks/selection-card-group.D5DRYhrw.js +0 -247
- package/dist/chunks/selection-card-group.D5DRYhrw.js.map +0 -1
- package/dist/chunks/sidepanel.DRP_jFVq.js.map +0 -1
- package/dist/chunks/status.types.CcGZuqg5.js.map +0 -1
- package/dist/chunks/step.RkChji1p.js.map +0 -1
- package/dist/chunks/structured-list-item.BfEARGrz.js.map +0 -1
- package/dist/chunks/textarea.DM2Cwx14.js.map +0 -1
- package/dist/chunks/toast.rrKNWeM6.js.map +0 -1
- package/dist/chunks/toggle-button.CBuKACw5.js.map +0 -1
- package/dist/chunks/tutorial.DUjlu3SH.js.map +0 -1
- package/dist/chunks/typography.CdCYtxYj.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DWQ8SMSi.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as h, ref as d, computed as a, isRef as P, watch as g, nextTick as $ } from "vue";
|
|
2
|
-
import { B as I } from "./menu.
|
|
3
|
-
import { a as T, B as w } from "./popover.
|
|
4
|
-
import { B as k } from "./typography.
|
|
2
|
+
import { B as I } from "./menu.CoT0jBpw.js";
|
|
3
|
+
import { a as T, B as w } from "./popover.BAZk1sm7.js";
|
|
4
|
+
import { B as k } from "./typography.CqQaHXhq.js";
|
|
5
5
|
import { B as N } from "./image.B3uqhFjl.js";
|
|
6
6
|
import { u as A } from "./i18n.BQkEbtPM.js";
|
|
7
7
|
import { R as D } from "./refresh.BKI9WwKh.js";
|
|
8
8
|
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
-
import { P as b, h as j, o as L } from "./popper-container.
|
|
10
|
-
import { B as M } from "./button-actions.
|
|
9
|
+
import { P as b, h as j, o as L } from "./popper-container.CnWphJTN.js";
|
|
10
|
+
import { B as M } from "./button-actions.BQHr68sA.js";
|
|
11
11
|
import "../assets/tutorial.css";
|
|
12
12
|
var E;
|
|
13
13
|
const V = /* @__PURE__ */ h({
|
|
@@ -248,7 +248,7 @@ var tt = function() {
|
|
|
248
248
|
et,
|
|
249
249
|
!1,
|
|
250
250
|
null,
|
|
251
|
-
"
|
|
251
|
+
"060c1762"
|
|
252
252
|
);
|
|
253
253
|
const ot = st.exports, rt = {}, at = /* @__PURE__ */ h({
|
|
254
254
|
...rt,
|
|
@@ -332,4 +332,4 @@ const Ct = lt.exports;
|
|
|
332
332
|
export {
|
|
333
333
|
Ct as t
|
|
334
334
|
};
|
|
335
|
-
//# sourceMappingURL=tutorial.
|
|
335
|
+
//# sourceMappingURL=tutorial.DzhfqdFU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutorial.DzhfqdFU.js","sources":["../../src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/blocked.vue","../../src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../../src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-blocked__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-icons-16-blocked__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits([\"next\", \"finish\", \"restart\"]);\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<BentoMenuItem[]>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: 'Skip tour',\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, i) in steps\"\n v-bind=\"getPopoverProps(step, i)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, watch } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The current step index. If provided, will start the tutorial in that step.\n */\n index: {\n type: Number,\n default: null,\n },\n\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<BentoTutorialStep[]>,\n required: true,\n validator: (value: BentoTutorialStep[]) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const emit = defineEmits([\"update:index\"]);\n\n const currentStep = ref(props.index || 0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n\n watch(currentStep, step => {\n emit('update:index', step);\n });\n\n watch(\n () => props.index,\n value => {\n if (value >= -1 && value <= totalSteps.value) {\n currentStep.value = value;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_sfc_main$2","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","t","useI18n","ACTION_SKIP","computed","emit","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","props","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index","value"],"mappings":"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","x_google_ignoreList":[1]}
|
|
@@ -62,7 +62,7 @@ var _ = function() {
|
|
|
62
62
|
D,
|
|
63
63
|
!1,
|
|
64
64
|
null,
|
|
65
|
-
"
|
|
65
|
+
"975124c3"
|
|
66
66
|
);
|
|
67
67
|
const N = m.exports;
|
|
68
68
|
export {
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
u as d,
|
|
74
74
|
n as p
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=typography.
|
|
76
|
+
//# sourceMappingURL=typography.CqQaHXhq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.CqQaHXhq.js","sources":["../../../core/src/components/typography/typography.types.ts","../../src/utils/ts/dev-environment.ts","../../src/utils/ts/print-development-warning.ts","../../src/utils/ts/deprecate.ts","../../src/components/typography/typography.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n","const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\nconst shownMessages = new Set<string>();\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n // If the message is already showing, don't show it again\n if (!shownMessages.has(title)) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n shownMessages.add(title);\n }\n}\n\n/**\n * Reset shownMessages set\n *\n * @deprecated For testing purposes only. Do not use.\n */\nexport function resetShownMessages() {\n shownMessages.clear();\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed } from 'vue';\n import {\n BentoTypographyElement,\n BentoTypographyModifier,\n BentoTypographyVariant,\n } from '@/core/components/typography/typography.types';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const props = defineProps({\n el: { default: BentoTypographyElement.PARAGRAPH },\n large: { type: Boolean, default: false },\n medium: { type: Boolean, default: false },\n stronger: { type: Boolean, default: false },\n strongest: { type: Boolean, default: false },\n variant: { default: BentoTypographyVariant.BODY },\n wide: { type: Boolean, default: false }\n});\n\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default {\n name: 'bento-typography',\n inheritAttrs: true,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/typography/typography.scss\" />\n<style lang=\"scss\">\n // Reset preset browser margin on all elements but allow for it to be overriden\n .b-typography {\n margin: 0;\n }\n</style>\n"],"names":["BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","shownMessages","deprecate","title","deprecationMessage","toBeRemovedInVersion","__default__","props","conditionalClasses","computed"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as i, getCurrentInstance as c, readonly as u } from "vue";
|
|
2
2
|
import "./index.Cl4_42j5.js";
|
|
3
|
-
import { p as d } from "./typography.
|
|
3
|
+
import { p as d } from "./typography.CqQaHXhq.js";
|
|
4
4
|
import { g as m } from "./unique-id.XFfoKuc2.js";
|
|
5
5
|
const a = (t, s) => {
|
|
6
6
|
const e = t.value.findIndex((o) => o.id === s);
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
f as t,
|
|
50
50
|
v as u
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=use-bento-toast-controller.
|
|
52
|
+
//# sourceMappingURL=use-bento-toast-controller.DLKySNHd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bento-toast-controller.
|
|
1
|
+
{"version":3,"file":"use-bento-toast-controller.DLKySNHd.js","sources":["../../src/composables/use-bento-toast-controller/toast-stack.ts","../../src/composables/use-bento-toast-controller/use-bento-toast-controller.ts"],"sourcesContent":["import { computed, ref, type Ref } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport type { BentoToastItemsList, ToastStack } from './use-bento-toast-controller.types';\n\nconst dismissToast: (stack: Ref<BentoToastItemsList>, id: string) => void = (stack, id) => {\n const toastIndex = stack.value.findIndex(toast => toast.id === id);\n if (toastIndex !== -1) {\n stack.value.splice(toastIndex, 1);\n }\n};\n\nexport const toastStackInjectionKey = Symbol('toast-stack');\n\n/**\n * This utility creates a global reactive state to add new toasts and keep track of them.\n * @returns {ToastStack} An object that contains reactive stack property with all add toasts and a function to add new toasts\n */\nexport const createToastStack: () => ToastStack = () => {\n const stack = ref<BentoToastItemsList>([]);\n\n const addToast = params => {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => dismissToast(stack, id),\n };\n\n stack.value.unshift(toast);\n\n return {\n dismiss: () => dismissToast(stack, id),\n };\n };\n\n return {\n // Even though stack is a reactive property, its content suppose to be only changed from this module.\n // For this reason we return \"stack\" as readonly prop, but also return methods that can affect \"stack\" content.\n stack: computed(() => Object.freeze(Array.from(stack.value))),\n /**\n * A function that allows to add new toasts\n * @param {Object} params Toast parameters\n * @param {String} params.text A text to display inside the toast\n * @param {Object} [params.action] An object that defines action parameters for the toast\n * @param {String} params.action.text An action button text\n * @param {Function} params.action.handler A callback that would be called when action button is clicked\n * @return {Object} An object that includes \"dismiss\" function to programatically dismiss the toast\n */\n addToast,\n };\n};\n","import { getCurrentInstance, inject, readonly, ref } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { printDevelopmentWarning } from '../../utils/ts/print-development-warning';\nimport { toastStackInjectionKey } from './toast-stack';\nimport { UseBentoToastController } from './use-bento-toast-controller.types';\n\nexport function useBentoToastController(): UseBentoToastController {\n const toastStack = isVue2\n ? getCurrentInstance()?.proxy[toastStackInjectionKey]\n : inject(toastStackInjectionKey, null);\n if (!toastStack) {\n printDevelopmentWarning('Toast does not work without Vue.use(BentoPlugin, { withToast: true })');\n // Return placeholder functions so client code won't brake, but Toasts just won't show up\n return {\n stack: readonly(ref([])),\n addToast: () => ({\n // eslint-disable-next-line @typescript-eslint/no-empty-function -- intentional empty function explained by the comment above\n dismiss: () => {},\n }),\n };\n }\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...toastStack };\n}\n"],"names":["dismissToast","stack","id","toastIndex","toast","toastStackInjectionKey","createToastStack","ref","addToast","params","generateUid","computed","useBentoToastController","toastStack","_a","getCurrentInstance","printDevelopmentWarning","readonly"],"mappings":";;;;AAIA,MAAMA,IAAsE,CAACC,GAAOC,MAAO;AACvF,QAAMC,IAAaF,EAAM,MAAM,UAAU,CAASG,MAAAA,EAAM,OAAOF,CAAE;AACjE,EAAIC,MAAe,MACTF,EAAA,MAAM,OAAOE,GAAY,CAAC;AAExC,GAEaE,IAAyB,OAAO,aAAa,GAM7CC,IAAqC,MAAM;AAC9C,QAAAL,IAAQM,EAAyB,EAAE,GAEnCC,IAAW,CAAUC,MAAA;AACjB,UAAAP,IAAKQ,EAAY,OAAO,GACxBN,IAAQ;AAAA,MACV,GAAGK;AAAA,MACH,IAAAP;AAAA,MACA,SAAS,MAAMF,EAAaC,GAAOC,CAAE;AAAA,IACzC;AAEM,WAAAD,EAAA,MAAM,QAAQG,CAAK,GAElB;AAAA,MACH,SAAS,MAAMJ,EAAaC,GAAOC,CAAE;AAAA,IACzC;AAAA,EACJ;AAEO,SAAA;AAAA;AAAA;AAAA,IAGH,OAAOS,EAAS,MAAM,OAAO,OAAO,MAAM,KAAKV,EAAM,KAAK,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAU5D,UAAAO;AAAA,EACJ;AACJ;AC5CO,SAASI,IAAmD;;AACzD,QAAAC,KACAC,IAAAC,EAAmB,MAAnB,gBAAAD,EAAsB,MAAMT;AAElC,SAAKQ,IAYE,EAAE,GAAGA,EAAW,KAXnBG,EAAwB,uEAAuE,GAExF;AAAA,IACH,OAAOC,EAASV,EAAI,CAAA,CAAE,CAAC;AAAA,IACvB,UAAU,OAAO;AAAA;AAAA,MAEb,SAAS,MAAM;AAAA,MAAA;AAAA,IACnB;AAAA,EACJ;AAIR;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { computed as c, ref as O, onMounted as te, onUnmounted as _e, watch as se, defineComponent as $, toRef as G } from "vue";
|
|
2
|
-
import { B as w } from "./typography.
|
|
2
|
+
import { B as w } from "./typography.CqQaHXhq.js";
|
|
3
3
|
import { B as ge } from "./loading-indicator.DXc7I1Lm.js";
|
|
4
|
-
import { B as ye } from "./empty-state.
|
|
4
|
+
import { B as ye } from "./empty-state.C2ba_wDp.js";
|
|
5
5
|
import { u as Y } from "./i18n.BQkEbtPM.js";
|
|
6
6
|
import { d as pe } from "./debounce.DUTu11PS.js";
|
|
7
7
|
import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
8
8
|
import { B as k, a as X } from "./keyboard-navigation.Clz1jOaA.js";
|
|
9
|
-
import { B as Z } from "./checkbox.
|
|
9
|
+
import { B as Z } from "./checkbox.BKzfGbb1.js";
|
|
10
10
|
import "./index.Cl4_42j5.js";
|
|
11
11
|
import { C as Ce, a as Se } from "./chevron-up.B2uWhZf7.js";
|
|
12
|
-
import { B as he } from "./base-button
|
|
12
|
+
import { B as he } from "./base-button.qWj0m9-v.js";
|
|
13
13
|
import { C as xe } from "./cross-small.BLUwtRB-.js";
|
|
14
|
-
import { B as Ee, a as J } from "./loading-button.
|
|
14
|
+
import { B as Ee, a as J } from "./loading-button.DDPZYO6r.js";
|
|
15
15
|
import { o as Le } from "./resize.Bqks3WUm.js";
|
|
16
16
|
import "../assets/use-cached-selected-values.css";
|
|
17
17
|
const le = (t, e, s, l) => {
|
|
@@ -33,7 +33,7 @@ const le = (t, e, s, l) => {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n }) {
|
|
36
|
-
const a = O(null),
|
|
36
|
+
const a = O(null), o = O([]), r = O(0), b = O(0), m = O(0);
|
|
37
37
|
let E;
|
|
38
38
|
const p = c(() => {
|
|
39
39
|
const _ = typeof s == "number" ? t.value.length * s : t.value.reduce((L, f, h) => L + s(h), 0), C = typeof s == "number" ? r.value * s : t.value.slice(0, r.value).reduce((L, f, h) => L + s(h), 0);
|
|
@@ -70,7 +70,7 @@ function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n })
|
|
|
70
70
|
}, T = () => {
|
|
71
71
|
if (a.value) {
|
|
72
72
|
const _ = R();
|
|
73
|
-
r.value = S(), b.value = Math.min(r.value + _ + l, t.value.length),
|
|
73
|
+
r.value = S(), b.value = Math.min(r.value + _ + l, t.value.length), o.value = t.value.slice(r.value, b.value);
|
|
74
74
|
}
|
|
75
75
|
}, B = () => {
|
|
76
76
|
T();
|
|
@@ -102,11 +102,11 @@ function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n })
|
|
|
102
102
|
containerRef: a,
|
|
103
103
|
containerProps: u,
|
|
104
104
|
onScroll: B,
|
|
105
|
-
list:
|
|
105
|
+
list: o,
|
|
106
106
|
wrapperProps: p
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var i = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(i || {}), M = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(M || {});
|
|
110
110
|
const Te = $({
|
|
111
111
|
name: "bento-listbox-static-category",
|
|
112
112
|
components: {
|
|
@@ -145,7 +145,7 @@ const Re = Be.exports, ke = $({
|
|
|
145
145
|
*/
|
|
146
146
|
selected: { type: Boolean, default: !1 }
|
|
147
147
|
},
|
|
148
|
-
emits: [
|
|
148
|
+
emits: [i.CLICK, i.ENTER, i.SPACE, i.TAB],
|
|
149
149
|
setup(t, { emit: e }) {
|
|
150
150
|
const s = c(() => ({
|
|
151
151
|
"b-listbox-option--disabled": t.disabled,
|
|
@@ -154,15 +154,15 @@ const Re = Be.exports, ke = $({
|
|
|
154
154
|
return {
|
|
155
155
|
// Enums
|
|
156
156
|
BentoKeyboardNavigationKeyDownEvent: k,
|
|
157
|
-
BentoListboxEvent:
|
|
157
|
+
BentoListboxEvent: i,
|
|
158
158
|
// Values
|
|
159
159
|
conditionalClasses: s,
|
|
160
160
|
// Events
|
|
161
161
|
onClick: (a) => {
|
|
162
|
-
e(
|
|
162
|
+
e(i.CLICK, a);
|
|
163
163
|
},
|
|
164
|
-
onOptionSelected: (a,
|
|
165
|
-
e(a,
|
|
164
|
+
onOptionSelected: (a, o) => {
|
|
165
|
+
e(a, o);
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
}
|
|
@@ -227,10 +227,10 @@ const Ge = Fe.exports, Ue = $({
|
|
|
227
227
|
*/
|
|
228
228
|
selected: { type: Boolean, default: !1 }
|
|
229
229
|
},
|
|
230
|
-
emits: [
|
|
230
|
+
emits: [i.ENTER, i.SELECT, i.SPACE, i.TAB],
|
|
231
231
|
setup(t, { emit: e }) {
|
|
232
|
-
const s = (
|
|
233
|
-
t.disabled || e(
|
|
232
|
+
const s = (o) => {
|
|
233
|
+
t.disabled || e(o, t.option);
|
|
234
234
|
}, l = c(() => t.disabled ? !0 : null), n = c(() => t.selected ? !0 : null), a = c(() => t.disabled ? -1 : 0);
|
|
235
235
|
return {
|
|
236
236
|
// Values
|
|
@@ -238,7 +238,7 @@ const Ge = Fe.exports, Ue = $({
|
|
|
238
238
|
ariaSelected: n,
|
|
239
239
|
tabIndex: a,
|
|
240
240
|
// Enums
|
|
241
|
-
BentoListboxEvent:
|
|
241
|
+
BentoListboxEvent: i,
|
|
242
242
|
// Events
|
|
243
243
|
onOptionSelected: s
|
|
244
244
|
};
|
|
@@ -268,25 +268,25 @@ var ze = function() {
|
|
|
268
268
|
const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategories: s }, l) => {
|
|
269
269
|
const n = c(
|
|
270
270
|
() => s.value ? t.value.flatMap((u) => u.items) : t.value
|
|
271
|
-
), a = c(() => n.value.length - 1),
|
|
271
|
+
), a = c(() => n.value.length - 1), o = O(0);
|
|
272
272
|
te(() => {
|
|
273
|
-
e && (
|
|
273
|
+
e && (o.value = t.value.findIndex((u) => !e(u)));
|
|
274
274
|
});
|
|
275
275
|
const r = (u) => !e || !!e && e(t.value[u]), b = (u) => !e || !!e && !e(t.value[u]), m = (u) => {
|
|
276
276
|
switch (u) {
|
|
277
277
|
case "increase":
|
|
278
|
-
|
|
278
|
+
o.value += 1;
|
|
279
279
|
break;
|
|
280
280
|
case "decrease":
|
|
281
|
-
|
|
281
|
+
o.value -= 1;
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}, E = ({ edgeCaseItem: u, isItemBeforeEdgeCaseItem: _ }, C, L) => {
|
|
285
|
-
|
|
285
|
+
o.value !== u && (_ ? b(u) && m(L) : (m(L), r(o.value) && C()), l(o.value));
|
|
286
286
|
}, p = (u) => {
|
|
287
287
|
var C;
|
|
288
288
|
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
289
|
-
const _ =
|
|
289
|
+
const _ = o.value === a.value - 2;
|
|
290
290
|
E(
|
|
291
291
|
{
|
|
292
292
|
isItemBeforeEdgeCaseItem: _,
|
|
@@ -299,7 +299,7 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
|
|
|
299
299
|
}, S = (u) => {
|
|
300
300
|
var C;
|
|
301
301
|
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
302
|
-
const _ =
|
|
302
|
+
const _ = o.value === 1;
|
|
303
303
|
E(
|
|
304
304
|
{
|
|
305
305
|
edgeCaseItem: 0,
|
|
@@ -312,15 +312,15 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
|
|
|
312
312
|
};
|
|
313
313
|
return {
|
|
314
314
|
moveToFirstElement: () => {
|
|
315
|
-
|
|
315
|
+
o.value = 0, r(o.value) ? p() : l(o.value);
|
|
316
316
|
},
|
|
317
317
|
moveToLastElement: () => {
|
|
318
|
-
|
|
318
|
+
o.value = a.value, r(o.value) ? S() : l(o.value);
|
|
319
319
|
},
|
|
320
320
|
moveToNextElement: p,
|
|
321
321
|
moveToPreviousElement: S,
|
|
322
322
|
setListboxFocusedIndex: (u) => {
|
|
323
|
-
|
|
323
|
+
o.value = u;
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
}, We = $({
|
|
@@ -370,12 +370,12 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
|
|
|
370
370
|
*/
|
|
371
371
|
staticCategories: { type: Boolean, default: !1 }
|
|
372
372
|
},
|
|
373
|
-
emits: [
|
|
373
|
+
emits: [i.SELECT, i.ENTER, i.SPACE, i.TAB],
|
|
374
374
|
setup(t, { emit: e, expose: s, slots: l }) {
|
|
375
375
|
const n = O([]), a = c(() => {
|
|
376
376
|
var u;
|
|
377
377
|
return !!((u = t.selectedValue) != null && u.length) && t.selectedValue.at(0);
|
|
378
|
-
}),
|
|
378
|
+
}), o = c(() => !!t.items.some(({ items: u }) => !!u)), r = (u) => (_) => {
|
|
379
379
|
e(u, [_]);
|
|
380
380
|
}, b = (u) => n.value[u].$el.focus(), {
|
|
381
381
|
moveToNextElement: m,
|
|
@@ -396,10 +396,10 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
|
|
|
396
396
|
[k.HOME]: p,
|
|
397
397
|
[k.END]: S
|
|
398
398
|
}, B = {
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
[
|
|
399
|
+
[i.SELECT]: r(i.SELECT),
|
|
400
|
+
[i.SPACE]: r(i.SPACE),
|
|
401
|
+
[i.TAB]: r(i.TAB),
|
|
402
|
+
[i.ENTER]: r(i.ENTER)
|
|
403
403
|
};
|
|
404
404
|
return s({
|
|
405
405
|
/**
|
|
@@ -414,13 +414,13 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
|
|
|
414
414
|
setListboxFocusedIndex: R
|
|
415
415
|
}), {
|
|
416
416
|
// Enums
|
|
417
|
-
BentoListboxEvent:
|
|
417
|
+
BentoListboxEvent: i,
|
|
418
418
|
// Values
|
|
419
419
|
listboxItemRef: n,
|
|
420
420
|
selectedItem: a,
|
|
421
421
|
slots: l,
|
|
422
422
|
// Computed
|
|
423
|
-
hasCategories:
|
|
423
|
+
hasCategories: o,
|
|
424
424
|
// Methods
|
|
425
425
|
onOptionSelected: r,
|
|
426
426
|
// Keyboard navigation
|
|
@@ -433,16 +433,16 @@ var Ke = function() {
|
|
|
433
433
|
var e = this, s = e._self._c;
|
|
434
434
|
return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
|
|
435
435
|
return s("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(n) {
|
|
436
|
-
return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a,
|
|
437
|
-
return { key:
|
|
438
|
-
return [e._t(
|
|
436
|
+
return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
|
|
437
|
+
return { key: o, fn: function(r) {
|
|
438
|
+
return [e._t(o, null, null, r)];
|
|
439
439
|
} };
|
|
440
440
|
})], null, !0) }, e.listboxOptionListeners));
|
|
441
441
|
}), 1);
|
|
442
442
|
}) : e._l(e.items, function(l) {
|
|
443
443
|
return s("bento-listbox-single-select-option", e._g({ key: l.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: l, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, selected: l.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
444
|
-
return { key: a, fn: function(
|
|
445
|
-
return [e._t(a, null, null,
|
|
444
|
+
return { key: a, fn: function(o) {
|
|
445
|
+
return [e._t(a, null, null, o)];
|
|
446
446
|
} };
|
|
447
447
|
})], null, !0) }, e.listboxOptionListeners));
|
|
448
448
|
})], 2);
|
|
@@ -514,7 +514,7 @@ const Ze = {
|
|
|
514
514
|
setup(t, { emit: e }) {
|
|
515
515
|
const s = O(!1), { t: l } = Y(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, a = c(
|
|
516
516
|
() => t.category.items.every((f) => n(f))
|
|
517
|
-
),
|
|
517
|
+
), o = G(t, "staticCategories"), r = c(() => s.value || t.staticCategories), b = c(() => ({
|
|
518
518
|
[`b-listbox-multi-select-category--${j.DISABLED}`]: a.value,
|
|
519
519
|
[`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: t.staticCategories
|
|
520
520
|
})), m = (f) => {
|
|
@@ -564,7 +564,7 @@ const Ze = {
|
|
|
564
564
|
isOpen: s,
|
|
565
565
|
isAllSelected: _,
|
|
566
566
|
isIndeterminate: C,
|
|
567
|
-
isStaticCategory:
|
|
567
|
+
isStaticCategory: o,
|
|
568
568
|
// Computed
|
|
569
569
|
showItemChildren: r,
|
|
570
570
|
categoryLabelProps: T,
|
|
@@ -663,7 +663,7 @@ const lt = $({
|
|
|
663
663
|
}, l = (b) => !!b.items, n = (b) => {
|
|
664
664
|
const m = t.isMultiLevel && t.searching;
|
|
665
665
|
return b.description && (!t.isMultiLevel || m);
|
|
666
|
-
}, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value),
|
|
666
|
+
}, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value), o = (b, m) => {
|
|
667
667
|
if (l(m))
|
|
668
668
|
return e(b ? P.SELECT_CATEGORY : P.UNSELECT_CATEGORY, m);
|
|
669
669
|
s(m.value);
|
|
@@ -678,9 +678,9 @@ const lt = $({
|
|
|
678
678
|
isOptionSelected: a,
|
|
679
679
|
shouldShowDescription: n,
|
|
680
680
|
toggleCheckboxSelection: s,
|
|
681
|
-
selectSearch:
|
|
681
|
+
selectSearch: o,
|
|
682
682
|
// Enums
|
|
683
|
-
BentoListboxEvent:
|
|
683
|
+
BentoListboxEvent: i,
|
|
684
684
|
ListboxMultiSelectOptionsEvent: P
|
|
685
685
|
};
|
|
686
686
|
}
|
|
@@ -758,7 +758,7 @@ var dt = function() {
|
|
|
758
758
|
bt,
|
|
759
759
|
!1,
|
|
760
760
|
null,
|
|
761
|
-
"
|
|
761
|
+
"55fb08d8"
|
|
762
762
|
);
|
|
763
763
|
const vt = mt.exports, ft = {
|
|
764
764
|
"en-US": {
|
|
@@ -849,9 +849,9 @@ const vt = mt.exports, ft = {
|
|
|
849
849
|
*/
|
|
850
850
|
staticCategories: { type: Boolean, default: !1 }
|
|
851
851
|
},
|
|
852
|
-
emits: [
|
|
852
|
+
emits: [i.SELECT],
|
|
853
853
|
setup(t, { emit: e, slots: s }) {
|
|
854
|
-
const { t: l } = Y(), n = O(null), a = O(null),
|
|
854
|
+
const { t: l } = Y(), n = O(null), a = O(null), o = O(null), r = c(
|
|
855
855
|
() => t.selectedValues.map(({ value: d }) => d)
|
|
856
856
|
), { isMultiLevelSelect: b, flattenedItemsList: m } = _t(G(t, "items")), E = (d) => {
|
|
857
857
|
var x;
|
|
@@ -886,13 +886,13 @@ const vt = mt.exports, ft = {
|
|
|
886
886
|
const { isDisabled: y, isPreSelected: N } = E(x);
|
|
887
887
|
return y && N || !y;
|
|
888
888
|
}, g = d.filter(v).filter((x) => !r.value.includes(x.value));
|
|
889
|
-
e(
|
|
889
|
+
e(i.SELECT, [...t.selectedValues, ...g]);
|
|
890
890
|
}, u = (d) => {
|
|
891
891
|
const v = (y) => {
|
|
892
892
|
const { isDisabled: N, isPreSelected: fe } = E(y);
|
|
893
893
|
return !(N && fe);
|
|
894
894
|
}, g = d.filter(v).map(({ value: y }) => y), x = t.selectedValues.filter((y) => !(g != null && g.includes(y.value)));
|
|
895
|
-
e(
|
|
895
|
+
e(i.SELECT, x);
|
|
896
896
|
}, _ = () => {
|
|
897
897
|
B(m.value);
|
|
898
898
|
}, C = () => {
|
|
@@ -931,7 +931,7 @@ const vt = mt.exports, ft = {
|
|
|
931
931
|
), oe = c(
|
|
932
932
|
() => {
|
|
933
933
|
var d, v;
|
|
934
|
-
return (v = (d =
|
|
934
|
+
return (v = (d = o.value) == null ? void 0 : d.$children) != null && v.length ? o.value.$children : [];
|
|
935
935
|
}
|
|
936
936
|
), ie = c(() => ({ label: T, value: L })), ce = c(() => [
|
|
937
937
|
ie,
|
|
@@ -960,7 +960,7 @@ const vt = mt.exports, ft = {
|
|
|
960
960
|
// Refs
|
|
961
961
|
selectAllListboxItemsRef: n,
|
|
962
962
|
selectedListboxItemsRef: a,
|
|
963
|
-
listboxItemsRef:
|
|
963
|
+
listboxItemsRef: o,
|
|
964
964
|
// Values
|
|
965
965
|
isAllSelected: L,
|
|
966
966
|
showSelectedItems: K,
|
|
@@ -973,7 +973,7 @@ const vt = mt.exports, ft = {
|
|
|
973
973
|
showSelectAllCheckbox: I,
|
|
974
974
|
slots: s,
|
|
975
975
|
// Enums
|
|
976
|
-
BentoListboxEvent:
|
|
976
|
+
BentoListboxEvent: i,
|
|
977
977
|
// Methods
|
|
978
978
|
selectAllCategory: A,
|
|
979
979
|
toggleCheckboxSelection: W,
|
|
@@ -1122,15 +1122,15 @@ const ee = Ct.exports, St = {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
},
|
|
1124
1124
|
emits: [
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1125
|
+
i.SELECT,
|
|
1126
|
+
i.SPACE,
|
|
1127
|
+
i.SHOW_MORE,
|
|
1128
|
+
i.ENTER,
|
|
1129
|
+
i.ESCAPE,
|
|
1130
|
+
i.TAB
|
|
1131
1131
|
],
|
|
1132
1132
|
setup(t, { emit: e, slots: s }) {
|
|
1133
|
-
const l = O([]), n = G(t, "items"), { t: a } = Y(),
|
|
1133
|
+
const l = O([]), n = G(t, "items"), { t: a } = Y(), o = c(() => t.lazyLoadType !== M.AUTOMATIC), r = c(() => t.lazyLoadType === M.AUTOMATIC), b = () => {
|
|
1134
1134
|
var I;
|
|
1135
1135
|
return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((I = t == null ? void 0 : t.virtualScroll) != null && I.itemHeight) ? t.virtualScroll.itemHeight : ht;
|
|
1136
1136
|
}, {
|
|
@@ -1144,15 +1144,15 @@ const ee = Ct.exports, St = {
|
|
|
1144
1144
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1145
1145
|
disabled: (t == null ? void 0 : t.multiple) || (t == null ? void 0 : t.virtualScroll) === !1 || (t == null ? void 0 : t.lazyLoadType) !== "none"
|
|
1146
1146
|
}), T = c(
|
|
1147
|
-
() =>
|
|
1147
|
+
() => o.value ? "true" : void 0
|
|
1148
1148
|
), B = c(
|
|
1149
|
-
() =>
|
|
1149
|
+
() => o.value && t.loading ? "true" : "false"
|
|
1150
1150
|
), u = c(
|
|
1151
|
-
() =>
|
|
1151
|
+
() => o.value ? "polite" : void 0
|
|
1152
1152
|
), _ = (I) => (U) => {
|
|
1153
1153
|
e(I, U);
|
|
1154
1154
|
}, C = () => {
|
|
1155
|
-
e(
|
|
1155
|
+
e(i.SHOW_MORE);
|
|
1156
1156
|
}, L = pe(() => {
|
|
1157
1157
|
const I = m.value;
|
|
1158
1158
|
if (!I)
|
|
@@ -1172,10 +1172,10 @@ const ee = Ct.exports, St = {
|
|
|
1172
1172
|
...t.emptyState,
|
|
1173
1173
|
variant: "condensed"
|
|
1174
1174
|
})), K = {
|
|
1175
|
-
[
|
|
1176
|
-
[
|
|
1177
|
-
[
|
|
1178
|
-
[
|
|
1175
|
+
[i.SELECT]: _(i.SELECT),
|
|
1176
|
+
[i.SPACE]: _(i.SPACE),
|
|
1177
|
+
[i.TAB]: _(i.TAB),
|
|
1178
|
+
[i.ENTER]: _(i.ENTER)
|
|
1179
1179
|
};
|
|
1180
1180
|
return {
|
|
1181
1181
|
// Refs
|
|
@@ -1197,7 +1197,7 @@ const ee = Ct.exports, St = {
|
|
|
1197
1197
|
wrapperProps: R,
|
|
1198
1198
|
// Enums
|
|
1199
1199
|
BentoKeyboardNavigationKeyDownEvent: k,
|
|
1200
|
-
BentoListboxEvent:
|
|
1200
|
+
BentoListboxEvent: i,
|
|
1201
1201
|
// Methods
|
|
1202
1202
|
onListboxContainerScroll: f,
|
|
1203
1203
|
onOptionSelected: _,
|
|
@@ -1207,16 +1207,17 @@ const ee = Ct.exports, St = {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
var Et = function() {
|
|
1210
|
+
var l;
|
|
1210
1211
|
var e = this, s = e._self._c;
|
|
1211
|
-
return e._self._setupProxy, s("div",
|
|
1212
|
-
return { key:
|
|
1213
|
-
return [e._t(
|
|
1212
|
+
return e._self._setupProxy, s("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (l = e.containerProps) == null ? void 0 : l.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [s("div", e._b({}, "div", e.wrapperProps, !1), [e.isSearchResultEmpty ? s("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? s("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : s("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [s("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
1213
|
+
return { key: a, fn: function(o) {
|
|
1214
|
+
return [e._t(a, null, null, o)];
|
|
1214
1215
|
} };
|
|
1215
|
-
})], null, !0) }, e.listboxListeners))] : [s("bento-listbox-single-select", e._g({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(
|
|
1216
|
-
return { key:
|
|
1217
|
-
return [e._t(
|
|
1216
|
+
})], null, !0) }, e.listboxListeners))] : [s("bento-listbox-single-select", e._g({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
1217
|
+
return { key: a, fn: function(o) {
|
|
1218
|
+
return [e._t(a, null, null, o)];
|
|
1218
1219
|
} };
|
|
1219
|
-
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? s("div", { staticClass: "b-listbox__lazy-load" }, [s("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(
|
|
1220
|
+
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? s("div", { staticClass: "b-listbox__lazy-load" }, [s("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(n) {
|
|
1220
1221
|
return e.emitShowMore.apply(null, arguments);
|
|
1221
1222
|
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? s("div", { staticClass: "b-listbox__lazy-load" }, [s("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1222
1223
|
}, Lt = [], Ot = /* @__PURE__ */ D(
|
|
@@ -1225,7 +1226,7 @@ var Et = function() {
|
|
|
1225
1226
|
Lt,
|
|
1226
1227
|
!1,
|
|
1227
1228
|
null,
|
|
1228
|
-
"
|
|
1229
|
+
"0d827a88"
|
|
1229
1230
|
);
|
|
1230
1231
|
const zt = Ot.exports, H = (t, e) => {
|
|
1231
1232
|
for (const s of t) {
|
|
@@ -1238,7 +1239,7 @@ const zt = Ot.exports, H = (t, e) => {
|
|
|
1238
1239
|
}, Vt = (t, e, s) => {
|
|
1239
1240
|
const l = O([]), n = O(), a = (b) => {
|
|
1240
1241
|
n.value = s.value ? b.map(({ value: m }) => m) : b[0].value;
|
|
1241
|
-
},
|
|
1242
|
+
}, o = (b) => {
|
|
1242
1243
|
l.value = b, a(b);
|
|
1243
1244
|
}, r = () => {
|
|
1244
1245
|
l.value = [], n.value = null;
|
|
@@ -1270,14 +1271,14 @@ const zt = Ot.exports, H = (t, e) => {
|
|
|
1270
1271
|
cachedListboxSelectedValues: n,
|
|
1271
1272
|
// Methods
|
|
1272
1273
|
resetCache: r,
|
|
1273
|
-
setCachedValues:
|
|
1274
|
+
setCachedValues: o
|
|
1274
1275
|
};
|
|
1275
1276
|
};
|
|
1276
1277
|
export {
|
|
1277
1278
|
M as B,
|
|
1278
|
-
|
|
1279
|
+
i as a,
|
|
1279
1280
|
zt as b,
|
|
1280
1281
|
Vt as c,
|
|
1281
1282
|
_t as u
|
|
1282
1283
|
};
|
|
1283
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1284
|
+
//# sourceMappingURL=use-cached-selected-values.1vo5LvgW.js.map
|