@adyen/bento-vue3 1.48.0 → 1.49.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 +50 -871
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.r_Vt4XIu.js} +4 -4
- package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.r_Vt4XIu.js.map} +1 -1
- package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.Bis0B1AC.js} +2 -2
- package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.Bis0B1AC.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.C5LguXWO.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.C5LguXWO.js.map} +1 -1
- package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.CxWYSBy1.js} +4 -4
- package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.CxWYSBy1.js.map} +1 -1
- package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.bXN3Yann.js} +3 -3
- package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.bXN3Yann.js.map} +1 -1
- package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.baKzBaM6.js} +5 -5
- package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.baKzBaM6.js.map} +1 -1
- package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
- package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
- package/dist/chunks/{copy.HpUjy6OL.js → copy.CXCdp5ly.js} +2 -2
- package/dist/chunks/{copy.HpUjy6OL.js.map → copy.CXCdp5ly.js.map} +1 -1
- package/dist/chunks/currency.DagWnTry.js.map +1 -1
- package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.B87x4XsH.js} +3 -3
- package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.B87x4XsH.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.dWsHmwUp.js} +3 -3
- package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.dWsHmwUp.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.CZrGeSxR.js} +2 -2
- package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.CZrGeSxR.js.map} +1 -1
- package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.Duvh6mRu.js} +977 -971
- package/dist/chunks/data-grid.Duvh6mRu.js.map +1 -0
- package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DXrMLxD0.js} +3 -3
- package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DXrMLxD0.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.D7BDFoqM.js} +6 -6
- package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.D7BDFoqM.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DrBFdX2o.js} +3 -3
- package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DrBFdX2o.js.map} +1 -1
- package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.CWq-VlFX.js} +5 -5
- package/dist/chunks/{dropdown.BN6DALZa.js.map → dropdown.CWq-VlFX.js.map} +1 -1
- package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
- package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.NbsEgoj1.js} +441 -432
- package/dist/chunks/{file-uploader.CLZ1rPz0.js.map → file-uploader.NbsEgoj1.js.map} +1 -1
- package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.DP4SHAQj.js} +15 -14
- package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.DP4SHAQj.js.map} +1 -1
- package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
- package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
- package/dist/chunks/{header.CUhyy9NL.js → header.BBIJHMkv.js} +3 -3
- package/dist/chunks/{header.CUhyy9NL.js.map → header.BBIJHMkv.js.map} +1 -1
- package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
- package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.DbIAJO2-.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.DbIAJO2-.js.map} +1 -1
- package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
- package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
- package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.SSiNunUz.js} +5 -5
- package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.SSiNunUz.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number._PCiyrci.js} +2 -2
- package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number._PCiyrci.js.map} +1 -1
- package/dist/chunks/{input-field.DQKiMtZo.js → input-field.DhDfq9Er.js} +3 -3
- package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.DhDfq9Er.js.map} +1 -1
- package/dist/chunks/inspector.types.6P_ZowVx.js +184 -0
- package/dist/chunks/inspector.types.6P_ZowVx.js.map +1 -0
- package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
- package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
- package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKCUuV6a.js} +2 -2
- package/dist/chunks/{menu.DIKy_Pyt.js.map → menu.DKCUuV6a.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.C9FhKsf9.js} +2 -2
- package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.C9FhKsf9.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js} +2 -2
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map} +1 -1
- package/dist/chunks/{pagination.DogGVwa2.js → pagination.DdTcv8B6.js} +2 -2
- package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.DdTcv8B6.js.map} +1 -1
- package/dist/chunks/{popover.NEP6wuPa.js → popover.BHGbUyMF.js} +2 -2
- package/dist/chunks/{popover.NEP6wuPa.js.map → popover.BHGbUyMF.js.map} +1 -1
- package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
- package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
- package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.CKnonHmq.js} +2 -2
- package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.CKnonHmq.js.map} +1 -1
- package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
- package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
- package/dist/chunks/{search-bar.CatznIEM.js → search-bar.BixBEf58.js} +3 -3
- package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.BixBEf58.js.map} +1 -1
- package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.DG8xB2Mj.js} +3 -3
- package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.DG8xB2Mj.js.map} +1 -1
- package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
- package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.B9nOBntu.js} +4 -4
- package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.B9nOBntu.js.map} +1 -1
- package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.dFspFFRG.js} +2 -2
- package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.dFspFFRG.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.C9vL7KwG.js} +4 -4
- package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.C9vL7KwG.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.B0SvlYn-.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.B0SvlYn-.js.map} +1 -1
- package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
- package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
- package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CrQk0SR0.js} +2 -2
- package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CrQk0SR0.js.map} +1 -1
- package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.Cs8JBNAA.js} +4 -4
- package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.Cs8JBNAA.js.map} +1 -1
- package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
- package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.D82-YBdB.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.CoelUIEy.js.map → use-cached-selected-values.D82-YBdB.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 +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +42 -42
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -4
- package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
- package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
- package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as E, computed as h, createElementBlock as _, openBlock as i, normalizeClass as I, createElementVNode as s, createVNode as o, renderSlot as u, Transition as T, withCtx as n, createCommentVNode as f, unref as e, createTextVNode as $, toDisplayString as z, createBlock as v } from "vue";
|
|
2
|
-
import { B as F } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { B } from "./button.Cneb6rPP.js";
|
|
4
|
-
import { B as L } from "./focus-trap.CnKbO3b1.js";
|
|
5
|
-
import { B as N } from "./loading-indicator.DEepb9Wl.js";
|
|
6
|
-
import { E as O } from "./expand.CJ162RaJ.js";
|
|
7
|
-
import { C as S } from "./cross.BZYw4R3N.js";
|
|
8
|
-
import { g as V } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { u as w } from "./i18n.D9azDLPe.js";
|
|
10
|
-
import { _ as U } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
11
|
-
import "../assets/inspector.css";
|
|
12
|
-
const b = {
|
|
13
|
-
"en-US": {
|
|
14
|
-
close: "Close",
|
|
15
|
-
expand: "Expand"
|
|
16
|
-
},
|
|
17
|
-
"ja-JP": {
|
|
18
|
-
close: "閉じる",
|
|
19
|
-
expand: "展開"
|
|
20
|
-
},
|
|
21
|
-
"pt-BR": {
|
|
22
|
-
close: "Fechar",
|
|
23
|
-
expand: "Expandir"
|
|
24
|
-
}
|
|
25
|
-
}, j = { class: "b-inspector__page-wrapper" }, A = { class: "b-inspector__page" }, D = ["aria-labelledby"], J = { class: "b-inspector__header" }, P = { class: "b-inspector__icons" }, R = { class: "b-inspector__content" }, q = { i18n: { messages: b } }, G = /* @__PURE__ */ k({
|
|
26
|
-
...q,
|
|
27
|
-
__name: "inspector",
|
|
28
|
-
props: {
|
|
29
|
-
expandable: { type: Boolean, default: !1 },
|
|
30
|
-
isOpen: { type: Boolean, default: !1 },
|
|
31
|
-
loading: { type: Boolean, default: !1 },
|
|
32
|
-
size: { default: "small" },
|
|
33
|
-
title: {}
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:is-open", "expand"],
|
|
36
|
-
setup(g, { emit: y }) {
|
|
37
|
-
const r = g, l = y, { t: p } = w({ messages: b }), c = V("inspectorTitle"), d = E(null), x = h(() => ({
|
|
38
|
-
[`b-inspector--${r.size}`]: !0
|
|
39
|
-
})), m = () => {
|
|
40
|
-
var t;
|
|
41
|
-
r.isOpen ? d.value = document.activeElement : (t = d.value) == null || t.focus();
|
|
42
|
-
};
|
|
43
|
-
return (t, a) => (i(), _("div", {
|
|
44
|
-
class: I(["b-inspector", x.value])
|
|
45
|
-
}, [
|
|
46
|
-
s("div", j, [
|
|
47
|
-
s("div", A, [
|
|
48
|
-
u(t.$slots, "page", {}, void 0, !0)
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
o(T, {
|
|
52
|
-
name: "b-inspector__animation",
|
|
53
|
-
mode: "out-in",
|
|
54
|
-
onBeforeEnter: m,
|
|
55
|
-
onAfterLeave: m
|
|
56
|
-
}, {
|
|
57
|
-
default: n(() => [
|
|
58
|
-
t.isOpen ? (i(), _("aside", {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: "b-inspector__container-wrapper",
|
|
61
|
-
"aria-labelledby": e(c)
|
|
62
|
-
}, [
|
|
63
|
-
o(e(L), { class: "b-inspector__container" }, {
|
|
64
|
-
default: n(() => [
|
|
65
|
-
s("div", J, [
|
|
66
|
-
o(e(F), {
|
|
67
|
-
id: e(c),
|
|
68
|
-
el: "h2",
|
|
69
|
-
variant: "title",
|
|
70
|
-
class: "b-inspector__title"
|
|
71
|
-
}, {
|
|
72
|
-
default: n(() => [
|
|
73
|
-
$(z(t.title), 1)
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}, 8, ["id"]),
|
|
77
|
-
s("div", P, [
|
|
78
|
-
t.expandable ? (i(), v(e(B), {
|
|
79
|
-
key: 0,
|
|
80
|
-
variant: "tertiary",
|
|
81
|
-
onClick: a[0] || (a[0] = (C) => l("expand"))
|
|
82
|
-
}, {
|
|
83
|
-
iconLeft: n(() => [
|
|
84
|
-
o(e(O), {
|
|
85
|
-
"svg-title": e(p)("expand")
|
|
86
|
-
}, null, 8, ["svg-title"])
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
})) : f("", !0),
|
|
90
|
-
o(e(B), {
|
|
91
|
-
variant: "tertiary",
|
|
92
|
-
onClick: a[1] || (a[1] = (C) => l("update:is-open", !1))
|
|
93
|
-
}, {
|
|
94
|
-
iconLeft: n(() => [
|
|
95
|
-
o(e(S), {
|
|
96
|
-
"svg-title": e(p)("close")
|
|
97
|
-
}, null, 8, ["svg-title"])
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
})
|
|
101
|
-
])
|
|
102
|
-
]),
|
|
103
|
-
s("div", R, [
|
|
104
|
-
t.loading ? (i(), v(e(N), {
|
|
105
|
-
key: 0,
|
|
106
|
-
large: "",
|
|
107
|
-
class: "b-inspector__loading-indicator"
|
|
108
|
-
})) : u(t.$slots, "content", { key: 1 }, void 0, !0)
|
|
109
|
-
])
|
|
110
|
-
]),
|
|
111
|
-
_: 3
|
|
112
|
-
})
|
|
113
|
-
], 8, D)) : f("", !0)
|
|
114
|
-
]),
|
|
115
|
-
_: 3
|
|
116
|
-
})
|
|
117
|
-
], 2));
|
|
118
|
-
}
|
|
119
|
-
}), oe = /* @__PURE__ */ U(G, [["__scopeId", "data-v-3d228829"]]), se = ["small", "large"];
|
|
120
|
-
export {
|
|
121
|
-
se as B,
|
|
122
|
-
oe as i
|
|
123
|
-
};
|
|
124
|
-
//# sourceMappingURL=inspector.types.C-Qos3dV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.types.C-Qos3dV.js","sources":["../../../vue2/src/components/inspector/inspector.vue","../../../vue2/src/components/inspector/inspector.types.ts"],"sourcesContent":["<template>\n <div class=\"b-inspector\" :class=\"conditionalClass\">\n <div class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside v-if=\"isOpen\" class=\"b-inspector__container-wrapper\" :aria-labelledby=\"titleId\">\n <bento-focus-trap class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <bento-typography :id=\"titleId\" el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoInspectorSize } from './inspector.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(\n defineProps<{\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n }>(),\n {\n expandable: false,\n isOpen: false,\n loading: false,\n size: 'small',\n }\n );\n\n const emit = defineEmits<{\n /**\n * Emits update to keep isOpen prop in sync\n */\n (e: 'update:is-open', value: boolean): void;\n /**\n * Emits event when user click expand button\n */\n (e: 'expand'): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const titleId = generateUid('inspectorTitle');\n const lastFocusedElement = ref<HTMLElement>(null);\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n }));\n\n const setFocus = () => {\n if (props.isOpen) {\n lastFocusedElement.value = document.activeElement as HTMLElement;\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n lastFocusedElement.value?.focus();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n","export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n"],"names":["__default__","messages","props","__props","emit","__emit","t","useI18n","titleId","generateUid","lastFocusedElement","ref","conditionalClass","computed","setFocus","_a","BentoInspectorSizeOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;8NAsIIA,IAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;AAtFA,UAAAC,IAAAC,GAkCAC,IAAAC,GAWA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAN,EAAA,CAAA,GACAO,IAAAC,EAAA,gBAAA,GACAC,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAAyC,CAAA,gBAAAX,EAAA,IAAA,EAAA,GAAA;AAAA,IACL,EAAA,GAGpCY,IAAA,MAAA;;AACI,MAAAZ,EAAA,SACIQ,EAAA,QAAA,SAAA,iBAIAK,IAAAL,EAAA,UAAA,QAAAK,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEC5GKC,KAAA,CAAA,SAAA,OAAA;"}
|