@adyen/bento-vue3 1.79.1 → 1.80.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 +397 -918
- 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/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.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/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{action-bar.QX16Mu4L.js → action-bar.C4v95Cp5.js} +3 -3
- package/dist/chunks/{action-bar.QX16Mu4L.js.map → action-bar.C4v95Cp5.js.map} +1 -1
- package/dist/chunks/{base-modal.CHYvJ_xU.js → base-modal.DoMod4Z4.js} +3 -3
- package/dist/chunks/{base-modal.CHYvJ_xU.js.map → base-modal.DoMod4Z4.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.B8qBBN82.js → button-actions-with-menu.BZ1cNOvQ.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.B8qBBN82.js.map → button-actions-with-menu.BZ1cNOvQ.js.map} +1 -1
- package/dist/chunks/{button-actions.Bg38lywL.js → button-actions.C-dLiuIO.js} +2 -2
- package/dist/chunks/{button-actions.Bg38lywL.js.map → button-actions.C-dLiuIO.js.map} +1 -1
- package/dist/chunks/{card.BqkufnQe.js → card.CvEtsRsw.js} +2 -2
- package/dist/chunks/{card.BqkufnQe.js.map → card.CvEtsRsw.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BRQiuU3y.js → checkbox-group.DEvATYiK.js} +6 -6
- package/dist/chunks/{checkbox-group.BRQiuU3y.js.map → checkbox-group.DEvATYiK.js.map} +1 -1
- package/dist/chunks/{checkbox.BRTK_DHj.js → checkbox.BIT67SNO.js} +3 -3
- package/dist/chunks/{checkbox.BRTK_DHj.js.map → checkbox.BIT67SNO.js.map} +1 -1
- package/dist/chunks/{code-snippet.YxZ3_4ye.js → code-snippet.CnkSxC1n.js} +4 -4
- package/dist/chunks/{code-snippet.YxZ3_4ye.js.map → code-snippet.CnkSxC1n.js.map} +1 -1
- package/dist/chunks/{controls-group.CJe5J84d.js → controls-group.B2Qci77U.js} +2 -2
- package/dist/chunks/{controls-group.CJe5J84d.js.map → controls-group.B2Qci77U.js.map} +1 -1
- package/dist/chunks/{copy.mq0o1Rag.js → copy.D5CBHqUB.js} +3 -3
- package/dist/chunks/{copy.mq0o1Rag.js.map → copy.D5CBHqUB.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CNCqp74F.js → dashboard-section.CJa7cm4o.js} +2 -2
- package/dist/chunks/{dashboard-section.CNCqp74F.js.map → dashboard-section.CJa7cm4o.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CtTu1AOE.js → dashed-underline.BzWB6Q4E.js} +3 -3
- package/dist/chunks/{dashed-underline.CtTu1AOE.js.map → dashed-underline.BzWB6Q4E.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CLpaJvTj.js → data-grid-template.CVPMnQcb.js} +3 -3
- package/dist/chunks/{data-grid-template.CLpaJvTj.js.map → data-grid-template.CVPMnQcb.js.map} +1 -1
- package/dist/chunks/{data-grid.CD3Nb4pg.js → data-grid.O3irn4sl.js} +518 -509
- package/dist/chunks/data-grid.O3irn4sl.js.map +1 -0
- package/dist/chunks/{date-picker.C3BH0Bsr.js → date-picker.9zM8Cx1u.js} +88 -87
- package/dist/chunks/date-picker.9zM8Cx1u.js.map +1 -0
- package/dist/chunks/{date-range-picker.BPZE6r01.js → date-range-picker.DI-2cYg5.js} +6 -6
- package/dist/chunks/{date-range-picker.BPZE6r01.js.map → date-range-picker.DI-2cYg5.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B0LtUuUk.js → dropdown-tag.moDZXXVR.js} +3 -3
- package/dist/chunks/{dropdown-tag.B0LtUuUk.js.map → dropdown-tag.moDZXXVR.js.map} +1 -1
- package/dist/chunks/{dropdown.B5tPWVxg.js → dropdown.DedOkb8I.js} +5 -5
- package/dist/chunks/{dropdown.B5tPWVxg.js.map → dropdown.DedOkb8I.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{field-label.B1rMWIWY.js → field-label.Cu6X9V0_.js} +2 -2
- package/dist/chunks/{field-label.B1rMWIWY.js.map → field-label.Cu6X9V0_.js.map} +1 -1
- package/dist/chunks/{file-uploader.BwmQdkmz.js → file-uploader.B7Mbz48o.js} +3 -3
- package/dist/chunks/{file-uploader.BwmQdkmz.js.map → file-uploader.B7Mbz48o.js.map} +1 -1
- package/dist/chunks/filter-bar.CzMIJP2V.js +3199 -0
- package/dist/chunks/filter-bar.CzMIJP2V.js.map +1 -0
- package/dist/chunks/{focus-trap.CpNGD7PH.js → focus-trap.BaHvK7aT.js} +54 -51
- package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -0
- package/dist/chunks/{footer-actions.pC1mxLQm.js → footer-actions.DTbfJdED.js} +2 -2
- package/dist/chunks/{footer-actions.pC1mxLQm.js.map → footer-actions.DTbfJdED.js.map} +1 -1
- package/dist/chunks/{header-meta.DZ8Gx4XE.js → header-meta.D_ChP1El.js} +3 -3
- package/dist/chunks/{header-meta.DZ8Gx4XE.js.map → header-meta.D_ChP1El.js.map} +1 -1
- package/dist/chunks/{header-with-views.b1gt2wud.js → header-with-views.CjF-jtB0.js} +8 -8
- package/dist/chunks/{header-with-views.b1gt2wud.js.map → header-with-views.CjF-jtB0.js.map} +1 -1
- package/dist/chunks/{header.BQAAmjUF.js → header.DzaZc0dQ.js} +3 -3
- package/dist/chunks/{header.BQAAmjUF.js.map → header.DzaZc0dQ.js.map} +1 -1
- package/dist/chunks/{info-icon.DB0MI-dH.js → info-icon.C7RAAeQQ.js} +3 -3
- package/dist/chunks/{info-icon.DB0MI-dH.js.map → info-icon.C7RAAeQQ.js.map} +1 -1
- package/dist/chunks/{input-field-password.noxsH61p.js → input-field-password.Bu97g6Ot.js} +5 -5
- package/dist/chunks/{input-field-password.noxsH61p.js.map → input-field-password.Bu97g6Ot.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.B_uFvUXP.js → input-field-phone-number.Bold8Mln.js} +3 -3
- package/dist/chunks/{input-field-phone-number.B_uFvUXP.js.map → input-field-phone-number.Bold8Mln.js.map} +1 -1
- package/dist/chunks/{input-field.C9ABE4cI.js → input-field.BGwhh69z.js} +3 -3
- package/dist/chunks/{input-field.C9ABE4cI.js.map → input-field.BGwhh69z.js.map} +1 -1
- package/dist/chunks/{inspector.BKP15cx6.js → inspector.BBhrSgO6.js} +2 -2
- package/dist/chunks/{inspector.BKP15cx6.js.map → inspector.BBhrSgO6.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.C1cZs38g.js → listbox-option-tag.VRGb_04i.js} +2 -2
- package/dist/chunks/{listbox-option-tag.C1cZs38g.js.map → listbox-option-tag.VRGb_04i.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B69QJ8D6.js → modal-fullscreen.B8SjtIoX.js} +3 -3
- package/dist/chunks/{modal-fullscreen.B69QJ8D6.js.map → modal-fullscreen.B8SjtIoX.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BYqbdsty.js → modal.vue_vue_type_script_setup_true_lang.Jj1Lcx13.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BYqbdsty.js.map → modal.vue_vue_type_script_setup_true_lang.Jj1Lcx13.js.map} +1 -1
- package/dist/chunks/{pagination.Dst8Y6DD.js → pagination.C8NKDQvi.js} +2 -2
- package/dist/chunks/{pagination.Dst8Y6DD.js.map → pagination.C8NKDQvi.js.map} +1 -1
- package/dist/chunks/popover.types.DgfeurkF.js +6 -0
- package/dist/chunks/{popover.types.BFFy1ChU.js.map → popover.types.DgfeurkF.js.map} +1 -1
- package/dist/chunks/{popper-container.Uod3yjsR.js → popper-container.I9gzp1NR.js} +2 -2
- package/dist/chunks/{popper-container.Uod3yjsR.js.map → popper-container.I9gzp1NR.js.map} +1 -1
- package/dist/chunks/{radio-group.CVDDBCP4.js → radio-group.C0qJThJ2.js} +4 -4
- package/dist/chunks/{radio-group.CVDDBCP4.js.map → radio-group.C0qJThJ2.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DyC-Nnc8.js → rich-text-editor.DYx5i67c.js} +4 -4
- package/dist/chunks/{rich-text-editor.DyC-Nnc8.js.map → rich-text-editor.DYx5i67c.js.map} +1 -1
- package/dist/chunks/{search-bar.BwrFcw9L.js → search-bar.DQ-9ejqq.js} +3 -3
- package/dist/chunks/{search-bar.BwrFcw9L.js.map → search-bar.DQ-9ejqq.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D7l9h0_t.js → secondary-nav.C4_UkHBv.js} +2 -2
- package/dist/chunks/{secondary-nav.D7l9h0_t.js.map → secondary-nav.C4_UkHBv.js.map} +1 -1
- package/dist/chunks/{segmented-control.CwDOwDIu.js → segmented-control.PlGfqyxH.js} +2 -2
- package/dist/chunks/{segmented-control.CwDOwDIu.js.map → segmented-control.PlGfqyxH.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CZfusjo0.js → selection-card-group.CudK75gJ.js} +3 -3
- package/dist/chunks/{selection-card-group.CZfusjo0.js.map → selection-card-group.CudK75gJ.js.map} +1 -1
- package/dist/chunks/{sidepanel.BFz_7DKg.js → sidepanel.BmlRQuWw.js} +3 -3
- package/dist/chunks/{sidepanel.BFz_7DKg.js.map → sidepanel.BmlRQuWw.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DjbvVIwI.js → structured-list-item.CsUD3M_V.js} +4 -4
- package/dist/chunks/{structured-list-item.DjbvVIwI.js.map → structured-list-item.CsUD3M_V.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.KVqau_I-.js → summary-grid.types.Bs4dbLqr.js} +5 -5
- package/dist/chunks/{summary-grid.types.KVqau_I-.js.map → summary-grid.types.Bs4dbLqr.js.map} +1 -1
- package/dist/chunks/{tag.BmMnGJMp.js → tag.EDED27n5.js} +2 -2
- package/dist/chunks/{tag.BmMnGJMp.js.map → tag.EDED27n5.js.map} +1 -1
- package/dist/chunks/{textarea.BZjnJf5q.js → textarea.7MePsezm.js} +2 -2
- package/dist/chunks/{textarea.BZjnJf5q.js.map → textarea.7MePsezm.js.map} +1 -1
- package/dist/chunks/timeline-item.BKS_D2Rm.js +428 -0
- package/dist/chunks/timeline-item.BKS_D2Rm.js.map +1 -0
- package/dist/chunks/{tooltip.CeX5eGnw.js → tooltip.B76ucISL.js} +2 -2
- package/dist/chunks/{tooltip.CeX5eGnw.js.map → tooltip.B76ucISL.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Cqimmacx.js → tutorial.vue_vue_type_script_setup_true_lang.DAFpeoOd.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Cqimmacx.js.map → tutorial.vue_vue_type_script_setup_true_lang.DAFpeoOd.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.os3Yp7Tw.js → use-cached-selected-values.DCxMCy_n.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.os3Yp7Tw.js.map → use-cached-selected-values.DCxMCy_n.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +358 -395
- package/dist/index.js.map +1 -1
- 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 +9 -9
- 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 +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.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 +4 -0
- package/dist/styles/bento-light.css +4 -0
- package/dist/styles/bento.css +4 -0
- package/dist/styles/legacy.css +4 -0
- package/dist/styles/styleguide.css +4 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/data-grid.CD3Nb4pg.js.map +0 -1
- package/dist/chunks/date-picker.C3BH0Bsr.js.map +0 -1
- package/dist/chunks/filter-bar.B9yGivxl.js +0 -2986
- package/dist/chunks/filter-bar.B9yGivxl.js.map +0 -1
- package/dist/chunks/focus-trap.CpNGD7PH.js.map +0 -1
- package/dist/chunks/popover.types.BFFy1ChU.js +0 -6
- package/dist/chunks/timeline-item.YjC_8BBB.js +0 -556
- package/dist/chunks/timeline-item.YjC_8BBB.js.map +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { ref as S, onMounted as Ye, nextTick as _e, watch as Le, onUnmounted as cl, reactive as St, toRefs as yt, computed as C, watchEffect as mn, onBeforeUpdate as hn, createElementBlock as L, openBlock as u, mergeProps as ie, createCommentVNode as W, createElementVNode as R, toDisplayString as ee, defineComponent as
|
|
1
|
+
import { ref as S, onMounted as Ye, nextTick as _e, watch as Le, onUnmounted as cl, reactive as St, toRefs as yt, computed as C, watchEffect as mn, onBeforeUpdate as hn, createElementBlock as L, openBlock as u, mergeProps as ie, createCommentVNode as W, createElementVNode as R, toDisplayString as ee, defineComponent as Pe, inject as Fe, normalizeClass as ce, Fragment as be, renderList as Ae, unref as o, toHandlers as ft, createBlock as G, withCtx as V, createVNode as X, renderSlot as ze, withModifiers as Cn, normalizeStyle as Me, resolveComponent as Oe, withDirectives as Lt, createTextVNode as he, vShow as _n, toRef as bt, resolveDirective as bn, Transition as fl, createSlots as Ke, resolveDynamicComponent as Xe, useSlots as pt, provide as rt, withKeys as Ft } from "vue";
|
|
2
2
|
import { C as wn } from "./checkmark-circle-fill._6-d40ru.js";
|
|
3
3
|
import { W as En } from "./warning-filled.BMGD0G-_.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import { C as gl } from "./cross.B92GxFTY.js";
|
|
7
7
|
import { N as Pt } from "./minus-small.DYIyF5XW.js";
|
|
8
|
-
import { E as Ne, b as Sn, T as yn, B as Ln } from "./tooltip.
|
|
9
|
-
import { d as pn } from "./popper-container.
|
|
10
|
-
import { B as Rn } from "./dashed-underline.
|
|
8
|
+
import { E as Ne, b as Sn, T as yn, B as Ln } from "./tooltip.B76ucISL.js";
|
|
9
|
+
import { d as pn } from "./popper-container.I9gzp1NR.js";
|
|
10
|
+
import { B as Rn } from "./dashed-underline.BzWB6Q4E.js";
|
|
11
11
|
import { B as et, p as vl } from "./typography.yBEME_Gu.js";
|
|
12
12
|
import { u as Ve } from "./index.pdBj0KQU.js";
|
|
13
|
-
import { B as An } from "./action-bar.
|
|
14
|
-
import { B as Tn } from "./pagination.
|
|
13
|
+
import { B as An } from "./action-bar.C4v95Cp5.js";
|
|
14
|
+
import { B as Tn } from "./pagination.C8NKDQvi.js";
|
|
15
15
|
import { B as ut } from "./loading-indicator.Db794TT5.js";
|
|
16
16
|
import { u as Rt } from "./use-has-slot.B7eQSabc.js";
|
|
17
17
|
import { g as ct } from "./generate-uid.NJ8tVoha.js";
|
|
18
|
-
import { B as _t } from "./filter-bar.
|
|
18
|
+
import { B as _t } from "./filter-bar.CzMIJP2V.js";
|
|
19
19
|
import { B as On } from "./empty-state.Be6M8ivH.js";
|
|
20
20
|
import { E as Nn } from "./tabs.keys.B4qGhjp2.js";
|
|
21
21
|
import { D as In } from "./data-grid-template.keys.VezYtHtM.js";
|
|
22
22
|
import { b as Dn } from "./index.E60QniEu.js";
|
|
23
23
|
import { o as At } from "./resize.Bqks3WUm.js";
|
|
24
|
-
import { e as wt, c as Tt, g as $n, a as Bt, b as Wt, O as Ht, D as kn } from "./button-actions.
|
|
24
|
+
import { e as wt, c as Tt, g as $n, a as Bt, b as Wt, O as Ht, D as kn } from "./button-actions.C-dLiuIO.js";
|
|
25
25
|
import { B as ml } from "./button.DhcxX2GJ.js";
|
|
26
26
|
import { B as hl } from "./toggle.BHCUjMpp.js";
|
|
27
|
-
import { B as Un } from "./search-bar.
|
|
27
|
+
import { B as Un } from "./search-bar.DQ-9ejqq.js";
|
|
28
28
|
import { B as Mn } from "./directive.Cbdox5VL.js";
|
|
29
|
-
import { u as zn } from "./dropdown.
|
|
29
|
+
import { u as zn } from "./dropdown.DedOkb8I.js";
|
|
30
30
|
import { S as Fn } from "./search.PczW-onY.js";
|
|
31
|
-
import { B as Cl } from "./checkbox.
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
31
|
+
import { B as Cl } from "./checkbox.BIT67SNO.js";
|
|
32
|
+
import { b as _l } from "./focus-trap.BaHvK7aT.js";
|
|
33
|
+
import { B as Pn } from "./info-icon.C7RAAeQQ.js";
|
|
34
|
+
import { D as Bn } from "./use-cached-selected-values.DCxMCy_n.js";
|
|
35
|
+
import { B as Gt } from "./popover.types.DgfeurkF.js";
|
|
35
36
|
import { A as Wn } from "./dialog-page.BY6T1jYZ.js";
|
|
36
37
|
import { H as Hn, S as Gn } from "./show.CT4Augxb.js";
|
|
37
38
|
import { l as Vt } from "./events.BQOQSSb7.js";
|
|
38
|
-
import { b as _l } from "./focus-trap.CpNGD7PH.js";
|
|
39
39
|
import { E as xt } from "./link.cwPmWlsk.js";
|
|
40
|
-
import { C as Zt } from "./copy.
|
|
40
|
+
import { C as Zt } from "./copy.D5CBHqUB.js";
|
|
41
41
|
import { C as Vn } from "./chevron-down.DCQ6ZLaq.js";
|
|
42
42
|
import { C as xn } from "./chevron-up.kfuLRpZb.js";
|
|
43
43
|
import { u as Zn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
@@ -82,36 +82,36 @@ const jt = (e) => {
|
|
|
82
82
|
l == null || l.disconnect(), n == null || n.disconnect();
|
|
83
83
|
}), c;
|
|
84
84
|
};
|
|
85
|
-
var Et = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Et || {}), ae = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(ae || {}),
|
|
85
|
+
var Et = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Et || {}), ae = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(ae || {}), Ue = /* @__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.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Ue || {}), Ge = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(Ge || {}), F = /* @__PURE__ */ ((e) => (e.CELL_FOCUS = "cell-focus", e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", 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_VALUES_OBJECT = "update:filter-values-object", 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.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.SORT = "sort", e))(F || {}), dt = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(dt || {});
|
|
86
86
|
const jn = (e, s) => {
|
|
87
|
-
const i = S(null), t = S(!1), c = S(void 0), l = e.value.reduce((O,
|
|
87
|
+
const i = S(null), t = S(!1), c = S(void 0), l = e.value.reduce((O, k) => (O[k.field] = null, O), {}), n = St(l), v = yt(n);
|
|
88
88
|
let g = 0, _ = "";
|
|
89
89
|
const b = C(
|
|
90
|
-
() => Object.fromEntries(e.value.map(({ field: O, width:
|
|
90
|
+
() => Object.fromEntries(e.value.map(({ field: O, width: k, minWidth: p }) => [O, { width: k, minWidth: p }]))
|
|
91
91
|
);
|
|
92
92
|
mn(() => c.value = b.value);
|
|
93
|
-
let N = null,
|
|
93
|
+
let N = null, $ = null;
|
|
94
94
|
const E = (O) => {
|
|
95
|
-
const
|
|
96
|
-
c.value[p].width =
|
|
95
|
+
const k = O.clientX - g, p = _, M = c.value[p].width + k;
|
|
96
|
+
c.value[p].width = M > b.value[p].minWidth ? M : b.value[p].minWidth, s(ae.COLUMN_RESIZING, c.value), g = O.clientX;
|
|
97
97
|
}, d = () => {
|
|
98
|
-
t.value = !1, N == null || N(),
|
|
98
|
+
t.value = !1, N == null || N(), $ == null || $(), _ && s(ae.COLUMN_RESIZE, {
|
|
99
99
|
field: _,
|
|
100
100
|
width: c.value[_].width
|
|
101
|
-
}), N = null,
|
|
102
|
-
}, A = (O,
|
|
101
|
+
}), N = null, $ = null, _ = "", g = null;
|
|
102
|
+
}, A = (O, k, p) => {
|
|
103
103
|
if (p.preventDefault(), O) {
|
|
104
104
|
if (t.value = !0, p.buttons !== 1) {
|
|
105
105
|
d();
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
_ =
|
|
108
|
+
_ = k, g = p.clientX, N = Vt(window, "mousemove", E), $ = Vt(window, "mouseup", d);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
return Le(
|
|
112
112
|
() => t.value,
|
|
113
|
-
(O,
|
|
114
|
-
!O &&
|
|
113
|
+
(O, k) => {
|
|
114
|
+
!O && k && (s(ae.COLUMN_HOVER, i.value), i.value = null);
|
|
115
115
|
}
|
|
116
116
|
), {
|
|
117
117
|
resizeData: c,
|
|
@@ -133,7 +133,7 @@ const jn = (e, s) => {
|
|
|
133
133
|
c.forEach((N) => {
|
|
134
134
|
g -= t[N].computedWidth, _ -= t[N].flex;
|
|
135
135
|
});
|
|
136
|
-
for (let N = 0,
|
|
136
|
+
for (let N = 0, $ = i.length; N < $; N += 1) {
|
|
137
137
|
const E = i[N];
|
|
138
138
|
if (t[E.field] && t[E.field].frozen === !0)
|
|
139
139
|
continue;
|
|
@@ -158,18 +158,18 @@ const jn = (e, s) => {
|
|
|
158
158
|
var s, i, t, c, l;
|
|
159
159
|
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (c = e == null ? void 0 : e.hasSelectableAcrossPages) != null && c.value ? Xn : Jn : Qn : (l = e == null ? void 0 : e.hasSelectableAcrossPages) != null && l.value ? Yn : Kn;
|
|
160
160
|
}, oo = (e, s, i, t, c, l) => {
|
|
161
|
-
const n = S(e.value), v = S(s), g = S(i), _ = S(t), b = S(c), N = S(!1),
|
|
161
|
+
const n = S(e.value), v = S(s), g = S(i), _ = S(t), b = S(c), N = S(!1), $ = S(0);
|
|
162
162
|
Le(
|
|
163
163
|
() => e.value,
|
|
164
164
|
(a, f) => {
|
|
165
|
-
var
|
|
165
|
+
var B, x;
|
|
166
166
|
const T = (a == null ? void 0 : a.map(({ field: Z }) => Z).toString()) === (f == null ? void 0 : f.map(({ field: Z }) => Z).toString());
|
|
167
|
-
if (!((
|
|
167
|
+
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !T) {
|
|
168
168
|
n.value = e.value;
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
n.value = ((x = n.value) == null ? void 0 : x.length) === 0 ? e.value : e.value.sort((Z, le) => {
|
|
172
|
-
const we = n.value.findIndex((
|
|
172
|
+
const we = n.value.findIndex((ue) => ue.field === Z.field), ge = n.value.findIndex((ue) => ue.field === le.field);
|
|
173
173
|
return we === -1 ? 1 : ge === -1 ? -1 : we - ge;
|
|
174
174
|
});
|
|
175
175
|
}
|
|
@@ -177,13 +177,13 @@ const jn = (e, s) => {
|
|
|
177
177
|
const E = S();
|
|
178
178
|
let d = null;
|
|
179
179
|
const A = C(() => {
|
|
180
|
-
var we, ge,
|
|
180
|
+
var we, ge, ue;
|
|
181
181
|
const a = [];
|
|
182
182
|
let f = 0, T = 0;
|
|
183
|
-
const
|
|
183
|
+
const B = {};
|
|
184
184
|
let x = n.value.filter((ne) => ne.visible !== !1);
|
|
185
185
|
const Z = n.value.filter((ne) => ne.visible === !1);
|
|
186
|
-
if ((we = l == null ? void 0 : l.hasSelectableColumn) != null && we.value || (ge = l == null ? void 0 : l.hasNestedContent) != null && ge.value || (
|
|
186
|
+
if ((we = l == null ? void 0 : l.hasSelectableColumn) != null && we.value || (ge = l == null ? void 0 : l.hasNestedContent) != null && ge.value || (ue = l == null ? void 0 : l.hasNestedRows) != null && ue.value) {
|
|
187
187
|
const ne = no(l);
|
|
188
188
|
x = [
|
|
189
189
|
{
|
|
@@ -203,20 +203,20 @@ const jn = (e, s) => {
|
|
|
203
203
|
q.flex && q.flex > 0 ? (f += q.flex, pe = 0, a.push(q)) : pe = Math.max(
|
|
204
204
|
(q == null ? void 0 : q.width) ?? qn,
|
|
205
205
|
(q == null ? void 0 : q.minWidth) ?? Kt
|
|
206
|
-
), T += pe, q.width = pe, q.minWidth = (q == null ? void 0 : q.minWidth) ?? Kt,
|
|
207
|
-
}), T +=
|
|
206
|
+
), T += pe, q.width = pe, q.minWidth = (q == null ? void 0 : q.minWidth) ?? Kt, B[q.field] = q;
|
|
207
|
+
}), T += $.value;
|
|
208
208
|
const le = Math.max(E.value - T, 0);
|
|
209
209
|
if (f > 0 && E.value > 0) {
|
|
210
210
|
const ne = lo(le, f, a);
|
|
211
211
|
Object.keys(ne).forEach((q) => {
|
|
212
|
-
|
|
212
|
+
B[q].width = ne[q].computedWidth;
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
return Z.forEach((ne) => {
|
|
216
216
|
const q = { ...ne };
|
|
217
|
-
|
|
218
|
-
}), Object.values(
|
|
219
|
-
}), O = S(void 0),
|
|
217
|
+
B[q.field] = q;
|
|
218
|
+
}), Object.values(B);
|
|
219
|
+
}), O = S(void 0), k = (a) => {
|
|
220
220
|
O.value = { ...O.value, ...a };
|
|
221
221
|
}, p = async () => {
|
|
222
222
|
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (N.value = !0, await _e(), await _e(), n == null || n.value.filter((a) => a == null ? void 0 : a.autoWidth).forEach(({ field: a, minWidth: f }) => {
|
|
@@ -224,11 +224,11 @@ const jn = (e, s) => {
|
|
|
224
224
|
const T = Yt(
|
|
225
225
|
(Z = _.value) == null ? void 0 : Z[a],
|
|
226
226
|
(le = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : le.value
|
|
227
|
-
),
|
|
228
|
-
(
|
|
227
|
+
), B = (ge = (we = b.value) == null ? void 0 : we[a]) == null ? void 0 : ge.reduce(
|
|
228
|
+
(ue, ne) => Math.max(ue, Yt(ne)),
|
|
229
229
|
0
|
|
230
|
-
), x = Math.max(T,
|
|
231
|
-
(f === void 0 || x > f) &&
|
|
230
|
+
), x = Math.max(T, B ?? 0);
|
|
231
|
+
(f === void 0 || x > f) && k({
|
|
232
232
|
[a]: {
|
|
233
233
|
width: x
|
|
234
234
|
}
|
|
@@ -238,7 +238,7 @@ const jn = (e, s) => {
|
|
|
238
238
|
Le([() => n.value, () => v.value], async () => {
|
|
239
239
|
n.value.some((a) => a == null ? void 0 : a.autoWidth) && await p();
|
|
240
240
|
});
|
|
241
|
-
const
|
|
241
|
+
const M = C(
|
|
242
242
|
() => A.value.map((a) => {
|
|
243
243
|
var f, T;
|
|
244
244
|
return {
|
|
@@ -250,9 +250,9 @@ const jn = (e, s) => {
|
|
|
250
250
|
), m = C(
|
|
251
251
|
() => {
|
|
252
252
|
var a;
|
|
253
|
-
return ((a =
|
|
253
|
+
return ((a = M.value) == null ? void 0 : a.filter(({ visible: f }) => f !== !1).reduce((f, T) => T.width + f, 0)) + $.value;
|
|
254
254
|
}
|
|
255
|
-
),
|
|
255
|
+
), z = C(
|
|
256
256
|
() => E.value <= m.value
|
|
257
257
|
), h = C(() => ({
|
|
258
258
|
width: E.value > m.value ? "100%" : "fit-content"
|
|
@@ -265,8 +265,8 @@ const jn = (e, s) => {
|
|
|
265
265
|
const T = Le(
|
|
266
266
|
g,
|
|
267
267
|
() => {
|
|
268
|
-
g.value && (_e(() => T()), d = At(g.value, ({ width:
|
|
269
|
-
E.value =
|
|
268
|
+
g.value && (_e(() => T()), d = At(g.value, ({ width: B }) => {
|
|
269
|
+
E.value = B - a;
|
|
270
270
|
}));
|
|
271
271
|
},
|
|
272
272
|
{ immediate: !0 }
|
|
@@ -282,14 +282,14 @@ const jn = (e, s) => {
|
|
|
282
282
|
b.value[T] = [];
|
|
283
283
|
});
|
|
284
284
|
}), {
|
|
285
|
-
columnDefs:
|
|
285
|
+
columnDefs: M,
|
|
286
286
|
gridRowWidthStyle: h,
|
|
287
|
-
onColumnWidthOverride:
|
|
287
|
+
onColumnWidthOverride: k,
|
|
288
288
|
isMeasuringColumnWidths: N,
|
|
289
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
289
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: z,
|
|
290
290
|
columns: n,
|
|
291
291
|
totalWidthOfAllColumns: m,
|
|
292
|
-
rowActionsMaxWidth:
|
|
292
|
+
rowActionsMaxWidth: $
|
|
293
293
|
};
|
|
294
294
|
}, so = (e, s, i, t, c, l, n) => {
|
|
295
295
|
const v = S(e.value ?? []), g = St({
|
|
@@ -310,7 +310,7 @@ const jn = (e, s) => {
|
|
|
310
310
|
var a, f;
|
|
311
311
|
return ((a = i.value) == null ? void 0 : a.length) > 0 && ((f = _.value) == null ? void 0 : f.filter((T) => !c(T)).every((T) => v.value.includes(t(T))));
|
|
312
312
|
}
|
|
313
|
-
),
|
|
313
|
+
), $ = C(
|
|
314
314
|
() => {
|
|
315
315
|
var a, f;
|
|
316
316
|
return ((a = i.value) == null ? void 0 : a.length) > 0 && !((f = _.value) != null && f.some((T) => v.value.includes(t(T))));
|
|
@@ -328,47 +328,47 @@ const jn = (e, s) => {
|
|
|
328
328
|
}, O = (a) => {
|
|
329
329
|
var f, T;
|
|
330
330
|
v.value = a, b.value ? (g.allItemsSelected = !0, g.isIndeterminate = !1) : (g.allItemsSelected = !1, g.isIndeterminate = ((f = v.value) == null ? void 0 : f.length) > 0 && ((T = i.value) == null ? void 0 : T.length) > 0 && i.value.some(
|
|
331
|
-
(
|
|
331
|
+
(B) => {
|
|
332
332
|
var x;
|
|
333
|
-
return v.value.includes(t(
|
|
333
|
+
return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((Z) => v.value.includes(t(Z))));
|
|
334
334
|
}
|
|
335
335
|
));
|
|
336
|
-
},
|
|
336
|
+
}, k = (a) => {
|
|
337
337
|
_e(() => {
|
|
338
|
-
var T,
|
|
338
|
+
var T, B;
|
|
339
339
|
g.allItemsSelected = a;
|
|
340
|
-
const f = ((
|
|
340
|
+
const f = ((B = (T = _.value) == null ? void 0 : T.filter(
|
|
341
341
|
(x) => !c(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((Z) => !c(Z)))
|
|
342
|
-
)) == null ? void 0 :
|
|
343
|
-
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...f])], g.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !f.includes(x)), g.isIndeterminate =
|
|
342
|
+
)) == null ? void 0 : B.map((x) => t(x))) ?? [];
|
|
343
|
+
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...f])], g.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !f.includes(x)), g.isIndeterminate = !$.value), A();
|
|
344
344
|
});
|
|
345
345
|
}, p = () => {
|
|
346
346
|
_e(() => {
|
|
347
347
|
O([]), A();
|
|
348
348
|
});
|
|
349
|
-
},
|
|
349
|
+
}, M = (a, f) => {
|
|
350
350
|
_e(() => {
|
|
351
351
|
var T;
|
|
352
352
|
O(((T = f == null ? void 0 : f.children) == null ? void 0 : T.length) > 0 ? m(a, f) : a), A();
|
|
353
353
|
});
|
|
354
354
|
}, m = (a, f) => {
|
|
355
355
|
var x;
|
|
356
|
-
const T = t(f),
|
|
356
|
+
const T = t(f), B = (x = f.children) == null ? void 0 : x.filter((Z) => !c(Z)).map((Z) => t(Z));
|
|
357
357
|
if (a.includes(T)) {
|
|
358
358
|
const Z = a;
|
|
359
|
-
return
|
|
359
|
+
return B.forEach((le) => {
|
|
360
360
|
Z.includes(le) || Z.push(le);
|
|
361
361
|
}), Z;
|
|
362
362
|
}
|
|
363
|
-
return a.filter((Z) => !
|
|
364
|
-
},
|
|
363
|
+
return a.filter((Z) => !B.includes(Z));
|
|
364
|
+
}, z = (a, f, T) => {
|
|
365
365
|
_e(() => {
|
|
366
366
|
var x, Z;
|
|
367
|
-
const
|
|
367
|
+
const B = t(f);
|
|
368
368
|
a.includes(t(T)) ? O(
|
|
369
|
-
!a.includes(
|
|
369
|
+
!a.includes(B) && ((x = f == null ? void 0 : f.children) != null && x.every((le) => a.includes(t(le)))) ? [...a, B] : a
|
|
370
370
|
) : O(
|
|
371
|
-
a.includes(
|
|
371
|
+
a.includes(B) && !((Z = f == null ? void 0 : f.children) != null && Z.every((le) => a.includes(t(le)))) ? a.filter((le) => le !== B) : a
|
|
372
372
|
), A();
|
|
373
373
|
});
|
|
374
374
|
}, h = C(() => d.value ? "all" : N.value ? "page" : !v.value || v.value.length === 0 ? "none" : E.value ? "unselected-page" : "single");
|
|
@@ -384,15 +384,15 @@ const jn = (e, s) => {
|
|
|
384
384
|
const a = i.value.filter((f) => v.value.includes(t(f))).flatMap(
|
|
385
385
|
(f) => {
|
|
386
386
|
var T;
|
|
387
|
-
return ((T = f == null ? void 0 : f.children) == null ? void 0 : T.length) > 0 ? f.children.map((
|
|
387
|
+
return ((T = f == null ? void 0 : f.children) == null ? void 0 : T.length) > 0 ? f.children.map((B) => t(B)).filter((B) => !v.value.includes(B)) : [];
|
|
388
388
|
}
|
|
389
389
|
);
|
|
390
390
|
(a == null ? void 0 : a.length) > 0 ? (O([...v.value, ...a]), A()) : O(v.value);
|
|
391
391
|
}
|
|
392
392
|
), {
|
|
393
|
-
onAllRowSelect:
|
|
394
|
-
onRowSelect:
|
|
395
|
-
onNestedRowSelect:
|
|
393
|
+
onAllRowSelect: k,
|
|
394
|
+
onRowSelect: M,
|
|
395
|
+
onNestedRowSelect: z,
|
|
396
396
|
onDeselectAll: p,
|
|
397
397
|
allItemsSelectedState: g,
|
|
398
398
|
selectedItems: v,
|
|
@@ -414,7 +414,7 @@ const jn = (e, s) => {
|
|
|
414
414
|
var Se = ((e) => (e[e.ARROW_DOWN = Ne.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Ne.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Ne.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Ne.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Ne.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Ne.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Ne.END] = "END", e[e.HOME = Ne.HOME] = "HOME", e))(Se || {});
|
|
415
415
|
const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
416
416
|
const n = C(() => l.value || t.value ? !0 : i.value.some((p) => p.infoIconTooltip || p.sortable)), v = C(() => {
|
|
417
|
-
let p = i.value.filter(({ visible:
|
|
417
|
+
let p = i.value.filter(({ visible: M }) => M !== !1);
|
|
418
418
|
return c.value && (p = [
|
|
419
419
|
...p,
|
|
420
420
|
{ field: Qe, label: "" }
|
|
@@ -425,56 +425,56 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
425
425
|
const p = Object.keys(e.value)[0];
|
|
426
426
|
if (!p || !e.value[p])
|
|
427
427
|
return [];
|
|
428
|
-
const
|
|
428
|
+
const M = [];
|
|
429
429
|
if (n.value)
|
|
430
|
-
for (const
|
|
431
|
-
const h = s.value[
|
|
432
|
-
|
|
430
|
+
for (const z of v.value) {
|
|
431
|
+
const h = s.value[z.field];
|
|
432
|
+
M.push(h);
|
|
433
433
|
}
|
|
434
434
|
const m = e.value[p].length;
|
|
435
|
-
for (let
|
|
435
|
+
for (let z = 0; z < m; z++)
|
|
436
436
|
for (const h of v.value) {
|
|
437
437
|
const a = e.value[h.field];
|
|
438
|
-
a != null && a[
|
|
438
|
+
a != null && a[z] && M.push(a[z]);
|
|
439
439
|
}
|
|
440
|
-
return
|
|
441
|
-
}), b = (p) => Math.floor(p / g.value), N = (p,
|
|
442
|
-
const
|
|
440
|
+
return M;
|
|
441
|
+
}), b = (p) => Math.floor(p / g.value), N = (p, M, m) => {
|
|
442
|
+
const z = _.value.length - 1, h = g.value - 1, a = b(p), f = p - g.value * a;
|
|
443
443
|
return {
|
|
444
444
|
[Se.PAGE_UP]: f + (n.value ? g.value : 0),
|
|
445
|
-
[Se.PAGE_DOWN]:
|
|
446
|
-
[Se.END]: m ?
|
|
445
|
+
[Se.PAGE_DOWN]: z - h + f,
|
|
446
|
+
[Se.END]: m ? z : g.value * a + h,
|
|
447
447
|
[Se.HOME]: m ? n.value ? g.value : 0 : g.value * a
|
|
448
|
-
}[
|
|
449
|
-
},
|
|
448
|
+
}[M];
|
|
449
|
+
}, $ = (p, M) => {
|
|
450
450
|
const m = b(p), h = {
|
|
451
451
|
[Se.ARROW_DOWN]: g.value,
|
|
452
452
|
[Se.ARROW_UP]: m === 0 && !n.value ? 0 : -g.value,
|
|
453
453
|
[Se.ARROW_LEFT]: -1,
|
|
454
454
|
[Se.ARROW_RIGHT]: 1
|
|
455
|
-
}[
|
|
455
|
+
}[M], a = p + h;
|
|
456
456
|
return a < 0 || a >= _.value.length ? p : a;
|
|
457
457
|
}, E = (p) => [
|
|
458
458
|
Se.PAGE_UP,
|
|
459
459
|
Se.PAGE_DOWN,
|
|
460
460
|
Se.END,
|
|
461
461
|
Se.HOME
|
|
462
|
-
].includes(p), d = (p,
|
|
463
|
-
const
|
|
464
|
-
return E(
|
|
465
|
-
}, A = (p,
|
|
462
|
+
].includes(p), d = (p, M, m) => {
|
|
463
|
+
const z = _.value.indexOf(p);
|
|
464
|
+
return E(M) ? N(z, M, m) : $(z, M);
|
|
465
|
+
}, A = (p, M, m) => {
|
|
466
466
|
if (!_.value.includes(p))
|
|
467
467
|
return;
|
|
468
|
-
const
|
|
469
|
-
_.value[
|
|
468
|
+
const z = d(p, M, m);
|
|
469
|
+
_.value[z].focus();
|
|
470
470
|
}, O = (p) => p in Se;
|
|
471
471
|
return {
|
|
472
472
|
isNavigationKeyCode: O,
|
|
473
473
|
focusOnNextGridcell: A,
|
|
474
474
|
navigationInput: (p) => {
|
|
475
|
-
const { ctrlKey:
|
|
476
|
-
let a =
|
|
477
|
-
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a =
|
|
475
|
+
const { ctrlKey: M, key: m, target: z } = p, h = m;
|
|
476
|
+
let a = z;
|
|
477
|
+
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = z.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) && O(h) && A(a, h, M));
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
}, ro = 90, uo = (e, s, i, t, c) => {
|
|
@@ -496,29 +496,29 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
496
496
|
const A = t.value.findIndex((p) => p.field === E.field), O = A + d;
|
|
497
497
|
if (O < 0 || O > t.value.length - 1)
|
|
498
498
|
return;
|
|
499
|
-
const
|
|
500
|
-
|
|
499
|
+
const k = [...t.value];
|
|
500
|
+
k.splice(O, 0, k.splice(A, 1)[0]), i(F.COLUMNS, k), i(F.UPDATE_COLUMNS, k);
|
|
501
501
|
}, v = (E, d) => {
|
|
502
502
|
l.dragging = E, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
|
|
503
503
|
}, g = (E, d) => {
|
|
504
504
|
l.target = E;
|
|
505
|
-
const A = d.currentTarget.getBoundingClientRect(), O = A.left + A.width / 2,
|
|
506
|
-
l.dragToLeft =
|
|
505
|
+
const A = d.currentTarget.getBoundingClientRect(), O = A.left + A.width / 2, k = d.clientX ?? 0;
|
|
506
|
+
l.dragToLeft = k <= O;
|
|
507
507
|
}, _ = (E) => {
|
|
508
508
|
var d, A;
|
|
509
509
|
if (((d = l.dragging) == null ? void 0 : d.field) !== E.field) {
|
|
510
510
|
const O = t.value.findIndex((h) => {
|
|
511
511
|
var a;
|
|
512
512
|
return h.field === ((a = l.dragging) == null ? void 0 : a.field);
|
|
513
|
-
}),
|
|
513
|
+
}), k = t.value.findIndex((h) => h.field === E.field), p = l.dragToLeft ? k : k + 1, M = p > O ? p - 1 : p;
|
|
514
514
|
let m = [...t.value];
|
|
515
515
|
m.splice(
|
|
516
|
-
|
|
516
|
+
M === -1 ? 0 : M,
|
|
517
517
|
0,
|
|
518
518
|
m.splice(O, 1)[0]
|
|
519
519
|
);
|
|
520
|
-
const
|
|
521
|
-
((A = l.dragging) == null ? void 0 : A.frozen) !== E.frozen && p !==
|
|
520
|
+
const z = t.value.findIndex((h) => !(h != null && h.frozen));
|
|
521
|
+
((A = l.dragging) == null ? void 0 : A.frozen) !== E.frozen && p !== z && (m = m.map(
|
|
522
522
|
(h) => {
|
|
523
523
|
var a;
|
|
524
524
|
return ((a = l.dragging) == null ? void 0 : a.field) === h.field ? { ...h, frozen: !!(E != null && E.frozen) } : h;
|
|
@@ -533,7 +533,7 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
533
533
|
[ae.COLUMN_DRAG_ENTER]: (E, d) => g(E, d),
|
|
534
534
|
[ae.COLUMN_DROP]: (E) => _(E),
|
|
535
535
|
[ae.COLUMN_DRAG_END]: () => b()
|
|
536
|
-
} : {}),
|
|
536
|
+
} : {}), $ = C(() => (E) => c.value ? {
|
|
537
537
|
dragenter: (d) => {
|
|
538
538
|
d.preventDefault(), g(E, d);
|
|
539
539
|
},
|
|
@@ -549,7 +549,7 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
549
549
|
draggingColumns: l,
|
|
550
550
|
// Methods
|
|
551
551
|
draggingEventsForColumns: N,
|
|
552
|
-
draggingEventsForRowCell:
|
|
552
|
+
draggingEventsForRowCell: $,
|
|
553
553
|
onMoveColumnByOffset: n
|
|
554
554
|
};
|
|
555
555
|
}, fo = (e, s, i) => {
|
|
@@ -568,13 +568,13 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
568
568
|
() => t.value.filter((d) => (d == null ? void 0 : d.visible) !== !1 && (d == null ? void 0 : d.field) !== ye).length === 1
|
|
569
569
|
), b = (d) => i(F.UPDATE_CONDENSED, d), N = (d) => {
|
|
570
570
|
c.value = d, i(F.UPDATE_ZEBRA_ROWS, d);
|
|
571
|
-
},
|
|
571
|
+
}, $ = (d) => {
|
|
572
572
|
i(F.COLUMNS, d), i(F.UPDATE_COLUMNS, d);
|
|
573
573
|
}, E = (d) => {
|
|
574
574
|
const A = l.value.map(
|
|
575
575
|
(O) => (O == null ? void 0 : O.field) === d.field ? d : O
|
|
576
576
|
);
|
|
577
|
-
|
|
577
|
+
$(A);
|
|
578
578
|
};
|
|
579
579
|
return Le(s, (d) => {
|
|
580
580
|
c.value = d;
|
|
@@ -585,7 +585,7 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
585
585
|
internalZebraRows: c,
|
|
586
586
|
sortedColumns: l,
|
|
587
587
|
// Methods
|
|
588
|
-
onConfigSettingsColumnsUpdate:
|
|
588
|
+
onConfigSettingsColumnsUpdate: $,
|
|
589
589
|
onConfigSettingsColumnUpdate: E,
|
|
590
590
|
onConfigSettingsCondensedUpdate: b,
|
|
591
591
|
onConfigSettingsZebraRowsUpdate: N
|
|
@@ -607,12 +607,12 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
607
607
|
d.key === "Tab" || d.key !== "ArrowRight" && d.key !== "ArrowLeft" || (d.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
608
608
|
e.value && (e.value.style.overflowX = "auto");
|
|
609
609
|
}));
|
|
610
|
-
},
|
|
610
|
+
}, $ = (d) => {
|
|
611
611
|
const A = d.target.scrollLeft;
|
|
612
612
|
e.value.scrollLeft !== A && (e.value.scrollLeft = A);
|
|
613
613
|
}, E = C(() => {
|
|
614
|
-
var d, A, O,
|
|
615
|
-
return (d = n == null ? void 0 : n.pagination) != null && d.value && ((A = n == null ? void 0 : n.stickyPagination) != null && A.value || n != null && n.isDataGridTemplate) && !((O = n == null ? void 0 : n.isLazyLoad) != null && O.value) ? { bottom: `${(((
|
|
614
|
+
var d, A, O, k;
|
|
615
|
+
return (d = n == null ? void 0 : n.pagination) != null && d.value && ((A = n == null ? void 0 : n.stickyPagination) != null && A.value || n != null && n.isDataGridTemplate) && !((O = n == null ? void 0 : n.isLazyLoad) != null && O.value) ? { bottom: `${(((k = c.value) == null ? void 0 : k.clientHeight) ?? 0) + 1}px` } : {};
|
|
616
616
|
});
|
|
617
617
|
return {
|
|
618
618
|
// Values
|
|
@@ -623,11 +623,11 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
623
623
|
// Methods
|
|
624
624
|
updateScrollPosition: b,
|
|
625
625
|
updateScrollPositionOnFrozenColumnsNavigation: N,
|
|
626
|
-
syncVirtualScrollerWithBody:
|
|
626
|
+
syncVirtualScrollerWithBody: $
|
|
627
627
|
};
|
|
628
628
|
}, vo = (e, s, i, t) => {
|
|
629
629
|
const c = S(null), l = C(() => {
|
|
630
|
-
var A, O,
|
|
630
|
+
var A, O, k, p;
|
|
631
631
|
if (!c.value || c.value.field === ye)
|
|
632
632
|
return {
|
|
633
633
|
hoveredOverColumnField: "",
|
|
@@ -635,11 +635,11 @@ const Qe = "b-row-actions-column", io = (e, s, i, t, c, l) => {
|
|
|
635
635
|
noBorderLeft: !1,
|
|
636
636
|
noBorderRight: !1
|
|
637
637
|
};
|
|
638
|
-
const n = (O = (A = e.value.find((
|
|
638
|
+
const n = (O = (A = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : A.columnSet) == null ? void 0 : O.filter((M) => M.field !== ye), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), g = c.value.frozen && (n == null ? void 0 : n[0].field) === c.value.field, _ = !c.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === c.value.field, b = (s.value || i.value) && g, N = (s.value || i.value) && !n && _, $ = n && _, E = (n == null ? void 0 : n.length) > 0 && c.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === c.value.field, d = i.value && t.value && !c.value.frozen && ((p = v == null ? void 0 : v.columnSet) == null ? void 0 : p[v.columnSet.length - 1].field) === c.value.field;
|
|
639
639
|
return {
|
|
640
640
|
hoveredOverColumnField: c.value.field,
|
|
641
641
|
isSeparatorOffset: d,
|
|
642
|
-
noBorderLeft: !!b || !!N ||
|
|
642
|
+
noBorderLeft: !!b || !!N || !!$,
|
|
643
643
|
noBorderRight: !!E || !!d
|
|
644
644
|
};
|
|
645
645
|
});
|
|
@@ -938,7 +938,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
938
938
|
}, es = ["aria-label", "aria-colindex"], ts = {
|
|
939
939
|
i18n: { messages: Sl },
|
|
940
940
|
name: "data-grid-columns"
|
|
941
|
-
}, ls = /* @__PURE__ */
|
|
941
|
+
}, ls = /* @__PURE__ */ Pe({
|
|
942
942
|
...ts,
|
|
943
943
|
props: {
|
|
944
944
|
/**
|
|
@@ -1086,9 +1086,9 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["sort", "column-hover"],
|
|
1088
1088
|
setup(e, { expose: s, emit: i }) {
|
|
1089
|
-
const t = e, c = i, l = 100, { t: n } = Ve({ messages: Sl }), { columns: v, sortBy: g } = yt(t), _ = S(), b = S({}), N = S({}),
|
|
1089
|
+
const t = e, c = i, l = 100, { t: n } = Ve({ messages: Sl }), { columns: v, sortBy: g } = yt(t), _ = S(), b = S({}), N = S({}), $ = S(), E = S(), d = (r) => c(ae.SELECT_ALL_ROWS, r), A = (r) => r.field === ye, O = C(() => t.selectionState === "all"), k = C(
|
|
1090
1090
|
() => {
|
|
1091
|
-
var r, H,
|
|
1091
|
+
var r, H, U;
|
|
1092
1092
|
return [
|
|
1093
1093
|
{
|
|
1094
1094
|
text: n("selectPage"),
|
|
@@ -1113,7 +1113,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1113
1113
|
// otherwise divider shown in deselect all in current results
|
|
1114
1114
|
disabled: t.selectionState === "unselected-page"
|
|
1115
1115
|
},
|
|
1116
|
-
((
|
|
1116
|
+
((U = t.visibleRowsState) == null ? void 0 : U.filtered) && t.selectionState !== "none" && {
|
|
1117
1117
|
text: n("deselectAllCurrentResults"),
|
|
1118
1118
|
handler: () => c(ae.DESELECT_ALL_CURRENT_RESULTS),
|
|
1119
1119
|
addDivider: !0,
|
|
@@ -1125,7 +1125,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
].filter(Boolean);
|
|
1127
1127
|
}
|
|
1128
|
-
), { startResize: p, isResizing:
|
|
1128
|
+
), { startResize: p, isResizing: M, columnHoverEventToEmitAfterResizing: m } = jn(v, c), { isSorting: z, getSortingDirection: h, sortByColumnField: a } = ao(g, v, c), f = (r) => {
|
|
1129
1129
|
var Ce;
|
|
1130
1130
|
if (!r.sortable)
|
|
1131
1131
|
return null;
|
|
@@ -1150,7 +1150,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1150
1150
|
dragend: () => {
|
|
1151
1151
|
c(ae.COLUMN_DRAG_END);
|
|
1152
1152
|
}
|
|
1153
|
-
} : {}),
|
|
1153
|
+
} : {}), B = C(
|
|
1154
1154
|
() => (r) => [
|
|
1155
1155
|
{
|
|
1156
1156
|
text: n("moveColumnLeft"),
|
|
@@ -1164,7 +1164,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1164
1164
|
icon: Lo,
|
|
1165
1165
|
disabled: t.columns[t.columns.length - 1].field === r.field
|
|
1166
1166
|
},
|
|
1167
|
-
!
|
|
1167
|
+
!ue.value && {
|
|
1168
1168
|
text: r != null && r.frozen ? n("unfreezeColumn") : n("freezeColumn"),
|
|
1169
1169
|
handler: () => c(ae.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
|
|
1170
1170
|
icon: El
|
|
@@ -1182,26 +1182,26 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
].filter(Boolean)
|
|
1184
1184
|
), x = (r) => {
|
|
1185
|
-
|
|
1185
|
+
$.value = r.field, E.value && clearTimeout(E.value);
|
|
1186
1186
|
}, Z = (r) => {
|
|
1187
1187
|
const H = setTimeout(() => {
|
|
1188
|
-
r.field ===
|
|
1188
|
+
r.field === $.value && ($.value = "");
|
|
1189
1189
|
}, l);
|
|
1190
1190
|
E.value = H;
|
|
1191
1191
|
}, le = (r) => {
|
|
1192
1192
|
let H = {
|
|
1193
1193
|
mouseenter: () => {
|
|
1194
|
-
x(r),
|
|
1194
|
+
x(r), M.value ? m.value = r : c("column-hover", r);
|
|
1195
1195
|
},
|
|
1196
1196
|
mouseleave: () => {
|
|
1197
|
-
Z(r),
|
|
1197
|
+
Z(r), M.value ? m.value = null : c("column-hover", null);
|
|
1198
1198
|
},
|
|
1199
1199
|
focus: () => {
|
|
1200
1200
|
x(r), A(r) && Ot(b.value[r.field]);
|
|
1201
1201
|
},
|
|
1202
|
-
focusout: (
|
|
1202
|
+
focusout: (U) => {
|
|
1203
1203
|
var Ce;
|
|
1204
|
-
(Ce = _.value) != null && Ce.contains(
|
|
1204
|
+
(Ce = _.value) != null && Ce.contains(U == null ? void 0 : U.relatedTarget) || Z(r);
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
return A(r) || (H = {
|
|
@@ -1209,17 +1209,17 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1209
1209
|
...T.value(r)
|
|
1210
1210
|
}), H;
|
|
1211
1211
|
}, we = (r) => r.infoIconTooltip || r.sortable || t.hasColumnPanel, ge = (r, H) => {
|
|
1212
|
-
var
|
|
1213
|
-
((
|
|
1214
|
-
},
|
|
1212
|
+
var U;
|
|
1213
|
+
((U = b.value) == null ? void 0 : U[H]) === void 0 && (b.value = { ...b.value, [H]: null }), r !== null && (b.value[H] = r);
|
|
1214
|
+
}, ue = Fe(
|
|
1215
1215
|
tt,
|
|
1216
1216
|
C(() => !1)
|
|
1217
|
-
), ne =
|
|
1217
|
+
), ne = Fe(gt, S(!1)), q = C(() => {
|
|
1218
1218
|
var H;
|
|
1219
1219
|
const r = {
|
|
1220
1220
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
1221
1221
|
};
|
|
1222
|
-
return (H = v.value[0]) != null && H.frozen && !
|
|
1222
|
+
return (H = v.value[0]) != null && H.frozen && !ue.value ? {
|
|
1223
1223
|
...r,
|
|
1224
1224
|
"b-data-grid-columns--frozen": !0,
|
|
1225
1225
|
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
@@ -1231,34 +1231,34 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1231
1231
|
}), pe = C(() => ({
|
|
1232
1232
|
"b-data-grid-columns__select-column--all": t.selectableAcrossPages
|
|
1233
1233
|
})), y = (r, H) => r && H === 0 ? Gt.BOTTOM_START : Gt.BOTTOM_END, J = (r, H) => {
|
|
1234
|
-
var
|
|
1234
|
+
var U, Ce, ve, w, I, te, oe, se, re, K;
|
|
1235
1235
|
return {
|
|
1236
1236
|
"b-data-grid-columns__column--column-hovered": r.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1237
1237
|
"b-data-grid-columns__column--column-hovered-no-border-left": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1238
1238
|
"b-data-grid-columns__column--column-hovered-no-border-right": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1239
1239
|
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && H === v.value.length - 1,
|
|
1240
1240
|
"b-data-grid-columns__column--sortable": r.sortable,
|
|
1241
|
-
"b-data-grid-columns__column--padding-left-unset": ((
|
|
1241
|
+
"b-data-grid-columns__column--padding-left-unset": ((U = r == null ? void 0 : r.padding) == null ? void 0 : U.left) === !1,
|
|
1242
1242
|
"b-data-grid-columns__column--padding-right-unset": ((Ce = r == null ? void 0 : r.padding) == null ? void 0 : Ce.right) === !1,
|
|
1243
1243
|
"b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
|
|
1244
1244
|
"b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
|
|
1245
1245
|
"b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((w = (ve = t.draggingColumns) == null ? void 0 : ve.dragging) == null ? void 0 : w.field),
|
|
1246
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((te = (
|
|
1247
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((
|
|
1246
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((te = (I = t.draggingColumns) == null ? void 0 : I.target) == null ? void 0 : te.field) && ((oe = t.draggingColumns) == null ? void 0 : oe.dragToLeft),
|
|
1247
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((re = (se = t.draggingColumns) == null ? void 0 : se.target) == null ? void 0 : re.field) && !((K = t.draggingColumns) != null && K.dragToLeft),
|
|
1248
1248
|
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || t.hasColumnPanel || t.selectableAcrossPages,
|
|
1249
|
-
"b-data-grid-columns--small-container":
|
|
1249
|
+
"b-data-grid-columns--small-container": ue.value
|
|
1250
1250
|
};
|
|
1251
|
-
},
|
|
1251
|
+
}, Y = (r) => ({
|
|
1252
1252
|
"b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
|
|
1253
1253
|
}), Q = (r) => ({
|
|
1254
1254
|
"b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
|
|
1255
|
-
}),
|
|
1255
|
+
}), We = (r) => ({
|
|
1256
1256
|
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
1257
1257
|
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === r.field && t.hoveredOverColumnState.isSeparatorOffset
|
|
1258
1258
|
}), Te = C(() => ({
|
|
1259
1259
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
1260
|
-
})),
|
|
1261
|
-
"b-data-grid-columns__menu--hovered":
|
|
1260
|
+
})), Be = (r) => ({
|
|
1261
|
+
"b-data-grid-columns__menu--hovered": $.value === r.field || ne.value
|
|
1262
1262
|
});
|
|
1263
1263
|
return s({
|
|
1264
1264
|
columnHeaderRefs: b
|
|
@@ -1268,21 +1268,21 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1268
1268
|
class: ce(["b-data-grid-columns", q.value]),
|
|
1269
1269
|
"data-testid": "data-grid-columns"
|
|
1270
1270
|
}, [
|
|
1271
|
-
(u(!0), L(be, null, Ae(o(v), (
|
|
1272
|
-
key:
|
|
1271
|
+
(u(!0), L(be, null, Ae(o(v), (U, Ce) => (u(), L("div", ie({
|
|
1272
|
+
key: U.field,
|
|
1273
1273
|
ref_for: !0,
|
|
1274
|
-
ref: (ve) => ge(ve,
|
|
1274
|
+
ref: (ve) => ge(ve, U.field),
|
|
1275
1275
|
"aria-colindex": Ce + 1,
|
|
1276
|
-
"aria-label":
|
|
1277
|
-
"aria-sort": f(
|
|
1278
|
-
class: [J(
|
|
1279
|
-
"data-testid": `${
|
|
1280
|
-
draggable: e.hasDraggableColumns && !o(
|
|
1276
|
+
"aria-label": U.label,
|
|
1277
|
+
"aria-sort": f(U),
|
|
1278
|
+
class: [J(U, Ce), "b-data-grid-columns__column"],
|
|
1279
|
+
"data-testid": `${U.field}-column-header`,
|
|
1280
|
+
draggable: e.hasDraggableColumns && !o(M) && !A(U),
|
|
1281
1281
|
role: "columnheader",
|
|
1282
|
-
tabindex:
|
|
1283
|
-
style: { width:
|
|
1284
|
-
}, ft(le(
|
|
1285
|
-
A(
|
|
1282
|
+
tabindex: U.sortable || e.hasColumnPanel || U.infoIconTooltip ? "0" : "-1",
|
|
1283
|
+
style: { width: U.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${U.width}px` }
|
|
1284
|
+
}, ft(le(U), !0)), [
|
|
1285
|
+
A(U) && e.selectable ? (u(), L("div", {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
class: ce(["b-data-grid-columns__select-column", pe.value])
|
|
1288
1288
|
}, [
|
|
@@ -1298,7 +1298,7 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1298
1298
|
e.selectableAcrossPages ? (u(), G(o(wt), {
|
|
1299
1299
|
key: 1,
|
|
1300
1300
|
button: { variant: "tertiary", condensed: !0, "aria-label": o(n)("selectAllMenu") },
|
|
1301
|
-
data:
|
|
1301
|
+
data: k.value,
|
|
1302
1302
|
class: "b-data-grid-columns__select-column-menu",
|
|
1303
1303
|
"disable-arrow-down-opening-menu": "",
|
|
1304
1304
|
"menu-fixed-positioning": "",
|
|
@@ -1323,10 +1323,10 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1323
1323
|
}, 8, ["button", "data"])) : W("", !0)
|
|
1324
1324
|
], 2)) : (u(), L(be, { key: 1 }, [
|
|
1325
1325
|
R("div", {
|
|
1326
|
-
"aria-label": o(n)("columnActions", { name:
|
|
1326
|
+
"aria-label": o(n)("columnActions", { name: U.label }),
|
|
1327
1327
|
"aria-live": "polite",
|
|
1328
1328
|
role: "region",
|
|
1329
|
-
class: ce(["b-data-grid-columns__column-header-and-actions",
|
|
1329
|
+
class: ce(["b-data-grid-columns__column-header-and-actions", Y(U)])
|
|
1330
1330
|
}, [
|
|
1331
1331
|
X(o(et), {
|
|
1332
1332
|
el: "div",
|
|
@@ -1334,38 +1334,38 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1334
1334
|
class: ce(["b-data-grid-columns__column-header", Te.value])
|
|
1335
1335
|
}, {
|
|
1336
1336
|
default: V(() => [
|
|
1337
|
-
|
|
1338
|
-
R("span", Ko, ee(
|
|
1337
|
+
ze(r.$slots, `head-${U.field}`, { column: U }, () => [
|
|
1338
|
+
R("span", Ko, ee(U.label), 1)
|
|
1339
1339
|
], !0)
|
|
1340
1340
|
]),
|
|
1341
1341
|
_: 2
|
|
1342
1342
|
}, 1032, ["class"]),
|
|
1343
|
-
we(
|
|
1343
|
+
we(U) ? (u(), L("div", {
|
|
1344
1344
|
key: 0,
|
|
1345
|
-
class: ce(["b-data-grid-columns__column-actions", Q(
|
|
1345
|
+
class: ce(["b-data-grid-columns__column-actions", Q(U)])
|
|
1346
1346
|
}, [
|
|
1347
|
-
|
|
1347
|
+
U.infoIconTooltip ? (u(), L("div", Yo, [
|
|
1348
1348
|
X(o(Pn), {
|
|
1349
|
-
"tooltip-text":
|
|
1349
|
+
"tooltip-text": U.infoIconTooltip
|
|
1350
1350
|
}, null, 8, ["tooltip-text"])
|
|
1351
1351
|
])) : W("", !0),
|
|
1352
|
-
|
|
1352
|
+
U.sortable ? (u(), L("div", Jo, [
|
|
1353
1353
|
X(o(Tt), {
|
|
1354
1354
|
condensed: "",
|
|
1355
|
-
toggled: o(
|
|
1355
|
+
toggled: o(z)(U.field),
|
|
1356
1356
|
variant: "tertiary",
|
|
1357
|
-
onClick: (ve) => o(a)(
|
|
1357
|
+
onClick: (ve) => o(a)(U.field)
|
|
1358
1358
|
}, {
|
|
1359
1359
|
iconLeft: V(() => [
|
|
1360
|
-
o(h)(
|
|
1360
|
+
o(h)(U.field) ? o(h)(U.field) === o(Ge).ASCENDING ? (u(), G(o(Uo), {
|
|
1361
1361
|
key: 1,
|
|
1362
|
-
"svg-title": o(n)("sortColumnInDescendingOrder", { name:
|
|
1363
|
-
}, null, 8, ["svg-title"])) : o(h)(
|
|
1362
|
+
"svg-title": o(n)("sortColumnInDescendingOrder", { name: U.label })
|
|
1363
|
+
}, null, 8, ["svg-title"])) : o(h)(U.field) === o(Ge).DESCENDING ? (u(), G(o(Wo), {
|
|
1364
1364
|
key: 2,
|
|
1365
|
-
"svg-title": o(n)("sortColumnInAscendingOrder", { name:
|
|
1365
|
+
"svg-title": o(n)("sortColumnInAscendingOrder", { name: U.label })
|
|
1366
1366
|
}, null, 8, ["svg-title"])) : W("", !0) : (u(), G(o(wo), {
|
|
1367
1367
|
key: 0,
|
|
1368
|
-
"svg-title": o(n)("sortColumn", { name:
|
|
1368
|
+
"svg-title": o(n)("sortColumn", { name: U.label })
|
|
1369
1369
|
}, null, 8, ["svg-title"]))
|
|
1370
1370
|
]),
|
|
1371
1371
|
_: 2
|
|
@@ -1374,10 +1374,10 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1374
1374
|
e.hasColumnPanel ? (u(), G(o(wt), {
|
|
1375
1375
|
key: 2,
|
|
1376
1376
|
ref_for: !0,
|
|
1377
|
-
ref: (ve) => N.value[
|
|
1378
|
-
class: ce(["b-data-grid-columns__menu",
|
|
1377
|
+
ref: (ve) => N.value[U.field] = ve,
|
|
1378
|
+
class: ce(["b-data-grid-columns__menu", Be(U)]),
|
|
1379
1379
|
"disable-arrow-down-opening-menu": "",
|
|
1380
|
-
data:
|
|
1380
|
+
data: B.value(U),
|
|
1381
1381
|
"menu-position": y(e.hasFirstColumnPanelRightAligned, Ce),
|
|
1382
1382
|
"menu-fixed-positioning": !0,
|
|
1383
1383
|
button: { variant: "tertiary", condensed: !0 },
|
|
@@ -1387,10 +1387,10 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1387
1387
|
], 2)) : W("", !0)
|
|
1388
1388
|
], 10, qo),
|
|
1389
1389
|
R("div", {
|
|
1390
|
-
"data-testid": `data-grid-column-${
|
|
1391
|
-
class: ce(["b-data-grid-columns__column-separator-container",
|
|
1390
|
+
"data-testid": `data-grid-column-${U.field}`,
|
|
1391
|
+
class: ce(["b-data-grid-columns__column-separator-container", We(U)]),
|
|
1392
1392
|
role: "presentation",
|
|
1393
|
-
onMousedown: (ve) => o(p)(e.hasResizableColumns,
|
|
1393
|
+
onMousedown: (ve) => o(p)(e.hasResizableColumns, U.field, ve),
|
|
1394
1394
|
onClick: H[2] || (H[2] = Cn(() => {
|
|
1395
1395
|
}, ["stop"]))
|
|
1396
1396
|
}, [
|
|
@@ -1404,19 +1404,19 @@ const xo = /* @__PURE__ */ fe(Ho, [["render", Vo]]), Sl = {
|
|
|
1404
1404
|
class: "b-data-grid-columns__row-actions-filler"
|
|
1405
1405
|
}, null, -1)),
|
|
1406
1406
|
R("div", {
|
|
1407
|
-
ref: (
|
|
1407
|
+
ref: (U) => ge(U, o(Qe)),
|
|
1408
1408
|
"aria-label": o(n)("rowActionsColumn"),
|
|
1409
1409
|
"aria-colindex": o(v).length + 1,
|
|
1410
1410
|
class: "b-data-grid-columns__column",
|
|
1411
1411
|
role: "columnheader",
|
|
1412
1412
|
tabindex: "0",
|
|
1413
|
-
style:
|
|
1413
|
+
style: Me({ minWidth: `${e.rowActionsMaximumWidth}px` })
|
|
1414
1414
|
}, null, 12, es)
|
|
1415
1415
|
], 64)) : W("", !0)
|
|
1416
1416
|
], 2));
|
|
1417
1417
|
}
|
|
1418
1418
|
}), ns = /* @__PURE__ */ fe(ls, [["__scopeId", "data-v-ee88da0d"]]);
|
|
1419
|
-
var
|
|
1419
|
+
var ke = /* @__PURE__ */ ((e) => (e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e))(ke || {});
|
|
1420
1420
|
let ol = 0;
|
|
1421
1421
|
const os = {
|
|
1422
1422
|
beforeCreate() {
|
|
@@ -1457,7 +1457,7 @@ const ds = /* @__PURE__ */ fe(os, [["render", rs]]), sl = {
|
|
|
1457
1457
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1458
1458
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1459
1459
|
}
|
|
1460
|
-
}, us =
|
|
1460
|
+
}, us = Pe({
|
|
1461
1461
|
i18n: { messages: sl },
|
|
1462
1462
|
name: "bento-data-grid",
|
|
1463
1463
|
components: {
|
|
@@ -1483,12 +1483,12 @@ const ds = /* @__PURE__ */ fe(os, [["render", rs]]), sl = {
|
|
|
1483
1483
|
emits: ["visible-column", "updated-column"],
|
|
1484
1484
|
setup(e, { emit: s }) {
|
|
1485
1485
|
const { t: i } = Ve({ messages: sl }), t = S(!1), c = C(() => {
|
|
1486
|
-
var
|
|
1487
|
-
return (
|
|
1486
|
+
var $;
|
|
1487
|
+
return ($ = e.column) == null ? void 0 : $.frozen;
|
|
1488
1488
|
}), l = C(() => {
|
|
1489
|
-
var
|
|
1490
|
-
return ((
|
|
1491
|
-
}), n =
|
|
1489
|
+
var $;
|
|
1490
|
+
return (($ = e.column) == null ? void 0 : $.visible) !== !1;
|
|
1491
|
+
}), n = Fe(
|
|
1492
1492
|
tt,
|
|
1493
1493
|
C(() => !1)
|
|
1494
1494
|
), v = () => {
|
|
@@ -1575,7 +1575,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1575
1575
|
condensed: "Condensado",
|
|
1576
1576
|
search: "Buscar"
|
|
1577
1577
|
}
|
|
1578
|
-
}, gs =
|
|
1578
|
+
}, gs = Pe({
|
|
1579
1579
|
i18n: { messages: al },
|
|
1580
1580
|
name: "bento-data-grid",
|
|
1581
1581
|
components: {
|
|
@@ -1615,12 +1615,12 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1615
1615
|
}
|
|
1616
1616
|
},
|
|
1617
1617
|
emits: [
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1618
|
+
ke.UPDATE_CONDENSED,
|
|
1619
|
+
ke.UPDATE_COLUMNS,
|
|
1620
|
+
ke.UPDATE_ZEBRA_ROWS
|
|
1621
1621
|
],
|
|
1622
1622
|
setup(e, { emit: s }) {
|
|
1623
|
-
const { t: i } = Ve({ messages: al }), t = S(null), c = ct("data-grid-config-settings-popover"), l = S(null), n = S(!1), v = S(!0), g = S(null), _ = S(""), b = bt(e, "columns"), N = S(!1),
|
|
1623
|
+
const { t: i } = Ve({ messages: al }), t = S(null), c = ct("data-grid-config-settings-popover"), l = S(null), n = S(!1), v = S(!0), g = S(null), _ = S(""), b = bt(e, "columns"), N = S(!1), $ = zn(_, b), E = () => {
|
|
1624
1624
|
_.value = "";
|
|
1625
1625
|
}, d = C(
|
|
1626
1626
|
() => !e.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
@@ -1632,26 +1632,26 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1632
1632
|
var f, T;
|
|
1633
1633
|
return (T = (f = g == null ? void 0 : g.value) == null ? void 0 : f.$el) == null ? void 0 : T.focus();
|
|
1634
1634
|
}), v.value = d.value;
|
|
1635
|
-
}, O = (f) => f.mandatory ?? !1,
|
|
1636
|
-
const T = e.columns.map((
|
|
1637
|
-
...
|
|
1638
|
-
visible: f.field ===
|
|
1635
|
+
}, O = (f) => f.mandatory ?? !1, k = (f) => {
|
|
1636
|
+
const T = e.columns.map((B) => ({
|
|
1637
|
+
...B,
|
|
1638
|
+
visible: f.field === B.field ? f.visible : B.visible
|
|
1639
1639
|
}));
|
|
1640
|
-
s(
|
|
1640
|
+
s(ke.UPDATE_COLUMNS, T);
|
|
1641
1641
|
}, p = (f) => {
|
|
1642
1642
|
f ? s(
|
|
1643
|
-
|
|
1643
|
+
ke.UPDATE_COLUMNS,
|
|
1644
1644
|
e.columns.map((T) => ({ ...T, visible: !0 }))
|
|
1645
1645
|
) : s(
|
|
1646
|
-
|
|
1646
|
+
ke.UPDATE_COLUMNS,
|
|
1647
1647
|
e.columns.map((T) => ({ ...T, visible: (T == null ? void 0 : T.mandatory) === !0 }))
|
|
1648
1648
|
);
|
|
1649
|
-
},
|
|
1650
|
-
const T = e.columns.map((
|
|
1651
|
-
...
|
|
1652
|
-
frozen: f.field ===
|
|
1649
|
+
}, M = (f) => {
|
|
1650
|
+
const T = e.columns.map((B) => ({
|
|
1651
|
+
...B,
|
|
1652
|
+
frozen: f.field === B.field ? !!(f != null && f.frozen) : !!(B != null && B.frozen)
|
|
1653
1653
|
}));
|
|
1654
|
-
s(
|
|
1654
|
+
s(ke.UPDATE_COLUMNS, T);
|
|
1655
1655
|
}, m = (f) => {
|
|
1656
1656
|
n.value = f, v.value = d.value;
|
|
1657
1657
|
};
|
|
@@ -1661,7 +1661,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1661
1661
|
popoverId: c,
|
|
1662
1662
|
isConfigSettingsPanelOpen: n,
|
|
1663
1663
|
allColumnsVisbilityToggleState: v,
|
|
1664
|
-
filteredColumnVisibilityColumns:
|
|
1664
|
+
filteredColumnVisibilityColumns: $,
|
|
1665
1665
|
searchTerm: _,
|
|
1666
1666
|
isColumnVisibilityFilterShown: N,
|
|
1667
1667
|
searchBarRef: l,
|
|
@@ -1669,15 +1669,15 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1669
1669
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: ye,
|
|
1670
1670
|
// Methods
|
|
1671
1671
|
setConfigSettingsPanelVisibility: m,
|
|
1672
|
-
emitCondensedToggle: (f) => s(
|
|
1672
|
+
emitCondensedToggle: (f) => s(ke.UPDATE_CONDENSED, f),
|
|
1673
1673
|
toggleAllColumnVisibility: p,
|
|
1674
1674
|
clearAction: E,
|
|
1675
1675
|
toggleColumnFilter: A,
|
|
1676
|
-
emitVisibleColumns:
|
|
1677
|
-
emitFrozenColumns:
|
|
1676
|
+
emitVisibleColumns: k,
|
|
1677
|
+
emitFrozenColumns: M,
|
|
1678
1678
|
onClickOutside: () => m(!1),
|
|
1679
1679
|
isColumnVisibilityToggleDisabled: O,
|
|
1680
|
-
emitZebraRowsToggle: (f) => s(
|
|
1680
|
+
emitZebraRowsToggle: (f) => s(ke.UPDATE_ZEBRA_ROWS, f),
|
|
1681
1681
|
// Translations
|
|
1682
1682
|
t: i
|
|
1683
1683
|
};
|
|
@@ -1693,7 +1693,7 @@ const fs = /* @__PURE__ */ fe(us, [["render", cs], ["__scopeId", "data-v-0769d04
|
|
|
1693
1693
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1694
1694
|
}, ps = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1695
1695
|
function Rs(e, s, i, t, c, l) {
|
|
1696
|
-
const n = Oe("bento-settings-icon"), v = Oe("bento-toggle-button"), g = Oe("bento-typography"), _ = Oe("bento-cross-icon"), b = Oe("bento-button"), N = Oe("bento-toggle"),
|
|
1696
|
+
const n = Oe("bento-settings-icon"), v = Oe("bento-toggle-button"), g = Oe("bento-typography"), _ = Oe("bento-cross-icon"), b = Oe("bento-button"), N = Oe("bento-toggle"), $ = Oe("bento-search-icon"), E = Oe("bento-search-bar"), d = Oe("bento-data-grid-config-settings-config-row"), A = Oe("bento-popover"), O = bn("bento-click-outside-directive");
|
|
1697
1697
|
return Lt((u(), L("div", vs, [
|
|
1698
1698
|
R("div", ms, [
|
|
1699
1699
|
R("div", hs, [
|
|
@@ -1702,7 +1702,7 @@ function Rs(e, s, i, t, c, l) {
|
|
|
1702
1702
|
variant: "tertiary",
|
|
1703
1703
|
condensed: "",
|
|
1704
1704
|
toggled: e.isConfigSettingsPanelOpen,
|
|
1705
|
-
onClick: s[0] || (s[0] = (
|
|
1705
|
+
onClick: s[0] || (s[0] = (k) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
|
|
1706
1706
|
}, {
|
|
1707
1707
|
iconLeft: V(() => [
|
|
1708
1708
|
X(n, {
|
|
@@ -1735,7 +1735,7 @@ function Rs(e, s, i, t, c, l) {
|
|
|
1735
1735
|
}),
|
|
1736
1736
|
X(b, {
|
|
1737
1737
|
variant: "tertiary",
|
|
1738
|
-
onClick: s[1] || (s[1] = (
|
|
1738
|
+
onClick: s[1] || (s[1] = (k) => e.setConfigSettingsPanelVisibility(!1))
|
|
1739
1739
|
}, {
|
|
1740
1740
|
iconLeft: V(() => [
|
|
1741
1741
|
X(_, {
|
|
@@ -1814,7 +1814,7 @@ function Rs(e, s, i, t, c, l) {
|
|
|
1814
1814
|
onClick: e.toggleColumnFilter
|
|
1815
1815
|
}, {
|
|
1816
1816
|
iconLeft: V(() => [
|
|
1817
|
-
X(
|
|
1817
|
+
X($)
|
|
1818
1818
|
]),
|
|
1819
1819
|
default: V(() => [
|
|
1820
1820
|
he(ee(e.t("search")), 1)
|
|
@@ -1827,7 +1827,7 @@ function Rs(e, s, i, t, c, l) {
|
|
|
1827
1827
|
ref: "searchBarRef",
|
|
1828
1828
|
value: e.searchTerm,
|
|
1829
1829
|
"input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
|
|
1830
|
-
onInput: s[2] || (s[2] = (
|
|
1830
|
+
onInput: s[2] || (s[2] = (k) => e.searchTerm = k),
|
|
1831
1831
|
onClear: e.clearAction,
|
|
1832
1832
|
onEscapePressed: e.toggleColumnFilter
|
|
1833
1833
|
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
@@ -1844,13 +1844,13 @@ function Rs(e, s, i, t, c, l) {
|
|
|
1844
1844
|
}, 8, ["value", "onInput"])
|
|
1845
1845
|
])),
|
|
1846
1846
|
R("div", ps, [
|
|
1847
|
-
(u(!0), L(be, null, Ae(e.filteredColumnVisibilityColumns, (
|
|
1848
|
-
key:
|
|
1847
|
+
(u(!0), L(be, null, Ae(e.filteredColumnVisibilityColumns, (k) => (u(), L("div", {
|
|
1848
|
+
key: k.field
|
|
1849
1849
|
}, [
|
|
1850
|
-
|
|
1850
|
+
k.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (u(), G(d, {
|
|
1851
1851
|
key: 0,
|
|
1852
|
-
column:
|
|
1853
|
-
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(
|
|
1852
|
+
column: k,
|
|
1853
|
+
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(k),
|
|
1854
1854
|
onVisibleColumn: e.emitVisibleColumns,
|
|
1855
1855
|
onUpdatedColumn: e.emitFrozenColumns
|
|
1856
1856
|
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : W("", !0)
|
|
@@ -1897,7 +1897,7 @@ const As = /* @__PURE__ */ fe(gs, [["render", Rs], ["__scopeId", "data-v-01dda33
|
|
|
1897
1897
|
}
|
|
1898
1898
|
}, Ts = { class: "b-data-grid-lazy-load" }, Os = {
|
|
1899
1899
|
i18n: { messages: vt }
|
|
1900
|
-
}, Ns = /* @__PURE__ */
|
|
1900
|
+
}, Ns = /* @__PURE__ */ Pe({
|
|
1901
1901
|
...Os,
|
|
1902
1902
|
__name: "data-grid-lazy-load",
|
|
1903
1903
|
props: {
|
|
@@ -1975,7 +1975,7 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
1975
1975
|
}, Us = { class: "b-data-grid-cell-actions" }, Ms = {
|
|
1976
1976
|
i18n: { messages: Ll },
|
|
1977
1977
|
name: "data-grid-cell-actions"
|
|
1978
|
-
}, zs = /* @__PURE__ */
|
|
1978
|
+
}, zs = /* @__PURE__ */ Pe({
|
|
1979
1979
|
...Ms,
|
|
1980
1980
|
props: {
|
|
1981
1981
|
/**
|
|
@@ -2045,7 +2045,7 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2045
2045
|
},
|
|
2046
2046
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
2047
2047
|
setup(e, { emit: s }) {
|
|
2048
|
-
const { t: i } = Ve({ messages: Ll }), t = e, c = s, l =
|
|
2048
|
+
const { t: i } = Ve({ messages: Ll }), t = e, c = s, l = Fe(gt, S(!1)), n = (m) => {
|
|
2049
2049
|
if ("text" in m && m.text !== void 0)
|
|
2050
2050
|
return m.text;
|
|
2051
2051
|
switch (m.variant) {
|
|
@@ -2082,12 +2082,12 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2082
2082
|
"b-data-grid-cell-actions__actions--highlighted": t.isHighlighted,
|
|
2083
2083
|
"b-data-grid-cell-actions__actions--selected": t.isSelected
|
|
2084
2084
|
})), N = C(() => !g.value || g.value && t.hasRightOverflow);
|
|
2085
|
-
function
|
|
2085
|
+
function $(m) {
|
|
2086
2086
|
return typeof m == "function";
|
|
2087
2087
|
}
|
|
2088
2088
|
const E = C(() => {
|
|
2089
|
-
var
|
|
2090
|
-
const m =
|
|
2089
|
+
var z;
|
|
2090
|
+
const m = $(t.cellActions) ? (z = t.cellActions) == null ? void 0 : z.call(t, t.rowDataItem, t.columnKey) : t.cellActions;
|
|
2091
2091
|
if (l.value && !g.value && m) {
|
|
2092
2092
|
const h = [];
|
|
2093
2093
|
return m.forEach((a) => {
|
|
@@ -2105,15 +2105,15 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2105
2105
|
variant: "more",
|
|
2106
2106
|
isShort: !0,
|
|
2107
2107
|
iconLeft: Ht,
|
|
2108
|
-
menuData:
|
|
2108
|
+
menuData: k(h)
|
|
2109
2109
|
}
|
|
2110
2110
|
];
|
|
2111
2111
|
}
|
|
2112
2112
|
return !l.value && (m == null ? void 0 : m.length) > 2 && vl(
|
|
2113
2113
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
2114
2114
|
), m == null ? void 0 : m.slice(0, 2);
|
|
2115
|
-
}), d = C(() => (m,
|
|
2116
|
-
if (!(!
|
|
2115
|
+
}), d = C(() => (m, z) => {
|
|
2116
|
+
if (!(!z && m.isShort || z && !m.isShort))
|
|
2117
2117
|
switch (m.variant) {
|
|
2118
2118
|
case "copy":
|
|
2119
2119
|
return i("copy");
|
|
@@ -2127,22 +2127,22 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2127
2127
|
return m.title;
|
|
2128
2128
|
}
|
|
2129
2129
|
}), A = (m) => (m == null ? void 0 : m.event) !== void 0 ? {
|
|
2130
|
-
click: (
|
|
2131
|
-
|
|
2130
|
+
click: (z) => {
|
|
2131
|
+
z.stopPropagation(), m.event(t.rowDataItem, t.columnKey);
|
|
2132
2132
|
}
|
|
2133
2133
|
} : {}, O = (m) => ({
|
|
2134
2134
|
...m,
|
|
2135
2135
|
handler: () => {
|
|
2136
2136
|
m != null && m.handler && typeof m.handler == "function" && (m == null || m.handler()), m != null && m.event && typeof m.event == "function" && (m == null || m.event(t.rowDataItem, t.columnKey));
|
|
2137
2137
|
}
|
|
2138
|
-
}),
|
|
2139
|
-
const h =
|
|
2140
|
-
return h != null && h.items && (h.items =
|
|
2138
|
+
}), k = (m) => m.map((z) => {
|
|
2139
|
+
const h = z;
|
|
2140
|
+
return h != null && h.items && (h.items = k(h.items)), { ...O(h) };
|
|
2141
2141
|
}), p = (m) => {
|
|
2142
|
-
var
|
|
2143
|
-
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (h = (
|
|
2144
|
-
},
|
|
2145
|
-
return (m,
|
|
2142
|
+
var z, h;
|
|
2143
|
+
return (m == null ? void 0 : m.getCopyData) !== void 0 ? m.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (h = (z = t.rowDataItem) == null ? void 0 : z[t.columnKey]) == null ? void 0 : h.toString() : "";
|
|
2144
|
+
}, M = (m) => m.iconLeft || (m == null ? void 0 : m.variant) === "more";
|
|
2145
|
+
return (m, z) => (u(), G(fl, {
|
|
2146
2146
|
name: "b-data-grid-cell-actions__animation",
|
|
2147
2147
|
appear: ""
|
|
2148
2148
|
}, {
|
|
@@ -2162,7 +2162,7 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2162
2162
|
}, [
|
|
2163
2163
|
h.menuData ? (u(), G(o(wt), {
|
|
2164
2164
|
key: 0,
|
|
2165
|
-
data:
|
|
2165
|
+
data: k(h.menuData),
|
|
2166
2166
|
button: {
|
|
2167
2167
|
condensed: !0,
|
|
2168
2168
|
variant: "secondary",
|
|
@@ -2170,11 +2170,11 @@ const rl = /* @__PURE__ */ fe(Ds, [["render", ks]]), Ll = {
|
|
|
2170
2170
|
},
|
|
2171
2171
|
"disable-arrow-down-opening-menu": e.disableArrowDownOpeningMenu,
|
|
2172
2172
|
teleport: e.teleportMenu,
|
|
2173
|
-
onOpen:
|
|
2174
|
-
onClose:
|
|
2175
|
-
onMenuItemClick:
|
|
2173
|
+
onOpen: z[0] || (z[0] = (f) => c("menu-open")),
|
|
2174
|
+
onClose: z[1] || (z[1] = (f) => c("menu-close")),
|
|
2175
|
+
onMenuItemClick: z[2] || (z[2] = (f) => c("menu-item-click"))
|
|
2176
2176
|
}, Ke({ _: 2 }, [
|
|
2177
|
-
|
|
2177
|
+
M(h) ? {
|
|
2178
2178
|
name: "iconLeft",
|
|
2179
2179
|
fn: V(() => [
|
|
2180
2180
|
(h == null ? void 0 : h.variant) === "more" ? (u(), G(o(Ht), {
|
|
@@ -2268,7 +2268,7 @@ const dl = () => {
|
|
|
2268
2268
|
}, Ws = {
|
|
2269
2269
|
i18n: { messages: Rl },
|
|
2270
2270
|
name: "data-grid-cell"
|
|
2271
|
-
}, Hs = /* @__PURE__ */
|
|
2271
|
+
}, Hs = /* @__PURE__ */ Pe({
|
|
2272
2272
|
...Ws,
|
|
2273
2273
|
props: {
|
|
2274
2274
|
draggingEventsForRowCell: {
|
|
@@ -2410,9 +2410,9 @@ const dl = () => {
|
|
|
2410
2410
|
required: !0
|
|
2411
2411
|
}
|
|
2412
2412
|
},
|
|
2413
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
2413
|
+
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2414
2414
|
setup(e, { expose: s, emit: i }) {
|
|
2415
|
-
const t = pt(), c = Rt(t), { t: l } = Ve({ messages: Rl }), n = e, v = i, g = S(null), _ = S(null), b = S(!1), N = S([]),
|
|
2415
|
+
const t = pt(), c = Rt(t), { t: l } = Ve({ messages: Rl }), n = e, v = i, g = S(null), _ = S(null), b = S(!1), N = S([]), $ = S(!1), E = S(), d = S(!1), A = C(() => {
|
|
2416
2416
|
var y;
|
|
2417
2417
|
return !!((y = n.rowData) != null && y[n.column.field]);
|
|
2418
2418
|
}), O = C(
|
|
@@ -2420,40 +2420,45 @@ const dl = () => {
|
|
|
2420
2420
|
var y;
|
|
2421
2421
|
return n.column.field === ye && ((y = n.nestedRowsElementIds) == null ? void 0 : y.length) > 0 ? n.nestedRowsElementIds.join(" ") : void 0;
|
|
2422
2422
|
}
|
|
2423
|
-
),
|
|
2423
|
+
), k = C(
|
|
2424
2424
|
() => n.column.field === ye && !n.selectable && !n.nestedContent
|
|
2425
|
-
), p = C(() =>
|
|
2425
|
+
), p = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !d.value || $.value) ? "0" : (n.column.field === ye, "-1")), M = (y, J) => (y == null ? void 0 : y.overflow) === Et.ELLIPSIS ? `${J}` : void 0, m = (y) => y ?? "-", z = (y) => n.columnSets.slice(0, y).reduce((J, { columnSet: Y }) => J + Y.length, 0), h = (y, J) => y + z(J), a = (y, J, Y) => z() * y + h(J, Y), f = (y) => {
|
|
2426
2426
|
var J;
|
|
2427
|
-
(y === null || !g.value.contains(y) && !((J = N.value) != null && J.map((
|
|
2427
|
+
(y === null || !g.value.contains(y) && !((J = N.value) != null && J.map((Y) => Y.value).some((Y) => Y === y || (Y == null ? void 0 : Y.contains(y))))) && (b.value = !1);
|
|
2428
2428
|
}, T = () => {
|
|
2429
2429
|
b.value = !1;
|
|
2430
|
-
},
|
|
2430
|
+
}, B = S(!1), x = (y) => {
|
|
2431
2431
|
const J = {
|
|
2432
2432
|
...n.draggingEventsForRowCell(y),
|
|
2433
2433
|
// Focus on the first interactive child in the grid cell if one exists
|
|
2434
2434
|
focus: async () => {
|
|
2435
2435
|
if (!dl())
|
|
2436
2436
|
return;
|
|
2437
|
-
|
|
2437
|
+
$.value = !0, d.value = !0, v("cell-focus", {
|
|
2438
|
+
rowData: n.rowData,
|
|
2439
|
+
column: n.column,
|
|
2440
|
+
rowIndex: n.rowIndex,
|
|
2441
|
+
colIndex: h(n.colIndex, n.columnSetIndex)
|
|
2442
|
+
}), wl(E.value), await _e(), Ot(g.value) && (B.value = !0);
|
|
2438
2443
|
},
|
|
2439
2444
|
focusout: () => {
|
|
2440
|
-
dl() && (
|
|
2445
|
+
dl() && (B.value = !1);
|
|
2441
2446
|
},
|
|
2442
2447
|
keydown: (Q) => {
|
|
2443
|
-
Q.key !== Ne.TAB && (
|
|
2448
|
+
Q.key !== Ne.TAB && (B.value = !1, $.value = !1, Ze(g.value));
|
|
2444
2449
|
}
|
|
2445
|
-
},
|
|
2446
|
-
return y.frozen && (
|
|
2450
|
+
}, Y = { ...J };
|
|
2451
|
+
return y.frozen && (Y.keyup = (Q) => v("on-frozen-columns-key-press", Q), Y.keydown = (Q) => {
|
|
2447
2452
|
J.keydown(Q), v("on-frozen-columns-key-press", Q);
|
|
2448
|
-
}), y.cellActions && (
|
|
2453
|
+
}), y.cellActions && (Y.mouseenter = () => {
|
|
2449
2454
|
b.value = !0;
|
|
2450
|
-
},
|
|
2455
|
+
}, Y.mouseleave = (Q) => {
|
|
2451
2456
|
f(Q == null ? void 0 : Q.relatedTarget);
|
|
2452
|
-
},
|
|
2457
|
+
}, Y.focus = async (Q) => {
|
|
2453
2458
|
J.focus(Q), await _e(), b.value = !0;
|
|
2454
|
-
},
|
|
2459
|
+
}, Y.focusout = (Q) => {
|
|
2455
2460
|
J.focusout(Q), f(Q == null ? void 0 : Q.relatedTarget);
|
|
2456
|
-
}),
|
|
2461
|
+
}), Y;
|
|
2457
2462
|
};
|
|
2458
2463
|
Ye(() => {
|
|
2459
2464
|
E.value = Ze(g.value);
|
|
@@ -2474,43 +2479,43 @@ const dl = () => {
|
|
|
2474
2479
|
g.value.contains(y == null ? void 0 : y.relatedTarget) || (b.value = !1);
|
|
2475
2480
|
}
|
|
2476
2481
|
});
|
|
2477
|
-
const ge =
|
|
2482
|
+
const ge = Fe(yl, S(!1)), ue = Fe(
|
|
2478
2483
|
tt,
|
|
2479
2484
|
C(() => !1)
|
|
2480
|
-
), ne =
|
|
2481
|
-
var J,
|
|
2485
|
+
), ne = Fe(gt, S(!1)), q = (y) => {
|
|
2486
|
+
var J, Y, Q, We, Te, Be, r;
|
|
2482
2487
|
return {
|
|
2483
2488
|
[`b-data-grid-cell--${me.COLUMN_HOVERED}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
2484
2489
|
[`b-data-grid-cell--${me.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
2485
2490
|
[`b-data-grid-cell--${me.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (y == null ? void 0 : y.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
2486
2491
|
[`b-data-grid-cell--${me.PADDING_LEFT_UNSET}`]: ((J = y == null ? void 0 : y.padding) == null ? void 0 : J.left) === !1,
|
|
2487
|
-
[`b-data-grid-cell--${me.PADDING_RIGHT_UNSET}`]: ((
|
|
2492
|
+
[`b-data-grid-cell--${me.PADDING_RIGHT_UNSET}`]: ((Y = y == null ? void 0 : y.padding) == null ? void 0 : Y.right) === !1,
|
|
2488
2493
|
[`b-data-grid-cell--${me.NUMERIC}`]: y == null ? void 0 : y.numeric,
|
|
2489
2494
|
[`b-data-grid-cell--${me.CONDENSED}`]: n.condensed,
|
|
2490
2495
|
[`b-data-grid-cell--${me.OVERFLOW_ELLIPSIS}`]: (y == null ? void 0 : y.overflow) === Et.ELLIPSIS,
|
|
2491
2496
|
[`b-data-grid-cell--${me.IS_COLUMN_REORDERING}`]: ((Q = n.draggingColumns.dragging) == null ? void 0 : Q.field) === y.field,
|
|
2492
|
-
[`b-data-grid-cell--${me.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((
|
|
2493
|
-
[`b-data-grid-cell--${me.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((
|
|
2497
|
+
[`b-data-grid-cell--${me.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((We = n.draggingColumns.target) == null ? void 0 : We.field) === y.field && ((Te = n.draggingColumns) == null ? void 0 : Te.dragToLeft),
|
|
2498
|
+
[`b-data-grid-cell--${me.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be = n.draggingColumns.target) == null ? void 0 : Be.field) === y.field && !((r = n.draggingColumns) != null && r.dragToLeft),
|
|
2494
2499
|
[`b-data-grid-cell--${me.FROZEN}`]: y == null ? void 0 : y.frozen,
|
|
2495
2500
|
[`b-data-grid-cell--${me.NESTED_CONTENT_ENABLED}`]: n.nestedContent,
|
|
2496
2501
|
[`b-data-grid-cell--${me.ACTION_COL_NESTED_CONTENT_ENABLED}`]: n.nestedContent && !n.selectable && y.field === ye,
|
|
2497
2502
|
[`b-data-grid-cell--${me.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: n.nestedContent && n.selectable && y.field === ye,
|
|
2498
2503
|
[`b-data-grid-cell--${me.ACTION_COL_SELECTION_ENABLED}`]: y.field === ye && n.selectable,
|
|
2499
2504
|
[`b-data-grid-cell--${me.SLASHED_ZERO}`]: ge.value,
|
|
2500
|
-
"b-data-grid-cell--small-container":
|
|
2505
|
+
"b-data-grid-cell--small-container": ue.value
|
|
2501
2506
|
};
|
|
2502
2507
|
}, pe = C(() => ({
|
|
2503
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element":
|
|
2508
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": B.value
|
|
2504
2509
|
}));
|
|
2505
2510
|
return s({
|
|
2506
2511
|
gridcellRef: g
|
|
2507
2512
|
}), (y, J) => {
|
|
2508
|
-
var
|
|
2513
|
+
var Y;
|
|
2509
2514
|
return u(), L("div", ie({
|
|
2510
2515
|
key: `cell-${e.column.field}`,
|
|
2511
2516
|
ref_key: "gridcellRef",
|
|
2512
2517
|
ref: g,
|
|
2513
|
-
"aria-hidden":
|
|
2518
|
+
"aria-hidden": k.value,
|
|
2514
2519
|
"data-testid": `cell-${e.column.field}`,
|
|
2515
2520
|
"data-cellindex": a(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2516
2521
|
class: ["b-data-grid-cell", q(e.column)],
|
|
@@ -2530,7 +2535,7 @@ const dl = () => {
|
|
|
2530
2535
|
indeterminate: e.selectionIsIndeterminate,
|
|
2531
2536
|
"model-value": e.selectedItems,
|
|
2532
2537
|
value: e.getDataItemId(e.rowData),
|
|
2533
|
-
tabindex:
|
|
2538
|
+
tabindex: $.value ? 0 : -1,
|
|
2534
2539
|
"onUpdate:modelValue": J[0] || (J[0] = (Q) => y.$emit("select-row", Q))
|
|
2535
2540
|
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : W("", !0),
|
|
2536
2541
|
e.nestedContent ? (u(), G(o(Tt), {
|
|
@@ -2563,18 +2568,18 @@ const dl = () => {
|
|
|
2563
2568
|
"data-testid": "cell-content"
|
|
2564
2569
|
}, {
|
|
2565
2570
|
default: V(() => [
|
|
2566
|
-
|
|
2571
|
+
ze(y.$slots, `item-${e.column.field}`, {
|
|
2567
2572
|
item: e.rowData,
|
|
2568
2573
|
rowIndex: e.rowIndex
|
|
2569
2574
|
}, () => [
|
|
2570
2575
|
R("span", {
|
|
2571
|
-
title:
|
|
2576
|
+
title: M(e.column, e.rowData[e.column.field])
|
|
2572
2577
|
}, ee(m(e.rowData[e.column.field])), 9, Ps)
|
|
2573
2578
|
], !0)
|
|
2574
2579
|
]),
|
|
2575
2580
|
_: 3
|
|
2576
2581
|
}, 8, ["class"]),
|
|
2577
|
-
((
|
|
2582
|
+
((Y = e.column.cellActions) == null ? void 0 : Y.length) > 0 ? (u(), L("div", Bs, [
|
|
2578
2583
|
(b.value || o(ne)) && (A.value || o(c)(`item-${e.column.field}`)) ? (u(), G(pl, {
|
|
2579
2584
|
key: 0,
|
|
2580
2585
|
ref_key: "cellActionsRef",
|
|
@@ -2593,7 +2598,7 @@ const dl = () => {
|
|
|
2593
2598
|
], 16, Fs);
|
|
2594
2599
|
};
|
|
2595
2600
|
}
|
|
2596
|
-
}), Gs = /* @__PURE__ */ fe(Hs, [["__scopeId", "data-v-
|
|
2601
|
+
}), Gs = /* @__PURE__ */ fe(Hs, [["__scopeId", "data-v-51166457"]]), Vs = {
|
|
2597
2602
|
class: "b-data-grid-row-container",
|
|
2598
2603
|
role: "presentation"
|
|
2599
2604
|
}, xs = ["id", "aria-selected"], Zs = ["data-testid"], js = ["aria-colindex", "data-cellindex"], qs = {
|
|
@@ -2604,7 +2609,7 @@ const dl = () => {
|
|
|
2604
2609
|
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2605
2610
|
}, Ys = { key: 1 }, Js = {
|
|
2606
2611
|
name: "data-grid-row"
|
|
2607
|
-
}, Xs = /* @__PURE__ */
|
|
2612
|
+
}, Xs = /* @__PURE__ */ Pe({
|
|
2608
2613
|
...Js,
|
|
2609
2614
|
props: {
|
|
2610
2615
|
/**
|
|
@@ -2811,36 +2816,36 @@ const dl = () => {
|
|
|
2811
2816
|
default: (e) => !0
|
|
2812
2817
|
}
|
|
2813
2818
|
},
|
|
2814
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2819
|
+
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2815
2820
|
setup(e, { expose: s, emit: i }) {
|
|
2816
|
-
const t = pt(), c = Rt(t), l = e, n = i, v = S({}), g = S(!1), _ = S(), b = S(), N = ct("nested-content-slot"),
|
|
2821
|
+
const t = pt(), c = Rt(t), l = e, n = i, v = S({}), g = S(!1), _ = S(), b = S(), N = ct("nested-content-slot"), $ = S(!1), E = S();
|
|
2817
2822
|
Ye(() => {
|
|
2818
2823
|
b.value && (E.value = Ze(b.value));
|
|
2819
2824
|
});
|
|
2820
2825
|
const d = C(() => l.shouldShowNestedRows(l.rowData)), A = C(
|
|
2821
2826
|
() => {
|
|
2822
|
-
var w,
|
|
2823
|
-
return !l.isNestedRow && l.hasNestedRows && d.value && ((
|
|
2827
|
+
var w, I;
|
|
2828
|
+
return !l.isNestedRow && l.hasNestedRows && d.value && ((I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.length) > 0;
|
|
2824
2829
|
}
|
|
2825
2830
|
), O = C(
|
|
2826
2831
|
() => {
|
|
2827
|
-
var w,
|
|
2828
|
-
return !l.isNestedRow && l.hasNestedRows && d.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((
|
|
2832
|
+
var w, I;
|
|
2833
|
+
return !l.isNestedRow && l.hasNestedRows && d.value && (((w = l.rowData) == null ? void 0 : w.children) === void 0 || ((I = l == null ? void 0 : l.rowData) == null ? void 0 : I.children.length) === 0);
|
|
2829
2834
|
}
|
|
2830
|
-
),
|
|
2835
|
+
), k = C(
|
|
2831
2836
|
() => l.hasNestedContent && l.shouldShowNestedContent(l.rowData) || l.hasNestedRows && d.value && !l.isNestedRow
|
|
2832
2837
|
), p = C(() => {
|
|
2833
2838
|
if (l.hasNestedContent || l.hasNestedRows) {
|
|
2834
2839
|
const w = g.value.toString();
|
|
2835
2840
|
return {
|
|
2836
|
-
"aria-expanded":
|
|
2841
|
+
"aria-expanded": k.value ? w : void 0,
|
|
2837
2842
|
"aria-level": l.isNestedRow ? "2" : "1",
|
|
2838
2843
|
"aria-posinset": l.rowIndex + 1,
|
|
2839
2844
|
"aria-setsize": l.rowSetSize
|
|
2840
2845
|
};
|
|
2841
2846
|
}
|
|
2842
2847
|
return { "aria-rowindex": l.rowIndex + 1 };
|
|
2843
|
-
}),
|
|
2848
|
+
}), M = C(() => {
|
|
2844
2849
|
if (O.value)
|
|
2845
2850
|
return {
|
|
2846
2851
|
"aria-busy": "true",
|
|
@@ -2856,71 +2861,71 @@ const dl = () => {
|
|
|
2856
2861
|
tabindex: "-1"
|
|
2857
2862
|
};
|
|
2858
2863
|
}), m = C(() => {
|
|
2859
|
-
var w,
|
|
2860
|
-
return A.value ? (
|
|
2861
|
-
}),
|
|
2864
|
+
var w, I;
|
|
2865
|
+
return A.value ? (I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.reduce((te, oe, se) => (te[se] = ct("nested-row"), te), {}) : [];
|
|
2866
|
+
}), z = C(() => {
|
|
2862
2867
|
var w;
|
|
2863
2868
|
if (g.value) {
|
|
2864
2869
|
if (l.hasNestedContent && l.shouldShowNestedContent(l.rowData))
|
|
2865
2870
|
return [N];
|
|
2866
2871
|
if (A.value && ((w = Object.keys(m.value)) == null ? void 0 : w.length) > 0) {
|
|
2867
|
-
const
|
|
2868
|
-
if ((
|
|
2869
|
-
return
|
|
2872
|
+
const I = Object.values(m.value);
|
|
2873
|
+
if ((I == null ? void 0 : I.length) > 0)
|
|
2874
|
+
return I;
|
|
2870
2875
|
}
|
|
2871
2876
|
return [];
|
|
2872
2877
|
}
|
|
2873
2878
|
}), h = C(() => {
|
|
2874
|
-
var
|
|
2875
|
-
const w = (te = (
|
|
2879
|
+
var I, te;
|
|
2880
|
+
const w = (te = (I = l.rowData) == null ? void 0 : I.children) == null ? void 0 : te.map((oe) => l.getDataItemId(oe));
|
|
2876
2881
|
if ((w == null ? void 0 : w.length) > 0) {
|
|
2877
|
-
const oe = w.every((
|
|
2878
|
-
var
|
|
2879
|
-
return (
|
|
2880
|
-
}), se = w.some((
|
|
2881
|
-
var
|
|
2882
|
-
return (
|
|
2882
|
+
const oe = w.every((re) => {
|
|
2883
|
+
var K;
|
|
2884
|
+
return (K = l == null ? void 0 : l.selectedItems) == null ? void 0 : K.includes(re);
|
|
2885
|
+
}), se = w.some((re) => {
|
|
2886
|
+
var K;
|
|
2887
|
+
return (K = l == null ? void 0 : l.selectedItems) == null ? void 0 : K.includes(re);
|
|
2883
2888
|
});
|
|
2884
2889
|
return !oe && se;
|
|
2885
2890
|
}
|
|
2886
2891
|
return !1;
|
|
2887
|
-
}), a = (w,
|
|
2892
|
+
}), a = (w, I) => {
|
|
2888
2893
|
const te = w;
|
|
2889
|
-
w !== null && (te != null && te.gridcellRef) && (v.value[
|
|
2894
|
+
w !== null && (te != null && te.gridcellRef) && (v.value[I] = te.gridcellRef);
|
|
2890
2895
|
}, f = (w) => m.value[w], T = (w) => {
|
|
2891
2896
|
if (!l.selectable)
|
|
2892
2897
|
return null;
|
|
2893
|
-
const
|
|
2894
|
-
return l.selectedItems.includes(
|
|
2895
|
-
},
|
|
2898
|
+
const I = l.getDataItemId(w);
|
|
2899
|
+
return l.selectedItems.includes(I).toString();
|
|
2900
|
+
}, B = (w) => {
|
|
2896
2901
|
var oe;
|
|
2897
2902
|
if (!l.allowRowClicks)
|
|
2898
2903
|
return;
|
|
2899
|
-
let
|
|
2904
|
+
let I = !1;
|
|
2900
2905
|
const te = ["button", "input", "a"];
|
|
2901
2906
|
for (let se = 0; se < te.length; se++)
|
|
2902
2907
|
if ((oe = w == null ? void 0 : w.target) != null && oe.closest(te[se])) {
|
|
2903
|
-
|
|
2908
|
+
I = !0;
|
|
2904
2909
|
break;
|
|
2905
2910
|
}
|
|
2906
|
-
|
|
2911
|
+
I || n("row-click", l.rowData, w);
|
|
2907
2912
|
}, x = (w) => {
|
|
2908
2913
|
n("select-row", w, l.rowData);
|
|
2909
|
-
}, Z = (w,
|
|
2910
|
-
n("select-nested-row",
|
|
2914
|
+
}, Z = (w, I) => {
|
|
2915
|
+
n("select-nested-row", I, l.rowData, w);
|
|
2911
2916
|
}, le = () => {
|
|
2912
|
-
|
|
2917
|
+
$.value = !0;
|
|
2913
2918
|
}, we = () => {
|
|
2914
|
-
|
|
2919
|
+
$.value = !1;
|
|
2915
2920
|
}, ge = () => {
|
|
2916
2921
|
var w;
|
|
2917
2922
|
wl([(w = E.value) == null ? void 0 : w[0]]), Ot(b.value);
|
|
2918
|
-
},
|
|
2923
|
+
}, ue = () => {
|
|
2919
2924
|
Ze(b.value);
|
|
2920
2925
|
}, ne = (w) => {
|
|
2921
|
-
var
|
|
2922
|
-
w.key !== Ne.TAB && Ze(b.value), w.key === Ne.ARROW_RIGHT && ((
|
|
2923
|
-
}, q = () => l.columnSets.reduce((w, { columnSet:
|
|
2926
|
+
var I, te;
|
|
2927
|
+
w.key !== Ne.TAB && Ze(b.value), w.key === Ne.ARROW_RIGHT && ((I = E.value) == null ? void 0 : I.length) > 1 && E.value[0].node === document.activeElement ? (Ze(b.value), E.value[1].node.setAttribute("tabindex", "0"), E.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === Ne.ARROW_LEFT && ((te = E.value) == null ? void 0 : te.length) > 1 && E.value[1].node === document.activeElement && (Ze(b.value), E.value[0].node.setAttribute("tabindex", "0"), E.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
2928
|
+
}, q = () => l.columnSets.reduce((w, { columnSet: I }) => w + I.length, 0), pe = () => q() * l.rowIndex + q(), { updateContentHeight: y, contentHeight: J } = Zn(_, g), Y = C(() => {
|
|
2924
2929
|
var w;
|
|
2925
2930
|
if (l.hasNestedContent || l.hasNestedRows)
|
|
2926
2931
|
return {
|
|
@@ -2945,41 +2950,41 @@ const dl = () => {
|
|
|
2945
2950
|
var w;
|
|
2946
2951
|
return (w = l.rowData) == null ? void 0 : w.children;
|
|
2947
2952
|
},
|
|
2948
|
-
(w,
|
|
2953
|
+
(w, I) => {
|
|
2949
2954
|
var te, oe;
|
|
2950
|
-
((oe = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : oe.length) > 0 &&
|
|
2955
|
+
((oe = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : oe.length) > 0 && I === void 0 && !g.value && y();
|
|
2951
2956
|
}
|
|
2952
2957
|
);
|
|
2953
|
-
const
|
|
2958
|
+
const We = Fe(
|
|
2954
2959
|
tt,
|
|
2955
2960
|
C(() => !1)
|
|
2956
|
-
), Te = (w) => l.highlightedRows.includes(l.getDataItemId(w)),
|
|
2961
|
+
), Te = (w) => l.highlightedRows.includes(l.getDataItemId(w)), Be = (w) => l.selectedItems.includes(l.getDataItemId(w)), r = (w, I) => ({
|
|
2957
2962
|
"b-data-grid-row-container__row--disabled": l.isDataItemDisabled(w),
|
|
2958
2963
|
"b-data-grid-row-container__row--row-clicks-enabled": l.allowRowClicks,
|
|
2959
2964
|
"b-data-grid-row-container__row--highlighted": Te(w),
|
|
2960
|
-
"b-data-grid-row-container__row--selected":
|
|
2961
|
-
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex ===
|
|
2965
|
+
"b-data-grid-row-container__row--selected": Be(w),
|
|
2966
|
+
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex === I,
|
|
2962
2967
|
"b-data-grid-row-container__row--is-last-child": l.isRowLastChild && !g.value,
|
|
2963
2968
|
"b-data-grid-row-container__row--nested-row": l.isNestedRow,
|
|
2964
2969
|
"b-data-grid-row-container__row--zebra": l.isRowEven
|
|
2965
|
-
}), H = (w,
|
|
2966
|
-
"b-data-grid-row-container__row-cell-set--frozen": w && !
|
|
2967
|
-
[`b-data-grid-row-container__row-cell-set--${
|
|
2968
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !
|
|
2969
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !w ||
|
|
2970
|
+
}), H = (w, I) => ({
|
|
2971
|
+
"b-data-grid-row-container__row-cell-set--frozen": w && !I,
|
|
2972
|
+
[`b-data-grid-row-container__row-cell-set--${Ue.OVERFLOW_SHADOW_LEFT}`]: !I && w && l.hasLeftOverflow,
|
|
2973
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !I && w && l.showFrozenColumnsSeparator,
|
|
2974
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !w || I,
|
|
2970
2975
|
"b-data-grid-row-container__row-cell-set--is-measuring": l.isMeasuringColumnWidths
|
|
2971
|
-
}),
|
|
2976
|
+
}), U = C(() => ({
|
|
2972
2977
|
"b-data-grid-row-container__row-nested-slot--is-last-child": l.isRowLastChild,
|
|
2973
2978
|
"b-data-grid-row-container__row-nested-slot": !A.value && l.shouldShowNestedContent(l.rowData)
|
|
2974
2979
|
})), Ce = C(() => ({
|
|
2975
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
2980
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": $.value
|
|
2976
2981
|
})), ve = C(() => ({
|
|
2977
2982
|
minWidth: `${l.rowActionsMaximumWidth}px`
|
|
2978
2983
|
}));
|
|
2979
2984
|
return s({
|
|
2980
2985
|
gridcellRefs: v,
|
|
2981
2986
|
rowActionsRef: b
|
|
2982
|
-
}), (w,
|
|
2987
|
+
}), (w, I) => {
|
|
2983
2988
|
var te;
|
|
2984
2989
|
return u(), L("div", Vs, [
|
|
2985
2990
|
(u(), L("div", ie(p.value, {
|
|
@@ -2988,25 +2993,25 @@ const dl = () => {
|
|
|
2988
2993
|
class: ["b-data-grid-row-container__row", r(e.rowData, e.rowIndex)],
|
|
2989
2994
|
role: "row",
|
|
2990
2995
|
"aria-selected": T(e.rowData),
|
|
2991
|
-
onClick:
|
|
2996
|
+
onClick: B,
|
|
2992
2997
|
onKeyup: [
|
|
2993
|
-
Ft(
|
|
2994
|
-
Ft(
|
|
2998
|
+
Ft(B, ["enter"]),
|
|
2999
|
+
Ft(B, ["space"])
|
|
2995
3000
|
]
|
|
2996
3001
|
}), [
|
|
2997
|
-
(u(!0), L(be, null, Ae(e.columnSets, ({ columnSet: oe, id: se, isFrozenColumns:
|
|
3002
|
+
(u(!0), L(be, null, Ae(e.columnSets, ({ columnSet: oe, id: se, isFrozenColumns: re }, K) => (u(), L(be, null, [
|
|
2998
3003
|
oe != null && oe.length ? (u(), L("div", {
|
|
2999
3004
|
key: `data-grid-rows-${se}`,
|
|
3000
|
-
class: ce(["b-data-grid-row-container__cells", H(
|
|
3005
|
+
class: ce(["b-data-grid-row-container__cells", H(re, o(We))]),
|
|
3001
3006
|
"data-testid": `data-grid-${se}-rows`
|
|
3002
3007
|
}, [
|
|
3003
|
-
(u(!0), L(be, null, Ae(oe, (
|
|
3004
|
-
key: `cell-${
|
|
3008
|
+
(u(!0), L(be, null, Ae(oe, (He, mt) => (u(), G(Gs, {
|
|
3009
|
+
key: `cell-${He.field}`,
|
|
3005
3010
|
ref_for: !0,
|
|
3006
|
-
ref: (
|
|
3011
|
+
ref: (De) => a(De, He.field),
|
|
3007
3012
|
class: "b-data-grid-row-container__cell",
|
|
3008
|
-
column:
|
|
3009
|
-
"column-set-index":
|
|
3013
|
+
column: He,
|
|
3014
|
+
"column-set-index": K,
|
|
3010
3015
|
"col-index": mt,
|
|
3011
3016
|
"column-sets": e.columnSets,
|
|
3012
3017
|
condensed: e.condensed,
|
|
@@ -3015,44 +3020,45 @@ const dl = () => {
|
|
|
3015
3020
|
"get-data-item-id": e.getDataItemId,
|
|
3016
3021
|
"has-zebra-background": e.isRowEven,
|
|
3017
3022
|
"is-highlighted": Te(e.rowData),
|
|
3018
|
-
"is-selected":
|
|
3023
|
+
"is-selected": Be(e.rowData),
|
|
3019
3024
|
"hovered-over-column-state": e.hoveredOverColumnState,
|
|
3020
3025
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
3021
3026
|
"is-measuring-column-widths": e.isMeasuringColumnWidths,
|
|
3022
3027
|
"is-nested-content-expanded": g.value,
|
|
3023
|
-
"nested-content":
|
|
3024
|
-
"nested-rows-element-ids":
|
|
3028
|
+
"nested-content": k.value,
|
|
3029
|
+
"nested-rows-element-ids": z.value,
|
|
3025
3030
|
"row-data": e.rowData,
|
|
3026
3031
|
"row-index": e.rowIndex,
|
|
3027
3032
|
"selection-is-indeterminate": h.value,
|
|
3028
3033
|
selectable: e.selectable,
|
|
3029
3034
|
"selected-items": e.selectedItems,
|
|
3030
|
-
onCellHovered:
|
|
3031
|
-
|
|
3035
|
+
onCellHovered: I[0] || (I[0] = (De) => n("cell-hovered", De)),
|
|
3036
|
+
onCellFocus: I[1] || (I[1] = (De) => n("cell-focus", De)),
|
|
3037
|
+
onOnFrozenColumnsKeyPress: I[2] || (I[2] = (De) => n("on-frozen-columns-key-press", De)),
|
|
3032
3038
|
onSelectRow: x,
|
|
3033
3039
|
onNestedContentToggled: Q
|
|
3034
3040
|
}, Ke({ _: 2 }, [
|
|
3035
|
-
Ae(o(t), (
|
|
3041
|
+
Ae(o(t), (De, Je) => ({
|
|
3036
3042
|
name: Je,
|
|
3037
3043
|
fn: V((lt) => [
|
|
3038
|
-
|
|
3044
|
+
ze(w.$slots, Je, ie({ ref_for: !0 }, lt), void 0, !0)
|
|
3039
3045
|
])
|
|
3040
3046
|
}))
|
|
3041
3047
|
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-zebra-background", "is-highlighted", "is-selected", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
|
|
3042
3048
|
], 10, Zs)) : W("", !0),
|
|
3043
|
-
!
|
|
3049
|
+
!re && e.rowActions ? (u(), L("div", {
|
|
3044
3050
|
key: `data-grid-row-actions-${se}`,
|
|
3045
3051
|
ref_for: !0,
|
|
3046
3052
|
ref_key: "rowActionsRef",
|
|
3047
3053
|
ref: b,
|
|
3048
3054
|
"aria-colindex": q().toString(),
|
|
3049
3055
|
class: ce(["b-data-grid-row-container__row-actions-container", Ce.value]),
|
|
3050
|
-
style:
|
|
3056
|
+
style: Me(ve.value),
|
|
3051
3057
|
"data-cellindex": pe(),
|
|
3052
3058
|
tabindex: "-1",
|
|
3053
3059
|
role: "gridcell",
|
|
3054
3060
|
onFocus: ge,
|
|
3055
|
-
"on:focusOut":
|
|
3061
|
+
"on:focusOut": ue,
|
|
3056
3062
|
onKeydown: ne
|
|
3057
3063
|
}, [
|
|
3058
3064
|
X(pl, {
|
|
@@ -3075,9 +3081,9 @@ const dl = () => {
|
|
|
3075
3081
|
default: V(() => [
|
|
3076
3082
|
g.value && A.value ? (u(), L("div", {
|
|
3077
3083
|
key: 0,
|
|
3078
|
-
class: ce(
|
|
3084
|
+
class: ce(U.value),
|
|
3079
3085
|
"data-testid": "nested-content-container",
|
|
3080
|
-
style:
|
|
3086
|
+
style: Me(Y.value),
|
|
3081
3087
|
role: "presentation"
|
|
3082
3088
|
}, [
|
|
3083
3089
|
R("div", {
|
|
@@ -3094,23 +3100,24 @@ const dl = () => {
|
|
|
3094
3100
|
"row-index": se,
|
|
3095
3101
|
"row-set-size": e.rowData.children.length,
|
|
3096
3102
|
"is-nested-row": "",
|
|
3097
|
-
onCellHovered:
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3103
|
+
onCellHovered: I[3] || (I[3] = (re) => n("cell-hovered", re)),
|
|
3104
|
+
onCellFocus: I[4] || (I[4] = (re) => n("cell-focus", re)),
|
|
3105
|
+
onRowClick: I[5] || (I[5] = (re) => n("row-click", ...re)),
|
|
3106
|
+
onOnFrozenColumnsKeyPress: I[6] || (I[6] = (re) => n("on-frozen-columns-key-press", re)),
|
|
3107
|
+
onSelectRow: (re) => Z(oe, re)
|
|
3101
3108
|
}), Ke({ _: 2 }, [
|
|
3102
|
-
Ae(o(t), (
|
|
3103
|
-
name:
|
|
3104
|
-
fn: V((
|
|
3105
|
-
|
|
3109
|
+
Ae(o(t), (re, K) => ({
|
|
3110
|
+
name: K,
|
|
3111
|
+
fn: V((He) => [
|
|
3112
|
+
ze(w.$slots, K, ie({ ref_for: !0 }, He), void 0, !0)
|
|
3106
3113
|
])
|
|
3107
3114
|
}))
|
|
3108
3115
|
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128))
|
|
3109
3116
|
], 512)
|
|
3110
|
-
], 6)) : g.value ? (u(), L("div", ie({ key: 1 },
|
|
3111
|
-
class:
|
|
3117
|
+
], 6)) : g.value ? (u(), L("div", ie({ key: 1 }, M.value, {
|
|
3118
|
+
class: U.value,
|
|
3112
3119
|
"data-testid": "nested-content-container",
|
|
3113
|
-
style:
|
|
3120
|
+
style: Y.value,
|
|
3114
3121
|
role: "row",
|
|
3115
3122
|
tabindex: "-1"
|
|
3116
3123
|
}), [
|
|
@@ -3122,7 +3129,7 @@ const dl = () => {
|
|
|
3122
3129
|
O.value ? (u(), L("div", Ks, [
|
|
3123
3130
|
X(o(ut))
|
|
3124
3131
|
])) : o(c)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (u(), L("div", Ys, [
|
|
3125
|
-
|
|
3132
|
+
ze(w.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
3126
3133
|
])) : W("", !0)
|
|
3127
3134
|
], 512)
|
|
3128
3135
|
], 16)) : W("", !0)
|
|
@@ -3132,7 +3139,7 @@ const dl = () => {
|
|
|
3132
3139
|
]);
|
|
3133
3140
|
};
|
|
3134
3141
|
}
|
|
3135
|
-
}), Al = /* @__PURE__ */ fe(Xs, [["__scopeId", "data-v-
|
|
3142
|
+
}), Al = /* @__PURE__ */ fe(Xs, [["__scopeId", "data-v-df666f73"]]);
|
|
3136
3143
|
let ul = 0;
|
|
3137
3144
|
const Qs = {
|
|
3138
3145
|
beforeCreate() {
|
|
@@ -3169,7 +3176,7 @@ function na(e, s, i, t, c, l) {
|
|
|
3169
3176
|
])
|
|
3170
3177
|
], 16);
|
|
3171
3178
|
}
|
|
3172
|
-
const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {}, ia = /* @__PURE__ */
|
|
3179
|
+
const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {}, ia = /* @__PURE__ */ Pe({
|
|
3173
3180
|
...aa,
|
|
3174
3181
|
__name: "data-grid-static-icon",
|
|
3175
3182
|
props: {
|
|
@@ -3230,7 +3237,7 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3230
3237
|
}
|
|
3231
3238
|
}, ra = { class: "b-data-grid-summary-cell" }, da = { class: "b-data-grid-summary-cell__list" }, ua = {
|
|
3232
3239
|
i18n: { messages: Tl }
|
|
3233
|
-
}, ca = /* @__PURE__ */
|
|
3240
|
+
}, ca = /* @__PURE__ */ Pe({
|
|
3234
3241
|
...ua,
|
|
3235
3242
|
__name: "data-grid-summary-cell",
|
|
3236
3243
|
props: {
|
|
@@ -3317,7 +3324,7 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3317
3324
|
}, Ea = {
|
|
3318
3325
|
i18n: { messages: vt },
|
|
3319
3326
|
name: "bento-data-grid"
|
|
3320
|
-
}, Sa = /* @__PURE__ */
|
|
3327
|
+
}, Sa = /* @__PURE__ */ Pe({
|
|
3321
3328
|
...Ea,
|
|
3322
3329
|
props: {
|
|
3323
3330
|
/**
|
|
@@ -3411,10 +3418,10 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3411
3418
|
/**
|
|
3412
3419
|
* An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.
|
|
3413
3420
|
*
|
|
3414
|
-
*
|
|
3421
|
+
* @example
|
|
3415
3422
|
* {
|
|
3416
|
-
*
|
|
3417
|
-
*
|
|
3423
|
+
* 'company': '200',
|
|
3424
|
+
* 'name': 'some text'
|
|
3418
3425
|
* },
|
|
3419
3426
|
*/
|
|
3420
3427
|
filterValuesObject: {
|
|
@@ -3651,32 +3658,33 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3651
3658
|
F.SELECT_ALL_ACROSS_PAGES,
|
|
3652
3659
|
F.SELECT_ALL_CURRENT_RESULTS,
|
|
3653
3660
|
F.DESELECT_ALL_CURRENT_RESULTS,
|
|
3654
|
-
F.SORT
|
|
3661
|
+
F.SORT,
|
|
3662
|
+
F.CELL_FOCUS
|
|
3655
3663
|
],
|
|
3656
3664
|
setup(e, { expose: s, emit: i }) {
|
|
3657
|
-
const t = e, c = pt(), l = Rt(c), n = S(null), v = S(), g = S({}), _ = S(ct("data-grid")), b = S(null), N = S(null),
|
|
3665
|
+
const t = e, c = pt(), l = Rt(c), n = S(null), v = S(), g = S({}), _ = S(ct("data-grid")), b = S(null), N = S(null), $ = S(), E = S(null), d = S(null), A = S(null), {
|
|
3658
3666
|
allowColumnDragAndDrop: O,
|
|
3659
|
-
columns:
|
|
3667
|
+
columns: k,
|
|
3660
3668
|
columnPanel: p,
|
|
3661
|
-
data:
|
|
3669
|
+
data: M,
|
|
3662
3670
|
lazyLoadType: m,
|
|
3663
|
-
loading:
|
|
3671
|
+
loading: z,
|
|
3664
3672
|
hasNestedContent: h,
|
|
3665
3673
|
hasNestedRows: a,
|
|
3666
3674
|
selectable: f,
|
|
3667
3675
|
selection: T,
|
|
3668
|
-
selectableAcrossPages:
|
|
3676
|
+
selectableAcrossPages: B,
|
|
3669
3677
|
stickyPagination: x,
|
|
3670
3678
|
outline: Z,
|
|
3671
3679
|
pagination: le,
|
|
3672
3680
|
zebraRows: we
|
|
3673
|
-
} = yt(t), ge = S(-1), { t:
|
|
3681
|
+
} = yt(t), ge = S(-1), { t: ue } = Ve({ messages: vt }), ne = C(() => U.value.filter((D) => D.frozen).length), q = 550, pe = S(), { width: y } = Dn(pe), J = C(() => y.value <= q);
|
|
3674
3682
|
rt(tt, J);
|
|
3675
|
-
const
|
|
3683
|
+
const Y = S(!1);
|
|
3676
3684
|
Ye(() => {
|
|
3677
|
-
typeof window < "u" && (
|
|
3678
|
-
}), rt(gt,
|
|
3679
|
-
const Q =
|
|
3685
|
+
typeof window < "u" && (Y.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
3686
|
+
}), rt(gt, Y);
|
|
3687
|
+
const Q = Fe(
|
|
3680
3688
|
In,
|
|
3681
3689
|
() => ({
|
|
3682
3690
|
additionalContentSlotRef: S(null),
|
|
@@ -3685,34 +3693,34 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3685
3693
|
stickyTabs: S(!1),
|
|
3686
3694
|
tabsRef: S(null)
|
|
3687
3695
|
})
|
|
3688
|
-
), { additionalContentSlotRef:
|
|
3689
|
-
columnDefs:
|
|
3696
|
+
), { additionalContentSlotRef: We, isDataGridTemplate: Te, stickyTabs: Be, tabsRef: r, stickyAdditionalContent: H } = Q(), {
|
|
3697
|
+
columnDefs: U,
|
|
3690
3698
|
onColumnWidthOverride: Ce,
|
|
3691
3699
|
gridRowWidthStyle: ve,
|
|
3692
3700
|
isMeasuringColumnWidths: w,
|
|
3693
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
3701
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: I,
|
|
3694
3702
|
columns: te,
|
|
3695
3703
|
totalWidthOfAllColumns: oe,
|
|
3696
3704
|
rowActionsMaxWidth: se
|
|
3697
|
-
} = oo(
|
|
3705
|
+
} = oo(k, M, n, g, b, {
|
|
3698
3706
|
hasColumnPanel: p,
|
|
3699
3707
|
hasSelectableColumn: f,
|
|
3700
|
-
hasSelectableAcrossPages:
|
|
3708
|
+
hasSelectableAcrossPages: B,
|
|
3701
3709
|
hasNestedContent: h,
|
|
3702
3710
|
hasNestedRows: a,
|
|
3703
3711
|
allowColumnDragAndDrop: O,
|
|
3704
3712
|
isDataGridTemplate: Te
|
|
3705
|
-
}),
|
|
3706
|
-
(
|
|
3707
|
-
},
|
|
3713
|
+
}), re = i, K = (D, ...P) => {
|
|
3714
|
+
(D === F.COLUMNS || D === F.UPDATE_COLUMNS) && ([te.value] = P), re(D, ...P);
|
|
3715
|
+
}, He = qt(
|
|
3708
3716
|
r,
|
|
3709
|
-
|
|
3717
|
+
Be,
|
|
3710
3718
|
H,
|
|
3711
|
-
|
|
3719
|
+
We
|
|
3712
3720
|
), mt = C(
|
|
3713
|
-
() => t.stickyFilters ? `${
|
|
3714
|
-
),
|
|
3715
|
-
() => `${
|
|
3721
|
+
() => t.stickyFilters ? `${He.value}px` : null
|
|
3722
|
+
), De = qt(N, bt(t, "stickyFilters")), Je = C(
|
|
3723
|
+
() => `${De.value + He.value}px`
|
|
3716
3724
|
), {
|
|
3717
3725
|
sortedColumns: lt,
|
|
3718
3726
|
columnSets: nt,
|
|
@@ -3722,15 +3730,15 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3722
3730
|
onConfigSettingsColumnUpdate: Il,
|
|
3723
3731
|
onConfigSettingsCondensedUpdate: Dl,
|
|
3724
3732
|
onConfigSettingsZebraRowsUpdate: $l
|
|
3725
|
-
} = fo(
|
|
3733
|
+
} = fo(U, we, K), { hoveredOverColumn: kl, hoveredOverColumnState: Nt } = vo(
|
|
3726
3734
|
nt,
|
|
3727
3735
|
f,
|
|
3728
3736
|
Z,
|
|
3729
|
-
|
|
3730
|
-
), { draggingColumns: It, draggingEventsForColumns: Ul, draggingEventsForRowCell: Ml, onMoveColumnByOffset: zl } = co(lt, O,
|
|
3737
|
+
I
|
|
3738
|
+
), { draggingColumns: It, draggingEventsForColumns: Ul, draggingEventsForRowCell: Ml, onMoveColumnByOffset: zl } = co(lt, O, K), Dt = C(
|
|
3731
3739
|
() => {
|
|
3732
|
-
var
|
|
3733
|
-
return ((
|
|
3740
|
+
var D;
|
|
3741
|
+
return ((D = t.data) == null ? void 0 : D.length) > 0 && !!t.selectableAcrossPages && !!t.pagination && t.pagination.totalCount > 0;
|
|
3734
3742
|
}
|
|
3735
3743
|
), {
|
|
3736
3744
|
onAllRowSelect: Fl,
|
|
@@ -3742,17 +3750,17 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3742
3750
|
selectionState: Hl
|
|
3743
3751
|
} = so(
|
|
3744
3752
|
T,
|
|
3745
|
-
|
|
3746
|
-
|
|
3753
|
+
K,
|
|
3754
|
+
M,
|
|
3747
3755
|
t.getDataItemId,
|
|
3748
3756
|
t.isDataItemDisabled,
|
|
3749
3757
|
Dt,
|
|
3750
3758
|
le
|
|
3751
3759
|
), Gl = C(() => {
|
|
3752
|
-
var
|
|
3760
|
+
var D, P, de, j;
|
|
3753
3761
|
return {
|
|
3754
|
-
filtered: ((
|
|
3755
|
-
allRowsVisible: ((
|
|
3762
|
+
filtered: ((D = $.value) == null ? void 0 : D.isClearAllVisible) || ((P = $.value) == null ? void 0 : P.isResetAllVisible) || !!t.filterSearchTerm,
|
|
3763
|
+
allRowsVisible: ((de = le.value) == null ? void 0 : de.size) >= ((j = le.value) == null ? void 0 : j.totalCount)
|
|
3756
3764
|
};
|
|
3757
3765
|
}), { navigationInput: ot } = io(
|
|
3758
3766
|
b,
|
|
@@ -3765,8 +3773,8 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3765
3773
|
m,
|
|
3766
3774
|
d,
|
|
3767
3775
|
n,
|
|
3768
|
-
|
|
3769
|
-
|
|
3776
|
+
z,
|
|
3777
|
+
K
|
|
3770
3778
|
), {
|
|
3771
3779
|
updateScrollPosition: st,
|
|
3772
3780
|
updateScrollPositionOnFrozenColumnsNavigation: jl,
|
|
@@ -3788,86 +3796,86 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3788
3796
|
isDataGridTemplate: Te
|
|
3789
3797
|
}
|
|
3790
3798
|
), Kl = () => {
|
|
3791
|
-
|
|
3799
|
+
$.value.isClearAllVisible ? $.value.clearAllFilters() : $.value.isResetAllVisible && $.value.resetAllFilters();
|
|
3792
3800
|
}, Yl = C(() => {
|
|
3793
|
-
var
|
|
3801
|
+
var D, P;
|
|
3794
3802
|
return {
|
|
3795
3803
|
...t.emptyState,
|
|
3796
|
-
variant: ((
|
|
3804
|
+
variant: ((D = t.emptyState) == null ? void 0 : D.variant) === "embedded" || ((P = t.emptyState) == null ? void 0 : P.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
3797
3805
|
};
|
|
3798
3806
|
}), Jl = C(() => ({
|
|
3799
|
-
[`b-data-grid--${
|
|
3800
|
-
[`b-data-grid--${
|
|
3801
|
-
[`b-data-grid--${
|
|
3802
|
-
[`b-data-grid--${
|
|
3803
|
-
[`b-data-grid--${
|
|
3804
|
-
[`b-data-grid--${
|
|
3805
|
-
[`b-data-grid--${
|
|
3806
|
-
[`b-data-grid--${
|
|
3807
|
+
[`b-data-grid--${Ue.OUTLINE}`]: t.outline,
|
|
3808
|
+
[`b-data-grid--${Ue.SCROLL}`]: t.fitContent || je.value,
|
|
3809
|
+
[`b-data-grid--${Ue.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
3810
|
+
[`b-data-grid--${Ue.OVERFLOW_SHADOW_LEFT}`]: at.value && !ne.value,
|
|
3811
|
+
[`b-data-grid--${Ue.OVERFLOW_SHADOW_RIGHT}`]: Ut.value && t.rowActions === void 0,
|
|
3812
|
+
[`b-data-grid--${Ue.NO_SPACING_TOP}`]: t.noSpacingTop,
|
|
3813
|
+
[`b-data-grid--${Ue.FIT_CONTENT}`]: t.fitContent,
|
|
3814
|
+
[`b-data-grid--${Ue.ZEBRA_ROWS}`]: ht.value,
|
|
3807
3815
|
"b-data-grid--lazy-load": je.value
|
|
3808
3816
|
})), Xl = C(() => ({
|
|
3809
3817
|
"b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
|
|
3810
|
-
})), Ql = C(() => nt.value.findIndex((
|
|
3818
|
+
})), Ql = C(() => nt.value.findIndex((D) => D.columnSet.length)), Mt = C(() => !((t.selectable || t.hasNestedContent || t.hasNestedRows) && ne.value === 1) || at.value), en = C(() => ({
|
|
3811
3819
|
"b-data-grid__filters--sticky": !!t.stickyFilters || Te
|
|
3812
3820
|
})), tn = C(() => {
|
|
3813
|
-
var
|
|
3821
|
+
var D, P, de, j, Re, $e;
|
|
3814
3822
|
return {
|
|
3815
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
3816
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
3823
|
+
"b-data-grid__pagination--padding-left-unset": ((de = (P = (D = t.columns) == null ? void 0 : D[0]) == null ? void 0 : P.padding) == null ? void 0 : de.left) === !1,
|
|
3824
|
+
"b-data-grid__pagination--padding-right-unset": (($e = (Re = (j = t.columns) == null ? void 0 : j[t.columns.length - 1]) == null ? void 0 : Re.padding) == null ? void 0 : $e.right) === !1,
|
|
3817
3825
|
"b-data-grid__pagination--sticky": !!t.stickyPagination || Te
|
|
3818
3826
|
};
|
|
3819
|
-
}), ln = (
|
|
3820
|
-
const
|
|
3821
|
-
|
|
3822
|
-
g.value[
|
|
3827
|
+
}), ln = (D) => {
|
|
3828
|
+
const P = D;
|
|
3829
|
+
D !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([de, j]) => {
|
|
3830
|
+
g.value[de] = j;
|
|
3823
3831
|
});
|
|
3824
|
-
}, nn = (
|
|
3825
|
-
var j, Re,
|
|
3826
|
-
const
|
|
3827
|
-
if (
|
|
3828
|
-
const
|
|
3829
|
-
Object.entries(
|
|
3832
|
+
}, nn = (D, P) => {
|
|
3833
|
+
var j, Re, $e, xe;
|
|
3834
|
+
const de = D;
|
|
3835
|
+
if (D !== null && de != null && de.gridcellRefs) {
|
|
3836
|
+
const Ie = t.rowActions !== void 0 && (de == null ? void 0 : de.rowActionsRef);
|
|
3837
|
+
Object.entries(de == null ? void 0 : de.gridcellRefs).map(([Ee, qe]) => {
|
|
3830
3838
|
var it;
|
|
3831
|
-
((it = b.value) == null ? void 0 : it[Ee]) === void 0 && (b.value = { ...b.value, [Ee]: [] }), b.value[Ee][
|
|
3832
|
-
}),
|
|
3839
|
+
((it = b.value) == null ? void 0 : it[Ee]) === void 0 && (b.value = { ...b.value, [Ee]: [] }), b.value[Ee][P] = qe;
|
|
3840
|
+
}), Ie && (((j = b.value) == null ? void 0 : j[Qe]) === void 0 && (b.value = { ...b.value, [Qe]: [] }), b.value[Qe][P] = (Re = de.rowActionsRef) == null ? void 0 : Re[0], se.value = Math.max(
|
|
3833
3841
|
se.value,
|
|
3834
|
-
((xe = (
|
|
3842
|
+
((xe = ($e = de.rowActionsRef) == null ? void 0 : $e[0]) == null ? void 0 : xe.offsetWidth) ?? 0
|
|
3835
3843
|
));
|
|
3836
3844
|
}
|
|
3837
|
-
}, on = (
|
|
3838
|
-
t.allowRowClicks &&
|
|
3839
|
-
}, sn = (
|
|
3840
|
-
ge.value =
|
|
3845
|
+
}, on = (D, P) => {
|
|
3846
|
+
t.allowRowClicks && K(F.ROW_CLICK, D, P);
|
|
3847
|
+
}, sn = (D) => {
|
|
3848
|
+
ge.value = D;
|
|
3841
3849
|
}, an = C(() => t.hasNestedContent || t.hasNestedRows ? "treegrid" : "grid"), zt = C(() => {
|
|
3842
|
-
var
|
|
3843
|
-
return ((
|
|
3844
|
-
}), rn = C(() => t.bulkActions && zt.value > 0), dn = (
|
|
3845
|
-
|
|
3846
|
-
}, cn = (
|
|
3847
|
-
|
|
3850
|
+
var D;
|
|
3851
|
+
return ((D = Ct.value) == null ? void 0 : D.length) ?? 0;
|
|
3852
|
+
}), rn = C(() => t.bulkActions && zt.value > 0), dn = (D) => K(F.COLUMN_RESIZE, D), un = (D) => {
|
|
3853
|
+
K(F.UPDATE_SORT_BY, D), K(F.SORT, D);
|
|
3854
|
+
}, cn = (D, P) => {
|
|
3855
|
+
K(F.NAVIGATE, D), K(F.UPDATE_PAGINATION, {
|
|
3848
3856
|
...t.pagination,
|
|
3849
|
-
size:
|
|
3850
|
-
page:
|
|
3857
|
+
size: P,
|
|
3858
|
+
page: D
|
|
3851
3859
|
});
|
|
3852
|
-
}, fn = (
|
|
3853
|
-
|
|
3860
|
+
}, fn = (D) => {
|
|
3861
|
+
K(F.ITEMS_PAGE, D);
|
|
3854
3862
|
}, gn = () => {
|
|
3855
|
-
|
|
3856
|
-
}, vn = (
|
|
3857
|
-
|
|
3863
|
+
K(F.FILTER_SEARCH_CLEAR);
|
|
3864
|
+
}, vn = (D) => {
|
|
3865
|
+
K(F.UPDATE_FILTER_SEARCH_TERM, D), K(F.FILTER_SEARCH_INPUT, D);
|
|
3858
3866
|
};
|
|
3859
|
-
return C(() =>
|
|
3867
|
+
return C(() => k.value.some((D) => D.mandatory)).value || vl(
|
|
3860
3868
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3861
|
-
),
|
|
3862
|
-
var
|
|
3869
|
+
), Fe(Nn, () => null)(t.tabTitle), rt(yl, bt(t, "slashedZero")), s({ onEmptyStateClearResetButtonClick: Kl }), (D, P) => {
|
|
3870
|
+
var de;
|
|
3863
3871
|
return u(), L("div", {
|
|
3864
3872
|
ref_key: "dataGridRef",
|
|
3865
3873
|
ref: pe,
|
|
3866
3874
|
class: ce(["b-data-grid", Jl.value]),
|
|
3867
3875
|
"data-testid": "data-grid",
|
|
3868
3876
|
"aria-live": "polite",
|
|
3869
|
-
"aria-busy": o(
|
|
3870
|
-
onCopy:
|
|
3877
|
+
"aria-busy": o(z),
|
|
3878
|
+
onCopy: P[14] || (P[14] = //@ts-ignore
|
|
3871
3879
|
(...j) => o(Jt) && o(Jt)(...j))
|
|
3872
3880
|
}, [
|
|
3873
3881
|
e.filters ? (u(), L("div", {
|
|
@@ -3875,15 +3883,15 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3875
3883
|
ref_key: "filtersRef",
|
|
3876
3884
|
ref: N,
|
|
3877
3885
|
class: ce(["b-data-grid__filters", en.value]),
|
|
3878
|
-
style:
|
|
3886
|
+
style: Me({ top: mt.value }),
|
|
3879
3887
|
"aria-controls": _.value,
|
|
3880
|
-
"aria-label": o(
|
|
3888
|
+
"aria-label": o(ue)("filterBar"),
|
|
3881
3889
|
role: "region"
|
|
3882
3890
|
}, [
|
|
3883
3891
|
e.filters ? (u(), G(o(_t), {
|
|
3884
3892
|
key: 0,
|
|
3885
3893
|
ref_key: "filterBarRef",
|
|
3886
|
-
ref:
|
|
3894
|
+
ref: $,
|
|
3887
3895
|
config: e.filters,
|
|
3888
3896
|
"container-size-layout": e.filtersContainerSizeLayout,
|
|
3889
3897
|
"filter-values": e.filterValues,
|
|
@@ -3892,35 +3900,35 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3892
3900
|
"search-term": e.filterSearchTerm,
|
|
3893
3901
|
onSearchInput: vn,
|
|
3894
3902
|
onSearchClear: gn,
|
|
3895
|
-
onInput:
|
|
3896
|
-
"onUpdate:filterValues":
|
|
3897
|
-
"onUpdate:filterValuesObject":
|
|
3903
|
+
onInput: P[0] || (P[0] = (j) => D.$emit(o(F).UPDATE_FILTERS, j)),
|
|
3904
|
+
"onUpdate:filterValues": P[1] || (P[1] = (j) => D.$emit(o(F).UPDATE_FILTER_VALUES, j)),
|
|
3905
|
+
"onUpdate:filterValuesObject": P[2] || (P[2] = (j) => D.$emit(o(F).UPDATE_FILTER_VALUES_OBJECT, j))
|
|
3898
3906
|
}, null, 8, ["config", "container-size-layout", "filter-values", "filter-values-object", "search", "search-term"])) : W("", !0)
|
|
3899
3907
|
], 14, ga)) : W("", !0),
|
|
3900
|
-
|
|
3901
|
-
|
|
3908
|
+
D.$slots.header ? (u(), L("div", va, [
|
|
3909
|
+
ze(D.$slots, "header", {}, void 0, !0)
|
|
3902
3910
|
])) : W("", !0),
|
|
3903
3911
|
R("div", {
|
|
3904
3912
|
id: _.value,
|
|
3905
3913
|
role: an.value,
|
|
3906
|
-
"aria-rowcount": o(
|
|
3907
|
-
"aria-colcount": o(
|
|
3908
|
-
"aria-label": e.emptyState ? o(
|
|
3914
|
+
"aria-rowcount": o(M).length,
|
|
3915
|
+
"aria-colcount": o(k).length,
|
|
3916
|
+
"aria-label": e.emptyState ? o(ue)("noResults") : null,
|
|
3909
3917
|
class: "b-data-grid__wrapper",
|
|
3910
|
-
style:
|
|
3918
|
+
style: Me({ top: Je.value })
|
|
3911
3919
|
}, [
|
|
3912
3920
|
R("div", {
|
|
3913
3921
|
class: "b-data-grid__column-headers",
|
|
3914
|
-
style:
|
|
3922
|
+
style: Me({ top: Je.value })
|
|
3915
3923
|
}, [
|
|
3916
3924
|
R("div", {
|
|
3917
3925
|
ref_key: "columnsRef",
|
|
3918
3926
|
ref: v,
|
|
3919
3927
|
role: "rowgroup",
|
|
3920
3928
|
class: "b-data-grid__columns-row",
|
|
3921
|
-
onScroll:
|
|
3929
|
+
onScroll: P[7] || (P[7] = //@ts-ignore
|
|
3922
3930
|
(...j) => o(st) && o(st)(...j)),
|
|
3923
|
-
onKeydown:
|
|
3931
|
+
onKeydown: P[8] || (P[8] = //@ts-ignore
|
|
3924
3932
|
(...j) => o(ot) && o(ot)(...j))
|
|
3925
3933
|
}, [
|
|
3926
3934
|
o(p) ? (u(), L("div", ha, [
|
|
@@ -3936,12 +3944,12 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3936
3944
|
}, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])
|
|
3937
3945
|
])) : W("", !0),
|
|
3938
3946
|
R("div", {
|
|
3939
|
-
style:
|
|
3947
|
+
style: Me(o(ve)),
|
|
3940
3948
|
class: "b-data-grid__columns",
|
|
3941
3949
|
role: "row"
|
|
3942
3950
|
}, [
|
|
3943
|
-
(u(!0), L(be, null, Ae(o(nt), ({ columnSet: j, id: Re, isFrozenColumns:
|
|
3944
|
-
var
|
|
3951
|
+
(u(!0), L(be, null, Ae(o(nt), ({ columnSet: j, id: Re, isFrozenColumns: $e }, xe) => {
|
|
3952
|
+
var Ie;
|
|
3945
3953
|
return u(), L(be, null, [
|
|
3946
3954
|
j != null && j.length ? (u(), G(o(ns), ie({
|
|
3947
3955
|
key: `data-grid-columns-${Re}`,
|
|
@@ -3951,7 +3959,7 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3951
3959
|
"has-resizable-columns": e.hasResizableColumns,
|
|
3952
3960
|
"sort-by": e.sortBy,
|
|
3953
3961
|
"all-items-selected-state": o(Wl),
|
|
3954
|
-
"is-frozen-columns":
|
|
3962
|
+
"is-frozen-columns": $e,
|
|
3955
3963
|
"show-frozen-columns-separator": Mt.value,
|
|
3956
3964
|
"dragging-columns": o(It),
|
|
3957
3965
|
"has-draggable-columns": o(O),
|
|
@@ -3961,7 +3969,7 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3961
3969
|
"hovered-over-column-state": o(Nt),
|
|
3962
3970
|
"is-measuring-column-widths": o(w),
|
|
3963
3971
|
"is-only-one-visible-column": o(Ol),
|
|
3964
|
-
selectable: ((
|
|
3972
|
+
selectable: ((Ie = o(M)) == null ? void 0 : Ie.length) > 0 && o(f),
|
|
3965
3973
|
"selectable-across-pages": Dt.value,
|
|
3966
3974
|
"selected-items": o(Ct),
|
|
3967
3975
|
"visible-rows-state": Gl.value,
|
|
@@ -3969,22 +3977,22 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3969
3977
|
"truncate-column-headers": e.truncateColumnHeaders,
|
|
3970
3978
|
"row-actions-maximum-width": o(se)
|
|
3971
3979
|
}, ft(o(Ul)), {
|
|
3972
|
-
onColumnHover:
|
|
3980
|
+
onColumnHover: P[3] || (P[3] = (Ee) => kl.value = Ee),
|
|
3973
3981
|
onColumnMove: o(zl),
|
|
3974
3982
|
onColumnUpdate: o(Il),
|
|
3975
3983
|
onColumnResize: dn,
|
|
3976
3984
|
onColumnResizing: o(Ce),
|
|
3977
3985
|
onSelectAllRows: o(Fl),
|
|
3978
|
-
onSelectAllAcrossPages:
|
|
3979
|
-
onSelectAllCurrentResults:
|
|
3980
|
-
onDeselectAllCurrentResults:
|
|
3986
|
+
onSelectAllAcrossPages: P[4] || (P[4] = (Ee) => K(o(F).SELECT_ALL_ACROSS_PAGES)),
|
|
3987
|
+
onSelectAllCurrentResults: P[5] || (P[5] = (Ee) => K(o(F).SELECT_ALL_CURRENT_RESULTS)),
|
|
3988
|
+
onDeselectAllCurrentResults: P[6] || (P[6] = (Ee) => K(o(F).DESELECT_ALL_CURRENT_RESULTS)),
|
|
3981
3989
|
onDeselectAll: o($t),
|
|
3982
3990
|
onSort: un
|
|
3983
3991
|
}), Ke({ _: 2 }, [
|
|
3984
3992
|
Ae(o(c), (Ee, qe) => ({
|
|
3985
3993
|
name: qe,
|
|
3986
3994
|
fn: V((it) => [
|
|
3987
|
-
|
|
3995
|
+
ze(D.$slots, qe, ie({ ref_for: !0 }, it), void 0, !0)
|
|
3988
3996
|
])
|
|
3989
3997
|
}))
|
|
3990
3998
|
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "selected-items", "visible-rows-state", "selection-state", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows", "onDeselectAll"])) : W("", !0)
|
|
@@ -3998,10 +4006,10 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
3998
4006
|
ref: n,
|
|
3999
4007
|
"data-testid": "data-grid-body",
|
|
4000
4008
|
class: ce(["b-data-grid__body", Xl.value]),
|
|
4001
|
-
onScroll:
|
|
4009
|
+
onScroll: P[12] || (P[12] = //@ts-ignore
|
|
4002
4010
|
(...j) => o(st) && o(st)(...j))
|
|
4003
4011
|
}, [
|
|
4004
|
-
o(
|
|
4012
|
+
o(z) && !o(je) ? (u(), L("div", Ca, [
|
|
4005
4013
|
X(o(ut), {
|
|
4006
4014
|
class: "b-data-grid__loading-indicator",
|
|
4007
4015
|
large: ""
|
|
@@ -4011,31 +4019,31 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4011
4019
|
variant: "caption"
|
|
4012
4020
|
}, {
|
|
4013
4021
|
default: V(() => [
|
|
4014
|
-
he(ee(o(
|
|
4022
|
+
he(ee(o(ue)("gettingYourData")), 1)
|
|
4015
4023
|
]),
|
|
4016
4024
|
_: 1
|
|
4017
4025
|
})
|
|
4018
4026
|
])) : (u(), L("div", {
|
|
4019
4027
|
key: 1,
|
|
4020
4028
|
role: "rowgroup",
|
|
4021
|
-
onKeydown:
|
|
4029
|
+
onKeydown: P[11] || (P[11] = //@ts-ignore
|
|
4022
4030
|
(...j) => o(ot) && o(ot)(...j))
|
|
4023
4031
|
}, [
|
|
4024
|
-
((
|
|
4032
|
+
((de = o(M)) == null ? void 0 : de.length) === 0 && e.emptyState ? (u(), L("div", _a, [
|
|
4025
4033
|
R("div", {
|
|
4026
4034
|
role: "gridcell",
|
|
4027
|
-
"aria-colspan": o(
|
|
4035
|
+
"aria-colspan": o(k).length,
|
|
4028
4036
|
tabindex: "-1"
|
|
4029
4037
|
}, [
|
|
4030
4038
|
X(o(On), ie({ class: "b-data-grid__empty-state" }, Yl.value), null, 16)
|
|
4031
4039
|
], 8, ba)
|
|
4032
|
-
])) : (u(!0), L(be, { key: 1 }, Ae(o(
|
|
4033
|
-
var
|
|
4040
|
+
])) : (u(!0), L(be, { key: 1 }, Ae(o(M), (j, Re) => {
|
|
4041
|
+
var $e, xe;
|
|
4034
4042
|
return u(), G(o(Al), {
|
|
4035
4043
|
key: Re,
|
|
4036
4044
|
ref_for: !0,
|
|
4037
|
-
ref: (
|
|
4038
|
-
style:
|
|
4045
|
+
ref: (Ie) => nn(Ie, Re),
|
|
4046
|
+
style: Me(o(ve)),
|
|
4039
4047
|
"allow-row-clicks": e.allowRowClicks,
|
|
4040
4048
|
"column-sets": o(nt),
|
|
4041
4049
|
condensed: e.condensed,
|
|
@@ -4051,29 +4059,30 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4051
4059
|
"hovered-over-column-state": o(Nt),
|
|
4052
4060
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
4053
4061
|
"is-row-even": o(ht) ? Re % 2 !== 0 : !1,
|
|
4054
|
-
"is-row-last-child": Re + 1 === ((
|
|
4062
|
+
"is-row-last-child": Re + 1 === (($e = o(M)) == null ? void 0 : $e.length),
|
|
4055
4063
|
"is-measuring-column-widths": o(w),
|
|
4056
4064
|
"row-actions-maximum-width": o(se),
|
|
4057
4065
|
"row-actions": e.rowActions,
|
|
4058
4066
|
"row-data": j,
|
|
4059
4067
|
"row-index": Re,
|
|
4060
|
-
"row-set-size": (xe = o(
|
|
4068
|
+
"row-set-size": (xe = o(M)) == null ? void 0 : xe.length,
|
|
4061
4069
|
"show-frozen-columns-separator": Mt.value,
|
|
4062
4070
|
"should-show-nested-content": e.shouldShowNestedContent,
|
|
4063
4071
|
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
4064
4072
|
selectable: o(f),
|
|
4065
4073
|
"selected-items": o(Ct),
|
|
4066
4074
|
onCellHovered: sn,
|
|
4067
|
-
|
|
4075
|
+
onCellFocus: P[9] || (P[9] = (Ie) => K(o(F).CELL_FOCUS, Ie)),
|
|
4076
|
+
onNestedContentToggled: P[10] || (P[10] = (Ie) => K(o(F).NESTED_CONTENT_TOGGLED, Ie)),
|
|
4068
4077
|
onRowClick: on,
|
|
4069
4078
|
onOnFrozenColumnsKeyPress: o(jl),
|
|
4070
4079
|
onSelectRow: o(Pl),
|
|
4071
4080
|
onSelectNestedRow: o(Bl)
|
|
4072
4081
|
}, Ke({ _: 2 }, [
|
|
4073
|
-
Ae(o(c), (
|
|
4082
|
+
Ae(o(c), (Ie, Ee) => ({
|
|
4074
4083
|
name: Ee,
|
|
4075
4084
|
fn: V((qe) => [
|
|
4076
|
-
|
|
4085
|
+
ze(D.$slots, Ee, ie({ ref_for: !0 }, qe), void 0, !0)
|
|
4077
4086
|
])
|
|
4078
4087
|
}))
|
|
4079
4088
|
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-even", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
|
|
@@ -4083,7 +4092,7 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4083
4092
|
], 12, ma),
|
|
4084
4093
|
o(je) ? (u(), G(o(Is), {
|
|
4085
4094
|
key: 2,
|
|
4086
|
-
loading: o(
|
|
4095
|
+
loading: o(z),
|
|
4087
4096
|
"is-infinite-scroll": o(Vl),
|
|
4088
4097
|
"onUpdate:showMore": o(Zl)
|
|
4089
4098
|
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : W("", !0),
|
|
@@ -4094,12 +4103,12 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4094
4103
|
class: "b-data-grid__horizontal-scrollbar",
|
|
4095
4104
|
"aria-hidden": "true",
|
|
4096
4105
|
"data-testid": "sticky-horizontal-scrollbar",
|
|
4097
|
-
style:
|
|
4098
|
-
onScroll:
|
|
4106
|
+
style: Me(o(ql)),
|
|
4107
|
+
onScroll: P[13] || (P[13] = //@ts-ignore
|
|
4099
4108
|
(...j) => o(kt) && o(kt)(...j))
|
|
4100
4109
|
}, [
|
|
4101
4110
|
R("div", {
|
|
4102
|
-
style:
|
|
4111
|
+
style: Me({ width: `${o(oe)}px`, height: "15px" })
|
|
4103
4112
|
}, null, 4)
|
|
4104
4113
|
], 36)) : W("", !0),
|
|
4105
4114
|
o(le) && !o(je) ? (u(), L("div", {
|
|
@@ -4110,19 +4119,19 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4110
4119
|
class: ce(["b-data-grid__pagination", tn.value])
|
|
4111
4120
|
}, [
|
|
4112
4121
|
X(o(Tn), ie(o(le), {
|
|
4113
|
-
"aria-label":
|
|
4122
|
+
"aria-label": D.$t("pagination"),
|
|
4114
4123
|
"aria-controls": _.value,
|
|
4115
4124
|
onNavigate: cn,
|
|
4116
4125
|
onItemsPage: fn
|
|
4117
4126
|
}), {
|
|
4118
4127
|
default: V(() => [
|
|
4119
|
-
o(l)("pagination-slot") ?
|
|
4128
|
+
o(l)("pagination-slot") ? ze(D.$slots, "pagination-slot", { key: 0 }, void 0, !0) : W("", !0)
|
|
4120
4129
|
]),
|
|
4121
4130
|
_: 3
|
|
4122
4131
|
}, 16, ["aria-label", "aria-controls"])
|
|
4123
4132
|
], 2)) : W("", !0),
|
|
4124
|
-
|
|
4125
|
-
|
|
4133
|
+
D.$slots.footer ? (u(), L("div", wa, [
|
|
4134
|
+
ze(D.$slots, "footer", {}, void 0, !0)
|
|
4126
4135
|
])) : W("", !0),
|
|
4127
4136
|
rn.value ? (u(), G(o(An), {
|
|
4128
4137
|
key: 6,
|
|
@@ -4134,9 +4143,9 @@ const oa = /* @__PURE__ */ fe(Qs, [["render", na]]), sa = ["aria-label"], aa = {
|
|
|
4134
4143
|
], 42, fa);
|
|
4135
4144
|
};
|
|
4136
4145
|
}
|
|
4137
|
-
}), hi = /* @__PURE__ */ fe(Sa, [["__scopeId", "data-v-
|
|
4146
|
+
}), hi = /* @__PURE__ */ fe(Sa, [["__scopeId", "data-v-5d8dc787"]]);
|
|
4138
4147
|
export {
|
|
4139
|
-
|
|
4148
|
+
Ue as B,
|
|
4140
4149
|
vi as a,
|
|
4141
4150
|
mi as b,
|
|
4142
4151
|
Ge as c,
|
|
@@ -4145,4 +4154,4 @@ export {
|
|
|
4145
4154
|
dt as f,
|
|
4146
4155
|
Et as g
|
|
4147
4156
|
};
|
|
4148
|
-
//# sourceMappingURL=data-grid.
|
|
4157
|
+
//# sourceMappingURL=data-grid.O3irn4sl.js.map
|