@adyen/bento-vue3 1.26.0 → 1.27.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/components.d.ts +4 -0
- package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +21 -2
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +71 -155
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +6 -6
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.e84acf30.js → base-button.a0140a4c.js} +2 -2
- package/dist/chunks/{base-button.e84acf30.js.map → base-button.a0140a4c.js.map} +1 -1
- package/dist/chunks/{base-modal.29e062d0.js → base-modal.4102f69d.js} +7 -7
- package/dist/chunks/{base-modal.29e062d0.js.map → base-modal.4102f69d.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.7fce47a2.js → button-actions-with-menu.4f311411.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.7fce47a2.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
- package/dist/chunks/{button-actions.642b37de.js → button-actions.82163994.js} +42 -40
- package/dist/chunks/button-actions.82163994.js.map +1 -0
- package/dist/chunks/{button.60dad578.js → button.ae4760cd.js} +27 -26
- package/dist/chunks/button.ae4760cd.js.map +1 -0
- package/dist/chunks/{calendar.f38cdab9.js → calendar.a9c5a68c.js} +6 -6
- package/dist/chunks/{calendar.f38cdab9.js.map → calendar.a9c5a68c.js.map} +1 -1
- package/dist/chunks/{checkbox-input.ab758a81.js → checkbox-input.99336948.js} +2 -2
- package/dist/chunks/{checkbox-input.ab758a81.js.map → checkbox-input.99336948.js.map} +1 -1
- package/dist/chunks/{checkbox.f55ee3a5.js → checkbox.9c30c07b.js} +4 -4
- package/dist/chunks/{checkbox.f55ee3a5.js.map → checkbox.9c30c07b.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js → checkmark-circle-fill.c45a999d.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.f3a69c6a.js.map → checkmark-circle-fill.c45a999d.js.map} +1 -1
- package/dist/chunks/{checkmark-small.d7e31e5e.js → checkmark-small.c79220d9.js} +2 -2
- package/dist/chunks/{checkmark-small.d7e31e5e.js.map → checkmark-small.c79220d9.js.map} +1 -1
- package/dist/chunks/{chevron-left.963d35e9.js → chevron-left.4ee92950.js} +2 -2
- package/dist/chunks/{chevron-left.963d35e9.js.map → chevron-left.4ee92950.js.map} +1 -1
- package/dist/chunks/{chevron-up.05ca20db.js → chevron-up.638a9f34.js} +2 -2
- package/dist/chunks/{chevron-up.05ca20db.js.map → chevron-up.638a9f34.js.map} +1 -1
- package/dist/chunks/{controls-group.9e0f17b2.js → controls-group.8357e3fd.js} +3 -3
- package/dist/chunks/{controls-group.9e0f17b2.js.map → controls-group.8357e3fd.js.map} +1 -1
- package/dist/chunks/{copy.852d4cb8.js → copy.60ee6ac3.js} +4 -4
- package/dist/chunks/{copy.852d4cb8.js.map → copy.60ee6ac3.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.81925c7f.js → cross-circle-fill.1abec1a2.js} +2 -2
- package/dist/chunks/{cross-circle-fill.81925c7f.js.map → cross-circle-fill.1abec1a2.js.map} +1 -1
- package/dist/chunks/{cross-small.9bc6a02f.js → cross-small.b85406fe.js} +2 -2
- package/dist/chunks/{cross-small.9bc6a02f.js.map → cross-small.b85406fe.js.map} +1 -1
- package/dist/chunks/{cross.a60533f6.js → cross.26509efc.js} +2 -2
- package/dist/chunks/{cross.a60533f6.js.map → cross.26509efc.js.map} +1 -1
- package/dist/chunks/{dialog-page.ea67bb14.js → dialog-page.cb6ce9b6.js} +3 -3
- package/dist/chunks/{dialog-page.ea67bb14.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js → dropdown-default-textbox.cda0798f.js} +5 -5
- package/dist/chunks/{dropdown-default-textbox.ad5063c2.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
- package/dist/chunks/{dropdown.d8587f36.js → dropdown.0ae3b842.js} +122 -132
- package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
- package/dist/chunks/{error-message.3fb5573a.js → error-message.d2bdeb80.js} +3 -3
- package/dist/chunks/{error-message.3fb5573a.js.map → error-message.d2bdeb80.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.59aefd1b.js → fixed-scroller.7b42cb1e.js} +3 -3
- package/dist/chunks/{fixed-scroller.59aefd1b.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
- package/dist/chunks/{footer-actions.89e68269.js → footer-actions.64f6f5d8.js} +4 -4
- package/dist/chunks/{footer-actions.89e68269.js.map → footer-actions.64f6f5d8.js.map} +1 -1
- package/dist/chunks/{index.96cd0d4c.js → index.2d7b4511.js} +15 -15
- package/dist/chunks/{index.96cd0d4c.js.map → index.2d7b4511.js.map} +1 -1
- package/dist/chunks/index.2fcd1233.js +103 -0
- package/dist/chunks/index.2fcd1233.js.map +1 -0
- package/dist/chunks/{index.9bf04b01.js → index.6295e754.js} +3 -3
- package/dist/chunks/{index.9bf04b01.js.map → index.6295e754.js.map} +1 -1
- package/dist/chunks/{index.030c1dd7.js → index.6bb6f38c.js} +7 -7
- package/dist/chunks/{index.030c1dd7.js.map → index.6bb6f38c.js.map} +1 -1
- package/dist/chunks/{index.ba3396d3.js → index.8aa536a8.js} +3 -3
- package/dist/chunks/{index.ba3396d3.js.map → index.8aa536a8.js.map} +1 -1
- package/dist/chunks/{index.8be283d5.js → index.9d7fb316.js} +2 -2
- package/dist/chunks/{index.8be283d5.js.map → index.9d7fb316.js.map} +1 -1
- package/dist/chunks/{index.5bdebf9d.js → index.a001a0a8.js} +7 -7
- package/dist/chunks/{index.5bdebf9d.js.map → index.a001a0a8.js.map} +1 -1
- package/dist/chunks/{index.07122048.js → index.b18c78d6.js} +2 -2
- package/dist/chunks/{index.07122048.js.map → index.b18c78d6.js.map} +1 -1
- package/dist/chunks/{index.6e0e9d21.js → index.eb38a6c4.js} +3 -3
- package/dist/chunks/{index.6e0e9d21.js.map → index.eb38a6c4.js.map} +1 -1
- package/dist/chunks/{index.a3d60e4f.js → index.ee15db35.js} +2 -2
- package/dist/chunks/{index.a3d60e4f.js.map → index.ee15db35.js.map} +1 -1
- package/dist/chunks/{index.146f967e.js → index.f9d081d2.js} +2 -2
- package/dist/chunks/{index.146f967e.js.map → index.f9d081d2.js.map} +1 -1
- package/dist/chunks/index.fedbb4c2.js +125 -0
- package/dist/chunks/index.fedbb4c2.js.map +1 -0
- package/dist/chunks/{info.205b4496.js → info.550f9511.js} +2 -2
- package/dist/chunks/{info.205b4496.js.map → info.550f9511.js.map} +1 -1
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.b6182b2e.js → listbox-option-tag.2aea037c.js} +3 -3
- package/dist/chunks/{listbox-option-tag.b6182b2e.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
- package/dist/chunks/{loading-button.0391ad8b.js → loading-button.6b81b546.js} +4 -4
- package/dist/chunks/{loading-button.0391ad8b.js.map → loading-button.6b81b546.js.map} +1 -1
- package/dist/chunks/{payment-method.31a68b9b.js → payment-method.d5595a7c.js} +2 -2
- package/dist/chunks/{payment-method.31a68b9b.js.map → payment-method.d5595a7c.js.map} +1 -1
- package/dist/chunks/{refresh.53691839.js → refresh.bd60f6a8.js} +2 -2
- package/dist/chunks/{refresh.53691839.js.map → refresh.bd60f6a8.js.map} +1 -1
- package/dist/chunks/{search.4e4ee4dd.js → search.ade93bda.js} +2 -2
- package/dist/chunks/{search.4e4ee4dd.js.map → search.ade93bda.js.map} +1 -1
- package/dist/chunks/{tooltip.1084d92b.js → tooltip.36172265.js} +4 -4
- package/dist/chunks/{tooltip.1084d92b.js.map → tooltip.36172265.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.98d8613c.js → use-bento-toast-controller.3dc4e113.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.98d8613c.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.852aeafe.js → use-cached-selected-values.3c312296.js} +396 -375
- package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
- package/dist/code-snippet.js +137 -135
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +169 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +52 -44
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +19 -19
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +85 -83
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +5 -5
- package/dist/index.js +66 -63
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +7 -7
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +66 -72
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +5 -5
- package/dist/sidepanel.js +7 -7
- package/dist/status.js +2 -2
- package/dist/stepper.js +5 -5
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +80 -78
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +125 -110
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -6
- package/dist/chunks/button-actions.642b37de.js.map +0 -1
- package/dist/chunks/button.60dad578.js.map +0 -1
- package/dist/chunks/checkmark.87919b24.js +0 -29
- package/dist/chunks/checkmark.87919b24.js.map +0 -1
- package/dist/chunks/dropdown.d8587f36.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.c8ffede1.js +0 -168
- package/dist/chunks/index.c8ffede1.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.852aeafe.js.map +0 -1
- /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
package/dist/country.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as _, toRefs as v, ref as f, watch as C, inject as b, resolveComponent as h, openBlock as u, createElementBlock as l, createElementVNode as B, toDisplayString as i, createBlock as N, withCtx as S, createTextVNode as g } from "vue";
|
|
2
|
-
import { B as L, d as O } from "./chunks/index.
|
|
2
|
+
import { B as L, d as O } from "./chunks/index.ee15db35.js";
|
|
3
3
|
import { c as p, B as o, u as E, a as I, b as $ } from "./chunks/country.types.002caff2.js";
|
|
4
4
|
import { u as T } from "./chunks/i18n.f7e6533e.js";
|
|
5
5
|
import { S as A } from "./chunks/summary-grid.keys.1d1028c2.js";
|
|
6
6
|
import { _ as M } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
7
|
-
import "./assets/
|
|
7
|
+
import "./assets/index19.css";
|
|
8
8
|
const U = _({
|
|
9
9
|
name: "bento-country",
|
|
10
10
|
components: { BentoTypography: L },
|
package/dist/currency.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, computed as U, resolveComponent as f, openBlock as T, createElementBlock as s, createBlock as p, withCtx as H, createTextVNode as l, toDisplayString as N, Fragment as Y } from "vue";
|
|
2
|
-
import { B as Z } from "./chunks/index.
|
|
2
|
+
import { B as Z } from "./chunks/index.ee15db35.js";
|
|
3
3
|
import { g as W } from "./chunks/get-slot-text.bead058f.js";
|
|
4
4
|
import { _ as V } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
5
|
const g = [
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { defineComponent as F, useSlots as R, ref as u, computed as d, watch as w, onUnmounted as O, openBlock as a, createElementBlock as i, createVNode as B, unref as t, mergeProps as H, createSlots as P, withCtx as f, renderSlot as l, createElementVNode as v, normalizeClass as p, createCommentVNode as W, createBlock as I, Fragment as U, renderList as q, onMounted as A } from "vue";
|
|
2
|
+
import { BentoHeader as D } from "./header.js";
|
|
3
|
+
import { BentoTabs as G, BentoTab as J } from "./tabs.js";
|
|
4
|
+
import { a as K } from "./chunks/index.fedbb4c2.js";
|
|
5
|
+
import { o as Q } from "./chunks/resize.a041304d.js";
|
|
6
|
+
import { u as E } from "./chunks/use-has-slot.4d98bf29.js";
|
|
7
|
+
import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
+
import { B as X } from "./chunks/index.b18c78d6.js";
|
|
9
|
+
import "./assets/index39.css";
|
|
10
|
+
const Y = { class: "b-dashboard-template" }, Z = { class: "b-dashboard-template__container b-dashboard-template__container--tabs" }, x = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "b-dashboard-template__container"
|
|
13
|
+
}, tt = {}, et = /* @__PURE__ */ F({
|
|
14
|
+
...tt,
|
|
15
|
+
__name: "dashboard-template",
|
|
16
|
+
props: {
|
|
17
|
+
header: null,
|
|
18
|
+
tabs: { default: void 0 },
|
|
19
|
+
stickyTabs: { type: Boolean, default: !1 },
|
|
20
|
+
stickyFilters: { type: Boolean, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
setup(c) {
|
|
23
|
+
const o = c, h = R(), n = E(h), r = u(), s = u(null), m = u(!1);
|
|
24
|
+
let _ = null;
|
|
25
|
+
const S = u(!1), y = u(0), k = d(() => s.value && o.stickyFilters), T = d(() => r.value && o.stickyTabs), V = d(() => ({
|
|
26
|
+
"b-dashboard-template__filters--sticky": o.stickyFilters,
|
|
27
|
+
"b-dashboard-template__filters--show-border": k.value && !T.value && m.value
|
|
28
|
+
})), z = d(() => ({
|
|
29
|
+
"b-dashboard-template__tabs--sticky": o.stickyTabs,
|
|
30
|
+
"b-dashboard-template__tabs--show-border": o.stickyTabs && S.value
|
|
31
|
+
})), j = d(() => ({
|
|
32
|
+
"b-dashboard-template__top-section--sticky": o.stickyTabs || o.stickyFilters
|
|
33
|
+
})), g = d(() => Object.keys(h).filter((e) => e == null ? void 0 : e.includes("tab-"))), L = (e) => {
|
|
34
|
+
var b, $;
|
|
35
|
+
return (($ = (b = o == null ? void 0 : o.tabs.tabs) == null ? void 0 : b[e]) == null ? void 0 : $.title) ?? `Tab ${e + 1}`;
|
|
36
|
+
}, { y: M } = K();
|
|
37
|
+
return w(
|
|
38
|
+
() => s.value,
|
|
39
|
+
() => {
|
|
40
|
+
!_ && s.value && (_ = Q(s.value, () => {
|
|
41
|
+
if (s.value && T.value) {
|
|
42
|
+
const e = s.value.offsetHeight;
|
|
43
|
+
y.value = k.value ? e : 0, r.value.tablistwrapper.$el.style.top = `${y.value}px`;
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
), w(
|
|
48
|
+
() => M.value,
|
|
49
|
+
() => {
|
|
50
|
+
var e, b;
|
|
51
|
+
k.value && (m.value = ((e = s.value) == null ? void 0 : e.getBoundingClientRect().top) === 0), T.value && (S.value = ((b = r.value.tablistwrapper.$el) == null ? void 0 : b.getBoundingClientRect().top) === y.value);
|
|
52
|
+
}
|
|
53
|
+
), O(() => {
|
|
54
|
+
_ == null || _.disconnect();
|
|
55
|
+
}), (e, b) => (a(), i("main", Y, [
|
|
56
|
+
B(t(D), H(c.header, {
|
|
57
|
+
variant: "page",
|
|
58
|
+
class: "b-dashboard-template__header"
|
|
59
|
+
}), P({ _: 2 }, [
|
|
60
|
+
t(n)("infoIconTooltipContent") ? {
|
|
61
|
+
name: "infoIconTooltipContent",
|
|
62
|
+
fn: f(() => [
|
|
63
|
+
l(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
64
|
+
]),
|
|
65
|
+
key: "0"
|
|
66
|
+
} : void 0
|
|
67
|
+
]), 1040),
|
|
68
|
+
v("div", {
|
|
69
|
+
class: p(["b-dashboard-template__top-section", t(j)])
|
|
70
|
+
}, [
|
|
71
|
+
t(n)("filters") ? (a(), i("div", {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref_key: "filtersRef",
|
|
74
|
+
ref: s,
|
|
75
|
+
class: p(["b-dashboard-template__filters", t(V)]),
|
|
76
|
+
"data-testid": "filters"
|
|
77
|
+
}, [
|
|
78
|
+
l(e.$slots, "filters", {}, void 0, !0)
|
|
79
|
+
], 2)) : W("", !0),
|
|
80
|
+
t(g).length > 1 ? (a(), I(t(G), {
|
|
81
|
+
key: 1,
|
|
82
|
+
ref_key: "tabsRef",
|
|
83
|
+
ref: r,
|
|
84
|
+
"active-tab-index": c.tabs.activeTabIndex,
|
|
85
|
+
class: p(["b-dashboard-template__tabs", t(z)]),
|
|
86
|
+
"data-testid": "tabs"
|
|
87
|
+
}, {
|
|
88
|
+
default: f(() => [
|
|
89
|
+
(a(!0), i(U, null, q(t(g), ($, C) => (a(), I(t(J), {
|
|
90
|
+
key: `tab-${C}`,
|
|
91
|
+
title: L(C)
|
|
92
|
+
}, {
|
|
93
|
+
default: f(() => [
|
|
94
|
+
v("div", Z, [
|
|
95
|
+
l(e.$slots, `tab-${C + 1}`, {}, void 0, !0)
|
|
96
|
+
])
|
|
97
|
+
]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1032, ["title"]))), 128))
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["active-tab-index", "class"])) : (a(), i("div", x, [
|
|
103
|
+
l(e.$slots, "default", {}, void 0, !0)
|
|
104
|
+
]))
|
|
105
|
+
], 2)
|
|
106
|
+
]));
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const vt = /* @__PURE__ */ N(et, [["__scopeId", "data-v-b18dccc2"]]), st = {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: "b-dashboard-section__controls"
|
|
112
|
+
}, ot = {
|
|
113
|
+
key: 1,
|
|
114
|
+
class: "b-dashboard-section__content"
|
|
115
|
+
}, at = {
|
|
116
|
+
key: 2,
|
|
117
|
+
class: "b-dashboard-section__columns"
|
|
118
|
+
}, nt = { class: "b-dashboard-section__content" }, lt = { class: "b-dashboard-section__content" }, it = {}, dt = /* @__PURE__ */ F({
|
|
119
|
+
...it,
|
|
120
|
+
__name: "dashboard-section",
|
|
121
|
+
props: {
|
|
122
|
+
header: null,
|
|
123
|
+
halfWidth: { type: Boolean, default: !1 }
|
|
124
|
+
},
|
|
125
|
+
setup(c) {
|
|
126
|
+
const o = c, h = R(), n = E(h), r = d(() => ({
|
|
127
|
+
"b-dashboard-section--half-width": o.halfWidth
|
|
128
|
+
}));
|
|
129
|
+
return A(() => {
|
|
130
|
+
if ((n("content-col-1") || n("content-col-2")) && o.halfWidth)
|
|
131
|
+
throw new Error("`content-col-1` and `content-col-2` cannot be used with half-width prop");
|
|
132
|
+
}), (s, m) => (a(), i("div", {
|
|
133
|
+
class: p(["b-dashboard-section", t(r)])
|
|
134
|
+
}, [
|
|
135
|
+
B(t(D), H(c.header, {
|
|
136
|
+
variant: "component",
|
|
137
|
+
class: "b-dashboard-template__header"
|
|
138
|
+
}), P({ _: 2 }, [
|
|
139
|
+
t(n)("infoIconTooltipContent") ? {
|
|
140
|
+
name: "infoIconTooltipContent",
|
|
141
|
+
fn: f(() => [
|
|
142
|
+
l(s.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
143
|
+
]),
|
|
144
|
+
key: "0"
|
|
145
|
+
} : void 0
|
|
146
|
+
]), 1040),
|
|
147
|
+
t(n)("controls") ? (a(), i("div", st, [
|
|
148
|
+
l(s.$slots, "controls", {}, void 0, !0)
|
|
149
|
+
])) : W("", !0),
|
|
150
|
+
!t(n)("content-col-1") && !t(n)("content-col-2") ? (a(), i("div", ot, [
|
|
151
|
+
l(s.$slots, "default", {}, void 0, !0)
|
|
152
|
+
])) : (a(), i("div", at, [
|
|
153
|
+
v("div", nt, [
|
|
154
|
+
l(s.$slots, "content-col-1", {}, void 0, !0)
|
|
155
|
+
]),
|
|
156
|
+
v("div", lt, [
|
|
157
|
+
l(s.$slots, "content-col-2", {}, void 0, !0)
|
|
158
|
+
])
|
|
159
|
+
])),
|
|
160
|
+
B(t(X), { class: "b-dashboard-section__divider" })
|
|
161
|
+
], 2));
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
const mt = /* @__PURE__ */ N(dt, [["__scopeId", "data-v-55110156"]]);
|
|
165
|
+
export {
|
|
166
|
+
mt as BentoDashboardSection,
|
|
167
|
+
vt as BentoDashboardTemplate
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=dashboard-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-template.js","sources":["../../vue2/src/templates/dashboard-template/dashboard-template.vue","../../vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue"],"sourcesContent":["<template>\n <main class=\"b-dashboard-template\">\n <bento-header v-bind=\"header\" variant=\"page\" class=\"b-dashboard-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n <div class=\"b-dashboard-template__top-section\" :class=\"dashboardTopSectionConditionalClasses\">\n <div\n v-if=\"hasSlot('filters')\"\n ref=\"filtersRef\"\n class=\"b-dashboard-template__filters\"\n :class=\"dashboardFiltersConditionalClasses\"\n data-testid=\"filters\"\n >\n <slot name=\"filters\" />\n </div>\n\n <bento-tabs\n v-if=\"tabsSlots.length > 1\"\n ref=\"tabsRef\"\n :active-tab-index=\"tabs.activeTabIndex\"\n class=\"b-dashboard-template__tabs\"\n :class=\"dashboardTabsConditionalClasses\"\n data-testid=\"tabs\"\n >\n <bento-tab v-for=\"(_item, index) in tabsSlots\" :key=\"`tab-${index}`\" :title=\"getTabTitle(index)\">\n <div class=\"b-dashboard-template__container b-dashboard-template__container--tabs\">\n <slot :name=\"`tab-${index + 1}`\" />\n </div>\n </bento-tab>\n </bento-tabs>\n <div v-else class=\"b-dashboard-template__container\">\n <slot />\n </div>\n </div>\n </main>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onUnmounted, ref, useSlots, watch } from 'vue';\n import { BentoHeader } from '@/components/header';\n import { BentoTab, BentoTabs } from '@/components/tabs';\n import { useWindowScroll } from '@vueuse/core';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useHasSlot } from '@/composables';\n import type { BentoDashboardTemplateHeader, BentoDashboardTemplateTabs } from './dashboard-template.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * The header that goes to the top of the template\n */\n header: BentoDashboardTemplateHeader;\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?: BentoDashboardTemplateTabs;\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyTabs?: boolean;\n\n /**\n * Renders the tabs with a sticky positioning\n */\n stickyFilters?: boolean;\n }>(),\n {\n tabs: undefined,\n stickyTabs: false,\n stickyFilters: false,\n }\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const tabsRef = ref<InstanceType<typeof BentoTabs>>();\n const filtersRef = ref<HTMLDivElement>(null);\n const isFiltersPinned = ref(false);\n let filtersElementObserver: ResizeObserver | null = null;\n const isTabsPinned = ref(false);\n const tabsPosition = ref(0);\n\n const hasStickyFilters = computed(() => filtersRef.value && props.stickyFilters);\n const hasStickyTabs = computed(() => tabsRef.value && props.stickyTabs);\n\n const dashboardFiltersConditionalClasses = computed(() => ({\n 'b-dashboard-template__filters--sticky': props.stickyFilters,\n 'b-dashboard-template__filters--show-border':\n hasStickyFilters.value && !hasStickyTabs.value && isFiltersPinned.value,\n }));\n\n const dashboardTabsConditionalClasses = computed(() => ({\n 'b-dashboard-template__tabs--sticky': props.stickyTabs,\n 'b-dashboard-template__tabs--show-border': props.stickyTabs && isTabsPinned.value,\n }));\n\n const dashboardTopSectionConditionalClasses = computed(() => ({\n 'b-dashboard-template__top-section--sticky': props.stickyTabs || props.stickyFilters,\n }));\n\n const tabsSlots = computed(() => Object.keys(slots).filter(el => el?.includes('tab-')));\n\n const getTabTitle = (index: number) => props?.tabs.tabs?.[index]?.title ?? `Tab ${index + 1}`;\n\n const { y } = useWindowScroll();\n\n watch(\n () => filtersRef.value,\n () => {\n if (!filtersElementObserver && filtersRef.value) {\n filtersElementObserver = observeSizeOfElement(filtersRef.value, () => {\n if (filtersRef.value && hasStickyTabs.value) {\n const filtersHeight = filtersRef.value.offsetHeight;\n tabsPosition.value = hasStickyFilters.value ? filtersHeight : 0;\n (tabsRef.value.tablistwrapper.$el as HTMLDivElement).style.top = `${tabsPosition.value}px`;\n }\n });\n }\n }\n );\n\n watch(\n () => y.value,\n () => {\n if (hasStickyFilters.value) {\n isFiltersPinned.value = filtersRef.value?.getBoundingClientRect().top === 0;\n }\n if (hasStickyTabs.value) {\n isTabsPinned.value =\n (tabsRef.value.tablistwrapper.$el as HTMLDivElement)?.getBoundingClientRect().top ===\n tabsPosition.value;\n }\n }\n );\n\n onUnmounted(() => {\n filtersElementObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dashboard template is a full page template used to visualize data on pages such as data dashboards and reports.\n *\n * @example\n * import { BentoDashboardTemplate, BentoDashboardSection } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDashboardTemplate, BentoDashboardSection },\n * template: `\n * <bento-dashboard-template :header=\"{ title: 'Dashboard'}\" :tabs=\"tabs: [{ title: 'Tab 1' }, { title: 'Tab 2' }]\" sticky-tabs sticky-filters>\n * <template #tab-1>\n * <bento-dashboard-section :header=\"{ title: 'Section'}\">\n * <template #controls>\n * // Add your controls here\n * </template>\n * // Add your content here\n * </bento-dashboard-section>\n * </template>\n * <template #tab-2>\n * <bento-dashboard-section :header=\"{ title: 'Section'}\">\n * // Add your content here\n * </bento-dashboard-section>\n * </template>\n * </bento-dashboard-template>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./dashboard-template.scss\" />\n","<template>\n <div class=\"b-dashboard-section\" :class=\"conditionalClasses\">\n <bento-header v-bind=\"header\" variant=\"component\" class=\"b-dashboard-template__header\">\n <template v-if=\"hasSlot('infoIconTooltipContent')\" #infoIconTooltipContent>\n <slot name=\"infoIconTooltipContent\" />\n </template>\n </bento-header>\n <div v-if=\"hasSlot('controls')\" class=\"b-dashboard-section__controls\">\n <slot name=\"controls\"></slot>\n </div>\n <div v-if=\"!hasSlot('content-col-1') && !hasSlot('content-col-2')\" class=\"b-dashboard-section__content\">\n <slot name=\"default\"></slot>\n </div>\n <div v-else class=\"b-dashboard-section__columns\">\n <div class=\"b-dashboard-section__content\"><slot name=\"content-col-1\"></slot></div>\n <div class=\"b-dashboard-section__content\"><slot name=\"content-col-2\"></slot></div>\n </div>\n <bento-divider class=\"b-dashboard-section__divider\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, onMounted, useSlots } from 'vue';\n import { BentoHeader } from '@/components/header';\n import { BentoDivider } from '@/components/divider';\n import { useHasSlot } from '@/composables';\n import type { BentoDashboardTemplateHeader } from '../../dashboard-template.types';\n\n const props = withDefaults(\n defineProps<{\n /**\n * The header of the section\n */\n header: BentoDashboardTemplateHeader;\n\n /**\n * Renders the section to take only half of the page\n */\n halfWidth?: boolean;\n }>(),\n {\n halfWidth: false,\n }\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const conditionalClasses = computed(() => ({\n 'b-dashboard-section--half-width': props.halfWidth,\n }));\n\n onMounted(() => {\n if ((hasSlot('content-col-1') || hasSlot('content-col-2')) && props.halfWidth) {\n throw new Error('`content-col-1` and `content-col-2` cannot be used with half-width prop');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dashboard section is subcomponent of Dashboard template meant to be used to create the different sections within the page.\n *\n * @example\n * import { BentoDashboardSection } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDashboardSection },\n * template: `\n * <bento-dashboard-section :header=\"{ title: 'Section' }\" half-width>\n * <template #controls>\n * // Add your controls here\n * </template>\n * // You can render content with two cols\n * <template #content-col-1>\n * // Add your content here\n * </template>\n * <template #content-col-2>\n * // Add your content here\n * </template>\n * // Or you can render full width content by using default slot\n * // Add your content here\n * </bento-dashboard-section>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./dashboard-section.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","tabsRef","ref","filtersRef","isFiltersPinned","filtersElementObserver","isTabsPinned","tabsPosition","hasStickyFilters","computed","props","hasStickyTabs","dashboardFiltersConditionalClasses","dashboardTabsConditionalClasses","dashboardTopSectionConditionalClasses","tabsSlots","el","getTabTitle","index","_b","_a","y","useWindowScroll","watch","observeSizeOfElement","filtersHeight","onUnmounted","__default__","conditionalClasses","onMounted"],"mappings":";;;;;;;;;;;;GA+KIA,KAAA,CAAA;;;;;;;;;;iBAhGAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,EAAA;AACA,QAAAG,IAAA;AACA,UAAAC,IAAAJ,EAAA,EAAA,GACAK,IAAAL,EAAA,CAAA,GAEAM,IAAAC,EAAA,MAAAN,EAAA,SAAAO,EAAA,aAAA,GACAC,IAAAF,EAAA,MAAAR,EAAA,SAAAS,EAAA,UAAA,GAEAE,IAAAH,EAAA,OAAA;AAAA,MAA2D,yCAAAC,EAAA;AAAA,MACR,8CAAAF,EAAA,SAAA,CAAAG,EAAA,SAAAP,EAAA;AAAA,IAEuB,EAAA,GAG1ES,IAAAJ,EAAA,OAAA;AAAA,MAAwD,sCAAAC,EAAA;AAAA,MACR,2CAAAA,EAAA,cAAAJ,EAAA;AAAA,IACgC,EAAA,GAGhFQ,IAAAL,EAAA,OAAA;AAAA,MAA8D,6CAAAC,EAAA,cAAAA,EAAA;AAAA,IACa,EAAA,GAG3EK,IAAAN,EAAA,MAAA,OAAA,KAAAZ,CAAA,EAAA,OAAA,CAAAmB,MAAAA,KAAA,gBAAAA,EAAA,SAAA,OAAA,CAAA,GAEAC,IAAA,CAAAC,MAAA;;AAAA,eAAAC,KAAAC,IAAAV,KAAA,gBAAAA,EAAA,KAAA,SAAA,gBAAAU,EAAAF,OAAA,gBAAAC,EAAA,UAAA,OAAAD,IAAA;AAAA,OAEA,EAAA,GAAAG,EAAA,IAAAC,EAAA;AAEA,WAAAC;AAAA,MAAA,MAAApB,EAAA;AAAA,MACqB,MAAA;AAEb,QAAA,CAAAE,KAAAF,EAAA,UACIE,IAAAmB,EAAArB,EAAA,OAAA,MAAA;AACI,cAAAA,EAAA,SAAAQ,EAAA,OAAA;AACI,kBAAAc,IAAAtB,EAAA,MAAA;AACA,YAAAI,EAAA,QAAAC,EAAA,QAAAiB,IAAA,GACAxB,EAAA,MAAA,eAAA,IAAA,MAAA,MAAA,GAAAM,EAAA;AAAA;AAAA,QACJ,CAAA;AAAA,MAER;AAAA,IACJ,GAGJgB;AAAA,MAAA,MAAAF,EAAA;AAAA,MACY,MAAA;;AAEJ,QAAAb,EAAA,UACIJ,EAAA,UAAAgB,IAAAjB,EAAA,UAAA,gBAAAiB,EAAA,wBAAA,SAAA,IAEJT,EAAA,UACIL,EAAA,UAAAa,IAAAlB,EAAA,MAAA,eAAA,QAAA,gBAAAkB,EAAA,wBAAA,SAAAZ,EAAA;AAAA,MAGJ;AAAA,IACJ,GAGJmB,EAAA,MAAA;AACI,MAAArB,KAAA,QAAAA,EAAA;AAAA,IAAmC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mGCzDvCsB,KAAA,CAAA;;;;;;;;iBAzCA9B,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEA+B,IAAAnB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;AAG7C,WAAAmB,EAAA,MAAA;AACI,WAAA9B,EAAA,eAAA,KAAAA,EAAA,eAAA,MAAAW,EAAA;AACI,cAAA,IAAA,MAAA,yEAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { BentoTabs as S, BentoTab as N } from "./tabs.js";
|
|
|
4
4
|
import { u as O } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
5
|
import { D as j } from "./chunks/data-grid-template.keys.a819a991.js";
|
|
6
6
|
import { _ as A } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
7
|
-
import "./assets/
|
|
7
|
+
import "./assets/index49.css";
|
|
8
8
|
const H = { class: "b-data-grid-template b-data-grid-template--sticky-tabs" }, L = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "b-data-grid-template__additional-content"
|
package/dist/data-grid.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ref as I, reactive as Qe, toRefs as et, computed as M, watchEffect as b
|
|
|
2
2
|
import { BentoActionBar as Mn } from "./action-bar.js";
|
|
3
3
|
import { BentoPagination as Un } from "./pagination.js";
|
|
4
4
|
import { BentoLoadingIndicator as Mt } from "./loading-indicator.js";
|
|
5
|
-
import { B as xe, p as Ut } from "./chunks/index.
|
|
5
|
+
import { B as xe, p as Ut } from "./chunks/index.ee15db35.js";
|
|
6
6
|
import { u as Dn } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { g as Pn } from "./chunks/get-slot-text.bead058f.js";
|
|
8
8
|
import { u as Ze } from "./chunks/i18n.f7e6533e.js";
|
|
@@ -11,28 +11,28 @@ import { BentoFilterBar as We } from "./filter-bar.js";
|
|
|
11
11
|
import { E as Fn } from "./chunks/tabs.keys.358742f2.js";
|
|
12
12
|
import { D as zn } from "./chunks/data-grid-template.keys.a819a991.js";
|
|
13
13
|
import { o as Dt } from "./chunks/resize.a041304d.js";
|
|
14
|
-
import { K as ve } from "./chunks/tooltip.
|
|
15
|
-
import { B as ct, a as Gn } from "./chunks/index.
|
|
16
|
-
import { a as Pt } from "./chunks/button.
|
|
14
|
+
import { K as ve } from "./chunks/tooltip.36172265.js";
|
|
15
|
+
import { B as ct, a as Gn } from "./chunks/index.a001a0a8.js";
|
|
16
|
+
import { a as Pt } from "./chunks/button.ae4760cd.js";
|
|
17
17
|
import { BentoToggle as kt } from "./toggle.js";
|
|
18
18
|
import { BentoSearchBar as Wn } from "./search-bar.js";
|
|
19
|
-
import { u as Hn } from "./chunks/dropdown.
|
|
20
|
-
import { B as Vn } from "./chunks/dropdown-default-textbox.
|
|
19
|
+
import { u as Hn } from "./chunks/dropdown.0ae3b842.js";
|
|
20
|
+
import { B as Vn } from "./chunks/dropdown-default-textbox.cda0798f.js";
|
|
21
21
|
import { _ as Z } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
22
|
-
import { C as Bn } from "./chunks/cross.
|
|
23
|
-
import { S as xn } from "./chunks/search.
|
|
22
|
+
import { C as Bn } from "./chunks/cross.26509efc.js";
|
|
23
|
+
import { S as xn } from "./chunks/search.ade93bda.js";
|
|
24
24
|
import { g as Zn } from "./chunks/unique-id.a2a2b458.js";
|
|
25
25
|
import { BentoToggleButton as Ft } from "./button.js";
|
|
26
|
-
import { B as zt } from "./chunks/checkbox.
|
|
26
|
+
import { B as zt } from "./chunks/checkbox.9c30c07b.js";
|
|
27
27
|
import { BentoInfoIcon as jn } from "./info-icon.js";
|
|
28
|
-
import { B as Ke, O as qn, D as Yn } from "./chunks/index.
|
|
29
|
-
import { A as Xn } from "./chunks/dialog-page.
|
|
30
|
-
import { l as gt } from "./chunks/events.
|
|
31
|
-
import { E as ft } from "./chunks/index.
|
|
32
|
-
import { C as Kn } from "./chunks/copy.
|
|
33
|
-
import { B as _t, a as vt } from "./chunks/loading-button.
|
|
34
|
-
import "./assets/
|
|
35
|
-
var Je = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Je || {}),
|
|
28
|
+
import { B as Ke, O as qn, D as Yn } from "./chunks/index.6bb6f38c.js";
|
|
29
|
+
import { A as Xn } from "./chunks/dialog-page.cb6ce9b6.js";
|
|
30
|
+
import { l as gt } from "./chunks/events.f14a214b.js";
|
|
31
|
+
import { E as ft } from "./chunks/index.eb38a6c4.js";
|
|
32
|
+
import { C as Kn } from "./chunks/copy.60ee6ac3.js";
|
|
33
|
+
import { B as _t, a as vt } from "./chunks/loading-button.6b81b546.js";
|
|
34
|
+
import "./assets/index21.css";
|
|
35
|
+
var Je = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Je || {}), me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e))(me || {}), he = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(he || {}), w = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(w || {}), He = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(He || {}), B = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SORT = "sort", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(B || {});
|
|
36
36
|
const Jn = (e, g) => {
|
|
37
37
|
const a = I(null), t = I(!1), _ = I(void 0), o = e.value.reduce((h, R) => (h[R.field] = null, h), {}), c = Qe(o), C = et(c);
|
|
38
38
|
let f = 0, A = "";
|
|
@@ -285,7 +285,7 @@ const Jn = (e, g) => {
|
|
|
285
285
|
return;
|
|
286
286
|
const f = [{
|
|
287
287
|
field: c,
|
|
288
|
-
direction: ((A = e.value.find((L) => L.field === c)) == null ? void 0 : A.direction) ===
|
|
288
|
+
direction: ((A = e.value.find((L) => L.field === c)) == null ? void 0 : A.direction) === he.ASCENDING ? he.DESCENDING : he.ASCENDING
|
|
289
289
|
}];
|
|
290
290
|
a(B.SORT, f);
|
|
291
291
|
} });
|
|
@@ -935,8 +935,8 @@ const As = /* @__PURE__ */ Z(Es, [["render", Is]]), Wt = {
|
|
|
935
935
|
return null;
|
|
936
936
|
const k = (te = t.sortBy.find(({ field: Y }) => Y === s.field)) == null ? void 0 : te.direction;
|
|
937
937
|
return k ? {
|
|
938
|
-
[
|
|
939
|
-
[
|
|
938
|
+
[he.ASCENDING]: He.ASCENDING,
|
|
939
|
+
[he.DESCENDING]: He.DESCENDING
|
|
940
940
|
}[k] : He.NONE;
|
|
941
941
|
}, u = M(() => (s) => t.hasDraggableColumns ? {
|
|
942
942
|
dragstart: (k) => {
|
|
@@ -1124,10 +1124,10 @@ const As = /* @__PURE__ */ Z(Es, [["render", Is]]), Wt = {
|
|
|
1124
1124
|
onClick: (Y) => n(m)($.field)
|
|
1125
1125
|
}, {
|
|
1126
1126
|
iconLeft: z(() => [
|
|
1127
|
-
n(U)($.field) ? n(U)($.field) === n(
|
|
1127
|
+
n(U)($.field) ? n(U)($.field) === n(he).ASCENDING ? (d(), P(n(ss), {
|
|
1128
1128
|
key: 1,
|
|
1129
1129
|
"svg-title": n(o)("sortColumnInDescendingOrder", { name: $.label })
|
|
1130
|
-
}, null, 8, ["svg-title"])) : n(U)($.field) === n(
|
|
1130
|
+
}, null, 8, ["svg-title"])) : n(U)($.field) === n(he).DESCENDING ? (d(), P(n(Cs), {
|
|
1131
1131
|
key: 2,
|
|
1132
1132
|
"svg-title": n(o)("sortColumnInAscendingOrder", { name: $.label })
|
|
1133
1133
|
}, null, 8, ["svg-title"])) : D("", !0) : (d(), P(n(El), {
|
|
@@ -1168,7 +1168,7 @@ const As = /* @__PURE__ */ Z(Es, [["render", Is]]), Wt = {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
1170
|
const zs = /* @__PURE__ */ Z(Fs, [["__scopeId", "data-v-5d2130a3"]]);
|
|
1171
|
-
var
|
|
1171
|
+
var Ce = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(Ce || {});
|
|
1172
1172
|
let At = 0;
|
|
1173
1173
|
const Gs = {
|
|
1174
1174
|
beforeCreate() {
|
|
@@ -1341,7 +1341,7 @@ const eo = /* @__PURE__ */ Z(Js, [["render", Qs], ["__scopeId", "data-v-3ce82b51
|
|
|
1341
1341
|
default: !1
|
|
1342
1342
|
}
|
|
1343
1343
|
},
|
|
1344
|
-
emits: [
|
|
1344
|
+
emits: [Ce.CONFIG_SETTINGS, Ce.UPDATE_COLUMNS],
|
|
1345
1345
|
setup(e, { emit: g }) {
|
|
1346
1346
|
const a = I(null), t = Zn("data-grid-config-settings-popover"), _ = I(null), o = I(!1), c = I(!0), C = I(null), f = I(""), A = Nt(e, "columns"), L = I(!1), v = Hn(f, A), r = () => {
|
|
1347
1347
|
f.value = "";
|
|
@@ -1360,13 +1360,13 @@ const eo = /* @__PURE__ */ Z(Js, [["render", Qs], ["__scopeId", "data-v-3ce82b51
|
|
|
1360
1360
|
...W,
|
|
1361
1361
|
visible: u.field === W.field ? u.visible : W.visible
|
|
1362
1362
|
}));
|
|
1363
|
-
g(
|
|
1363
|
+
g(Ce.UPDATE_COLUMNS, y);
|
|
1364
1364
|
}, R = (u) => {
|
|
1365
1365
|
u ? g(
|
|
1366
|
-
|
|
1366
|
+
Ce.UPDATE_COLUMNS,
|
|
1367
1367
|
e.columns.map((y) => ({ ...y, visible: !0 }))
|
|
1368
1368
|
) : g(
|
|
1369
|
-
|
|
1369
|
+
Ce.UPDATE_COLUMNS,
|
|
1370
1370
|
e.columns.map((y) => ({ ...y, visible: (y == null ? void 0 : y.mandatory) === !0 }))
|
|
1371
1371
|
);
|
|
1372
1372
|
}, N = (u) => {
|
|
@@ -1374,7 +1374,7 @@ const eo = /* @__PURE__ */ Z(Js, [["render", Qs], ["__scopeId", "data-v-3ce82b51
|
|
|
1374
1374
|
...W,
|
|
1375
1375
|
frozen: u.field === W.field ? !!(u != null && u.frozen) : !!(W != null && W.frozen)
|
|
1376
1376
|
}));
|
|
1377
|
-
g(
|
|
1377
|
+
g(Ce.UPDATE_COLUMNS, y);
|
|
1378
1378
|
}, U = (u) => {
|
|
1379
1379
|
o.value = u, c.value = i.value;
|
|
1380
1380
|
};
|
|
@@ -1392,7 +1392,7 @@ const eo = /* @__PURE__ */ Z(Js, [["render", Qs], ["__scopeId", "data-v-3ce82b51
|
|
|
1392
1392
|
DATAGRID_SELECT_FIELD_NAME: Le,
|
|
1393
1393
|
// Methods
|
|
1394
1394
|
setConfigSettingsPanelVisibility: U,
|
|
1395
|
-
emitCondensedToggle: (u) => g(
|
|
1395
|
+
emitCondensedToggle: (u) => g(Ce.CONFIG_SETTINGS, u),
|
|
1396
1396
|
toggleAllColumnVisibility: R,
|
|
1397
1397
|
clearAction: r,
|
|
1398
1398
|
toggleColumnFilter: l,
|
|
@@ -2238,6 +2238,13 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2238
2238
|
type: Array,
|
|
2239
2239
|
default: () => []
|
|
2240
2240
|
},
|
|
2241
|
+
/**
|
|
2242
|
+
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2243
|
+
*/
|
|
2244
|
+
noSpacingTop: {
|
|
2245
|
+
type: Boolean,
|
|
2246
|
+
default: !1
|
|
2247
|
+
},
|
|
2241
2248
|
/**
|
|
2242
2249
|
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
2243
2250
|
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
@@ -2352,11 +2359,12 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2352
2359
|
variant: ((p = t.emptyState) == null ? void 0 : p.variant) === "embedded" || ((T = t.emptyState) == null ? void 0 : T.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
2353
2360
|
};
|
|
2354
2361
|
}), nn = M(() => ({
|
|
2355
|
-
[`b-data-grid--${
|
|
2356
|
-
[`b-data-grid--${
|
|
2357
|
-
[`b-data-grid--${
|
|
2358
|
-
[`b-data-grid--${
|
|
2359
|
-
[`b-data-grid--${
|
|
2362
|
+
[`b-data-grid--${me.OUTLINE}`]: t.outline,
|
|
2363
|
+
[`b-data-grid--${me.SCROLL}`]: t.fitContent || Me.value,
|
|
2364
|
+
[`b-data-grid--${me.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
2365
|
+
[`b-data-grid--${me.OVERFLOW_SHADOW_LEFT}`]: De.value && !W.value,
|
|
2366
|
+
[`b-data-grid--${me.OVERFLOW_SHADOW_RIGHT}`]: Qt.value,
|
|
2367
|
+
[`b-data-grid--${me.NO_SPACING_TOP}`]: t.noSpacingTop
|
|
2360
2368
|
})), ln = M(() => _e.value.findIndex((p) => p.columnSet.length)), sn = (p, T) => {
|
|
2361
2369
|
var ne;
|
|
2362
2370
|
return {
|
|
@@ -2368,7 +2376,7 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2368
2376
|
};
|
|
2369
2377
|
}, it = M(() => !(t.selectable && W.value === 1) || De.value), on = (p) => ({
|
|
2370
2378
|
"b-data-grid__row-cell-set--frozen": p,
|
|
2371
|
-
[`b-data-grid__row-cell-set--${
|
|
2379
|
+
[`b-data-grid__row-cell-set--${me.OVERFLOW_SHADOW_LEFT}`]: p && De.value,
|
|
2372
2380
|
"b-data-grid__row-cell-set--frozen-separator": p && it.value,
|
|
2373
2381
|
"b-data-grid__row-cell-set--unfrozen": !p
|
|
2374
2382
|
}), an = M(() => {
|
|
@@ -2481,7 +2489,7 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2481
2489
|
F != null && F.length ? (d(), P(n(zs), X({
|
|
2482
2490
|
key: `data-grid-columns-${Q}`,
|
|
2483
2491
|
ref_for: !0,
|
|
2484
|
-
ref: (
|
|
2492
|
+
ref: (pe) => rn(pe),
|
|
2485
2493
|
columns: F,
|
|
2486
2494
|
"has-resizable-columns": e.hasResizableColumns,
|
|
2487
2495
|
"sort-by": e.sortBy,
|
|
@@ -2499,16 +2507,16 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2499
2507
|
"selectable-across-pages": n(gn),
|
|
2500
2508
|
"truncate-column-headers": e.truncateColumnHeaders
|
|
2501
2509
|
}, Be(n(Bt)), {
|
|
2502
|
-
onColumnHover: T[2] || (T[2] = (
|
|
2510
|
+
onColumnHover: T[2] || (T[2] = (pe) => be.value = pe),
|
|
2503
2511
|
onColumnMove: n(Zt),
|
|
2504
2512
|
onColumnUpdate: n(we),
|
|
2505
2513
|
onColumnResize: vn,
|
|
2506
2514
|
onColumnResizing: n(G),
|
|
2507
2515
|
onSelectAllRows: n(st),
|
|
2508
|
-
onSelectAllAcrossPages: T[3] || (T[3] = (
|
|
2516
|
+
onSelectAllAcrossPages: T[3] || (T[3] = (pe) => s(n(w).SELECT_ALL_ACROSS_PAGES)),
|
|
2509
2517
|
onSort: mn
|
|
2510
2518
|
}), Ve({ _: 2 }, [
|
|
2511
|
-
fe(n(_), (
|
|
2519
|
+
fe(n(_), (pe, ke) => ({
|
|
2512
2520
|
name: ke,
|
|
2513
2521
|
fn: z((Ee) => [
|
|
2514
2522
|
Se(p.$slots, ke, Ye(Xe(Ee)), void 0, !0)
|
|
@@ -2562,10 +2570,10 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2562
2570
|
"aria-selected": fn(F),
|
|
2563
2571
|
onClick: (ie) => un(F, ie)
|
|
2564
2572
|
}, [
|
|
2565
|
-
(d(!0), E(ae, null, fe(n(_e), ({ columnSet: ie, id: Pe, isFrozenColumns:
|
|
2573
|
+
(d(!0), E(ae, null, fe(n(_e), ({ columnSet: ie, id: Pe, isFrozenColumns: pe }, ke) => (d(), E(ae, null, [
|
|
2566
2574
|
ie != null && ie.length ? (d(), E("div", {
|
|
2567
2575
|
key: `data-grid-rows-${Pe}`,
|
|
2568
|
-
class: de(["b-data-grid__cells", on(
|
|
2576
|
+
class: de(["b-data-grid__cells", on(pe)]),
|
|
2569
2577
|
"data-testid": `data-grid-${Pe}-rows`
|
|
2570
2578
|
}, [
|
|
2571
2579
|
(d(!0), E(ae, null, fe(ie, (Ee, yn) => (d(), P(n(ko), {
|
|
@@ -2634,13 +2642,13 @@ const ko = /* @__PURE__ */ Z(Po, [["__scopeId", "data-v-e7cd69b4"]]), Fo = ["ari
|
|
|
2634
2642
|
};
|
|
2635
2643
|
}
|
|
2636
2644
|
});
|
|
2637
|
-
const Ti = /* @__PURE__ */ Z(qo, [["__scopeId", "data-v-
|
|
2645
|
+
const Ti = /* @__PURE__ */ Z(qo, [["__scopeId", "data-v-f87f7872"]]);
|
|
2638
2646
|
export {
|
|
2639
2647
|
Je as BentoColumnOverflow,
|
|
2640
2648
|
Ti as BentoDataGrid,
|
|
2641
2649
|
He as BentoDatagridAriaSortValue,
|
|
2642
2650
|
w as BentoDatagridEvent,
|
|
2643
|
-
|
|
2644
|
-
|
|
2651
|
+
he as BentoDatagridSortDirection,
|
|
2652
|
+
me as BentoDatagridStyleState
|
|
2645
2653
|
};
|
|
2646
2654
|
//# sourceMappingURL=data-grid.js.map
|