@adyen/bento-vue2 1.35.0 → 1.35.1
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/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/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +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.C0EeQmpM.js → accordion-item.BDNSykyK.js} +2 -2
- package/dist/chunks/{accordion-item.C0EeQmpM.js.map → accordion-item.BDNSykyK.js.map} +1 -1
- package/dist/chunks/{action-bar.CTS-sRPZ.js → action-bar.CCVKS1xo.js} +6 -6
- package/dist/chunks/{action-bar.CTS-sRPZ.js.map → action-bar.CCVKS1xo.js.map} +1 -1
- package/dist/chunks/{alert.BOAVcKqt.js → alert.CVsckdGC.js} +15 -16
- package/dist/chunks/alert.CVsckdGC.js.map +1 -0
- package/dist/chunks/{base-modal.HSuNJt-7.js → base-modal.BaHkDH5f.js} +5 -5
- package/dist/chunks/{base-modal.HSuNJt-7.js.map → base-modal.BaHkDH5f.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.GyJNwaZ5.js → button-actions-with-menu.Bl82u6yP.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.GyJNwaZ5.js.map → button-actions-with-menu.Bl82u6yP.js.map} +1 -1
- package/dist/chunks/{button-actions.fnn5w4Jz.js → button-actions.DN4eIQes.js} +3 -3
- package/dist/chunks/{button-actions.fnn5w4Jz.js.map → button-actions.DN4eIQes.js.map} +1 -1
- package/dist/chunks/{button.B1JELmx-.js → button.79klAcOK.js} +2 -2
- package/dist/chunks/{button.B1JELmx-.js.map → button.79klAcOK.js.map} +1 -1
- package/dist/chunks/{calendar.BBQUZ8xu.js → calendar.BFrqPClW.js} +3 -3
- package/dist/chunks/{calendar.BBQUZ8xu.js.map → calendar.BFrqPClW.js.map} +1 -1
- package/dist/chunks/{card.DqxilNhb.js → card.lWLgpCWM.js} +3 -3
- package/dist/chunks/{card.DqxilNhb.js.map → card.lWLgpCWM.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CdMkjLu1.js → checkbox-group.C0cqbJWx.js} +4 -4
- package/dist/chunks/{checkbox-group.CdMkjLu1.js.map → checkbox-group.C0cqbJWx.js.map} +1 -1
- package/dist/chunks/{checkbox-input.Ce0AY_e_.js → checkbox-input.BH7MGdMj.js} +13 -14
- package/dist/chunks/checkbox-input.BH7MGdMj.js.map +1 -0
- package/dist/chunks/{checkbox.CVSzcaHk.js → checkbox.B3u_hzUo.js} +3 -3
- package/dist/chunks/{checkbox.CVSzcaHk.js.map → checkbox.B3u_hzUo.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.By9RNf5T.js → checkmark-circle-fill.DVl6QSwm.js} +4 -4
- package/dist/chunks/{checkmark-circle-fill.By9RNf5T.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
- package/dist/chunks/{checkmark-small.C8T8ISN6.js → checkmark-small.BtF8b2gE.js} +4 -4
- package/dist/chunks/checkmark-small.BtF8b2gE.js.map +1 -0
- package/dist/chunks/{chevron-left.CvIsaXjZ.js → chevron-left.CtnrsqUy.js} +6 -6
- package/dist/chunks/chevron-left.CtnrsqUy.js.map +1 -0
- package/dist/chunks/{chevron-up.DqJmLciO.js → chevron-up.B2uWhZf7.js} +6 -6
- package/dist/chunks/chevron-up.B2uWhZf7.js.map +1 -0
- package/dist/chunks/{code-snippet.BcZJFqdH.js → code-snippet.BgjvWTHP.js} +6 -6
- package/dist/chunks/{code-snippet.BcZJFqdH.js.map → code-snippet.BgjvWTHP.js.map} +1 -1
- package/dist/chunks/{controls-group.BES2y5Y7.js → controls-group.DLBxlPfl.js} +2 -2
- package/dist/chunks/{controls-group.BES2y5Y7.js.map → controls-group.DLBxlPfl.js.map} +1 -1
- package/dist/chunks/{copy.qAUSogPB.js → copy.CmxcGt77.js} +4 -5
- package/dist/chunks/copy.CmxcGt77.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.YhLgeipP.js → cross-circle-fill-small.Oj6lPaDy.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.BawVYNw7.js → cross-circle-fill.CnYH4R_h.js} +4 -4
- package/dist/chunks/{cross-circle-fill.BawVYNw7.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
- package/dist/chunks/{cross-small.CZqsjZDz.js → cross-small.BLUwtRB-.js} +4 -4
- package/dist/chunks/cross-small.BLUwtRB-.js.map +1 -0
- package/dist/chunks/{cross.CJ5EEL2c.js → cross.CsUPDmaA.js} +4 -4
- package/dist/chunks/{cross.CJ5EEL2c.js.map → cross.CsUPDmaA.js.map} +1 -1
- package/dist/chunks/{dashboard-section.QTsJqS-s.js → dashboard-section.BfXtTf6l.js} +3 -3
- package/dist/chunks/{dashboard-section.QTsJqS-s.js.map → dashboard-section.BfXtTf6l.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BnBP41jp.js → dashed-underline.xq5j9fGG.js} +2 -2
- package/dist/chunks/{dashed-underline.BnBP41jp.js.map → dashed-underline.xq5j9fGG.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CY3uHWRY.js → data-grid-template.C8AR5CxA.js} +3 -3
- package/dist/chunks/{data-grid-template.CY3uHWRY.js.map → data-grid-template.C8AR5CxA.js.map} +1 -1
- package/dist/chunks/{data-grid.CZjS7HUz.js → data-grid.BCTcokYm.js} +27 -28
- package/dist/chunks/data-grid.BCTcokYm.js.map +1 -0
- package/dist/chunks/{date-picker.C5uid7SP.js → date-picker.CPG0zksD.js} +5 -5
- package/dist/chunks/{date-picker.C5uid7SP.js.map → date-picker.CPG0zksD.js.map} +1 -1
- package/dist/chunks/{date-range-picker.R5v1ZX-X.js → date-range-picker.Bt439x32.js} +7 -7
- package/dist/chunks/{date-range-picker.R5v1ZX-X.js.map → date-range-picker.Bt439x32.js.map} +1 -1
- package/dist/chunks/{dialog-page.j_L6c9ZP.js → dialog-page.bmDDYmn9.js} +4 -5
- package/dist/chunks/dialog-page.bmDDYmn9.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BFx4TF5u.js → dropdown-default-textbox.kQ3pHsZe.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.BFx4TF5u.js.map → dropdown-default-textbox.kQ3pHsZe.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B8A03Cck.js → dropdown-tag.Cd4LGtwl.js} +2 -2
- package/dist/chunks/{dropdown-tag.B8A03Cck.js.map → dropdown-tag.Cd4LGtwl.js.map} +1 -1
- package/dist/chunks/{dropdown.h_j0DsN2.js → dropdown.B4KMM58m.js} +7 -8
- package/dist/chunks/dropdown.B4KMM58m.js.map +1 -0
- package/dist/chunks/{empty-state.CaQuZx7L.js → empty-state.C2ba_wDp.js} +2 -2
- package/dist/chunks/{empty-state.CaQuZx7L.js.map → empty-state.C2ba_wDp.js.map} +1 -1
- package/dist/chunks/{error-message.3tVTq0sW.js → error-message.GCYDEzGL.js} +3 -3
- package/dist/chunks/{error-message.3tVTq0sW.js.map → error-message.GCYDEzGL.js.map} +1 -1
- package/dist/chunks/{expand.C263WARj.js → expand.CwwKq7Uc.js} +4 -4
- package/dist/chunks/{expand.C263WARj.js.map → expand.CwwKq7Uc.js.map} +1 -1
- package/dist/chunks/{filter-bar.DgiUmFql.js → filter-bar.Co2YeUUg.js} +19 -20
- package/dist/chunks/{filter-bar.DgiUmFql.js.map → filter-bar.Co2YeUUg.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.DcdAycgk.js → fixed-scroller.CQWDnydO.js} +3 -3
- package/dist/chunks/{fixed-scroller.DcdAycgk.js.map → fixed-scroller.CQWDnydO.js.map} +1 -1
- package/dist/chunks/{footer-actions.C1TgWA9J.js → footer-actions.CxxS87iQ.js} +3 -3
- package/dist/chunks/{footer-actions.C1TgWA9J.js.map → footer-actions.CxxS87iQ.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DW8y285m.js → form-layout-title.DomnJXLE.js} +2 -2
- package/dist/chunks/{form-layout-title.DW8y285m.js.map → form-layout-title.DomnJXLE.js.map} +1 -1
- package/dist/chunks/{header.Nh_SoSJP.js → header.zacQVbjn.js} +6 -6
- package/dist/chunks/{header.Nh_SoSJP.js.map → header.zacQVbjn.js.map} +1 -1
- package/dist/chunks/{info-icon.bQl_RleE.js → info-icon.DNn4oZsB.js} +2 -2
- package/dist/chunks/{info-icon.bQl_RleE.js.map → info-icon.DNn4oZsB.js.map} +1 -1
- package/dist/chunks/{info.D4SG-AIm.js → info.CyeBsLgt.js} +4 -4
- package/dist/chunks/{info.D4SG-AIm.js.map → info.CyeBsLgt.js.map} +1 -1
- package/dist/chunks/{input-field.nBUtoYwF.js → input-field.DBrzeKBj.js} +3 -3
- package/dist/chunks/{input-field.nBUtoYwF.js.map → input-field.DBrzeKBj.js.map} +1 -1
- package/dist/chunks/{inspector.types.DJTWyZ9x.js → inspector.types.lu_MoQn5.js} +4 -4
- package/dist/chunks/{inspector.types.DJTWyZ9x.js.map → inspector.types.lu_MoQn5.js.map} +1 -1
- package/dist/chunks/{link.BKxmPIV5.js → link.Xce4kDGy.js} +3 -4
- package/dist/chunks/link.Xce4kDGy.js.map +1 -0
- package/dist/chunks/{loading-button.CsaWlmzb.js → loading-button.DoX2sopf.js} +4 -4
- package/dist/chunks/{loading-button.CsaWlmzb.js.map → loading-button.DoX2sopf.js.map} +1 -1
- package/dist/chunks/{menu.BhT5t7Ev.js → menu.DHakGFS4.js} +6 -7
- package/dist/chunks/{menu.BhT5t7Ev.js.map → menu.DHakGFS4.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BlqMgvmn.js → modal-fullscreen.mIlp0LnL.js} +5 -5
- package/dist/chunks/{modal-fullscreen.BlqMgvmn.js.map → modal-fullscreen.mIlp0LnL.js.map} +1 -1
- package/dist/chunks/{modal.DCtgRb44.js → modal.CtTQWN8H.js} +5 -5
- package/dist/chunks/{modal.DCtgRb44.js.map → modal.CtTQWN8H.js.map} +1 -1
- package/dist/chunks/{pagination.CM_9J0dZ.js → pagination.By-p9MjL.js} +5 -6
- package/dist/chunks/pagination.By-p9MjL.js.map +1 -0
- package/dist/chunks/{popover.DFWeWyxd.js → popover.BDaf6hmW.js} +4 -4
- package/dist/chunks/{popover.DFWeWyxd.js.map → popover.BDaf6hmW.js.map} +1 -1
- package/dist/chunks/{radio-group.o2Kroy4O.js → radio-group.OaYz1wJf.js} +3 -3
- package/dist/chunks/{radio-group.o2Kroy4O.js.map → radio-group.OaYz1wJf.js.map} +1 -1
- package/dist/chunks/{refresh.Bc9FzGjJ.js → refresh.BKI9WwKh.js} +4 -4
- package/dist/chunks/{refresh.Bc9FzGjJ.js.map → refresh.BKI9WwKh.js.map} +1 -1
- package/dist/chunks/{search-bar.BRlauT9L.js → search-bar.eC-crOww.js} +4 -4
- package/dist/chunks/{search-bar.BRlauT9L.js.map → search-bar.eC-crOww.js.map} +1 -1
- package/dist/chunks/{search.pVu-JVAN.js → search.CBKhp7zB.js} +4 -4
- package/dist/chunks/{search.pVu-JVAN.js.map → search.CBKhp7zB.js.map} +1 -1
- package/dist/chunks/{secondary-nav.lWetIbb8.js → secondary-nav.1xw-o8OR.js} +2 -2
- package/dist/chunks/{secondary-nav.lWetIbb8.js.map → secondary-nav.1xw-o8OR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BWZOX7l7.js → selection-card-group.BLPaJy5U.js} +4 -4
- package/dist/chunks/{selection-card-group.BWZOX7l7.js.map → selection-card-group.BLPaJy5U.js.map} +1 -1
- package/dist/chunks/{sidepanel.B5CKqH1u.js → sidepanel.ZYT_vzbj.js} +5 -5
- package/dist/chunks/{sidepanel.B5CKqH1u.js.map → sidepanel.ZYT_vzbj.js.map} +1 -1
- package/dist/chunks/{step.vF0pNW-K.js → step.CjJtlBk6.js} +6 -7
- package/dist/chunks/step.CjJtlBk6.js.map +1 -0
- package/dist/chunks/{structured-list-item.IElHaBHs.js → structured-list-item.D7D8VpQY.js} +5 -5
- package/dist/chunks/{structured-list-item.IElHaBHs.js.map → structured-list-item.D7D8VpQY.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CMsS1kro.js → summary-grid-item-custom.v0QSLZKT.js} +3 -3
- package/dist/chunks/{summary-grid-item-custom.CMsS1kro.js.map → summary-grid-item-custom.v0QSLZKT.js.map} +1 -1
- package/dist/chunks/{tabs.D8Ni3Zfb.js → tabs.D4ORafqH.js} +2 -2
- package/dist/chunks/{tabs.D8Ni3Zfb.js.map → tabs.D4ORafqH.js.map} +1 -1
- package/dist/chunks/{textarea.2RrKj5Mr.js → textarea.C0IMS5XS.js} +4 -4
- package/dist/chunks/{textarea.2RrKj5Mr.js.map → textarea.C0IMS5XS.js.map} +1 -1
- package/dist/chunks/{timeline-item.fF0fFDb9.js → timeline-item.Dmd78uwQ.js} +10 -11
- package/dist/chunks/timeline-item.Dmd78uwQ.js.map +1 -0
- package/dist/chunks/{toast.CMdDpqMg.js → toast.3LxCDPiT.js} +3 -3
- package/dist/chunks/{toast.CMdDpqMg.js.map → toast.3LxCDPiT.js.map} +1 -1
- package/dist/chunks/{toggle-button.CGvkVs_H.js → toggle-button.bt3zBzdC.js} +2 -2
- package/dist/chunks/{toggle-button.CGvkVs_H.js.map → toggle-button.bt3zBzdC.js.map} +1 -1
- package/dist/chunks/{toggle.yiNF7ndg.js → toggle.CLgGH4Jr.js} +2 -2
- package/dist/chunks/{toggle.yiNF7ndg.js.map → toggle.CLgGH4Jr.js.map} +1 -1
- package/dist/chunks/{tutorial.D2msGkwn.js → tutorial.D64_0i0-.js} +43 -44
- package/dist/chunks/tutorial.D64_0i0-.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.it4ENg3q.js → use-cached-selected-values.BOAumEi7.js} +10 -11
- package/dist/chunks/use-cached-selected-values.BOAumEi7.js.map +1 -0
- package/dist/chunks/{warning-filled.Cd0kVWwa.js → warning-filled.CLKRzGMT.js} +4 -4
- package/dist/chunks/{warning-filled.Cd0kVWwa.js.map → warning-filled.CLKRzGMT.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/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 +51 -51
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +7 -7
- 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/popover.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/selection-card.js +1 -1
- package/dist/sidepanel.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/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/web-types.json +9 -9
- package/package.json +4 -4
- package/dist/chunks/alert.BOAVcKqt.js.map +0 -1
- package/dist/chunks/checkbox-input.Ce0AY_e_.js.map +0 -1
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +0 -1
- package/dist/chunks/chevron-left.CvIsaXjZ.js.map +0 -1
- package/dist/chunks/chevron-up.DqJmLciO.js.map +0 -1
- package/dist/chunks/copy.qAUSogPB.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +0 -1
- package/dist/chunks/cross-small.CZqsjZDz.js.map +0 -1
- package/dist/chunks/data-grid.CZjS7HUz.js.map +0 -1
- package/dist/chunks/dialog-page.j_L6c9ZP.js.map +0 -1
- package/dist/chunks/dropdown.h_j0DsN2.js.map +0 -1
- package/dist/chunks/link.BKxmPIV5.js.map +0 -1
- package/dist/chunks/pagination.CM_9J0dZ.js.map +0 -1
- package/dist/chunks/step.vF0pNW-K.js.map +0 -1
- package/dist/chunks/timeline-item.fF0fFDb9.js.map +0 -1
- package/dist/chunks/tutorial.D2msGkwn.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.it4ENg3q.js.map +0 -1
- /package/dist/assets/{main.css → cross.css} +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { defineComponent as h, ref as f, computed as a, isRef as F, watch as g, nextTick as $ } from "vue";
|
|
2
|
-
import { B as k } from "./menu.
|
|
3
|
-
import { a as S, B as I } from "./popover.
|
|
2
|
+
import { B as k } from "./menu.DHakGFS4.js";
|
|
3
|
+
import { a as S, B as I } from "./popover.BDaf6hmW.js";
|
|
4
4
|
import { B as w } 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
|
-
import { R as D } from "./refresh.
|
|
8
|
-
/* empty css */
|
|
7
|
+
import { R as D } from "./refresh.BKI9WwKh.js";
|
|
9
8
|
import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
10
9
|
import { P as b, h as j, o as L } from "./popper-container.CnWphJTN.js";
|
|
11
|
-
import { B as M } from "./button-actions.
|
|
10
|
+
import { B as M } from "./button-actions.DN4eIQes.js";
|
|
12
11
|
import "../assets/tutorial.css";
|
|
13
12
|
var B;
|
|
14
13
|
const K = /* @__PURE__ */ h({
|
|
@@ -29,7 +28,7 @@ const K = /* @__PURE__ */ h({
|
|
|
29
28
|
height: "0",
|
|
30
29
|
borderRadius: "0"
|
|
31
30
|
});
|
|
32
|
-
function
|
|
31
|
+
function s(l) {
|
|
33
32
|
try {
|
|
34
33
|
const i = parseFloat(getComputedStyle(l).getPropertyValue("border-radius"));
|
|
35
34
|
return Number.isNaN(i) ? "" : `${i + 2 * 2}px`;
|
|
@@ -37,7 +36,7 @@ const K = /* @__PURE__ */ h({
|
|
|
37
36
|
return "";
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
const
|
|
39
|
+
const o = [
|
|
41
40
|
j(),
|
|
42
41
|
L({
|
|
43
42
|
mainAxis: 2,
|
|
@@ -47,16 +46,16 @@ const K = /* @__PURE__ */ h({
|
|
|
47
46
|
name: "updateIndicatorSize",
|
|
48
47
|
fn: ({ x: l, y: i, elements: r }) => {
|
|
49
48
|
const p = r.reference;
|
|
50
|
-
return e.value.width = `${p.offsetWidth + 4 * 2}px`, e.value.height = `${p.offsetHeight + 4 * 2}px`, e.value.borderRadius =
|
|
49
|
+
return e.value.width = `${p.offsetWidth + 4 * 2}px`, e.value.height = `${p.offsetHeight + 4 * 2}px`, e.value.borderRadius = s(p), { x: l, y: i };
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
];
|
|
54
|
-
return { __sfc: !0, BORDER_OFFSET: 2, computedStyles: e, getBorderRadius:
|
|
53
|
+
return { __sfc: !0, BORDER_OFFSET: 2, computedStyles: e, getBorderRadius: s, middleware: o, PopperContainer: b };
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
var V = function() {
|
|
58
|
-
var t = this, e = t._self._c,
|
|
59
|
-
return e(
|
|
57
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
58
|
+
return e(s.PopperContainer, { staticClass: "b-tutorial-indicator", attrs: { "target-element": t.targetElement, middleware: s.middleware, position: "top-start", "fixed-positioning": "", "disabled-focus-trap": "", "data-testid": "tutorial-indicator" } }, [e("div", { staticClass: "b-tutorial-indicator__highlight", style: s.computedStyles })]);
|
|
60
59
|
}, q = [], Z = /* @__PURE__ */ d(
|
|
61
60
|
K,
|
|
62
61
|
V,
|
|
@@ -199,33 +198,33 @@ const X = W.exports, G = {
|
|
|
199
198
|
},
|
|
200
199
|
emits: ["next", "finish", "restart"],
|
|
201
200
|
setup(n, { emit: t }) {
|
|
202
|
-
const e = n,
|
|
203
|
-
title:
|
|
201
|
+
const e = n, s = { behavior: "smooth" }, { t: o } = A(), l = a(() => ({
|
|
202
|
+
title: o("skipTour"),
|
|
204
203
|
event: () => t("finish")
|
|
205
204
|
})), i = a(() => ({
|
|
206
|
-
title:
|
|
205
|
+
title: o("startTour"),
|
|
207
206
|
event: () => t("next")
|
|
208
207
|
})), r = a(() => ({
|
|
209
|
-
title:
|
|
208
|
+
title: o("next"),
|
|
210
209
|
event: () => t("next")
|
|
211
210
|
})), p = a(() => ({
|
|
212
|
-
title:
|
|
211
|
+
title: o("finish"),
|
|
213
212
|
event: () => t("finish")
|
|
214
213
|
})), C = a(() => ({
|
|
215
|
-
title:
|
|
214
|
+
title: o("ok"),
|
|
216
215
|
event: () => t("finish")
|
|
217
216
|
})), O = f(!1), y = f(!1), m = a(() => {
|
|
218
217
|
var u;
|
|
219
218
|
return F(e.targetElement) ? ((u = e.targetElement.value) == null ? void 0 : u.$el) || e.targetElement.value : e.targetElement.$el || e.targetElement;
|
|
220
219
|
}), _ = a(() => e.step === 0), v = a(() => e.step === e.totalSteps), E = a(() => !_.value), R = a(() => [
|
|
221
220
|
{
|
|
222
|
-
text:
|
|
221
|
+
text: o("restartTour"),
|
|
223
222
|
handler: () => t("restart"),
|
|
224
223
|
icon: D
|
|
225
224
|
},
|
|
226
225
|
...v.value ? [] : [
|
|
227
226
|
{
|
|
228
|
-
text:
|
|
227
|
+
text: o("skipTour"),
|
|
229
228
|
handler: () => t("finish"),
|
|
230
229
|
icon: X
|
|
231
230
|
}
|
|
@@ -241,21 +240,21 @@ const X = W.exports, G = {
|
|
|
241
240
|
async (u) => {
|
|
242
241
|
var c, T;
|
|
243
242
|
u && ((c = m.value) != null && c.scrollIntoView) && ((T = m.value) == null || T.scrollIntoView(
|
|
244
|
-
e.scrollOptions != null ? e.scrollOptions :
|
|
243
|
+
e.scrollOptions != null ? e.scrollOptions : s
|
|
245
244
|
), await $()), O.value = u, y.value = u;
|
|
246
245
|
},
|
|
247
246
|
{ immediate: !0 }
|
|
248
|
-
), { __sfc: !0, DEFAULT_SCROLL_OPTIONS:
|
|
247
|
+
), { __sfc: !0, DEFAULT_SCROLL_OPTIONS: s, props: e, t: o, emit: t, ACTION_SKIP: l, ACTION_START: i, ACTION_NEXT: r, ACTION_FINISH: p, ACTION_OK: C, isPopoverOpen: O, isIndicatorVisible: y, targetElement: m, isFirstStep: _, isLastStep: v, showSteps: E, menuData: R, computedActions: P, BentoMenu: k, BentoPopover: I, BentoTypography: w, BentoButtonActions: M, BentoImage: N, TutorialIndicator: z };
|
|
249
248
|
}
|
|
250
249
|
});
|
|
251
250
|
var tt = function() {
|
|
252
|
-
var t = this, e = t._self._c,
|
|
253
|
-
return t.active &&
|
|
254
|
-
return !
|
|
251
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
252
|
+
return t.active && s.targetElement ? e("div", [s.isIndicatorVisible && s.targetElement ? e(s.TutorialIndicator, { attrs: { "target-element": s.targetElement } }) : t._e(), e(s.BentoPopover, { staticClass: "b-tutorial-popover", attrs: { "target-element": s.targetElement, position: t.position, open: s.isPopoverOpen, "aria-label": t.title, "fixed-positioning": "" }, nativeOn: { keydown: function(o) {
|
|
253
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : s.emit("finish");
|
|
255
254
|
} }, scopedSlots: t._u([t.image ? { key: "image", fn: function() {
|
|
256
|
-
return [e(
|
|
257
|
-
}, proxy: !0 } : null], null, !0) }, [e("div", { staticClass: "b-tutorial-popover__ripple", attrs: { "aria-hidden": "true" } }), e("div", { staticClass: "b-tutorial-popover__header" }, [e(
|
|
258
|
-
}, et = [],
|
|
255
|
+
return [e(s.BentoImage, t._b({ staticClass: "b-tutorial-popover__image", attrs: { "aspect-ratio": "landscape" } }, "bento-image", t.image, !1))];
|
|
256
|
+
}, proxy: !0 } : null], null, !0) }, [e("div", { staticClass: "b-tutorial-popover__ripple", attrs: { "aria-hidden": "true" } }), e("div", { staticClass: "b-tutorial-popover__header" }, [e(s.BentoTypography, { attrs: { variant: "title", el: "span" } }, [t._v(" " + t._s(t.title) + " ")]), s.showSteps ? e(s.BentoTypography, { staticClass: "b-tutorial-popover__steps", attrs: { el: "span" } }, [t._v(" " + t._s(s.t("stepsOfTotal", { step: t.step, totalSteps: t.totalSteps })) + " ")]) : t._e()], 1), e(s.BentoTypography, [t._t("default")], 2), e("div", { staticClass: "b-tutorial-popover__footer" }, [s.isFirstStep ? t._e() : e(s.BentoMenu, { staticClass: "b-tutorial-popover__menu", attrs: { data: s.menuData, "data-testid": "menu-button" } }), e("div", { staticClass: "b-tutorial-popover__actions" }, [e(s.BentoButtonActions, { attrs: { actions: s.computedActions, layout: "buttons-end" } })], 1)], 1)], 1)], 1) : t._e();
|
|
257
|
+
}, et = [], st = /* @__PURE__ */ d(
|
|
259
258
|
Y,
|
|
260
259
|
tt,
|
|
261
260
|
et,
|
|
@@ -263,7 +262,7 @@ var tt = function() {
|
|
|
263
262
|
null,
|
|
264
263
|
"eecafacd"
|
|
265
264
|
);
|
|
266
|
-
const
|
|
265
|
+
const ot = st.exports, rt = {}, at = /* @__PURE__ */ h({
|
|
267
266
|
...rt,
|
|
268
267
|
__name: "tutorial",
|
|
269
268
|
props: {
|
|
@@ -295,7 +294,7 @@ const st = ot.exports, rt = {}, at = /* @__PURE__ */ h({
|
|
|
295
294
|
},
|
|
296
295
|
emits: ["update:index"],
|
|
297
296
|
setup(n, { emit: t }) {
|
|
298
|
-
const e = n,
|
|
297
|
+
const e = n, s = f(e.index || 0), o = a(() => e.steps.length - 1), l = a(() => o.value === 0);
|
|
299
298
|
function i(r, p) {
|
|
300
299
|
return {
|
|
301
300
|
// Visual
|
|
@@ -303,35 +302,35 @@ const st = ot.exports, rt = {}, at = /* @__PURE__ */ h({
|
|
|
303
302
|
image: r.image,
|
|
304
303
|
title: r.title,
|
|
305
304
|
step: p,
|
|
306
|
-
totalSteps:
|
|
305
|
+
totalSteps: o.value,
|
|
307
306
|
action: r.action,
|
|
308
307
|
scrollOptions: e.scrollOptions,
|
|
309
308
|
// Config
|
|
310
|
-
active: p ===
|
|
309
|
+
active: p === s.value,
|
|
311
310
|
single: l.value,
|
|
312
311
|
position: r.position
|
|
313
312
|
};
|
|
314
313
|
}
|
|
315
|
-
return g(
|
|
314
|
+
return g(s, (r) => {
|
|
316
315
|
t("update:index", r);
|
|
317
316
|
}), g(
|
|
318
317
|
() => e.index,
|
|
319
318
|
(r) => {
|
|
320
|
-
r >= -1 && r <=
|
|
319
|
+
r >= -1 && r <= o.value && (s.value = r);
|
|
321
320
|
}
|
|
322
|
-
), { __sfc: !0, props: e, emit: t, currentStep:
|
|
321
|
+
), { __sfc: !0, props: e, emit: t, currentStep: s, totalSteps: o, isSingleTutorial: l, getPopoverProps: i, TutorialPopover: ot };
|
|
323
322
|
}
|
|
324
323
|
});
|
|
325
324
|
var nt = function() {
|
|
326
|
-
var t = this, e = t._self._c,
|
|
327
|
-
return e("div", { staticClass: "b-tutorial" }, t._l(t.steps, function(
|
|
328
|
-
return e(
|
|
329
|
-
|
|
325
|
+
var t = this, e = t._self._c, s = t._self._setupProxy;
|
|
326
|
+
return e("div", { staticClass: "b-tutorial" }, t._l(t.steps, function(o, l) {
|
|
327
|
+
return e(s.TutorialPopover, t._b({ key: o.title, on: { finish: function(i) {
|
|
328
|
+
s.currentStep = -1;
|
|
330
329
|
}, next: function(i) {
|
|
331
|
-
|
|
330
|
+
s.currentStep += 1;
|
|
332
331
|
}, restart: function(i) {
|
|
333
|
-
|
|
334
|
-
} } }, "tutorial-popover",
|
|
332
|
+
s.currentStep = 0;
|
|
333
|
+
} } }, "tutorial-popover", s.getPopoverProps(o, l), !1), [t._v(" " + t._s(o.description) + " ")]);
|
|
335
334
|
}), 1);
|
|
336
335
|
}, it = [], lt = /* @__PURE__ */ d(
|
|
337
336
|
at,
|
|
@@ -341,8 +340,8 @@ var nt = function() {
|
|
|
341
340
|
null,
|
|
342
341
|
null
|
|
343
342
|
);
|
|
344
|
-
const
|
|
343
|
+
const Ct = lt.exports;
|
|
345
344
|
export {
|
|
346
|
-
|
|
345
|
+
Ct as t
|
|
347
346
|
};
|
|
348
|
-
//# sourceMappingURL=tutorial.
|
|
347
|
+
//# sourceMappingURL=tutorial.D64_0i0-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tutorial.D64_0i0-.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: t('skipTour'),\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":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCI,UAAAA,IAAAC,EAAA;AAAA,MAA2B,OAAA;AAAA,MAChB,QAAA;AAAA,MACC,cAAA;AAAA,IACM,CAAA;AAGlB,aAAAC,EAAAC,GAAA;AACI,UAAA;AACI,cAAAC,IAAA,WAAA,iBAAAD,CAAA,EAAA,iBAAA,eAAA,CAAA;AACA,eAAA,OAAA,MAAAC,CAAA,IAAA,KAAA,GAAAA,IAAA,IAAA,CAAA;AAAA,MAAgE,QAAA;AAEhE,eAAA;AAAA,MAAO;AAAA,IACX;AAGJ,UAAAC,IAAA;AAAA,MAAmBC,EAAA;AAAA,MACVC,EAAA;AAAA,QACE,UAAA;AAAA,QACO,eAAA;AAAA,MACM,CAAA;AAAA,MACnB;AAAA,QACD,MAAA;AAAA,QACU,IAAA,CAAA,EAAA,GAAAC,GAAA,GAAAC,GAAA,UAAAC,EAAA,MAAA;AAEF,gBAAAC,IAAAD,EAAA;AACA,iBAAAV,EAAA,MAAA,QAAA,GAAAW,EAAA,cAAA,IAAA,CAAA,MACAX,EAAA,MAAA,SAAA,GAAAW,EAAA,eAAA,IAAA,CAAA,MACAX,EAAA,MAAA,eAAAE,EAAAS,CAAA,GACA,EAAA,GAAAH,GAAA,GAAAC,EAAA;AAAA,QAAc;AAAA,MAClB;AAAA,IACJ;;;;;;;;;;;;;;;;ACzDR,IAAAG,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC6PIE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1MAC,IAAA,EAAA,UAAA,SAAA,GAmGA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GAIAC,IAAAC,EAAA,OAAA;AAAA,MAA6D,OAAAH,EAAA,UAAA;AAAA,MACtC,OAAA,MAAAI,EAAA,QAAA;AAAA,IACO,EAAA,GAG9BC,IAAAF,EAAA,OAAA;AAAA,MAA8D,OAAAH,EAAA,WAAA;AAAA,MACtC,OAAA,MAAAI,EAAA,MAAA;AAAA,IACI,EAAA,GAG5BE,IAAAH,EAAA,OAAA;AAAA,MAA6D,OAAAH,EAAA,MAAA;AAAA,MAC1C,OAAA,MAAAI,EAAA,MAAA;AAAA,IACS,EAAA,GAG5BG,IAAAJ,EAAA,OAAA;AAAA,MAA+D,OAAAH,EAAA,QAAA;AAAA,MAC1C,OAAA,MAAAI,EAAA,QAAA;AAAA,IACS,EAAA,GAG9BI,IAAAL,EAAA,OAAA;AAAA,MAA2D,OAAAH,EAAA,IAAA;AAAA,MAC1C,OAAA,MAAAI,EAAA,QAAA;AAAA,IACa,EAAA,GAG9BK,IAAAzB,EAAA,EAAA,GACA0B,IAAA1B,EAAA,EAAA,GAEA2B,IAAAR,EAAA,MAAA;;AACI,aAAAS,EAAAC,EAAA,aAAA,MACIC,IAAAD,EAAA,cAAA,UAAA,gBAAAC,EAAA,QAAAD,EAAA,cAAA,QAEJA,EAAA,cAAA,OAAAA,EAAA;AAAA,IAAkD,CAAA,GAGtDE,IAAAZ,EAAA,MAAAU,EAAA,SAAA,CAAA,GACAG,IAAAb,EAAA,MAAAU,EAAA,SAAAA,EAAA,UAAA,GAEAI,IAAAd,EAAA,MAAA,CAAAY,EAAA,KAAA,GAEAG,IAAAf,EAAA,MAAA;AAAA,MAAiD;AAAA,QAC7C,MAAAH,EAAA,aAAA;AAAA,QACyB,SAAA,MAAAI,EAAA,SAAA;AAAA,QACQ,MAAAe;AAAA,MACvB;AAAA,MACV,GAAAH,EAAA,QAAA,CAAA,IAAA;AAAA,QAGM;AAAA,UACI,MAAAhB,EAAA,UAAA;AAAA,UACsB,SAAA,MAAAI,EAAA,QAAA;AAAA,UACU,MAAAgB;AAAA,QACtB;AAAA,MACV;AAAA,IACJ,CAAA,GAGVC,IAAAlB,EAAA,MAAA;AACI,UAAAmB;AACA,MAAAP,EAAA,QACIO,IAAAT,EAAA,SAAAL,EAAA,QAAAH,EAAA,QAA8DW,EAAA,QAE9DM,IAAAf,EAAA,QAEAe,IAAAhB,EAAA;AAGJ,YAAAiB,IAAA,CAAAD,CAAA;AACA,aAAAP,EAAA,SAAA,CAAAF,EAAA,SACIU,EAAA,KAAArB,EAAA,KAAA,IAA8BW,EAAA,UAE9BU,EAAA,KAAAV,EAAA,MAAA,GAGJU;AAAA,IAAO,CAAA;AAGX,WAAAC;AAAA,MAAA,MAAAX,EAAA;AAAA,MACgB,OAAAY,MAAA;;AAER,QAAAA,OAAAX,IAAAH,EAAA,UAAA,QAAAG,EAAA,qBACIY,IAAAf,EAAA,UAAA,QAAAe,EAAA;AAAA,UAAqBb,EAAA,iBAAA,OAAAA,EAAA,gBAAAd;AAAA,WAKrB,MAAA4B,EAAA,IAGJlB,EAAA,QAAAgB,GACAf,EAAA,QAAAe;AAAA,MAA2B;AAAA,MAC/B,EAAA,WAAA,GAAA;AAAA,IACkB;;;;;;;;;;;;;;;;;;uBCxItBG,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAxEAC,IAAA7C,EAAA6B,EAAA,SAAA,CAAA,GAEAiB,IAAA3B,EAAA,MAAAU,EAAA,MAAA,SAAA,CAAA,GACAkB,IAAA5B,EAAA,MAAA2B,EAAA,UAAA,CAAA;AAEA,aAAAE,EAAAC,GAAAC,GAAA;AACI,aAAA;AAAA;AAAA,QAAO,eAAAD,EAAA;AAAA,QAEiB,OAAAA,EAAA;AAAA,QACR,OAAAA,EAAA;AAAA,QACA,MAAAC;AAAA,QACN,YAAAJ,EAAA;AAAA,QACiB,QAAAG,EAAA;AAAA,QACV,eAAApB,EAAA;AAAA;AAAA,QACQ,QAAAqB,MAAAL,EAAA;AAAA,QAGS,QAAAE,EAAA;AAAA,QACL,UAAAE,EAAA;AAAA,MACV;AAAA,IACnB;AAGJ,WAAAT,EAAAK,GAAA,CAAAI,MAAA;AACI,MAAA7B,EAAA,gBAAA6B,CAAA;AAAA,IAAyB,CAAA,GAG7BT;AAAA,MAAA,MAAAX,EAAA;AAAA,MACgB,CAAAsB,MAAA;AAER,QAAAA,KAAA,MAAAA,KAAAL,EAAA,UACID,EAAA,QAAAM;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
|
@@ -1,18 +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
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
|
-
/* empty css */
|
|
9
8
|
import { B as k, a as X } from "./keyboard-navigation.Clz1jOaA.js";
|
|
10
|
-
import { B as J } from "./checkbox.
|
|
9
|
+
import { B as J } from "./checkbox.B3u_hzUo.js";
|
|
11
10
|
import "./index.Cl4_42j5.js";
|
|
12
|
-
import { C as Ce, a as Se } from "./chevron-up.
|
|
11
|
+
import { C as Ce, a as Se } from "./chevron-up.B2uWhZf7.js";
|
|
13
12
|
import { B as he } from "./base-button.qWj0m9-v.js";
|
|
14
|
-
import { C as xe } from "./cross-small.
|
|
15
|
-
import { B as Ee, a as Z } from "./loading-button.
|
|
13
|
+
import { C as xe } from "./cross-small.BLUwtRB-.js";
|
|
14
|
+
import { B as Ee, a as Z } from "./loading-button.DoX2sopf.js";
|
|
16
15
|
import { o as Le } from "./resize.Bqks3WUm.js";
|
|
17
16
|
import "../assets/use-cached-selected-values.css";
|
|
18
17
|
const le = (t, e, s, l) => {
|
|
@@ -1243,7 +1242,7 @@ var Et = function() {
|
|
|
1243
1242
|
null,
|
|
1244
1243
|
"0d827a88"
|
|
1245
1244
|
);
|
|
1246
|
-
const
|
|
1245
|
+
const zt = Ot.exports, H = (t, e) => {
|
|
1247
1246
|
for (const s of t) {
|
|
1248
1247
|
if (s.value === e)
|
|
1249
1248
|
return s.label;
|
|
@@ -1251,7 +1250,7 @@ const Vt = Ot.exports, H = (t, e) => {
|
|
|
1251
1250
|
return H(s.items, e);
|
|
1252
1251
|
}
|
|
1253
1252
|
return null;
|
|
1254
|
-
},
|
|
1253
|
+
}, Vt = (t, e, s) => {
|
|
1255
1254
|
const l = O([]), n = O(), a = (b) => {
|
|
1256
1255
|
n.value = s.value ? b.map(({ value: m }) => m) : b[0].value;
|
|
1257
1256
|
}, o = (b) => {
|
|
@@ -1292,8 +1291,8 @@ const Vt = Ot.exports, H = (t, e) => {
|
|
|
1292
1291
|
export {
|
|
1293
1292
|
P as B,
|
|
1294
1293
|
i as a,
|
|
1295
|
-
|
|
1296
|
-
|
|
1294
|
+
zt as b,
|
|
1295
|
+
Vt as c,
|
|
1297
1296
|
_t as u
|
|
1298
1297
|
};
|
|
1299
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1298
|
+
//# sourceMappingURL=use-cached-selected-values.BOAumEi7.js.map
|