@adyen/bento-vue3 1.49.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +58 -74
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.r_Vt4XIu.js → action-bar.DkGjsKiy.js} +5 -5
- package/dist/chunks/{action-bar.r_Vt4XIu.js.map → action-bar.DkGjsKiy.js.map} +1 -1
- package/dist/chunks/{alert.Dd2DYCZ1.js → alert.DGewBB2a.js} +2 -2
- package/dist/chunks/{alert.Dd2DYCZ1.js.map → alert.DGewBB2a.js.map} +1 -1
- package/dist/chunks/{base-modal.Bis0B1AC.js → base-modal.gW2mkOwf.js} +4 -4
- package/dist/chunks/{base-modal.Bis0B1AC.js.map → base-modal.gW2mkOwf.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js → button-actions-with-menu.BXRKkFiw.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js.map → button-actions-with-menu.BXRKkFiw.js.map} +1 -1
- package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BZEKcCbe.js} +2 -2
- package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BZEKcCbe.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.BXVKUuum.js} +2 -2
- package/dist/chunks/{button.Cneb6rPP.js.map → button.BXVKUuum.js.map} +1 -1
- package/dist/chunks/{calendar.BdLQOioy.js → calendar.DNQlLbkK.js} +2 -2
- package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DNQlLbkK.js.map} +1 -1
- package/dist/chunks/{card.BAg7yMMT.js → card.Ec-SR2qG.js} +2 -2
- package/dist/chunks/{card.BAg7yMMT.js.map → card.Ec-SR2qG.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CxWYSBy1.js → checkbox-group.KeIRO8lx.js} +2 -2
- package/dist/chunks/{checkbox-group.CxWYSBy1.js.map → checkbox-group.KeIRO8lx.js.map} +1 -1
- package/dist/chunks/{checkbox.bXN3Yann.js → checkbox.BllRk82F.js} +17 -17
- package/dist/chunks/{checkbox.bXN3Yann.js.map → checkbox.BllRk82F.js.map} +1 -1
- package/dist/chunks/{code-snippet.baKzBaM6.js → code-snippet.DfTfz3vU.js} +5 -5
- package/dist/chunks/{code-snippet.baKzBaM6.js.map → code-snippet.DfTfz3vU.js.map} +1 -1
- package/dist/chunks/{copy.CXCdp5ly.js → copy.DAu8GrR9.js} +2 -2
- package/dist/chunks/{copy.CXCdp5ly.js.map → copy.DAu8GrR9.js.map} +1 -1
- package/dist/chunks/{dashboard-section.B87x4XsH.js → dashboard-section.pyg05_v_.js} +3 -3
- package/dist/chunks/{dashboard-section.B87x4XsH.js.map → dashboard-section.pyg05_v_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.dWsHmwUp.js → dashed-underline.DTZGLrPu.js} +2 -2
- package/dist/chunks/{dashed-underline.dWsHmwUp.js.map → dashed-underline.DTZGLrPu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CZrGeSxR.js → data-grid-template.sUNqCvbt.js} +3 -3
- package/dist/chunks/{data-grid-template.CZrGeSxR.js.map → data-grid-template.sUNqCvbt.js.map} +1 -1
- package/dist/chunks/{data-grid.Duvh6mRu.js → data-grid.BNXoMZf9.js} +148 -148
- package/dist/chunks/data-grid.BNXoMZf9.js.map +1 -0
- package/dist/chunks/{date-picker.DXrMLxD0.js → date-picker.DgpHNnu_.js} +16 -16
- package/dist/chunks/{date-picker.DXrMLxD0.js.map → date-picker.DgpHNnu_.js.map} +1 -1
- package/dist/chunks/{date-range-picker.D7BDFoqM.js → date-range-picker.CUIOfxjB.js} +25 -25
- package/dist/chunks/{date-range-picker.D7BDFoqM.js.map → date-range-picker.CUIOfxjB.js.map} +1 -1
- package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.DK2UKGH8.js} +2 -2
- package/dist/chunks/{dialog-page.D_r_CbyD.js.map → dialog-page.DK2UKGH8.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js → dropdown-tag.DqfoOcUU.js} +3 -3
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js.map → dropdown-tag.DqfoOcUU.js.map} +1 -1
- package/dist/chunks/{dropdown.CWq-VlFX.js → dropdown.a8OeeVAZ.js} +343 -343
- package/dist/chunks/dropdown.a8OeeVAZ.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DkYtiTHG.js} +2 -2
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DkYtiTHG.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.NbsEgoj1.js → file-uploader.DV4I5Lvf.js} +244 -248
- package/dist/chunks/file-uploader.DV4I5Lvf.js.map +1 -0
- package/dist/chunks/{filter-bar.DP4SHAQj.js → filter-bar.BZkXUVLH.js} +15 -15
- package/dist/chunks/{filter-bar.DP4SHAQj.js.map → filter-bar.BZkXUVLH.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.B4Eag_Sd.js} +2 -2
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.B4Eag_Sd.js.map} +1 -1
- package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.WvWwFKM8.js} +3 -3
- package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.WvWwFKM8.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.BHL_MDqT.js} +2 -2
- package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.BHL_MDqT.js.map} +1 -1
- package/dist/chunks/{header.BBIJHMkv.js → header.CRC9X7v2.js} +20 -20
- package/dist/chunks/{header.BBIJHMkv.js.map → header.CRC9X7v2.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js → info-icon-with-popover.BM0esxKN.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js.map → info-icon-with-popover.BM0esxKN.js.map} +1 -1
- package/dist/chunks/{input-field-password.SSiNunUz.js → input-field-password.Bo7FiAOq.js} +4 -4
- package/dist/chunks/{input-field-password.SSiNunUz.js.map → input-field-password.Bo7FiAOq.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number._PCiyrci.js → input-field-phone-number.DO2uU2XW.js} +2 -2
- package/dist/chunks/{input-field-phone-number._PCiyrci.js.map → input-field-phone-number.DO2uU2XW.js.map} +1 -1
- package/dist/chunks/{input-field.DhDfq9Er.js → input-field.rgA0t2sp.js} +2 -2
- package/dist/chunks/{input-field.DhDfq9Er.js.map → input-field.rgA0t2sp.js.map} +1 -1
- package/dist/chunks/{inspector.types.6P_ZowVx.js → inspector.types.Io6ONte7.js} +2 -2
- package/dist/chunks/{inspector.types.6P_ZowVx.js.map → inspector.types.Io6ONte7.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.CyGCtpse.js} +9 -9
- package/dist/chunks/link.CyGCtpse.js.map +1 -0
- package/dist/chunks/{menu.DKCUuV6a.js → menu.DKluB_Dn.js} +45 -44
- package/dist/chunks/menu.DKluB_Dn.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js → modal-fullscreen.D1gvJFag.js} +4 -4
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js.map → modal-fullscreen.D1gvJFag.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map} +1 -1
- package/dist/chunks/{pagination.DdTcv8B6.js → pagination.CGS6fGUm.js} +3 -3
- package/dist/chunks/{pagination.DdTcv8B6.js.map → pagination.CGS6fGUm.js.map} +1 -1
- package/dist/chunks/payment-method.CGNHCiy1.js +73 -0
- package/dist/chunks/payment-method.CGNHCiy1.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.BHGbUyMF.js → popover.BNOfWuSb.js} +93 -92
- package/dist/chunks/popover.BNOfWuSb.js.map +1 -0
- package/dist/chunks/{promo-banner.CKnonHmq.js → promo-banner.BUtq-2iR.js} +2 -2
- package/dist/chunks/{promo-banner.CKnonHmq.js.map → promo-banner.BUtq-2iR.js.map} +1 -1
- package/dist/chunks/{search-bar.BixBEf58.js → search-bar.Zdai5UhB.js} +3 -3
- package/dist/chunks/{search-bar.BixBEf58.js.map → search-bar.Zdai5UhB.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js → secondary-nav.C6D6dcs6.js} +2 -2
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js.map → secondary-nav.C6D6dcs6.js.map} +1 -1
- package/dist/chunks/{selection-card-group.B9nOBntu.js → selection-card-group.DzwIeKQC.js} +9 -9
- package/dist/chunks/{selection-card-group.B9nOBntu.js.map → selection-card-group.DzwIeKQC.js.map} +1 -1
- package/dist/chunks/{sidepanel.dFspFFRG.js → sidepanel.DzF1iCZM.js} +4 -4
- package/dist/chunks/{sidepanel.dFspFFRG.js.map → sidepanel.DzF1iCZM.js.map} +1 -1
- package/dist/chunks/{structured-list-item.C9vL7KwG.js → structured-list-item.DQHvIbQo.js} +3 -3
- package/dist/chunks/{structured-list-item.C9vL7KwG.js.map → structured-list-item.DQHvIbQo.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js → summary-grid-item-custom.D6s8sw36.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js.map → summary-grid-item-custom.D6s8sw36.js.map} +1 -1
- package/dist/chunks/{tabs.CR2tWuz3.js → tabs.CiTn85aw.js} +2 -2
- package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.CiTn85aw.js.map} +1 -1
- package/dist/chunks/{textarea.CrQk0SR0.js → textarea.CzuRg2pM.js} +2 -2
- package/dist/chunks/{textarea.CrQk0SR0.js.map → textarea.CzuRg2pM.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cs8JBNAA.js → timeline-item.CjltBKy0.js} +6 -6
- package/dist/chunks/{timeline-item.Cs8JBNAA.js.map → timeline-item.CjltBKy0.js.map} +1 -1
- package/dist/chunks/{toast.A5f1_NqV.js → toast.BWxPbCOy.js} +2 -2
- package/dist/chunks/{toast.A5f1_NqV.js.map → toast.BWxPbCOy.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.B9LWddx9.js} +23 -22
- package/dist/chunks/toggle-button.B9LWddx9.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.D82-YBdB.js → use-cached-selected-values.CxAhnNa6.js} +483 -479
- package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +48 -48
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -1
- package/dist/styles/bento-light.css +1 -1
- package/dist/styles/bento.css +1 -1
- package/dist/styles/legacy.css +2 -0
- package/dist/styles/styleguide.css +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -5
- package/dist/chunks/data-grid.Duvh6mRu.js.map +0 -1
- package/dist/chunks/dropdown.CWq-VlFX.js.map +0 -1
- package/dist/chunks/file-uploader.NbsEgoj1.js.map +0 -1
- package/dist/chunks/link.ClFi8uSm.js.map +0 -1
- package/dist/chunks/menu.DKCUuV6a.js.map +0 -1
- package/dist/chunks/payment-method.NguqkTwG.js +0 -103
- package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
- package/dist/chunks/popover.BHGbUyMF.js.map +0 -1
- package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.D82-YBdB.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as T, reactive as et, toRefs as tt, computed as E, watchEffect as Pn, watch as me, onMounted as nt, nextTick as ge, onUnmounted as Pt, onBeforeUpdate as Bn, createElementBlock as y, openBlock as u, mergeProps as ee, createCommentVNode as F, createElementVNode as p, toDisplayString as Y, defineComponent as Ee, normalizeClass as ce, Fragment as ve, renderList as Ce, unref as s, toHandlers as Ve, createVNode as K, createBlock as P, withCtx as H, renderSlot as
|
|
1
|
+
import { ref as T, reactive as et, toRefs as tt, computed as E, watchEffect as Pn, watch as me, onMounted as nt, nextTick as ge, onUnmounted as Pt, onBeforeUpdate as Bn, createElementBlock as y, openBlock as u, mergeProps as ee, createCommentVNode as F, createElementVNode as p, toDisplayString as Y, defineComponent as Ee, normalizeClass as ce, Fragment as ve, renderList as Ce, unref as s, toHandlers as Ve, createVNode as K, createBlock as P, withCtx as H, renderSlot as Se, withModifiers as Wn, resolveComponent as he, withDirectives as lt, createTextVNode as ue, vShow as Gn, toRef as Ye, resolveDirective as Hn, Transition as Bt, createSlots as Te, resolveDynamicComponent as Me, useSlots as st, provide as Wt, inject as Ke, normalizeStyle as ke, normalizeProps as Vn, guardReactiveProps as xn } from "vue";
|
|
2
2
|
import { C as Zn } from "./checkmark-circle-fill.g_tcBhFJ.js";
|
|
3
3
|
import { W as jn } from "./warning-filled.tTkVob0l.js";
|
|
4
4
|
import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
@@ -7,62 +7,62 @@ import { N as _t } from "./checkbox-input.CAYgiRHG.js";
|
|
|
7
7
|
import { l as wt } from "./events.FNmSWp_P.js";
|
|
8
8
|
import { K as ye, B as qn } from "./tooltip.DS1ok8gh.js";
|
|
9
9
|
import { c as Yn } from "./popper-container.types.BCZMbVFD.js";
|
|
10
|
-
import { B as Kn } from "./action-bar.
|
|
11
|
-
import { B as Xn } from "./pagination.
|
|
10
|
+
import { B as Kn } from "./action-bar.DkGjsKiy.js";
|
|
11
|
+
import { B as Xn } from "./pagination.CGS6fGUm.js";
|
|
12
12
|
import { B as ot } from "./loading-indicator.DEepb9Wl.js";
|
|
13
13
|
import { B as xe, p as Ht } from "./typography.DN5eC5ch.js";
|
|
14
14
|
import { u as it } from "./use-has-slot.B7eQSabc.js";
|
|
15
15
|
import { u as Jn } from "./aria-label.CaUURpnB.js";
|
|
16
16
|
import { g as Qn } from "./get-slot-text.DQlZEsId.js";
|
|
17
17
|
import { u as Ne } from "./i18n.D9azDLPe.js";
|
|
18
|
-
import { B as qe } from "./filter-bar.
|
|
19
|
-
import { B as el } from "./empty-state.
|
|
18
|
+
import { B as qe } from "./filter-bar.BZkXUVLH.js";
|
|
19
|
+
import { B as el } from "./empty-state.DkYtiTHG.js";
|
|
20
20
|
import { E as tl } from "./tabs.keys.Bc2pSKRw.js";
|
|
21
21
|
import { D as nl } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
22
22
|
import { o as at } from "./resize.Bqks3WUm.js";
|
|
23
|
-
import { a as
|
|
24
|
-
import { B as Vt } from "./button.
|
|
23
|
+
import { a as Lt, B as ll } from "./popover.BNOfWuSb.js";
|
|
24
|
+
import { B as Vt } from "./button.BXVKUuum.js";
|
|
25
25
|
import { B as xt } from "./toggle.BmwlaQon.js";
|
|
26
|
-
import { B as sl } from "./search-bar.
|
|
27
|
-
import { u as ol } from "./dropdown.
|
|
26
|
+
import { B as sl } from "./search-bar.Zdai5UhB.js";
|
|
27
|
+
import { u as ol } from "./dropdown.a8OeeVAZ.js";
|
|
28
28
|
import { B as il } from "./directive.O3yEdalv.js";
|
|
29
29
|
import { g as Xe } from "./generate-uid.NJ8tVoha.js";
|
|
30
30
|
import { S as al } from "./search.KgjmJMHa.js";
|
|
31
|
-
import { B as rt } from "./toggle-button.
|
|
32
|
-
import { B as Zt } from "./checkbox.
|
|
31
|
+
import { B as rt } from "./toggle-button.B9LWddx9.js";
|
|
32
|
+
import { B as Zt } from "./checkbox.BllRk82F.js";
|
|
33
33
|
import { B as rl } from "./info-icon.DQn8-VSp.js";
|
|
34
|
-
import { B as Je, O as dl, D as ul } from "./menu.
|
|
35
|
-
import { A as cl } from "./dialog-page.
|
|
34
|
+
import { B as Je, O as dl, D as ul } from "./menu.DKluB_Dn.js";
|
|
35
|
+
import { A as cl } from "./dialog-page.DK2UKGH8.js";
|
|
36
36
|
import { H as fl, S as gl } from "./show.J9zXGWlK.js";
|
|
37
37
|
import { u as vl } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
38
|
-
import { C as ml } from "./copy.
|
|
38
|
+
import { C as ml } from "./copy.DAu8GrR9.js";
|
|
39
39
|
import { C as hl, a as Cl } from "./chevron-up.Cu9qXgBY.js";
|
|
40
|
-
import { d as
|
|
40
|
+
import { d as St, e as Et } from "./button-actions.BZEKcCbe.js";
|
|
41
41
|
import "../assets/data-grid.css";
|
|
42
42
|
var Qe = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Qe || {}), Oe = /* @__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))(Oe || {}), pe = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(pe || {}), k = /* @__PURE__ */ ((e) => (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_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(k || {}), He = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(He || {}), te = /* @__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.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))(te || {});
|
|
43
43
|
const _l = (e, a) => {
|
|
44
44
|
const v = T(null), n = T(!1), d = T(void 0), t = e.value.reduce((i, h) => (i[h.field] = null, i), {}), o = et(t), _ = tt(o);
|
|
45
|
-
let w = 0,
|
|
45
|
+
let w = 0, L = "";
|
|
46
46
|
const R = E(
|
|
47
47
|
() => Object.fromEntries(e.value.map(({ field: i, width: h, minWidth: $ }) => [i, { width: h, minWidth: $ }]))
|
|
48
48
|
);
|
|
49
49
|
Pn(() => d.value = R.value);
|
|
50
50
|
let g = null, b = null;
|
|
51
51
|
const c = (i) => {
|
|
52
|
-
const h = i.clientX - w, $ =
|
|
52
|
+
const h = i.clientX - w, $ = L, N = d.value[$].width + h;
|
|
53
53
|
d.value[$].width = N > R.value[$].minWidth ? N : R.value[$].minWidth, a(te.COLUMN_RESIZING, d.value), w = i.clientX;
|
|
54
54
|
}, l = () => {
|
|
55
|
-
n.value = !1, g == null || g(), b == null || b(),
|
|
56
|
-
field:
|
|
57
|
-
width: d.value[
|
|
58
|
-
}), g = null, b = null,
|
|
55
|
+
n.value = !1, g == null || g(), b == null || b(), L && a(te.COLUMN_RESIZE, {
|
|
56
|
+
field: L,
|
|
57
|
+
width: d.value[L].width
|
|
58
|
+
}), g = null, b = null, L = "", w = null;
|
|
59
59
|
}, f = (i, h, $) => {
|
|
60
60
|
if ($.preventDefault(), i) {
|
|
61
61
|
if (n.value = !0, $.buttons !== 1) {
|
|
62
62
|
l();
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
L = h, w = $.clientX, g = wt(window, "mousemove", c), b = wt(window, "mouseup", l);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
return me(
|
|
@@ -77,7 +77,7 @@ const _l = (e, a) => {
|
|
|
77
77
|
isResizing: n,
|
|
78
78
|
columnHoverEventToEmitAfterResizing: v
|
|
79
79
|
};
|
|
80
|
-
}, wl = 100, yt = 50, fe = "b-actions-column",
|
|
80
|
+
}, wl = 100, yt = 50, fe = "b-actions-column", Ll = 32, Sl = 56, El = 56, yl = 80, bl = 36, Ol = 1, jt = 16, pl = 20, Rl = (e, a, v) => {
|
|
81
81
|
const n = {}, d = [], t = (_) => {
|
|
82
82
|
const w = n[_];
|
|
83
83
|
w && w.frozen !== !0 && (n[_].frozen = !0, d.push(_));
|
|
@@ -86,15 +86,15 @@ const _l = (e, a) => {
|
|
|
86
86
|
if (d.length === v.length)
|
|
87
87
|
return;
|
|
88
88
|
const _ = { min: {} };
|
|
89
|
-
let w = e,
|
|
89
|
+
let w = e, L = a, R = 0;
|
|
90
90
|
d.forEach((g) => {
|
|
91
|
-
w -= n[g].computedWidth,
|
|
91
|
+
w -= n[g].computedWidth, L -= n[g].flex;
|
|
92
92
|
});
|
|
93
93
|
for (let g = 0, b = v.length; g < b; g += 1) {
|
|
94
94
|
const c = v[g];
|
|
95
95
|
if (n[c.field] && n[c.field].frozen === !0)
|
|
96
96
|
continue;
|
|
97
|
-
let f = w /
|
|
97
|
+
let f = w / L * c.flex;
|
|
98
98
|
f < c.minWidth && (R += c.minWidth - f, f = c.minWidth, _.min[c.field] = !0), n[c.field] = {
|
|
99
99
|
frozen: !1,
|
|
100
100
|
computedWidth: f,
|
|
@@ -113,14 +113,14 @@ const _l = (e, a) => {
|
|
|
113
113
|
return a && (v += jt * 2), e != null && e.offsetWidth ? e.offsetWidth + v : 0;
|
|
114
114
|
}, Nl = (e) => {
|
|
115
115
|
var a, v, n, d, t;
|
|
116
|
-
return (a = e == null ? void 0 : e.hasNestedContent) != null && a.value || (v = e == null ? void 0 : e.hasNestedRows) != null && v.value ? (n = e == null ? void 0 : e.hasSelectableColumn) != null && n.value ? (d = e == null ? void 0 : e.hasSelectableAcrossPages) != null && d.value ? yl : El : bl : (t = e == null ? void 0 : e.hasSelectableAcrossPages) != null && t.value ?
|
|
116
|
+
return (a = e == null ? void 0 : e.hasNestedContent) != null && a.value || (v = e == null ? void 0 : e.hasNestedRows) != null && v.value ? (n = e == null ? void 0 : e.hasSelectableColumn) != null && n.value ? (d = e == null ? void 0 : e.hasSelectableAcrossPages) != null && d.value ? yl : El : bl : (t = e == null ? void 0 : e.hasSelectableAcrossPages) != null && t.value ? Sl : Ll;
|
|
117
117
|
}, Al = (e, a, v, n, d, t) => {
|
|
118
|
-
const o = T(e.value), _ = T(a), w = T(v),
|
|
118
|
+
const o = T(e.value), _ = T(a), w = T(v), L = T(n), R = T(d), g = T(!1);
|
|
119
119
|
me(
|
|
120
120
|
() => e.value,
|
|
121
|
-
(
|
|
121
|
+
(S, O) => {
|
|
122
122
|
var x, ne;
|
|
123
|
-
const W = (
|
|
123
|
+
const W = (S == null ? void 0 : S.map(({ field: J }) => J).toString()) === (O == null ? void 0 : O.map(({ field: J }) => J).toString());
|
|
124
124
|
if (!((x = t == null ? void 0 : t.allowColumnDragAndDrop) != null && x.value) || !W) {
|
|
125
125
|
o.value = e.value;
|
|
126
126
|
return;
|
|
@@ -135,7 +135,7 @@ const _l = (e, a) => {
|
|
|
135
135
|
let c = null;
|
|
136
136
|
const l = E(() => {
|
|
137
137
|
var V, U, G;
|
|
138
|
-
const
|
|
138
|
+
const S = [];
|
|
139
139
|
let O = 0, W = 0;
|
|
140
140
|
const x = {};
|
|
141
141
|
let ne = o.value.filter((Z) => Z.visible !== !1);
|
|
@@ -157,14 +157,14 @@ const _l = (e, a) => {
|
|
|
157
157
|
ne.forEach((Z) => {
|
|
158
158
|
const m = { ...Z };
|
|
159
159
|
let D;
|
|
160
|
-
m.flex && m.flex > 0 ? (O += m.flex, D = 0,
|
|
160
|
+
m.flex && m.flex > 0 ? (O += m.flex, D = 0, S.push(m)) : D = Math.max(
|
|
161
161
|
(m == null ? void 0 : m.width) ?? wl,
|
|
162
162
|
(m == null ? void 0 : m.minWidth) ?? yt
|
|
163
163
|
), W += D, m.width = D, m.minWidth = (m == null ? void 0 : m.minWidth) ?? yt, x[m.field] = m;
|
|
164
164
|
});
|
|
165
165
|
const C = Math.max(b.value - W, 0);
|
|
166
166
|
if (O > 0 && b.value > 0) {
|
|
167
|
-
const Z = Rl(C, O,
|
|
167
|
+
const Z = Rl(C, O, S);
|
|
168
168
|
Object.keys(Z).forEach((m) => {
|
|
169
169
|
x[m].width = Z[m].computedWidth;
|
|
170
170
|
});
|
|
@@ -173,41 +173,41 @@ const _l = (e, a) => {
|
|
|
173
173
|
const m = { ...Z };
|
|
174
174
|
x[m.field] = m;
|
|
175
175
|
}), Object.values(x);
|
|
176
|
-
}), f = T(void 0), i = (
|
|
177
|
-
f.value = { ...f.value, ...
|
|
176
|
+
}), f = T(void 0), i = (S) => {
|
|
177
|
+
f.value = { ...f.value, ...S };
|
|
178
178
|
}, h = async () => {
|
|
179
|
-
o.value.some((
|
|
179
|
+
o.value.some((S) => S == null ? void 0 : S.autoWidth) && (g.value = !0, await ge(), await ge(), o == null || o.value.filter((S) => S == null ? void 0 : S.autoWidth).forEach(({ field: S, minWidth: O }) => {
|
|
180
180
|
var J, C, V, U;
|
|
181
181
|
const W = bt(
|
|
182
|
-
(J =
|
|
182
|
+
(J = L.value) == null ? void 0 : J[S],
|
|
183
183
|
(C = t == null ? void 0 : t.hasColumnPanel) == null ? void 0 : C.value
|
|
184
|
-
), x = (U = (V = R.value) == null ? void 0 : V[
|
|
184
|
+
), x = (U = (V = R.value) == null ? void 0 : V[S]) == null ? void 0 : U.reduce(
|
|
185
185
|
(G, Z) => Math.max(G, bt(Z)),
|
|
186
186
|
0
|
|
187
187
|
), ne = Math.max(W, x ?? 0);
|
|
188
188
|
(O === void 0 || ne > O) && i({
|
|
189
|
-
[
|
|
189
|
+
[S]: {
|
|
190
190
|
width: ne
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
}), g.value = !1);
|
|
194
194
|
};
|
|
195
195
|
me([() => o.value, () => _.value], async () => {
|
|
196
|
-
o.value.some((
|
|
196
|
+
o.value.some((S) => S == null ? void 0 : S.autoWidth) && await h();
|
|
197
197
|
});
|
|
198
198
|
const $ = E(
|
|
199
|
-
() => l.value.map((
|
|
199
|
+
() => l.value.map((S) => {
|
|
200
200
|
var O, W;
|
|
201
201
|
return {
|
|
202
|
-
...
|
|
202
|
+
...S,
|
|
203
203
|
// Override column width with resized ones
|
|
204
|
-
width: ((W = (O = f.value) == null ? void 0 : O[
|
|
204
|
+
width: ((W = (O = f.value) == null ? void 0 : O[S.field]) == null ? void 0 : W.width) ?? S.width
|
|
205
205
|
};
|
|
206
206
|
})
|
|
207
207
|
), N = E(
|
|
208
208
|
() => {
|
|
209
|
-
var
|
|
210
|
-
return (
|
|
209
|
+
var S;
|
|
210
|
+
return (S = $.value) == null ? void 0 : S.filter(({ visible: O }) => O !== !1).reduce((O, W) => W.width + O, 0);
|
|
211
211
|
}
|
|
212
212
|
), B = E(
|
|
213
213
|
() => b.value <= N.value
|
|
@@ -216,14 +216,14 @@ const _l = (e, a) => {
|
|
|
216
216
|
}));
|
|
217
217
|
return nt(() => {
|
|
218
218
|
var O;
|
|
219
|
-
const
|
|
219
|
+
const S = t != null && t.isDataGridTemplate ? pl : 0;
|
|
220
220
|
ge(() => {
|
|
221
|
-
w.value && (b.value = w.value.getBoundingClientRect().width -
|
|
221
|
+
w.value && (b.value = w.value.getBoundingClientRect().width - S);
|
|
222
222
|
const W = me(
|
|
223
223
|
w,
|
|
224
224
|
() => {
|
|
225
225
|
w.value && (ge(() => W()), c = at(w.value, ({ width: x }) => {
|
|
226
|
-
b.value = x -
|
|
226
|
+
b.value = x - S;
|
|
227
227
|
}));
|
|
228
228
|
},
|
|
229
229
|
{ immediate: !0 }
|
|
@@ -234,8 +234,8 @@ const _l = (e, a) => {
|
|
|
234
234
|
}), Pt(() => {
|
|
235
235
|
c == null || c.disconnect();
|
|
236
236
|
}), Bn(() => {
|
|
237
|
-
var
|
|
238
|
-
R.value && ((
|
|
237
|
+
var S;
|
|
238
|
+
R.value && ((S = Object.keys(R.value)) == null ? void 0 : S.length) > 0 && Object.keys(R.value).forEach((W) => {
|
|
239
239
|
R.value[W] = [];
|
|
240
240
|
});
|
|
241
241
|
}), {
|
|
@@ -258,17 +258,17 @@ const _l = (e, a) => {
|
|
|
258
258
|
}).flat()
|
|
259
259
|
), w = () => {
|
|
260
260
|
a(k.SELECT, t.value), a(k.UPDATE_SELECTION, t.value);
|
|
261
|
-
},
|
|
261
|
+
}, L = (l) => {
|
|
262
262
|
var i, h, $, N, B;
|
|
263
263
|
if (t.value = l, ((i = v.value) == null ? void 0 : i.length) > 0 && ((h = _.value) == null ? void 0 : h.filter((X) => !d(X)).every((X) => t.value.includes(n(X))))) {
|
|
264
264
|
o.allItemsSelected = !0;
|
|
265
|
-
const X = (($ = v.value) == null ? void 0 : $.length) > 0 && v.value.every((
|
|
265
|
+
const X = (($ = v.value) == null ? void 0 : $.length) > 0 && v.value.every((S) => t.value.includes(n(S)));
|
|
266
266
|
o.isIndeterminate = !X;
|
|
267
267
|
} else
|
|
268
268
|
o.allItemsSelected = !1, o.isIndeterminate = ((N = t.value) == null ? void 0 : N.length) > 0 && ((B = v.value) == null ? void 0 : B.length) > 0 && v.value.some(
|
|
269
269
|
(X) => {
|
|
270
|
-
var
|
|
271
|
-
return t.value.includes(n(X)) || ((
|
|
270
|
+
var S;
|
|
271
|
+
return t.value.includes(n(X)) || ((S = X == null ? void 0 : X.children) == null ? void 0 : S.some((O) => t.value.includes(n(O))));
|
|
272
272
|
}
|
|
273
273
|
);
|
|
274
274
|
}, R = (l) => {
|
|
@@ -287,7 +287,7 @@ const _l = (e, a) => {
|
|
|
287
287
|
}, g = (l, f) => {
|
|
288
288
|
ge(() => {
|
|
289
289
|
var i;
|
|
290
|
-
|
|
290
|
+
L(((i = f == null ? void 0 : f.children) == null ? void 0 : i.length) > 0 ? b(l, f) : l), w();
|
|
291
291
|
});
|
|
292
292
|
}, b = (l, f) => {
|
|
293
293
|
var $;
|
|
@@ -303,9 +303,9 @@ const _l = (e, a) => {
|
|
|
303
303
|
ge(() => {
|
|
304
304
|
var $, N;
|
|
305
305
|
const h = n(f);
|
|
306
|
-
l.includes(n(i)) ?
|
|
306
|
+
l.includes(n(i)) ? L(
|
|
307
307
|
!l.includes(h) && (($ = f == null ? void 0 : f.children) != null && $.every((B) => l.includes(n(B)))) ? [...l, h] : l
|
|
308
|
-
) :
|
|
308
|
+
) : L(
|
|
309
309
|
l.includes(h) && !((N = f == null ? void 0 : f.children) != null && N.every((B) => l.includes(n(B)))) ? l.filter((B) => B !== h) : l
|
|
310
310
|
), w();
|
|
311
311
|
});
|
|
@@ -313,7 +313,7 @@ const _l = (e, a) => {
|
|
|
313
313
|
return me(
|
|
314
314
|
() => e.value,
|
|
315
315
|
() => {
|
|
316
|
-
|
|
316
|
+
L(e.value ?? []);
|
|
317
317
|
},
|
|
318
318
|
{ immediate: !0 }
|
|
319
319
|
), me(
|
|
@@ -325,19 +325,19 @@ const _l = (e, a) => {
|
|
|
325
325
|
return ((i = f == null ? void 0 : f.children) == null ? void 0 : i.length) > 0 ? f.children.map((h) => n(h)).filter((h) => !t.value.includes(h)) : [];
|
|
326
326
|
}
|
|
327
327
|
);
|
|
328
|
-
|
|
328
|
+
(l == null ? void 0 : l.length) > 0 ? (L([...t.value, ...l]), w()) : L(t.value);
|
|
329
329
|
}
|
|
330
330
|
), { onAllRowSelect: R, onRowSelect: g, onNestedRowSelect: c, allItemsSelectedState: o, selectedItems: t };
|
|
331
331
|
}, Il = (e, a, v) => ({ isSorting: (o) => e.value.some((_) => _.field === o), getSortingDirection: (o) => {
|
|
332
332
|
var _;
|
|
333
333
|
return (_ = e.value.find((w) => w.field === o)) == null ? void 0 : _.direction;
|
|
334
334
|
}, sortByColumnField: (o) => {
|
|
335
|
-
var
|
|
335
|
+
var L;
|
|
336
336
|
if (!a.value.some((R) => R.field === o && R.sortable))
|
|
337
337
|
return;
|
|
338
338
|
const w = [{
|
|
339
339
|
field: o,
|
|
340
|
-
direction: ((
|
|
340
|
+
direction: ((L = e.value.find((R) => R.field === o)) == null ? void 0 : L.direction) === pe.ASCENDING ? pe.DESCENDING : pe.ASCENDING
|
|
341
341
|
}];
|
|
342
342
|
v("sort", w);
|
|
343
343
|
} });
|
|
@@ -372,13 +372,13 @@ const $l = (e, a, v) => {
|
|
|
372
372
|
de.PAGE_DOWN,
|
|
373
373
|
de.END,
|
|
374
374
|
de.HOME
|
|
375
|
-
].includes(c),
|
|
375
|
+
].includes(c), L = (c, l, f) => {
|
|
376
376
|
const i = d.value.indexOf(c);
|
|
377
377
|
return w(l) ? o(i, l, f) : _(i, l);
|
|
378
378
|
}, R = (c, l, f) => {
|
|
379
379
|
if (!d.value.includes(c))
|
|
380
380
|
return;
|
|
381
|
-
const i =
|
|
381
|
+
const i = L(c, l, f);
|
|
382
382
|
d.value[i].focus();
|
|
383
383
|
}, g = (c) => c in de;
|
|
384
384
|
return {
|
|
@@ -390,7 +390,7 @@ const $l = (e, a, v) => {
|
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
}, Dl = 90, kl = (e, a, v, n, d) => {
|
|
393
|
-
const t = T(e), o = T(a), _ = T(v), w = T(n),
|
|
393
|
+
const t = T(e), o = T(a), _ = T(v), w = T(n), L = E(() => t.value !== "none"), R = E(() => t.value === "automatic"), g = () => {
|
|
394
394
|
d(k.UPDATE_SHOW_MORE);
|
|
395
395
|
};
|
|
396
396
|
return me(
|
|
@@ -398,7 +398,7 @@ const $l = (e, a, v) => {
|
|
|
398
398
|
() => {
|
|
399
399
|
R.value && _.value.offsetHeight / o.value * 100 > Dl && !w.value && g();
|
|
400
400
|
}
|
|
401
|
-
), { isLazyLoad:
|
|
401
|
+
), { isLazyLoad: L, isInfiniteScroll: R, verticalScrollPosition: o, emitLazyLoadEvent: g };
|
|
402
402
|
}, Ml = (e, a, v) => {
|
|
403
403
|
const n = T(e), d = T(a), t = et({
|
|
404
404
|
dragging: null,
|
|
@@ -416,24 +416,24 @@ const $l = (e, a, v) => {
|
|
|
416
416
|
t.target = c;
|
|
417
417
|
const f = l.currentTarget.getBoundingClientRect(), i = f.left + f.width / 2, h = l.clientX ?? 0;
|
|
418
418
|
t.dragToLeft = h <= i;
|
|
419
|
-
},
|
|
419
|
+
}, L = (c) => {
|
|
420
420
|
var l, f;
|
|
421
421
|
if (((l = t.dragging) == null ? void 0 : l.field) !== c.field) {
|
|
422
|
-
const i = n.value.findIndex((
|
|
422
|
+
const i = n.value.findIndex((S) => {
|
|
423
423
|
var O;
|
|
424
|
-
return
|
|
425
|
-
}), h = n.value.findIndex((
|
|
424
|
+
return S.field === ((O = t.dragging) == null ? void 0 : O.field);
|
|
425
|
+
}), h = n.value.findIndex((S) => S.field === c.field), $ = t.dragToLeft ? h : h + 1, N = $ > i ? $ - 1 : $;
|
|
426
426
|
let B = [...n.value];
|
|
427
427
|
B.splice(
|
|
428
428
|
N === -1 ? 0 : N,
|
|
429
429
|
0,
|
|
430
430
|
B.splice(i, 1)[0]
|
|
431
431
|
);
|
|
432
|
-
const X = n.value.findIndex((
|
|
432
|
+
const X = n.value.findIndex((S) => !(S != null && S.frozen));
|
|
433
433
|
((f = t.dragging) == null ? void 0 : f.frozen) !== c.frozen && $ !== X && (B = B.map(
|
|
434
|
-
(
|
|
434
|
+
(S) => {
|
|
435
435
|
var O;
|
|
436
|
-
return ((O = t.dragging) == null ? void 0 : O.field) ===
|
|
436
|
+
return ((O = t.dragging) == null ? void 0 : O.field) === S.field ? { ...S, frozen: !!(c != null && c.frozen) } : S;
|
|
437
437
|
}
|
|
438
438
|
)), v(k.COLUMNS, B), v(k.UPDATE_COLUMNS, B);
|
|
439
439
|
}
|
|
@@ -443,14 +443,14 @@ const $l = (e, a, v) => {
|
|
|
443
443
|
}, g = E(() => d.value ? {
|
|
444
444
|
[te.COLUMN_DRAG_START]: (c, l) => _(c, l),
|
|
445
445
|
[te.COLUMN_DRAG_ENTER]: (c, l) => w(c, l),
|
|
446
|
-
[te.COLUMN_DROP]: (c) =>
|
|
446
|
+
[te.COLUMN_DROP]: (c) => L(c),
|
|
447
447
|
[te.COLUMN_DRAG_END]: () => R()
|
|
448
448
|
} : {}), b = E(() => (c) => d.value ? {
|
|
449
449
|
dragenter: (l) => {
|
|
450
450
|
l.preventDefault(), w(c, l);
|
|
451
451
|
},
|
|
452
452
|
drop: () => {
|
|
453
|
-
|
|
453
|
+
L(c);
|
|
454
454
|
},
|
|
455
455
|
dragover: (l) => {
|
|
456
456
|
l.preventDefault();
|
|
@@ -478,7 +478,7 @@ const $l = (e, a, v) => {
|
|
|
478
478
|
].filter(({ columnSet: g }) => g.length)
|
|
479
479
|
), _ = E(
|
|
480
480
|
() => v.value.filter((g) => (g == null ? void 0 : g.visible) !== !1 && (g == null ? void 0 : g.field) !== fe).length === 1
|
|
481
|
-
), w = (g) => a(k.UPDATE_CONDENSED, g),
|
|
481
|
+
), w = (g) => a(k.UPDATE_CONDENSED, g), L = (g) => {
|
|
482
482
|
a(k.COLUMNS, g), a(k.UPDATE_COLUMNS, g);
|
|
483
483
|
};
|
|
484
484
|
return {
|
|
@@ -488,12 +488,12 @@ const $l = (e, a, v) => {
|
|
|
488
488
|
sortedColumns: n,
|
|
489
489
|
// Methods
|
|
490
490
|
onConfigSettingsUpdate: w,
|
|
491
|
-
onConfigSettingsColumnsUpdate:
|
|
491
|
+
onConfigSettingsColumnsUpdate: L,
|
|
492
492
|
onConfigSettingsColumnUpdate: (g) => {
|
|
493
493
|
const b = n.value.map(
|
|
494
494
|
(c) => (c == null ? void 0 : c.field) === g.field ? g : c
|
|
495
495
|
);
|
|
496
|
-
|
|
496
|
+
L(b);
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
}, Ot = (e, a) => {
|
|
@@ -540,7 +540,7 @@ const $l = (e, a, v) => {
|
|
|
540
540
|
const c = b.target.scrollLeft;
|
|
541
541
|
n.value.scrollLeft !== c && (n.value.scrollLeft = c);
|
|
542
542
|
}
|
|
543
|
-
},
|
|
543
|
+
}, L = (b) => {
|
|
544
544
|
b.key !== "Tab" && b.key !== "ArrowRight" && b.key !== "ArrowLeft" || (b.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
|
|
545
545
|
e.value.style.overflowX = "auto";
|
|
546
546
|
}));
|
|
@@ -561,7 +561,7 @@ const $l = (e, a, v) => {
|
|
|
561
561
|
horizontalScrollbarConditionalClasses: g,
|
|
562
562
|
// Methods
|
|
563
563
|
updateScrollPosition: w,
|
|
564
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
564
|
+
updateScrollPositionOnFrozenColumnsNavigation: L,
|
|
565
565
|
syncVirtualScrollerWithBody: R
|
|
566
566
|
};
|
|
567
567
|
}, Ul = (e, a, v, n) => {
|
|
@@ -574,7 +574,7 @@ const $l = (e, a, v) => {
|
|
|
574
574
|
noBorderLeft: !1,
|
|
575
575
|
noBorderRight: !1
|
|
576
576
|
};
|
|
577
|
-
const o = (i = (f = e.value.find((N) => N.isFrozenColumns)) == null ? void 0 : f.columnSet) == null ? void 0 : i.filter((N) => N.field !== fe), _ = e.value.find((N) => !(N != null && N.isFrozenColumns)), w = d.value.frozen && (o == null ? void 0 : o[0].field) === d.value.field,
|
|
577
|
+
const o = (i = (f = e.value.find((N) => N.isFrozenColumns)) == null ? void 0 : f.columnSet) == null ? void 0 : i.filter((N) => N.field !== fe), _ = e.value.find((N) => !(N != null && N.isFrozenColumns)), w = d.value.frozen && (o == null ? void 0 : o[0].field) === d.value.field, L = !d.value.frozen && ((h = _ == null ? void 0 : _.columnSet) == null ? void 0 : h[0].field) === d.value.field, R = (a.value || v.value) && w, g = (a.value || v.value) && !o && L, b = o && L, c = (o == null ? void 0 : o.length) > 0 && d.value.frozen && (o == null ? void 0 : o[o.length - 1].field) === d.value.field, l = v.value && n.value && !d.value.frozen && (($ = _ == null ? void 0 : _.columnSet) == null ? void 0 : $[_.columnSet.length - 1].field) === d.value.field;
|
|
578
578
|
return {
|
|
579
579
|
hoveredOverColumnField: d.value.field,
|
|
580
580
|
isSeparatorOffset: l,
|
|
@@ -815,10 +815,10 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
815
815
|
}, hs = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Cs = {
|
|
816
816
|
key: 0,
|
|
817
817
|
class: "b-data-grid-columns__select-column"
|
|
818
|
-
}, _s = ["aria-label"], ws = { class: "b-data-grid-columns__label" },
|
|
818
|
+
}, _s = ["aria-label"], ws = { class: "b-data-grid-columns__label" }, Ls = {
|
|
819
819
|
key: 0,
|
|
820
820
|
class: "b-data-grid-columns__column-info-icon"
|
|
821
|
-
},
|
|
821
|
+
}, Ss = {
|
|
822
822
|
key: 1,
|
|
823
823
|
class: "b-data-grid-columns__column-sort"
|
|
824
824
|
}, Es = ["data-testid", "onMousedown"], ys = {
|
|
@@ -954,7 +954,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
954
954
|
},
|
|
955
955
|
emits: ["sort", "column-hover"],
|
|
956
956
|
setup(e, { expose: a, emit: v }) {
|
|
957
|
-
const n = e, d = v, t = 100, { t: o } = Ne({ messages: Yt }), { columns: _, sortBy: w } = tt(n),
|
|
957
|
+
const n = e, d = v, t = 100, { t: o } = Ne({ messages: Yt }), { columns: _, sortBy: w } = tt(n), L = T({}), R = T({}), g = T(), b = T(), c = (r) => d(te.SELECT_ALL_ROWS, r), l = (r) => r.field === fe, f = E(() => [
|
|
958
958
|
{
|
|
959
959
|
text: o("selectPage"),
|
|
960
960
|
handler: () => c(!0)
|
|
@@ -963,7 +963,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
963
963
|
text: o("selectAll"),
|
|
964
964
|
handler: () => d(te.SELECT_ALL_ACROSS_PAGES)
|
|
965
965
|
}
|
|
966
|
-
]), { startResize: i, isResizing: h, columnHoverEventToEmitAfterResizing: $ } = _l(_, d), { isSorting: N, getSortingDirection: B, sortByColumnField: X } = Il(w, _, d),
|
|
966
|
+
]), { startResize: i, isResizing: h, columnHoverEventToEmitAfterResizing: $ } = _l(_, d), { isSorting: N, getSortingDirection: B, sortByColumnField: X } = Il(w, _, d), S = (r) => {
|
|
967
967
|
var ae;
|
|
968
968
|
if (!r.sortable)
|
|
969
969
|
return null;
|
|
@@ -1040,7 +1040,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1040
1040
|
}), M;
|
|
1041
1041
|
}, C = (r) => r.infoIconTooltip || r.sortable || n.hasColumnPanel, V = (r, M) => {
|
|
1042
1042
|
var A;
|
|
1043
|
-
((A =
|
|
1043
|
+
((A = L.value) == null ? void 0 : A[M]) === void 0 && (L.value = { ...L.value, [M]: null }), r !== null && (L.value[M] = r);
|
|
1044
1044
|
}, U = E(() => {
|
|
1045
1045
|
var M;
|
|
1046
1046
|
const r = {
|
|
@@ -1055,7 +1055,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1055
1055
|
...r,
|
|
1056
1056
|
"b-data-grid-columns--unfrozen": !0
|
|
1057
1057
|
};
|
|
1058
|
-
}), G = (r, M) => r && M === 0 ?
|
|
1058
|
+
}), G = (r, M) => r && M === 0 ? Lt.BOTTOM_START : Lt.BOTTOM_END, Z = (r, M) => {
|
|
1059
1059
|
var A, ae, Q, Re, Ae, se, Ie, ze, Fe, Ue;
|
|
1060
1060
|
return {
|
|
1061
1061
|
"b-data-grid-columns__column--column-hovered": r.field === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
@@ -1083,7 +1083,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1083
1083
|
"b-data-grid-columns__column-header--truncated": n.truncateColumnHeaders
|
|
1084
1084
|
}));
|
|
1085
1085
|
return a({
|
|
1086
|
-
columnHeaderRefs:
|
|
1086
|
+
columnHeaderRefs: L
|
|
1087
1087
|
}), (r, M) => (u(), y("div", {
|
|
1088
1088
|
class: ce(["b-data-grid-columns", U.value]),
|
|
1089
1089
|
"data-testid": "data-grid-columns"
|
|
@@ -1094,7 +1094,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1094
1094
|
ref: (Q) => V(Q, A.field),
|
|
1095
1095
|
"aria-colindex": ae + 1,
|
|
1096
1096
|
"aria-label": A.label,
|
|
1097
|
-
"aria-sort":
|
|
1097
|
+
"aria-sort": S(A),
|
|
1098
1098
|
class: [Z(A, ae), "b-data-grid-columns__column"],
|
|
1099
1099
|
"data-testid": `${A.field}-column-header`,
|
|
1100
1100
|
draggable: e.hasDraggableColumns && !s(h) && !l(A),
|
|
@@ -1138,7 +1138,7 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1138
1138
|
class: ce(["b-data-grid-columns__column-header", le.value])
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: H(() => [
|
|
1141
|
-
|
|
1141
|
+
Se(r.$slots, `head-${A.field}`, { column: A }, () => [
|
|
1142
1142
|
p("span", ws, Y(A.label), 1)
|
|
1143
1143
|
], !0)
|
|
1144
1144
|
]),
|
|
@@ -1148,12 +1148,12 @@ const ms = /* @__PURE__ */ oe(fs, [["render", vs]]), Yt = {
|
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
class: ce(["b-data-grid-columns__column-actions", D(A)])
|
|
1150
1150
|
}, [
|
|
1151
|
-
A.infoIconTooltip ? (u(), y("div",
|
|
1151
|
+
A.infoIconTooltip ? (u(), y("div", Ls, [
|
|
1152
1152
|
K(s(rl), {
|
|
1153
1153
|
"tooltip-text": A.infoIconTooltip
|
|
1154
1154
|
}, null, 8, ["tooltip-text"])
|
|
1155
1155
|
])) : F("", !0),
|
|
1156
|
-
A.sortable ? (u(), y("div",
|
|
1156
|
+
A.sortable ? (u(), y("div", Ss, [
|
|
1157
1157
|
K(s(rt), {
|
|
1158
1158
|
condensed: "",
|
|
1159
1159
|
toggled: s(N)(A.field),
|
|
@@ -1282,7 +1282,7 @@ const $s = /* @__PURE__ */ oe(Rs, [["render", Is]]), Dt = {
|
|
|
1282
1282
|
a("updated-column", { ...e.column, frozen: !d.value });
|
|
1283
1283
|
}, w = () => {
|
|
1284
1284
|
d.value || (n.value = !0);
|
|
1285
|
-
},
|
|
1285
|
+
}, L = () => {
|
|
1286
1286
|
d.value || (n.value = !1);
|
|
1287
1287
|
}, R = E(() => ({
|
|
1288
1288
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": d.value
|
|
@@ -1296,7 +1296,7 @@ const $s = /* @__PURE__ */ oe(Rs, [["render", Is]]), Dt = {
|
|
|
1296
1296
|
// Methods
|
|
1297
1297
|
toggleColumnVisibility: o,
|
|
1298
1298
|
showFreezeIcon: w,
|
|
1299
|
-
hideFreezeIcon:
|
|
1299
|
+
hideFreezeIcon: L,
|
|
1300
1300
|
toggleColumnFreeze: _,
|
|
1301
1301
|
// Translations
|
|
1302
1302
|
t: v
|
|
@@ -1391,8 +1391,8 @@ const Ms = /* @__PURE__ */ oe(Ds, [["render", ks], ["__scopeId", "data-v-bb87a72
|
|
|
1391
1391
|
},
|
|
1392
1392
|
emits: [be.CONFIG_SETTINGS, be.UPDATE_COLUMNS],
|
|
1393
1393
|
setup(e, { emit: a }) {
|
|
1394
|
-
const { t: v } = Ne({ messages: kt }), n = T(null), d = Xe("data-grid-config-settings-popover"), t = T(null), o = T(!1), _ = T(!0), w = T(null),
|
|
1395
|
-
|
|
1394
|
+
const { t: v } = Ne({ messages: kt }), n = T(null), d = Xe("data-grid-config-settings-popover"), t = T(null), o = T(!1), _ = T(!0), w = T(null), L = T(""), R = Ye(e, "columns"), g = T(!1), b = ol(L, R), c = () => {
|
|
1395
|
+
L.value = "";
|
|
1396
1396
|
}, l = E(
|
|
1397
1397
|
() => !e.columns.some((O) => O.visible === !1 && !O.mandatory)
|
|
1398
1398
|
), f = () => {
|
|
@@ -1433,7 +1433,7 @@ const Ms = /* @__PURE__ */ oe(Ds, [["render", ks], ["__scopeId", "data-v-bb87a72
|
|
|
1433
1433
|
isConfigSettingsPanelOpen: o,
|
|
1434
1434
|
allColumnsVisbilityToggleState: _,
|
|
1435
1435
|
filteredColumnVisibilityColumns: b,
|
|
1436
|
-
searchTerm:
|
|
1436
|
+
searchTerm: L,
|
|
1437
1437
|
isColumnVisibilityFilterShown: g,
|
|
1438
1438
|
searchBarRef: t,
|
|
1439
1439
|
searchButtonRef: w,
|
|
@@ -1463,7 +1463,7 @@ const Ms = /* @__PURE__ */ oe(Ds, [["render", ks], ["__scopeId", "data-v-bb87a72
|
|
|
1463
1463
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1464
1464
|
}, Zs = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1465
1465
|
function js(e, a, v, n, d, t) {
|
|
1466
|
-
const o = he("bento-settings-icon"), _ = he("bento-toggle-button"), w = he("bento-typography"),
|
|
1466
|
+
const o = he("bento-settings-icon"), _ = he("bento-toggle-button"), w = he("bento-typography"), L = he("bento-cross-icon"), R = he("bento-button"), g = he("bento-toggle"), b = he("bento-search-icon"), c = he("bento-search-bar"), l = he("bento-data-grid-config-settings-config-row"), f = he("bento-popover"), i = Hn("bento-click-outside-directive");
|
|
1467
1467
|
return lt((u(), y("div", Fs, [
|
|
1468
1468
|
p("div", Us, [
|
|
1469
1469
|
p("div", Ps, [
|
|
@@ -1508,7 +1508,7 @@ function js(e, a, v, n, d, t) {
|
|
|
1508
1508
|
onClick: a[1] || (a[1] = (h) => e.setConfigSettingsPanelVisibility(!1))
|
|
1509
1509
|
}, {
|
|
1510
1510
|
iconLeft: H(() => [
|
|
1511
|
-
K(
|
|
1511
|
+
K(L, {
|
|
1512
1512
|
"svg-title": e.t("closeConfigSettingsPanel")
|
|
1513
1513
|
}, null, 8, ["svg-title"])
|
|
1514
1514
|
]),
|
|
@@ -1556,7 +1556,7 @@ function js(e, a, v, n, d, t) {
|
|
|
1556
1556
|
onClick: e.toggleColumnFilter
|
|
1557
1557
|
}, {
|
|
1558
1558
|
iconLeft: H(() => [
|
|
1559
|
-
K(
|
|
1559
|
+
K(L)
|
|
1560
1560
|
]),
|
|
1561
1561
|
default: H(() => [
|
|
1562
1562
|
ue(" " + Y(e.t("closeSearch")), 1)
|
|
@@ -1660,7 +1660,7 @@ const qs = /* @__PURE__ */ oe(zs, [["render", js], ["__scopeId", "data-v-f5950a5
|
|
|
1660
1660
|
const { t: a } = Ne({ messages: Ze });
|
|
1661
1661
|
return (v, n) => (u(), y("div", Ys, [
|
|
1662
1662
|
v.loading && v.isInfiniteScroll ? (u(), P(s(ot), { key: 0 })) : F("", !0),
|
|
1663
|
-
v.loading && !v.isInfiniteScroll ? (u(), P(s(
|
|
1663
|
+
v.loading && !v.isInfiniteScroll ? (u(), P(s(St), {
|
|
1664
1664
|
key: 1,
|
|
1665
1665
|
variant: "secondary",
|
|
1666
1666
|
state: s(Et).LOADING
|
|
@@ -1670,7 +1670,7 @@ const qs = /* @__PURE__ */ oe(zs, [["render", js], ["__scopeId", "data-v-f5950a5
|
|
|
1670
1670
|
]),
|
|
1671
1671
|
_: 1
|
|
1672
1672
|
}, 8, ["state"])) : F("", !0),
|
|
1673
|
-
!v.loading && !v.isInfiniteScroll ? (u(), P(s(
|
|
1673
|
+
!v.loading && !v.isInfiniteScroll ? (u(), P(s(St), {
|
|
1674
1674
|
key: 2,
|
|
1675
1675
|
state: s(Et).START,
|
|
1676
1676
|
variant: "secondary",
|
|
@@ -1806,14 +1806,14 @@ const Ft = /* @__PURE__ */ oe(lo, [["render", oo]]), Kt = {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
}), w = (l) => (l == null ? void 0 : l.event) !== void 0 ? {
|
|
1808
1808
|
click: () => l.event(n.rowDataItem, n.columnKey)
|
|
1809
|
-
} : {},
|
|
1809
|
+
} : {}, L = (l) => ({
|
|
1810
1810
|
...l,
|
|
1811
1811
|
handler: () => {
|
|
1812
1812
|
l != null && l.handler && typeof l.handler == "function" && (l == null || l.handler()), l != null && l.event && typeof l.event == "function" && (l == null || l.event(n.rowDataItem, n.columnKey));
|
|
1813
1813
|
}
|
|
1814
1814
|
}), R = (l) => l.map((f) => {
|
|
1815
1815
|
const i = f;
|
|
1816
|
-
return i != null && i.items && (i.items = R(i.items)), { ...
|
|
1816
|
+
return i != null && i.items && (i.items = R(i.items)), { ...L(i) };
|
|
1817
1817
|
}), g = (l) => {
|
|
1818
1818
|
var f, i;
|
|
1819
1819
|
return (l == null ? void 0 : l.getCopyData) !== void 0 ? l.getCopyData(n.rowDataItem, n.columnKey) : (i = (f = n.rowDataItem) == null ? void 0 : f[n.columnKey]) == null ? void 0 : i.toString();
|
|
@@ -2068,7 +2068,7 @@ const Jt = {
|
|
|
2068
2068
|
},
|
|
2069
2069
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
2070
2070
|
setup(e, { expose: a, emit: v }) {
|
|
2071
|
-
const n = st(), d = it(n), { t } = Ne({ messages: Jt }), o = e, _ = v, w = T(null),
|
|
2071
|
+
const n = st(), d = it(n), { t } = Ne({ messages: Jt }), o = e, _ = v, w = T(null), L = T(null), R = T(!1), g = T([]), b = E(() => {
|
|
2072
2072
|
var C;
|
|
2073
2073
|
return !!((C = o.rowData) != null && C[o.column.field]);
|
|
2074
2074
|
}), c = E(
|
|
@@ -2083,7 +2083,7 @@ const Jt = {
|
|
|
2083
2083
|
(C === null || !w.value.contains(C) && !((V = g.value) != null && V.map((U) => U.value).some((U) => U === C || (U == null ? void 0 : U.contains(C))))) && (R.value = !1);
|
|
2084
2084
|
}, X = () => {
|
|
2085
2085
|
R.value = !1;
|
|
2086
|
-
},
|
|
2086
|
+
}, S = (C) => {
|
|
2087
2087
|
const U = { ...{
|
|
2088
2088
|
...o.draggingEventsForRowCell(C)
|
|
2089
2089
|
} };
|
|
@@ -2154,7 +2154,7 @@ const Jt = {
|
|
|
2154
2154
|
style: {
|
|
2155
2155
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2156
2156
|
}
|
|
2157
|
-
}, Ve(
|
|
2157
|
+
}, Ve(S(e.column), !0)), [
|
|
2158
2158
|
e.column.field === s(fe) ? (u(), y(ve, { key: 0 }, [
|
|
2159
2159
|
e.selectable ? (u(), P(s(Zt), {
|
|
2160
2160
|
key: 0,
|
|
@@ -2192,7 +2192,7 @@ const Jt = {
|
|
|
2192
2192
|
], 64)) : (u(), y(ve, { key: 1 }, [
|
|
2193
2193
|
K(s(xe), { el: "div" }, {
|
|
2194
2194
|
default: H(() => [
|
|
2195
|
-
|
|
2195
|
+
Se(C.$slots, `item-${e.column.field}`, {
|
|
2196
2196
|
item: e.rowData,
|
|
2197
2197
|
rowIndex: e.rowIndex
|
|
2198
2198
|
}, () => [
|
|
@@ -2207,7 +2207,7 @@ const Jt = {
|
|
|
2207
2207
|
R.value && (b.value || s(d)(`item-${e.column.field}`)) ? (u(), P(co, {
|
|
2208
2208
|
key: 0,
|
|
2209
2209
|
ref_key: "cellActionsRef",
|
|
2210
|
-
ref:
|
|
2210
|
+
ref: L,
|
|
2211
2211
|
"cell-actions": e.column.cellActions,
|
|
2212
2212
|
"column-key": e.column.field,
|
|
2213
2213
|
"row-data-item": e.rowData,
|
|
@@ -2218,7 +2218,7 @@ const Jt = {
|
|
|
2218
2218
|
], 16, fo);
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
|
-
}), Co = /* @__PURE__ */ oe(ho, [["__scopeId", "data-v-7d208720"]]), _o = { class: "b-data-grid-row-container" }, wo = ["id", "aria-selected"],
|
|
2221
|
+
}), Co = /* @__PURE__ */ oe(ho, [["__scopeId", "data-v-7d208720"]]), _o = { class: "b-data-grid-row-container" }, wo = ["id", "aria-selected"], Lo = ["data-testid"], So = {
|
|
2222
2222
|
key: 0,
|
|
2223
2223
|
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2224
2224
|
}, Eo = { key: 2 }, yo = {
|
|
@@ -2403,7 +2403,7 @@ const Jt = {
|
|
|
2403
2403
|
},
|
|
2404
2404
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2405
2405
|
setup(e, { expose: a, emit: v }) {
|
|
2406
|
-
const n = st(), d = it(n), t = e, o = v, _ = T({}), w = T(!1),
|
|
2406
|
+
const n = st(), d = it(n), t = e, o = v, _ = T({}), w = T(!1), L = T(), R = Xe("nested-content-slot"), g = E(() => t.shouldShowNestedRows(t.rowData)), b = E(
|
|
2407
2407
|
() => {
|
|
2408
2408
|
var m, D;
|
|
2409
2409
|
return !t.isNestedRow && t.hasNestedRows && g.value && ((D = (m = t.rowData) == null ? void 0 : m.children) == null ? void 0 : D.length) > 0;
|
|
@@ -2473,7 +2473,7 @@ const Jt = {
|
|
|
2473
2473
|
}), B = (m, D) => {
|
|
2474
2474
|
const j = m;
|
|
2475
2475
|
m !== null && (j != null && j.gridcellRef) && (_.value[D] = j.gridcellRef);
|
|
2476
|
-
}, X = (m) => h.value[m],
|
|
2476
|
+
}, X = (m) => h.value[m], S = (m) => {
|
|
2477
2477
|
if (!t.selectable)
|
|
2478
2478
|
return null;
|
|
2479
2479
|
const D = t.getDataItemId(m);
|
|
@@ -2484,7 +2484,7 @@ const Jt = {
|
|
|
2484
2484
|
o("select-row", m, t.rowData);
|
|
2485
2485
|
}, x = (m, D) => {
|
|
2486
2486
|
o("select-nested-row", D, t.rowData, m);
|
|
2487
|
-
}, { updateContentHeight: ne, contentHeight: J } = vl(
|
|
2487
|
+
}, { updateContentHeight: ne, contentHeight: J } = vl(L, w), C = E(() => {
|
|
2488
2488
|
var m;
|
|
2489
2489
|
if (t.hasNestedContent || t.hasNestedRows)
|
|
2490
2490
|
return {
|
|
@@ -2493,11 +2493,11 @@ const Jt = {
|
|
|
2493
2493
|
};
|
|
2494
2494
|
});
|
|
2495
2495
|
me(
|
|
2496
|
-
() =>
|
|
2496
|
+
() => L.value,
|
|
2497
2497
|
() => {
|
|
2498
2498
|
let m = null;
|
|
2499
|
-
!m &&
|
|
2500
|
-
|
|
2499
|
+
!m && L.value && (m = at(L.value, () => {
|
|
2500
|
+
L.value && ne();
|
|
2501
2501
|
}));
|
|
2502
2502
|
}
|
|
2503
2503
|
);
|
|
@@ -2539,7 +2539,7 @@ const Jt = {
|
|
|
2539
2539
|
key: e.rowIndex,
|
|
2540
2540
|
class: ["b-data-grid-row-container__row", U(e.rowData, e.rowIndex)],
|
|
2541
2541
|
role: "row",
|
|
2542
|
-
"aria-selected":
|
|
2542
|
+
"aria-selected": S(e.rowData),
|
|
2543
2543
|
onClick: O
|
|
2544
2544
|
}), [
|
|
2545
2545
|
(u(!0), y(ve, null, Ce(e.columnSets, ({ columnSet: j, id: le, isFrozenColumns: r }, M) => (u(), y(ve, null, [
|
|
@@ -2580,11 +2580,11 @@ const Jt = {
|
|
|
2580
2580
|
Ce(s(n), (Q, Re) => ({
|
|
2581
2581
|
name: Re,
|
|
2582
2582
|
fn: H((Ae) => [
|
|
2583
|
-
|
|
2583
|
+
Se(m.$slots, Re, ee({ ref_for: !0 }, Ae), void 0, !0)
|
|
2584
2584
|
])
|
|
2585
2585
|
}))
|
|
2586
2586
|
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "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))
|
|
2587
|
-
], 10,
|
|
2587
|
+
], 10, Lo)) : F("", !0)
|
|
2588
2588
|
], 64))), 256))
|
|
2589
2589
|
], 16, wo)),
|
|
2590
2590
|
e.hasNestedContent && s(d)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && g.value ? (u(), P(Bt, {
|
|
@@ -2599,9 +2599,9 @@ const Jt = {
|
|
|
2599
2599
|
}), [
|
|
2600
2600
|
p("div", {
|
|
2601
2601
|
ref_key: "nestedContentRef",
|
|
2602
|
-
ref:
|
|
2602
|
+
ref: L
|
|
2603
2603
|
}, [
|
|
2604
|
-
c.value ? (u(), y("div",
|
|
2604
|
+
c.value ? (u(), y("div", So, [
|
|
2605
2605
|
K(s(ot))
|
|
2606
2606
|
])) : b.value ? (u(!0), y(ve, { key: 1 }, Ce(e.rowData.children, (j, le) => (u(), P(Qt, ee({ ref_for: !0 }, t, {
|
|
2607
2607
|
id: X(le),
|
|
@@ -2618,11 +2618,11 @@ const Jt = {
|
|
|
2618
2618
|
Ce(s(n), (r, M) => ({
|
|
2619
2619
|
name: M,
|
|
2620
2620
|
fn: H((A) => [
|
|
2621
|
-
|
|
2621
|
+
Se(m.$slots, M, ee({ ref_for: !0 }, A), void 0, !0)
|
|
2622
2622
|
])
|
|
2623
2623
|
}))
|
|
2624
2624
|
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128)) : s(d)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (u(), y("div", Eo, [
|
|
2625
|
-
|
|
2625
|
+
Se(m.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
2626
2626
|
])) : F("", !0)
|
|
2627
2627
|
], 512)
|
|
2628
2628
|
], 16)) : F("", !0)
|
|
@@ -3000,7 +3000,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3000
3000
|
k.SORT
|
|
3001
3001
|
],
|
|
3002
3002
|
setup(e, { expose: a, emit: v }) {
|
|
3003
|
-
const n = e, d = st(), t = it(d), o = T(null), _ = T(), w = T({}),
|
|
3003
|
+
const n = e, d = st(), t = it(d), o = T(null), _ = T(), w = T({}), L = T(null), R = T(null), g = T(), b = T(null), c = T(null), {
|
|
3004
3004
|
allowColumnDragAndDrop: l,
|
|
3005
3005
|
columns: f,
|
|
3006
3006
|
columnPanel: i,
|
|
@@ -3009,7 +3009,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3009
3009
|
loading: N,
|
|
3010
3010
|
hasNestedContent: B,
|
|
3011
3011
|
hasNestedRows: X,
|
|
3012
|
-
selectable:
|
|
3012
|
+
selectable: S,
|
|
3013
3013
|
selection: O,
|
|
3014
3014
|
selectableAcrossPages: W,
|
|
3015
3015
|
stickyPagination: x,
|
|
@@ -3030,9 +3030,9 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3030
3030
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: ae,
|
|
3031
3031
|
columns: Q,
|
|
3032
3032
|
totalWidthOfAllColumns: Re
|
|
3033
|
-
} = Al(f, h, o, w,
|
|
3033
|
+
} = Al(f, h, o, w, L, {
|
|
3034
3034
|
hasColumnPanel: i,
|
|
3035
|
-
hasSelectableColumn:
|
|
3035
|
+
hasSelectableColumn: S,
|
|
3036
3036
|
hasSelectableAcrossPages: W,
|
|
3037
3037
|
hasNestedContent: B,
|
|
3038
3038
|
hasNestedRows: X,
|
|
@@ -3053,7 +3053,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3053
3053
|
onConfigSettingsColumnUpdate: sn
|
|
3054
3054
|
} = zl(le, se), { hoveredOverColumn: on, hoveredOverColumnState: dt } = Ul(
|
|
3055
3055
|
Pe,
|
|
3056
|
-
|
|
3056
|
+
S,
|
|
3057
3057
|
ne,
|
|
3058
3058
|
ae
|
|
3059
3059
|
), { draggingColumns: ut, draggingEventsForColumns: an, draggingEventsForRowCell: rn, onMoveColumnByOffset: dn } = Ml(en, l, se), { onAllRowSelect: ct, onRowSelect: un, onNestedRowSelect: cn, selectedItems: ft, allItemsSelectedState: fn } = Tl(
|
|
@@ -3062,7 +3062,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3062
3062
|
h,
|
|
3063
3063
|
n.getDataItemId,
|
|
3064
3064
|
n.isDataItemDisabled
|
|
3065
|
-
), { navigationInput: gt } = $l(
|
|
3065
|
+
), { navigationInput: gt } = $l(L, f, S), { isLazyLoad: $e, isInfiniteScroll: gn, verticalScrollPosition: vn, emitLazyLoadEvent: mn } = kl(
|
|
3066
3066
|
$,
|
|
3067
3067
|
b,
|
|
3068
3068
|
o,
|
|
@@ -3082,13 +3082,13 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3082
3082
|
isDataGridTemplate: Z
|
|
3083
3083
|
}), wn = () => {
|
|
3084
3084
|
g.value.isClearAllVisible ? g.value.clearAllFilters() : g.value.isResetAllVisible && g.value.resetAllFilters();
|
|
3085
|
-
},
|
|
3085
|
+
}, Ln = E(() => {
|
|
3086
3086
|
var I, z;
|
|
3087
3087
|
return {
|
|
3088
3088
|
...n.emptyState,
|
|
3089
3089
|
variant: ((I = n.emptyState) == null ? void 0 : I.variant) === "embedded" || ((z = n.emptyState) == null ? void 0 : z.variant) === "basic" ? n.emptyState.variant : "basic"
|
|
3090
3090
|
};
|
|
3091
|
-
}),
|
|
3091
|
+
}), Sn = E(() => ({
|
|
3092
3092
|
[`b-data-grid--${Oe.OUTLINE}`]: n.outline,
|
|
3093
3093
|
[`b-data-grid--${Oe.SCROLL}`]: n.fitContent || $e.value,
|
|
3094
3094
|
[`b-data-grid--${Oe.STICKY_FILTERS}`]: n.filters && n.stickyFilters,
|
|
@@ -3115,7 +3115,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3115
3115
|
const re = I;
|
|
3116
3116
|
I !== null && (re != null && re.gridcellRefs) && Object.entries(re == null ? void 0 : re.gridcellRefs).map(([q, _e]) => {
|
|
3117
3117
|
var we;
|
|
3118
|
-
((we =
|
|
3118
|
+
((we = L.value) == null ? void 0 : we[q]) === void 0 && (L.value = { ...L.value, [q]: [] }), L.value[q][z] = _e;
|
|
3119
3119
|
});
|
|
3120
3120
|
}, Nn = (I, z) => {
|
|
3121
3121
|
n.allowRowClicks && se(k.ROW_CLICK, I, z);
|
|
@@ -3147,7 +3147,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3147
3147
|
), Ke(tl, () => null)(n.tabTitle), Wt(Xt, Ye(n, "slashedZero")), a({ onEmptyStateClearResetButtonClick: wn }), (I, z) => {
|
|
3148
3148
|
var re;
|
|
3149
3149
|
return u(), y("div", {
|
|
3150
|
-
class: ce(["b-data-grid",
|
|
3150
|
+
class: ce(["b-data-grid", Sn.value]),
|
|
3151
3151
|
"aria-rowcount": s(h).length,
|
|
3152
3152
|
"aria-colcount": s(f).length,
|
|
3153
3153
|
"aria-label": s(ht),
|
|
@@ -3174,7 +3174,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3174
3174
|
}, null, 8, ["config", "filter-values", "search-term"])) : F("", !0)
|
|
3175
3175
|
], 6)) : F("", !0),
|
|
3176
3176
|
I.$slots.header ? (u(), y("div", Mo, [
|
|
3177
|
-
|
|
3177
|
+
Se(I.$slots, "header", {}, void 0, !0)
|
|
3178
3178
|
])) : F("", !0),
|
|
3179
3179
|
p("div", {
|
|
3180
3180
|
class: "b-data-grid__column-headers",
|
|
@@ -3206,7 +3206,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3206
3206
|
q != null && q.length ? (u(), P(s(ps), ee({
|
|
3207
3207
|
key: `data-grid-columns-${_e}`,
|
|
3208
3208
|
ref_for: !0,
|
|
3209
|
-
ref: (
|
|
3209
|
+
ref: (Le) => pn(Le),
|
|
3210
3210
|
columns: q,
|
|
3211
3211
|
"has-resizable-columns": e.hasResizableColumns,
|
|
3212
3212
|
"sort-by": e.sortBy,
|
|
@@ -3221,23 +3221,23 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3221
3221
|
"hovered-over-column-state": s(dt),
|
|
3222
3222
|
"is-measuring-column-widths": s(A),
|
|
3223
3223
|
"is-only-one-visible-column": s(tn),
|
|
3224
|
-
selectable: s(
|
|
3224
|
+
selectable: s(S),
|
|
3225
3225
|
"selectable-across-pages": Tn.value,
|
|
3226
3226
|
"truncate-column-headers": e.truncateColumnHeaders
|
|
3227
3227
|
}, Ve(s(an)), {
|
|
3228
|
-
onColumnHover: z[2] || (z[2] = (
|
|
3228
|
+
onColumnHover: z[2] || (z[2] = (Le) => on.value = Le),
|
|
3229
3229
|
onColumnMove: s(dn),
|
|
3230
3230
|
onColumnUpdate: s(sn),
|
|
3231
3231
|
onColumnResize: Dn,
|
|
3232
3232
|
onColumnResizing: s(r),
|
|
3233
3233
|
onSelectAllRows: s(ct),
|
|
3234
|
-
onSelectAllAcrossPages: z[3] || (z[3] = (
|
|
3234
|
+
onSelectAllAcrossPages: z[3] || (z[3] = (Le) => se(s(k).SELECT_ALL_ACROSS_PAGES)),
|
|
3235
3235
|
onSort: kn
|
|
3236
3236
|
}), Te({ _: 2 }, [
|
|
3237
|
-
Ce(s(d), (
|
|
3237
|
+
Ce(s(d), (Le, De) => ({
|
|
3238
3238
|
name: De,
|
|
3239
3239
|
fn: H((je) => [
|
|
3240
|
-
|
|
3240
|
+
Se(I.$slots, De, ee({ ref_for: !0 }, je), void 0, !0)
|
|
3241
3241
|
])
|
|
3242
3242
|
}))
|
|
3243
3243
|
]), 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", "truncate-column-headers", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows"])) : F("", !0)
|
|
@@ -3271,7 +3271,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3271
3271
|
_: 1
|
|
3272
3272
|
})
|
|
3273
3273
|
])) : ((re = s(h)) == null ? void 0 : re.length) === 0 && e.emptyState ? (u(), y("div", Po, [
|
|
3274
|
-
K(s(el), Vn(xn(
|
|
3274
|
+
K(s(el), Vn(xn(Ln.value)), null, 16)
|
|
3275
3275
|
])) : (u(), y("div", {
|
|
3276
3276
|
key: 2,
|
|
3277
3277
|
class: "b-data-grid__rows",
|
|
@@ -3284,7 +3284,7 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3284
3284
|
return u(), P(s(Qt), {
|
|
3285
3285
|
key: _e,
|
|
3286
3286
|
ref_for: !0,
|
|
3287
|
-
ref: (
|
|
3287
|
+
ref: (Le) => Rn(Le, _e),
|
|
3288
3288
|
style: ke(s(M)),
|
|
3289
3289
|
"allow-row-clicks": e.allowRowClicks,
|
|
3290
3290
|
"column-sets": s(Pe),
|
|
@@ -3307,19 +3307,19 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3307
3307
|
"show-frozen-columns-separator": mt.value,
|
|
3308
3308
|
"should-show-nested-content": e.shouldShowNestedContent,
|
|
3309
3309
|
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
3310
|
-
selectable: s(
|
|
3310
|
+
selectable: s(S),
|
|
3311
3311
|
"selected-items": s(ft),
|
|
3312
3312
|
onCellHovered: An,
|
|
3313
|
-
onNestedContentToggled: z[5] || (z[5] = (
|
|
3313
|
+
onNestedContentToggled: z[5] || (z[5] = (Le) => se(s(k).NESTED_CONTENT_TOGGLED, Le)),
|
|
3314
3314
|
onRowClick: Nn,
|
|
3315
3315
|
onOnFrozenColumnsKeyPress: s(hn),
|
|
3316
3316
|
onSelectRow: s(un),
|
|
3317
3317
|
onSelectNestedRow: s(cn)
|
|
3318
3318
|
}, Te({ _: 2 }, [
|
|
3319
|
-
Ce(s(d), (
|
|
3319
|
+
Ce(s(d), (Le, De) => ({
|
|
3320
3320
|
name: De,
|
|
3321
3321
|
fn: H((je) => [
|
|
3322
|
-
|
|
3322
|
+
Se(I.$slots, De, ee({ ref_for: !0 }, je), void 0, !0)
|
|
3323
3323
|
])
|
|
3324
3324
|
}))
|
|
3325
3325
|
]), 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", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-last-child", "is-measuring-column-widths", "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"]);
|
|
@@ -3357,13 +3357,13 @@ const To = /* @__PURE__ */ oe(Oo, [["render", Ao]]), Io = ["aria-label"], $o = {
|
|
|
3357
3357
|
onItemsPage: zn
|
|
3358
3358
|
}), {
|
|
3359
3359
|
default: H(() => [
|
|
3360
|
-
s(t)("pagination-slot") ?
|
|
3360
|
+
s(t)("pagination-slot") ? Se(I.$slots, "pagination-slot", { key: 0 }, void 0, !0) : F("", !0)
|
|
3361
3361
|
]),
|
|
3362
3362
|
_: 3
|
|
3363
3363
|
}, 16, ["aria-label"])
|
|
3364
3364
|
], 2)) : F("", !0),
|
|
3365
3365
|
I.$slots.footer ? (u(), y("div", Bo, [
|
|
3366
|
-
|
|
3366
|
+
Se(I.$slots, "footer", {}, void 0, !0)
|
|
3367
3367
|
])) : F("", !0),
|
|
3368
3368
|
$n.value ? (u(), P(s(Kn), {
|
|
3369
3369
|
key: 6,
|
|
@@ -3385,4 +3385,4 @@ export {
|
|
|
3385
3385
|
k as e,
|
|
3386
3386
|
He as f
|
|
3387
3387
|
};
|
|
3388
|
-
//# sourceMappingURL=data-grid.
|
|
3388
|
+
//# sourceMappingURL=data-grid.BNXoMZf9.js.map
|