@adyen/bento-vue2 1.49.0 → 1.50.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 +58 -74
- 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/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.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/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/button.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.pYOeP8WX.js → action-bar.CGJJrMpa.js} +3 -3
- package/dist/chunks/{action-bar.pYOeP8WX.js.map → action-bar.CGJJrMpa.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BxWulRXh.js → button-actions-with-menu.C5OE7oOu.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.BxWulRXh.js.map → button-actions-with-menu.C5OE7oOu.js.map} +1 -1
- package/dist/chunks/{checkbox-group.4TiIcnc7.js → checkbox-group.wa6Mtmxa.js} +2 -2
- package/dist/chunks/{checkbox-group.4TiIcnc7.js.map → checkbox-group.wa6Mtmxa.js.map} +1 -1
- package/dist/chunks/{checkbox.CE9NdY0R.js → checkbox.BPvnJrvd.js} +17 -17
- package/dist/chunks/{checkbox.CE9NdY0R.js.map → checkbox.BPvnJrvd.js.map} +1 -1
- package/dist/chunks/{code-snippet.DSsZWtwa.js → code-snippet.3s8WCnke.js} +2 -2
- package/dist/chunks/{code-snippet.DSsZWtwa.js.map → code-snippet.3s8WCnke.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DzMn8yDZ.js → dashboard-section.BgyN5u0K.js} +2 -2
- package/dist/chunks/{dashboard-section.DzMn8yDZ.js.map → dashboard-section.BgyN5u0K.js.map} +1 -1
- package/dist/chunks/{dashed-underline.COTMts4l.js → dashed-underline.Cvn5IoHT.js} +2 -2
- package/dist/chunks/{dashed-underline.COTMts4l.js.map → dashed-underline.Cvn5IoHT.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BPBneEHq.js → data-grid-template.DtWM0Tnu.js} +2 -2
- package/dist/chunks/{data-grid-template.BPBneEHq.js.map → data-grid-template.DtWM0Tnu.js.map} +1 -1
- package/dist/chunks/{data-grid.iqFUbiZy.js → data-grid.N5Rxo6QB.js} +11 -11
- package/dist/chunks/data-grid.N5Rxo6QB.js.map +1 -0
- package/dist/chunks/{date-picker.C68IAqHR.js → date-picker.Byv5Z-Xj.js} +2 -2
- package/dist/chunks/{date-picker.C68IAqHR.js.map → date-picker.Byv5Z-Xj.js.map} +1 -1
- package/dist/chunks/{date-range-picker.dcQRDNS7.js → date-range-picker.CUS9Q53T.js} +4 -4
- package/dist/chunks/{date-range-picker.dcQRDNS7.js.map → date-range-picker.CUS9Q53T.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DhENnOHT.js → dropdown-tag.ClUMccWv.js} +3 -3
- package/dist/chunks/{dropdown-tag.DhENnOHT.js.map → dropdown-tag.ClUMccWv.js.map} +1 -1
- package/dist/chunks/{dropdown.BBHNOorv.js → dropdown.CC1i41NX.js} +263 -263
- package/dist/chunks/dropdown.CC1i41NX.js.map +1 -0
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.mLUYQnz1.js → file-uploader.DTkxh9Ct.js} +244 -248
- package/dist/chunks/file-uploader.DTkxh9Ct.js.map +1 -0
- package/dist/chunks/{filter-bar.CFcu6P8H.js → filter-bar.gj9sdW5T.js} +9 -9
- package/dist/chunks/{filter-bar.CFcu6P8H.js.map → filter-bar.gj9sdW5T.js.map} +1 -1
- package/dist/chunks/{header.BeS6ktqU.js → header.5rAXro_L.js} +48 -48
- package/dist/chunks/{header.BeS6ktqU.js.map → header.5rAXro_L.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js → info-icon-with-popover.B0zJWJZn.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js.map → info-icon-with-popover.B0zJWJZn.js.map} +1 -1
- package/dist/chunks/{input-field-password.Dez8haIj.js → input-field-password.PU9SY4FC.js} +3 -3
- package/dist/chunks/{input-field-password.Dez8haIj.js.map → input-field-password.PU9SY4FC.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CPTonsjM.js → input-field-phone-number.D2juJ9ZD.js} +2 -2
- package/dist/chunks/{input-field-phone-number.CPTonsjM.js.map → input-field-phone-number.D2juJ9ZD.js.map} +1 -1
- package/dist/chunks/{input-field.lEMEBT7J.js → input-field.BPbe00eB.js} +2 -2
- package/dist/chunks/{input-field.lEMEBT7J.js.map → input-field.BPbe00eB.js.map} +1 -1
- package/dist/chunks/{menu.lbODB0y3.js → menu.BC7ynpgF.js} +24 -24
- package/dist/chunks/{menu.lbODB0y3.js.map → menu.BC7ynpgF.js.map} +1 -1
- package/dist/chunks/{pagination.CuJ-P2bO.js → pagination.CT-h2q0J.js} +2 -2
- package/dist/chunks/{pagination.CuJ-P2bO.js.map → pagination.CT-h2q0J.js.map} +1 -1
- package/dist/chunks/payment-method.Bu76jY3c.js +59 -0
- package/dist/chunks/payment-method.Bu76jY3c.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.BQGNMbQN.js → popover.CRdrSmFW.js} +17 -16
- package/dist/chunks/popover.CRdrSmFW.js.map +1 -0
- package/dist/chunks/{search-bar.Dk-GuqgF.js → search-bar.bMOGN8_E.js} +3 -3
- package/dist/chunks/{search-bar.Dk-GuqgF.js.map → search-bar.bMOGN8_E.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DC2GrGaQ.js → secondary-nav.C9sm93do.js} +2 -2
- package/dist/chunks/{secondary-nav.DC2GrGaQ.js.map → secondary-nav.C9sm93do.js.map} +1 -1
- package/dist/chunks/{selection-card-group.B-YY-iKp.js → selection-card-group.0O3gmtoi.js} +8 -8
- package/dist/chunks/{selection-card-group.B-YY-iKp.js.map → selection-card-group.0O3gmtoi.js.map} +1 -1
- package/dist/chunks/{toggle-button.BX_9vB0d.js → toggle-button.DK4H4sHT.js} +5 -5
- package/dist/chunks/toggle-button.DK4H4sHT.js.map +1 -0
- package/dist/chunks/{tutorial.BWWTUI9f.js → tutorial.BbQox1EZ.js} +3 -3
- package/dist/chunks/{tutorial.BWWTUI9f.js.map → tutorial.BbQox1EZ.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.C5gHa-dC.js → use-cached-selected-values.a_5Iw6Dh.js} +258 -254
- package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.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 +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/header.js +1 -1
- package/dist/index.js +28 -28
- 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/internal.js +3 -3
- package/dist/menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.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/styles/bento-dark.css +1 -1
- package/dist/styles/bento-light.css +1 -1
- package/dist/styles/bento.css +1 -1
- package/dist/styles/legacy.css +2 -0
- package/dist/styles/styleguide.css +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +41 -39
- package/package.json +4 -4
- package/dist/chunks/data-grid.iqFUbiZy.js.map +0 -1
- package/dist/chunks/dropdown.BBHNOorv.js.map +0 -1
- package/dist/chunks/file-uploader.mLUYQnz1.js.map +0 -1
- package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
- package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
- package/dist/chunks/popover.BQGNMbQN.js.map +0 -1
- package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C5gHa-dC.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
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.
|
|
2
|
+
import { B as C } from "./header.5rAXro_L.js";
|
|
3
3
|
import { a as g, B as R } from "./tabs.5zgaD1k3.js";
|
|
4
4
|
import { u as I } from "./use-has-slot.C9lQZ6nz.js";
|
|
5
5
|
import { D as S } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
@@ -66,4 +66,4 @@ const N = G.exports;
|
|
|
66
66
|
export {
|
|
67
67
|
N as d
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=data-grid-template.
|
|
69
|
+
//# sourceMappingURL=data-grid-template.DtWM0Tnu.js.map
|
package/dist/chunks/{data-grid-template.BPBneEHq.js.map → data-grid-template.DtWM0Tnu.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-grid-template.
|
|
1
|
+
{"version":3,"file":"data-grid-template.DtWM0Tnu.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;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,15 +6,15 @@ import { C as lt } from "./cross.CsUPDmaA.js";
|
|
|
6
6
|
import { N as Ge } from "./checkbox-input.Bo4NxNOh.js";
|
|
7
7
|
import { d as dn } from "./popper-container.CsW4R0-t.js";
|
|
8
8
|
import { K as te, B as cn } from "./tooltip.Bu8o7uyZ.js";
|
|
9
|
-
import { B as un } from "./action-bar.
|
|
10
|
-
import { B as fn } from "./pagination.
|
|
9
|
+
import { B as un } from "./action-bar.CGJJrMpa.js";
|
|
10
|
+
import { B as fn } from "./pagination.CT-h2q0J.js";
|
|
11
11
|
import { B as Ne } from "./loading-indicator.z8COalOc.js";
|
|
12
12
|
import { B as he, p as at } from "./typography.J1v_SPG3.js";
|
|
13
13
|
import { u as Ie } from "./use-has-slot.C9lQZ6nz.js";
|
|
14
14
|
import { u as gn } from "./aria-label.CaUURpnB.js";
|
|
15
15
|
import { g as _n } from "./get-slot-text.BQS5Olxm.js";
|
|
16
16
|
import { u as ie } from "./i18n.BQkEbtPM.js";
|
|
17
|
-
import { B as Le } from "./filter-bar.
|
|
17
|
+
import { B as Le } from "./filter-bar.gj9sdW5T.js";
|
|
18
18
|
import { B as vn } from "./empty-state.BnHTBgKG.js";
|
|
19
19
|
import { E as Cn } from "./tabs.keys.Bc2pSKRw.js";
|
|
20
20
|
import { D as hn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
@@ -22,22 +22,22 @@ import { o as De } from "./resize.Bqks3WUm.js";
|
|
|
22
22
|
import "./index.Cl4_42j5.js";
|
|
23
23
|
import { u as mn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
24
24
|
import { g as Re } from "./generate-uid.NJ8tVoha.js";
|
|
25
|
-
import { B as it } from "./checkbox.
|
|
25
|
+
import { B as it } from "./checkbox.BPvnJrvd.js";
|
|
26
26
|
import { B as rt } from "./button.CdAFZa4V.js";
|
|
27
|
-
import { B as dt, O as pn, D as Sn } from "./menu.
|
|
27
|
+
import { B as dt, O as pn, D as Sn } from "./menu.BC7ynpgF.js";
|
|
28
28
|
import { E as Ln } from "./link.DZlbzVSB.js";
|
|
29
29
|
import { C as wn } from "./copy.DMlIj53I.js";
|
|
30
30
|
import { C as En, a as Rn } from "./chevron-up.DVfo78kV.js";
|
|
31
|
-
import { B as Fe } from "./toggle-button.
|
|
31
|
+
import { B as Fe } from "./toggle-button.DK4H4sHT.js";
|
|
32
32
|
import { e as yn, d as bn } from "./button-actions.BovYBINL.js";
|
|
33
33
|
import { B as On } from "./info-icon.C4_l0WAf.js";
|
|
34
|
-
import { a as We, B as An } from "./popover.
|
|
34
|
+
import { a as We, B as An } from "./popover.CRdrSmFW.js";
|
|
35
35
|
import { A as Tn } from "./dialog-page.Bf07JxdG.js";
|
|
36
36
|
import { H as Nn, S as In } from "./show.IEAxtCB7.js";
|
|
37
37
|
import { l as He } from "./events.CMzGybJJ.js";
|
|
38
38
|
import { B as ct } from "./toggle.CyaY0U0K.js";
|
|
39
|
-
import { B as Dn } from "./search-bar.
|
|
40
|
-
import { u as Fn } from "./dropdown.
|
|
39
|
+
import { B as Dn } from "./search-bar.bMOGN8_E.js";
|
|
40
|
+
import { u as Fn } from "./dropdown.CC1i41NX.js";
|
|
41
41
|
import { S as xn } from "./search.CBKhp7zB.js";
|
|
42
42
|
import { B as Mn } from "./directive.O3yEdalv.js";
|
|
43
43
|
import "../assets/data-grid.css";
|
|
@@ -327,7 +327,7 @@ const Bn = (s, t) => {
|
|
|
327
327
|
return ((h = u == null ? void 0 : u.children) == null ? void 0 : h.length) > 0 ? u.children.map((p) => e(p)).filter((p) => !a.value.includes(p)) : [];
|
|
328
328
|
}
|
|
329
329
|
);
|
|
330
|
-
f([...a.value, ...d]), _();
|
|
330
|
+
(d == null ? void 0 : d.length) > 0 ? (f([...a.value, ...d]), _()) : f(a.value);
|
|
331
331
|
}
|
|
332
332
|
), { onAllRowSelect: m, onRowSelect: c, onNestedRowSelect: l, allItemsSelectedState: i, selectedItems: a };
|
|
333
333
|
}, Yn = (s, t, n) => ({ isSorting: (i) => s.value.some((C) => C.field === i), getSortingDirection: (i) => {
|
|
@@ -2564,4 +2564,4 @@ export {
|
|
|
2564
2564
|
A as e,
|
|
2565
2565
|
Ce as f
|
|
2566
2566
|
};
|
|
2567
|
-
//# sourceMappingURL=data-grid.
|
|
2567
|
+
//# sourceMappingURL=data-grid.N5Rxo6QB.js.map
|