@adyen/bento-vue2 1.54.2 → 1.55.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 +20 -2
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dashboard-section.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.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/input-field-phone-number.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/popover.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/teleport.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CH1Mswou.js → action-bar.DQ1JoKzt.js} +5 -5
- package/dist/chunks/{action-bar.CH1Mswou.js.map → action-bar.DQ1JoKzt.js.map} +1 -1
- package/dist/chunks/{alert.BkMKX9wD.js → alert.C5Y5RBx9.js} +2 -2
- package/dist/chunks/{alert.BkMKX9wD.js.map → alert.C5Y5RBx9.js.map} +1 -1
- package/dist/chunks/{base-modal.B4TNcOz9.js → base-modal.CEHMcrwC.js} +15 -15
- package/dist/chunks/{base-modal.B4TNcOz9.js.map → base-modal.CEHMcrwC.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.mqNecwDb.js → button-actions-with-menu.BehknT6F.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.mqNecwDb.js.map → button-actions-with-menu.BehknT6F.js.map} +1 -1
- package/dist/chunks/{button-actions.XlUhz42n.js → button-actions.C5Dp4DeK.js} +2 -2
- package/dist/chunks/{button-actions.XlUhz42n.js.map → button-actions.C5Dp4DeK.js.map} +1 -1
- package/dist/chunks/{button.D-3uUhuG.js → button.DUApwEu1.js} +2 -2
- package/dist/chunks/button.DUApwEu1.js.map +1 -0
- package/dist/chunks/{calendar.D4dMXwc0.js → calendar.C9bRwE-l.js} +2 -2
- package/dist/chunks/calendar.C9bRwE-l.js.map +1 -0
- package/dist/chunks/{card.BT04hjvV.js → card.Ba5Jqezr.js} +2 -2
- package/dist/chunks/{card.BT04hjvV.js.map → card.Ba5Jqezr.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DZF4UIym.js → checkbox-group.COqNevz5.js} +4 -4
- package/dist/chunks/{checkbox-group.DZF4UIym.js.map → checkbox-group.COqNevz5.js.map} +1 -1
- package/dist/chunks/{checkbox.DloQJI-K.js → checkbox.LFeWM5p4.js} +3 -3
- package/dist/chunks/{checkbox.DloQJI-K.js.map → checkbox.LFeWM5p4.js.map} +1 -1
- package/dist/chunks/{code-snippet.eHqicJXk.js → code-snippet.Q1HB3T_K.js} +6 -6
- package/dist/chunks/{code-snippet.eHqicJXk.js.map → code-snippet.Q1HB3T_K.js.map} +1 -1
- package/dist/chunks/{controls-group.C-HKhH1m.js → controls-group.B-JUz-ir.js} +2 -2
- package/dist/chunks/{controls-group.C-HKhH1m.js.map → controls-group.B-JUz-ir.js.map} +1 -1
- package/dist/chunks/{copy.k18tXmP1.js → copy.C7gFAgeL.js} +9 -9
- package/dist/chunks/{copy.k18tXmP1.js.map → copy.C7gFAgeL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DlIwNKkx.js → dashboard-section.Cn7UfGjF.js} +47 -50
- package/dist/chunks/dashboard-section.Cn7UfGjF.js.map +1 -0
- package/dist/chunks/{dashed-underline.BbQIbZfu.js → dashed-underline.0K0Xbu6k.js} +3 -3
- package/dist/chunks/{dashed-underline.BbQIbZfu.js.map → dashed-underline.0K0Xbu6k.js.map} +1 -1
- package/dist/chunks/data-grid-template.Bm08fIsa.js +69 -0
- package/dist/chunks/data-grid-template.Bm08fIsa.js.map +1 -0
- package/dist/chunks/{data-grid.BTxmzkic.js → data-grid.C8S9cY5p.js} +1181 -1095
- package/dist/chunks/data-grid.C8S9cY5p.js.map +1 -0
- package/dist/chunks/{date-picker.Dy0k-7_1.js → date-picker.DPSJvBlj.js} +5 -5
- package/dist/chunks/{date-picker.Dy0k-7_1.js.map → date-picker.DPSJvBlj.js.map} +1 -1
- package/dist/chunks/{date-range-picker.nTv7S5oB.js → date-range-picker.B03wCOPP.js} +27 -24
- package/dist/chunks/date-range-picker.B03wCOPP.js.map +1 -0
- package/dist/chunks/{dialog-page.BfF5_hmG.js → dialog-page.C8iNK4bf.js} +2 -2
- package/dist/chunks/{dialog-page.BfF5_hmG.js.map → dialog-page.C8iNK4bf.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js → dropdown-default-textbox.AUsF-RIc.js} +18 -18
- package/dist/chunks/{dropdown-default-textbox.CDTdHfTv.js.map → dropdown-default-textbox.AUsF-RIc.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B15dzpe3.js → dropdown-tag.DUlkje2L.js} +3 -3
- package/dist/chunks/{dropdown-tag.B15dzpe3.js.map → dropdown-tag.DUlkje2L.js.map} +1 -1
- package/dist/chunks/{dropdown.CFBycvtL.js → dropdown.DihPVajz.js} +31 -31
- package/dist/chunks/{dropdown.CFBycvtL.js.map → dropdown.DihPVajz.js.map} +1 -1
- package/dist/chunks/{empty-state.JbgxSrnv.js → empty-state.aBO3bh4N.js} +2 -2
- package/dist/chunks/{empty-state.JbgxSrnv.js.map → empty-state.aBO3bh4N.js.map} +1 -1
- package/dist/chunks/{error-message.qHRfH-8Y.js → error-message.7bsic_sK.js} +2 -2
- package/dist/chunks/{error-message.qHRfH-8Y.js.map → error-message.7bsic_sK.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CKcv6q6S.js → file-uploader.P_s39Esv.js} +5 -5
- package/dist/chunks/{file-uploader.CKcv6q6S.js.map → file-uploader.P_s39Esv.js.map} +1 -1
- package/dist/chunks/{filter-bar.Cu4I3kJB.js → filter-bar.Djv7J4G1.js} +31 -28
- package/dist/chunks/filter-bar.Djv7J4G1.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BwvXYzE6.js → fixed-scroller.C7Eug22g.js} +2 -2
- package/dist/chunks/{fixed-scroller.BwvXYzE6.js.map → fixed-scroller.C7Eug22g.js.map} +1 -1
- package/dist/chunks/{focus-trap.V3Q8H_5C.js → focus-trap.DEHn1dxN.js} +6 -6
- package/dist/chunks/{focus-trap.V3Q8H_5C.js.map → focus-trap.DEHn1dxN.js.map} +1 -1
- package/dist/chunks/{footer-actions.DYi_MR9I.js → footer-actions.CNNRHYLb.js} +3 -3
- package/dist/chunks/{footer-actions.DYi_MR9I.js.map → footer-actions.CNNRHYLb.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DK1-01RH.js → form-layout-title.C9P21KnX.js} +2 -2
- package/dist/chunks/{form-layout-title.DK1-01RH.js.map → form-layout-title.C9P21KnX.js.map} +1 -1
- package/dist/chunks/{header-with-views.ugNWdbC8.js → header-with-views.siHZ-MsA.js} +13 -13
- package/dist/chunks/{header-with-views.ugNWdbC8.js.map → header-with-views.siHZ-MsA.js.map} +1 -1
- package/dist/chunks/{header.DWx6s2nt.js → header.BXGTPqZK.js} +4 -4
- package/dist/chunks/{header.DWx6s2nt.js.map → header.BXGTPqZK.js.map} +1 -1
- package/dist/chunks/i18n.BQkEbtPM.js.map +1 -1
- package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js → info-icon-with-popover.CdZ1_8hG.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.B4wYDzGz.js.map → info-icon-with-popover.CdZ1_8hG.js.map} +1 -1
- package/dist/chunks/{info-icon.J62KXp9I.js → info-icon.Dn0FHy-U.js} +3 -3
- package/dist/chunks/{info-icon.J62KXp9I.js.map → info-icon.Dn0FHy-U.js.map} +1 -1
- package/dist/chunks/{input-field-password.DCcG3ju1.js → input-field-password.Dz_8fr0j.js} +6 -6
- package/dist/chunks/{input-field-password.DCcG3ju1.js.map → input-field-password.Dz_8fr0j.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BxP8LyD-.js → input-field-phone-number.CPlRrAGe.js} +8 -12
- package/dist/chunks/{input-field-phone-number.BxP8LyD-.js.map → input-field-phone-number.CPlRrAGe.js.map} +1 -1
- package/dist/chunks/{input-field.BUj99rZv.js → input-field.DcOnDLTc.js} +3 -3
- package/dist/chunks/{input-field.BUj99rZv.js.map → input-field.DcOnDLTc.js.map} +1 -1
- package/dist/chunks/{inspector.types.Cmq6sdCz.js → inspector.types.D1m792RZ.js} +3 -3
- package/dist/chunks/{inspector.types.Cmq6sdCz.js.map → inspector.types.D1m792RZ.js.map} +1 -1
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.BHI-8rRX.js → listbox-option-tag.BSQ8bM-O.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BHI-8rRX.js.map → listbox-option-tag.BSQ8bM-O.js.map} +1 -1
- package/dist/chunks/{menu.BoxhffPs.js → menu.DFatjXpw.js} +5 -6
- package/dist/chunks/menu.DFatjXpw.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.E7e13pW9.js → modal-fullscreen._NBj0IXu.js} +5 -5
- package/dist/chunks/{modal-fullscreen.E7e13pW9.js.map → modal-fullscreen._NBj0IXu.js.map} +1 -1
- package/dist/chunks/{modal.n7b-ITaf.js → modal.CpZzd8fG.js} +5 -5
- package/dist/chunks/{modal.n7b-ITaf.js.map → modal.CpZzd8fG.js.map} +1 -1
- package/dist/chunks/{pagination.eAo5wz5D.js → pagination.PQCpgVVF.js} +3 -3
- package/dist/chunks/{pagination.eAo5wz5D.js.map → pagination.PQCpgVVF.js.map} +1 -1
- package/dist/chunks/{popover.C4PNSrnW.js → popover.BVLuUYSi.js} +4 -4
- package/dist/chunks/{popover.C4PNSrnW.js.map → popover.BVLuUYSi.js.map} +1 -1
- package/dist/chunks/{popper-container.DWY19wS0.js → popper-container.DieshXa8.js} +3 -3
- package/dist/chunks/{popper-container.DWY19wS0.js.map → popper-container.DieshXa8.js.map} +1 -1
- package/dist/chunks/{promo-banner.DgCKKp6o.js → promo-banner.C4jiwSeA.js} +2 -2
- package/dist/chunks/{promo-banner.DgCKKp6o.js.map → promo-banner.C4jiwSeA.js.map} +1 -1
- package/dist/chunks/{radio-group.WbbrQhEO.js → radio-group.BuKC_n23.js} +4 -4
- package/dist/chunks/{radio-group.WbbrQhEO.js.map → radio-group.BuKC_n23.js.map} +1 -1
- package/dist/chunks/{search-bar.C-DwowF7.js → search-bar.BPnYyZ9S.js} +3 -3
- package/dist/chunks/{search-bar.C-DwowF7.js.map → search-bar.BPnYyZ9S.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CTeYViOR.js → secondary-nav.CDykzeRU.js} +2 -2
- package/dist/chunks/{secondary-nav.CTeYViOR.js.map → secondary-nav.CDykzeRU.js.map} +1 -1
- package/dist/chunks/{segmented-control.DGNMY2BP.js → segmented-control.CCgCeLDQ.js} +2 -2
- package/dist/chunks/{segmented-control.DGNMY2BP.js.map → segmented-control.CCgCeLDQ.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BmKUEuny.js → selection-card-group.Dj9wWfmY.js} +3 -3
- package/dist/chunks/{selection-card-group.BmKUEuny.js.map → selection-card-group.Dj9wWfmY.js.map} +1 -1
- package/dist/chunks/{sidepanel.Bnw4accy.js → sidepanel.DcBdDgec.js} +10 -10
- package/dist/chunks/{sidepanel.Bnw4accy.js.map → sidepanel.DcBdDgec.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Co5P9bFC.js → structured-list-item.w0GVxwQf.js} +5 -5
- package/dist/chunks/{structured-list-item.Co5P9bFC.js.map → structured-list-item.w0GVxwQf.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.egM7irBt.js → summary-grid.types.DoD7Ls0O.js} +5 -5
- package/dist/chunks/{summary-grid.types.egM7irBt.js.map → summary-grid.types.DoD7Ls0O.js.map} +1 -1
- package/dist/chunks/tabs.T3A3YNdF.js +205 -0
- package/dist/chunks/tabs.T3A3YNdF.js.map +1 -0
- package/dist/chunks/{tag.CyspYb1E.js → tag.C7ATWnRW.js} +2 -2
- package/dist/chunks/{tag.CyspYb1E.js.map → tag.C7ATWnRW.js.map} +1 -1
- package/dist/chunks/{teleport.BHfrns33.js → teleport.5oodkxuB.js} +6 -6
- package/dist/chunks/teleport.5oodkxuB.js.map +1 -0
- package/dist/chunks/{textarea.CC8esIW6.js → textarea.CrPdkIGL.js} +3 -3
- package/dist/chunks/{textarea.CC8esIW6.js.map → textarea.CrPdkIGL.js.map} +1 -1
- package/dist/chunks/{timeline-item.Byorbxmc.js → timeline-item.B6XTUyr8.js} +6 -6
- package/dist/chunks/{timeline-item.Byorbxmc.js.map → timeline-item.B6XTUyr8.js.map} +1 -1
- package/dist/chunks/{toast.DqSWycRO.js → toast.CjJW9t4G.js} +2 -2
- package/dist/chunks/{toast.DqSWycRO.js.map → toast.CjJW9t4G.js.map} +1 -1
- package/dist/chunks/{toggle-button.DgSFugBP.js → toggle-button.Dj2uoRyw.js} +2 -2
- package/dist/chunks/{toggle-button.DgSFugBP.js.map → toggle-button.Dj2uoRyw.js.map} +1 -1
- package/dist/chunks/{tooltip.DOvci5lX.js → tooltip.CfER_5In.js} +2 -2
- package/dist/chunks/{tooltip.DOvci5lX.js.map → tooltip.CfER_5In.js.map} +1 -1
- package/dist/chunks/{tutorial.QwHbq1FO.js → tutorial.CTzjDY6m.js} +5 -5
- package/dist/chunks/{tutorial.QwHbq1FO.js.map → tutorial.CTzjDY6m.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DHpjo2tV.js → use-cached-selected-values.D6lOsd0o.js} +431 -422
- package/dist/chunks/use-cached-selected-values.D6lOsd0o.js.map +1 -0
- 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/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +54 -54
- 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 +13 -13
- 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 +8 -4
- package/dist/styles/bento-light.css +8 -4
- package/dist/styles/bento.css +8 -4
- package/dist/styles/legacy.css +8 -5
- package/dist/styles/styleguide.css +8 -4
- 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/tutorial.js +1 -1
- package/dist/web-types.json +85 -5
- package/package.json +18 -6
- package/dist/chunks/button.D-3uUhuG.js.map +0 -1
- package/dist/chunks/calendar.D4dMXwc0.js.map +0 -1
- package/dist/chunks/dashboard-section.DlIwNKkx.js.map +0 -1
- package/dist/chunks/data-grid-template.BJTWe6Ty.js +0 -69
- package/dist/chunks/data-grid-template.BJTWe6Ty.js.map +0 -1
- package/dist/chunks/data-grid.BTxmzkic.js.map +0 -1
- package/dist/chunks/date-range-picker.nTv7S5oB.js.map +0 -1
- package/dist/chunks/filter-bar.Cu4I3kJB.js.map +0 -1
- package/dist/chunks/menu.BoxhffPs.js.map +0 -1
- package/dist/chunks/tabs.C8CgvNt4.js +0 -214
- package/dist/chunks/tabs.C8CgvNt4.js.map +0 -1
- package/dist/chunks/teleport.BHfrns33.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DHpjo2tV.js.map +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, useSlots as u, ref as T, computed as b, provide as v, toRef as y } from "vue";
|
|
2
|
-
import { B as C } from "./header.DWx6s2nt.js";
|
|
3
|
-
import { a as g, B as R } from "./tabs.C8CgvNt4.js";
|
|
4
|
-
import { u as I } from "./use-has-slot.C9lQZ6nz.js";
|
|
5
|
-
import { D as S } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
6
|
-
import { n as h } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
-
import "../assets/data-grid-template.css";
|
|
8
|
-
const B = {}, k = /* @__PURE__ */ m({
|
|
9
|
-
...B,
|
|
10
|
-
__name: "data-grid-template",
|
|
11
|
-
props: {
|
|
12
|
-
/**
|
|
13
|
-
* The header that goes to the top of the template
|
|
14
|
-
*/
|
|
15
|
-
header: {
|
|
16
|
-
type: Object,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* All the tab properties that can be set on the inner tab components.
|
|
21
|
-
* - tabs.activeTabIndex: the currently active tab index.
|
|
22
|
-
* - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.
|
|
23
|
-
*/
|
|
24
|
-
tabs: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* Renders the tabs with a sticky positioning
|
|
30
|
-
*/
|
|
31
|
-
stickyTabs: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["update:tabs"],
|
|
37
|
-
setup(i, { emit: t }) {
|
|
38
|
-
const e = i, a = u(), l = I(a), o = T(null), d = b(() => {
|
|
39
|
-
var s, n;
|
|
40
|
-
return (n = (s = o.value) == null ? void 0 : s.$refs) == null ? void 0 : n.tablist;
|
|
41
|
-
}), _ = b(() => Object.keys(a).filter((s) => s == null ? void 0 : s.includes("tab-"))), p = (s) => {
|
|
42
|
-
t("update:tabs", { ...e.tabs, activeTabIndex: s });
|
|
43
|
-
}, f = (s) => {
|
|
44
|
-
var n, r;
|
|
45
|
-
return ((r = (n = e == null ? void 0 : e.tabs.tabs) == null ? void 0 : n[s]) == null ? void 0 : r.title) ?? `Tab ${s + 1}`;
|
|
46
|
-
}, c = () => ({ isDataGridTemplate: !0, stickyTabs: y(e, "stickyTabs"), tabsRef: d });
|
|
47
|
-
return v(S, c), { __sfc: !0, props: e, slots: a, hasSlot: l, emit: t, tabsRef: o, computedTabsRef: d, tabsSlots: _, emitTabs: p, getTabTitle: f, registerDatagridInDataGridTemplate: c, BentoHeader: C, BentoTab: R, BentoTabs: g };
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var D = function() {
|
|
51
|
-
var t = this, e = t._self._c, a = t._self._setupProxy;
|
|
52
|
-
return e("main", { staticClass: "b-data-grid-template b-data-grid-template--sticky-tabs" }, [e(a.BentoHeader, t._b({ staticClass: "b-data-grid-template__header", attrs: { variant: "component" }, scopedSlots: t._u([a.hasSlot("infoIconTooltipContent") ? { key: "infoIconTooltipContent", fn: function() {
|
|
53
|
-
return [t._t("infoIconTooltipContent")];
|
|
54
|
-
}, proxy: !0 } : null], null, !0) }, "bento-header", t.header, !1)), a.hasSlot("additionalContent") ? e("div", { staticClass: "b-data-grid-template__additional-content" }, [t._t("additionalContent")], 2) : t._e(), a.tabsSlots.length > 1 ? e(a.BentoTabs, { ref: "tabsRef", staticClass: "b-data-grid-template__tabs", attrs: { "active-tab-index": t.tabs.activeTabIndex }, on: { "update:active-tab-index": a.emitTabs } }, t._l(a.tabsSlots, function(l, o) {
|
|
55
|
-
return e(a.BentoTab, { key: `tab-${o}`, attrs: { title: a.getTabTitle(o) } }, [t._t(`tab-${o + 1}`)], 2);
|
|
56
|
-
}), 1) : t._t("default")], 2);
|
|
57
|
-
}, E = [], G = /* @__PURE__ */ h(
|
|
58
|
-
k,
|
|
59
|
-
D,
|
|
60
|
-
E,
|
|
61
|
-
!1,
|
|
62
|
-
null,
|
|
63
|
-
"ddbe483e"
|
|
64
|
-
);
|
|
65
|
-
const N = G.exports;
|
|
66
|
-
export {
|
|
67
|
-
N as d
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=data-grid-template.BJTWe6Ty.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-grid-template.BJTWe6Ty.js","sources":["../../src/templates/data-grid-template/data-grid-template.vue"],"sourcesContent":["<template>\n <main class=\"b-data-grid-template b-data-grid-template--sticky-tabs\">\n <bento-header v-bind=\"header\" variant=\"component\" class=\"b-data-grid-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n <div v-if=\"hasSlot('additionalContent')\" class=\"b-data-grid-template__additional-content\">\n <slot name=\"additionalContent\" />\n </div>\n <bento-tabs\n v-if=\"tabsSlots.length > 1\"\n ref=\"tabsRef\"\n :active-tab-index=\"tabs.activeTabIndex\"\n class=\"b-data-grid-template__tabs\"\n @update:active-tab-index=\"emitTabs\"\n >\n <bento-tab v-for=\"(_item, index) in tabsSlots\" :key=\"`tab-${index}`\" :title=\"getTabTitle(index)\">\n <slot :name=\"`tab-${index + 1}`\" />\n </bento-tab>\n </bento-tabs>\n <slot v-else />\n </main>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, provide, Ref, ref, toRef, UnwrapRef, useSlots } from 'vue';\n import { BentoHeader } from '@/components/header';\n import { BentoTab, BentoTabs } from '@/components/tabs';\n import { useHasSlot } from '@/composables';\n import { DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY } from './data-grid-template.keys';\n import type {\n BentoDataGridTemplateDataGrid,\n BentoDataGridTemplateHeader,\n BentoDataGridTemplateTabs,\n } from './data-grid-template.types';\n\n const props = defineProps({\n /**\n * The header that goes to the top of the template\n */\n header: {\n type: Object as PropType<BentoDataGridTemplateHeader>,\n required: true,\n },\n\n /**\n * All the tab properties that can be set on the inner tab components.\n * - tabs.activeTabIndex: the currently active tab index.\n * - tabs.tabs: an array of BentoTab props, the first item in the array will affect the `tab-1` slot and so on.\n */\n tabs: {\n type: Object as PropType<BentoDataGridTemplateTabs>,\n default: undefined,\n },\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyTabs: {\n type: Boolean,\n default: false,\n },\n });\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits([\"update:tabs\"]);\n\n const tabsRef = ref(null);\n\n const computedTabsRef = computed(() => tabsRef.value?.$refs?.tablist);\n\n const tabsSlots = computed(() => Object.keys(slots).filter(el => el?.includes('tab-')));\n\n const emitTabs = (newActiveTabIndex: number) => {\n emit('update:tabs', { ...props.tabs, activeTabIndex: newActiveTabIndex });\n };\n\n const getTabTitle = (index: number) => props?.tabs.tabs?.[index]?.title ?? `Tab ${index + 1}`;\n\n const registerDatagridInDataGridTemplate: BentoDataGridTemplateDataGrid = () => {\n const isDataGridTemplate = true;\n const stickyTabs: Ref<boolean> = toRef(props, 'stickyTabs');\n const tabsRef: Ref<UnwrapRef<HTMLDivElement>> | null = computedTabsRef;\n\n // return values to the Tab component\n return { isDataGridTemplate, stickyTabs, tabsRef };\n };\n\n provide(DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY, registerDatagridInDataGridTemplate);\n</script>\n\n<script lang=\"ts\">\n /**\n * The data grid template is a restrictive, full-page data grid used to display information from a data set.\n * You can use this data grid template when your user needs a clear overview of data or a way of organizing and analyzing the data in their own way.\n * This data grid template shouldn’t be confused with the data grid.\n *\n * @example\n * import { BentoDataGridTemplate } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDataGridTemplate },\n * template: `\n * // If you want to display multiple data grids in the same page (they will be rendered in different tabs)\n * <bento-data-grid-template>\n * <template #tab-1><bento-data-grid v-bind=\"your-data-grid-args\" title=\"Title for tab 1\"/></template>\n * <template #tab-2><bento-data-grid v-bind=\"your-data-grid-args\" title=\"Title for tab 2\"/></template>\n * </bento-data-grid-template>\n * // Alternatively, if you only want to pass one data grid to your template:\n * <bento-data-grid-template>\n * <template #default><bento-data-grid v-bind=\"your-data-grid-args\"/></template>\n * </bento-data-grid-template>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./data-grid-template.scss\" />\n"],"names":["__default__","slots","useSlots","hasSlot","useHasSlot","tabsRef","ref","computedTabsRef","computed","_b","_a","tabsSlots","el","emitTabs","newActiveTabIndex","emit","props","getTabTitle","index","registerDatagridInDataGridTemplate","toRef","provide","DATA_GRID_REGISTER_TEMPLATE_INJECTION_KEY"],"mappings":";;;;;;;AAqHI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAIAI,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,MAAA;;AAAA,cAAAC,KAAAC,IAAAL,EAAA,UAAA,gBAAAK,EAAA,UAAA,gBAAAD,EAAA;AAAA,KAAA,GAEAE,IAAAH,EAAA,MAAA,OAAA,KAAAP,CAAA,EAAA,OAAA,CAAAW,MAAAA,KAAA,gBAAAA,EAAA,SAAA,OAAA,CAAA,GAEAC,IAAA,CAAAC,MAAA;AACI,MAAAC,EAAA,eAAA,EAAA,GAAAC,EAAA,MAAA,gBAAAF,EAAA,CAAA;AAAA,IAAwE,GAG5EG,IAAA,CAAAC,MAAA;;AAAA,eAAAT,KAAAC,IAAAM,KAAA,gBAAAA,EAAA,KAAA,SAAA,gBAAAN,EAAAQ,OAAA,gBAAAT,EAAA,UAAA,OAAAS,IAAA,CAAA;AAAA,OAEAC,IAAA,OAMI,EAAA,wBAAA,YAJAC,EAAAJ,GAAA,YAAA,GAIA,SAHAT,EAGA;AAGJ,WAAAc,EAAAC,GAAAH,CAAA;;;;;;;;;;;;;;;;;;;"}
|