@adyen/bento-vue2 1.41.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +492 -54
- 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/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.r05wfyni.js → action-bar.kPPYSgQK.js} +5 -5
- package/dist/chunks/{action-bar.r05wfyni.js.map → action-bar.kPPYSgQK.js.map} +1 -1
- package/dist/chunks/{alert.Y4JUnmhl.js → alert.D2Z_aiFC.js} +19 -19
- package/dist/chunks/{alert.Y4JUnmhl.js.map → alert.D2Z_aiFC.js.map} +1 -1
- package/dist/chunks/{base-modal.SJX9uGT4.js → base-modal.DroVbSCn.js} +2 -2
- package/dist/chunks/{base-modal.SJX9uGT4.js.map → base-modal.DroVbSCn.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js → button-actions-with-menu.dp6C-PKX.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js.map → button-actions-with-menu.dp6C-PKX.js.map} +1 -1
- package/dist/chunks/{button-actions.BJMK3kZC.js → button-actions.Cpx4PQp0.js} +2 -2
- package/dist/chunks/{button-actions.BJMK3kZC.js.map → button-actions.Cpx4PQp0.js.map} +1 -1
- package/dist/chunks/{card.Cfj-r6CX.js → card.BcjxzwZV.js} +2 -2
- package/dist/chunks/{card.Cfj-r6CX.js.map → card.BcjxzwZV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BEI5FPnW.js → checkbox-group.Bcqac3y8.js} +4 -4
- package/dist/chunks/{checkbox-group.BEI5FPnW.js.map → checkbox-group.Bcqac3y8.js.map} +1 -1
- package/dist/chunks/{checkbox.5uVM-HLg.js → checkbox.B1qjI4R_.js} +3 -3
- package/dist/chunks/{checkbox.5uVM-HLg.js.map → checkbox.B1qjI4R_.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.Cn7JN_Tk.js} +5 -5
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.Cn7JN_Tk.js.map} +1 -1
- package/dist/chunks/{code-snippet.DRH4X9pH.js → code-snippet.DuZDA7gH.js} +5 -5
- package/dist/chunks/{code-snippet.DRH4X9pH.js.map → code-snippet.DuZDA7gH.js.map} +1 -1
- package/dist/chunks/{controls-group.Sni8leS5.js → controls-group.J8shO_JL.js} +2 -2
- package/dist/chunks/{controls-group.Sni8leS5.js.map → controls-group.J8shO_JL.js.map} +1 -1
- package/dist/chunks/{copy.C5j6vSQT.js → copy.DgzxvExj.js} +2 -2
- package/dist/chunks/{copy.C5j6vSQT.js.map → copy.DgzxvExj.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DchlD4B2.js → dashboard-section.CExqPbQb.js} +3 -3
- package/dist/chunks/{dashboard-section.DchlD4B2.js.map → dashboard-section.CExqPbQb.js.map} +1 -1
- package/dist/chunks/{dashed-underline.6Aw4MP34.js → dashed-underline.dGO33Q_E.js} +3 -3
- package/dist/chunks/{dashed-underline.6Aw4MP34.js.map → dashed-underline.dGO33Q_E.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Bhotcrsr.js → data-grid-template.BF7JMfoJ.js} +2 -2
- package/dist/chunks/{data-grid-template.Bhotcrsr.js.map → data-grid-template.BF7JMfoJ.js.map} +1 -1
- package/dist/chunks/data-grid.BXB98JQr.js +2556 -0
- package/dist/chunks/data-grid.BXB98JQr.js.map +1 -0
- package/dist/chunks/{date-picker.lFLlAGXs.js → date-picker.Dfg1_eo6.js} +3 -3
- package/dist/chunks/{date-picker.lFLlAGXs.js.map → date-picker.Dfg1_eo6.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Cr_YCwxP.js → date-range-picker.xYGf0SRg.js} +180 -177
- package/dist/chunks/date-range-picker.xYGf0SRg.js.map +1 -0
- package/dist/chunks/dot.BCX4w7eT.js +24 -0
- package/dist/chunks/dot.BCX4w7eT.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js → dropdown-tag.B4RMse5R.js} +3 -3
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js.map → dropdown-tag.B4RMse5R.js.map} +1 -1
- package/dist/chunks/{dropdown.D8xKm1YA.js → dropdown.BfzsI2Th.js} +4 -4
- package/dist/chunks/{dropdown.D8xKm1YA.js.map → dropdown.BfzsI2Th.js.map} +1 -1
- package/dist/chunks/{error-message.Bk2maRF8.js → error-message.B7uoqQpq.js} +2 -2
- package/dist/chunks/{error-message.Bk2maRF8.js.map → error-message.B7uoqQpq.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js.map +1 -1
- package/dist/chunks/file-uploader.CK-Frs_q.js +728 -0
- package/dist/chunks/file-uploader.CK-Frs_q.js.map +1 -0
- package/dist/chunks/{filter-bar.dQZY8j9C.js → filter-bar.hBPWastb.js} +702 -697
- package/dist/chunks/filter-bar.hBPWastb.js.map +1 -0
- package/dist/chunks/{footer-actions.B68XcD93.js → footer-actions.DwnLB4NW.js} +2 -2
- package/dist/chunks/{footer-actions.B68XcD93.js.map → footer-actions.DwnLB4NW.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cd2WlefD.js → form-layout-title.BarHgyjC.js} +2 -2
- package/dist/chunks/{form-layout-title.Cd2WlefD.js.map → form-layout-title.BarHgyjC.js.map} +1 -1
- package/dist/chunks/{header.DwTrDlSa.js → header.CAJtHW1k.js} +4 -4
- package/dist/chunks/{header.DwTrDlSa.js.map → header.CAJtHW1k.js.map} +1 -1
- package/dist/chunks/index.Gcw_BUVh.js +367 -0
- package/dist/chunks/index.Gcw_BUVh.js.map +1 -0
- package/dist/chunks/{info-icon.CCR-cAFR.js → info-icon.p-28zHUJ.js} +2 -2
- package/dist/chunks/{info-icon.CCR-cAFR.js.map → info-icon.p-28zHUJ.js.map} +1 -1
- package/dist/chunks/input-field-password.BmfOGkrH.js +191 -0
- package/dist/chunks/input-field-password.BmfOGkrH.js.map +1 -0
- package/dist/chunks/{input-field.CKOdyDVy.js → input-field.CHD3Fzzg.js} +37 -35
- package/dist/chunks/input-field.CHD3Fzzg.js.map +1 -0
- package/dist/chunks/{layout-row.CtFsZ5-v.js → layout-row.DzS_XyyF.js} +2 -2
- package/dist/chunks/{layout-row.CtFsZ5-v.js.map → layout-row.DzS_XyyF.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js → listbox-option-tag.BnX0H4HE.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js.map → listbox-option-tag.BnX0H4HE.js.map} +1 -1
- package/dist/chunks/{loading-button.2h9RXXIZ.js → loading-button.CiPmvU7F.js} +2 -2
- package/dist/chunks/{loading-button.2h9RXXIZ.js.map → loading-button.CiPmvU7F.js.map} +1 -1
- package/dist/chunks/{menu.DEeyofbM.js → menu.N41WnXc8.js} +2 -2
- package/dist/chunks/{menu.DEeyofbM.js.map → menu.N41WnXc8.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js → modal-fullscreen.BbNe6M9T.js} +2 -2
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js.map → modal-fullscreen.BbNe6M9T.js.map} +1 -1
- package/dist/chunks/{modal.tUtoM34X.js → modal.Cb4zg5fN.js} +4 -4
- package/dist/chunks/{modal.tUtoM34X.js.map → modal.Cb4zg5fN.js.map} +1 -1
- package/dist/chunks/{pagination.CqrSR1Md.js → pagination.DORr-ox0.js} +2 -2
- package/dist/chunks/{pagination.CqrSR1Md.js.map → pagination.DORr-ox0.js.map} +1 -1
- package/dist/chunks/{popover.BcWFpCY_.js → popover.Uy-vuQq5.js} +2 -2
- package/dist/chunks/{popover.BcWFpCY_.js.map → popover.Uy-vuQq5.js.map} +1 -1
- package/dist/chunks/{promo-banner.NSOVGA7M.js → promo-banner.cTUF9seG.js} +2 -2
- package/dist/chunks/{promo-banner.NSOVGA7M.js.map → promo-banner.cTUF9seG.js.map} +1 -1
- package/dist/chunks/{radio-group.DtlPzh_w.js → radio-group.EnMXbuly.js} +4 -4
- package/dist/chunks/{radio-group.DtlPzh_w.js.map → radio-group.EnMXbuly.js.map} +1 -1
- package/dist/chunks/{search-bar.CN9pWrLP.js → search-bar.BtFX4039.js} +3 -3
- package/dist/chunks/{search-bar.CN9pWrLP.js.map → search-bar.BtFX4039.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DMw1l7rH.js → secondary-nav.DtnWRhFW.js} +3 -3
- package/dist/chunks/{secondary-nav.DMw1l7rH.js.map → secondary-nav.DtnWRhFW.js.map} +1 -1
- package/dist/chunks/{segmented-control.uVH5ahVY.js → segmented-control.CVeUROYR.js} +2 -2
- package/dist/chunks/{segmented-control.uVH5ahVY.js.map → segmented-control.CVeUROYR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BjOuUbQD.js → selection-card-group.B6XXbJsv.js} +4 -4
- package/dist/chunks/{selection-card-group.BjOuUbQD.js.map → selection-card-group.B6XXbJsv.js.map} +1 -1
- package/dist/chunks/show.IEAxtCB7.js +43 -0
- package/dist/chunks/show.IEAxtCB7.js.map +1 -0
- package/dist/chunks/{sidepanel.BjrsqXLl.js → sidepanel.CRJN9Acz.js} +2 -2
- package/dist/chunks/{sidepanel.BjrsqXLl.js.map → sidepanel.CRJN9Acz.js.map} +1 -1
- package/dist/chunks/step.5g9BIi15.js +217 -0
- package/dist/chunks/step.5g9BIi15.js.map +1 -0
- package/dist/chunks/{structured-list-item.CAcBJutf.js → structured-list-item.BEhWyaVP.js} +4 -4
- package/dist/chunks/{structured-list-item.CAcBJutf.js.map → structured-list-item.BEhWyaVP.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js → summary-grid-item-custom.CSXo4NjY.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js.map → summary-grid-item-custom.CSXo4NjY.js.map} +1 -1
- package/dist/chunks/{tag.DSFSfnAf.js → tag.wTXg-O7i.js} +2 -2
- package/dist/chunks/{tag.DSFSfnAf.js.map → tag.wTXg-O7i.js.map} +1 -1
- package/dist/chunks/{textarea.B4MZ_pi1.js → textarea.Y3yd_3ll.js} +2 -2
- package/dist/chunks/{textarea.B4MZ_pi1.js.map → textarea.Y3yd_3ll.js.map} +1 -1
- package/dist/chunks/{timeline-item.CxB3KFiu.js → timeline-item.CCV4U3Zx.js} +5 -5
- package/dist/chunks/{timeline-item.CxB3KFiu.js.map → timeline-item.CCV4U3Zx.js.map} +1 -1
- package/dist/chunks/{tooltip.CS2Gij6x.js → tooltip.DH8TqpYV.js} +84 -68
- package/dist/chunks/tooltip.DH8TqpYV.js.map +1 -0
- package/dist/chunks/{tutorial.CGjM0EJT.js → tutorial.4r7MKNEU.js} +4 -4
- package/dist/chunks/{tutorial.CGjM0EJT.js.map → tutorial.4r7MKNEU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js → use-cached-selected-values.CAlfyb_L.js} +8 -5
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js.map → use-cached-selected-values.CAlfyb_L.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 +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +227 -218
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field.js +1 -1
- package/dist/internal.js +6 -6
- package/dist/layout.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/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +98 -34
- package/dist/styles/bento-light.css +98 -34
- package/dist/styles/bento.css +98 -34
- package/dist/styles/legacy.css +106 -42
- package/dist/styles/styleguide.css +98 -34
- 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 +701 -81
- package/package.json +10 -8
- package/dist/chunks/data-grid.ahAWR42s.js +0 -2408
- package/dist/chunks/data-grid.ahAWR42s.js.map +0 -1
- package/dist/chunks/date-range-picker.Cr_YCwxP.js.map +0 -1
- package/dist/chunks/filter-bar.dQZY8j9C.js.map +0 -1
- package/dist/chunks/index.D5am6ibQ.js +0 -249
- package/dist/chunks/index.D5am6ibQ.js.map +0 -1
- package/dist/chunks/input-field.CKOdyDVy.js.map +0 -1
- package/dist/chunks/step.D3-7YL7-.js +0 -234
- package/dist/chunks/step.D3-7YL7-.js.map +0 -1
- package/dist/chunks/tooltip.CS2Gij6x.js.map +0 -1
|
@@ -1,2408 +0,0 @@
|
|
|
1
|
-
import { ref as E, reactive as Ee, toRefs as be, computed as L, watchEffect as en, watch as Z, onMounted as ye, nextTick as Y, onUnmounted as Qe, onBeforeUpdate as tn, defineComponent as J, toRef as et, useSlots as we, provide as nn, inject as Me } from "vue";
|
|
2
|
-
import { C as sn } from "./checkmark-circle-fill.DVl6QSwm.js";
|
|
3
|
-
import { W as on } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
-
import { n as B } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
-
import { C as tt } from "./cross.CsUPDmaA.js";
|
|
6
|
-
import { N as $e } from "./checkbox-input.Bo4NxNOh.js";
|
|
7
|
-
import { d as ln } from "./popper-container.CnWphJTN.js";
|
|
8
|
-
import { K as ee, B as an } from "./tooltip.CS2Gij6x.js";
|
|
9
|
-
import { B as rn } from "./action-bar.r05wfyni.js";
|
|
10
|
-
import { B as dn } from "./pagination.CqrSR1Md.js";
|
|
11
|
-
import { B as nt } from "./loading-indicator.z8COalOc.js";
|
|
12
|
-
import { B as me, p as st } from "./typography.Bu_WAKdf.js";
|
|
13
|
-
import { u as cn } from "./aria-label.CaUURpnB.js";
|
|
14
|
-
import { g as un } from "./get-slot-text.Cgn-E48s.js";
|
|
15
|
-
import { u as oe } from "./i18n.BQkEbtPM.js";
|
|
16
|
-
import { B as fn } from "./empty-state.B8ZeRgDi.js";
|
|
17
|
-
import { B as ve } from "./filter-bar.dQZY8j9C.js";
|
|
18
|
-
import { E as gn } from "./tabs.keys.Bc2pSKRw.js";
|
|
19
|
-
import { D as _n } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
20
|
-
import { o as Oe } from "./resize.Bqks3WUm.js";
|
|
21
|
-
import "./index.Cl4_42j5.js";
|
|
22
|
-
import { a as Pe, B as vn } from "./popover.BcWFpCY_.js";
|
|
23
|
-
import { B as ot } from "./button.CufUNBkv.js";
|
|
24
|
-
import { B as lt } from "./toggle.INRYdQzz.js";
|
|
25
|
-
import { B as Cn } from "./search-bar.CN9pWrLP.js";
|
|
26
|
-
import { u as mn } from "./dropdown.D8xKm1YA.js";
|
|
27
|
-
import { g as at } from "./generate-uid.D-HFI38h.js";
|
|
28
|
-
import { S as hn } from "./search.CBKhp7zB.js";
|
|
29
|
-
import { B as Re } from "./toggle-button.CYplDIO-.js";
|
|
30
|
-
import { B as pn } from "./directive.O3yEdalv.js";
|
|
31
|
-
import { B as it } from "./checkbox.5uVM-HLg.js";
|
|
32
|
-
import { B as Ln } from "./info-icon.CCR-cAFR.js";
|
|
33
|
-
import { B as rt, O as Sn, D as En } from "./menu.DEeyofbM.js";
|
|
34
|
-
import { A as bn } from "./dialog-page.CplkzZGZ.js";
|
|
35
|
-
import { l as ze } from "./events.CMzGybJJ.js";
|
|
36
|
-
import { B as yn, a as wn } from "./loading-button.2h9RXXIZ.js";
|
|
37
|
-
import { u as dt } from "./use-has-slot.C9lQZ6nz.js";
|
|
38
|
-
import { u as On } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
39
|
-
import { E as Rn } from "./link.v-y0fKjn.js";
|
|
40
|
-
import { C as An } from "./copy.C5j6vSQT.js";
|
|
41
|
-
import { C as In, a as Tn } from "./chevron-up.B2uWhZf7.js";
|
|
42
|
-
import "../assets/data-grid.css";
|
|
43
|
-
var Se = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Se || {}), ne = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(ne || {}), se = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(se || {}), w = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(w || {}), Ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ce || {}), k = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(k || {});
|
|
44
|
-
const Nn = (s, e) => {
|
|
45
|
-
const n = E(null), t = E(!1), o = E(void 0), l = s.value.reduce((C, b) => (C[b.field] = null, C), {}), r = Ee(l), _ = be(r);
|
|
46
|
-
let u = 0, m = "";
|
|
47
|
-
const v = L(
|
|
48
|
-
() => Object.fromEntries(s.value.map(({ field: C, width: b, minWidth: y }) => [C, { width: b, minWidth: y }]))
|
|
49
|
-
);
|
|
50
|
-
en(() => o.value = v.value);
|
|
51
|
-
let c = null, i = null;
|
|
52
|
-
const a = (C) => {
|
|
53
|
-
const b = C.clientX - u, y = m, A = o.value[y].width + b;
|
|
54
|
-
o.value[y].width = A > v.value[y].minWidth ? A : v.value[y].minWidth, e(k.COLUMN_RESIZING, o.value), u = C.clientX;
|
|
55
|
-
}, f = () => {
|
|
56
|
-
t.value = !1, c == null || c(), i == null || i(), m && e(k.COLUMN_RESIZE, {
|
|
57
|
-
field: m,
|
|
58
|
-
width: o.value[m].width
|
|
59
|
-
}), c = null, i = null, m = "", u = null;
|
|
60
|
-
}, S = (C, b, y) => {
|
|
61
|
-
if (y.preventDefault(), C) {
|
|
62
|
-
if (t.value = !0, y.buttons !== 1) {
|
|
63
|
-
f();
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
m = b, u = y.clientX, c = ze(window, "mousemove", a), i = ze(window, "mouseup", f);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return Z(
|
|
70
|
-
() => t.value,
|
|
71
|
-
(C, b) => {
|
|
72
|
-
!C && b && (e(k.COLUMN_HOVER, n.value), n.value = null);
|
|
73
|
-
}
|
|
74
|
-
), {
|
|
75
|
-
resizeData: o,
|
|
76
|
-
allColumnRefs: _,
|
|
77
|
-
startResize: S,
|
|
78
|
-
isResizing: t,
|
|
79
|
-
columnHoverEventToEmitAfterResizing: n
|
|
80
|
-
};
|
|
81
|
-
}, Dn = 100, Be = 50, V = "b-actions-column", xn = 32, Fn = 56, Mn = 56, $n = 80, Pn = 36, zn = 1, ct = 16, Bn = 20, Un = (s, e, n) => {
|
|
82
|
-
const t = {}, o = [], l = (_) => {
|
|
83
|
-
const u = t[_];
|
|
84
|
-
u && u.frozen !== !0 && (t[_].frozen = !0, o.push(_));
|
|
85
|
-
};
|
|
86
|
-
function r() {
|
|
87
|
-
if (o.length === n.length)
|
|
88
|
-
return;
|
|
89
|
-
const _ = { min: {}, max: {} };
|
|
90
|
-
let u = s, m = e, v = 0;
|
|
91
|
-
o.forEach((c) => {
|
|
92
|
-
u -= t[c].computedWidth, m -= t[c].flex;
|
|
93
|
-
});
|
|
94
|
-
for (let c = 0, i = n.length; c < i; c += 1) {
|
|
95
|
-
const a = n[c];
|
|
96
|
-
if (t[a.field] && t[a.field].frozen === !0)
|
|
97
|
-
continue;
|
|
98
|
-
let S = u / m * a.flex;
|
|
99
|
-
S < a.minWidth && (v += a.minWidth - S, S = a.minWidth, _.min[a.field] = !0), t[a.field] = {
|
|
100
|
-
frozen: !1,
|
|
101
|
-
computedWidth: S,
|
|
102
|
-
flex: a.flex
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
v > 0 ? Object.keys(_.min).forEach((c) => {
|
|
106
|
-
l(c);
|
|
107
|
-
}) : n.forEach(({ field: c }) => {
|
|
108
|
-
l(c);
|
|
109
|
-
}), r();
|
|
110
|
-
}
|
|
111
|
-
return r(), t;
|
|
112
|
-
}, Ue = (s, e) => {
|
|
113
|
-
let n = zn;
|
|
114
|
-
return e && (n += ct * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
115
|
-
}, kn = (s) => {
|
|
116
|
-
var e, n, t, o;
|
|
117
|
-
return (e = s == null ? void 0 : s.hasNestedContent) != null && e.value ? (n = s == null ? void 0 : s.hasSelectableColumn) != null && n.value ? (t = s == null ? void 0 : s.hasSelectableAcrossPages) != null && t.value ? $n : Mn : Pn : (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? Fn : xn;
|
|
118
|
-
}, Wn = (s, e, n, t, o, l) => {
|
|
119
|
-
const r = E(s.value), _ = E(e), u = E(n), m = E(t), v = E(o), c = E(!1);
|
|
120
|
-
Z(
|
|
121
|
-
() => s.value,
|
|
122
|
-
(p, h) => {
|
|
123
|
-
var x, g;
|
|
124
|
-
const R = (p == null ? void 0 : p.map(({ field: F }) => F).toString()) === (h == null ? void 0 : h.map(({ field: F }) => F).toString());
|
|
125
|
-
if (!((x = l == null ? void 0 : l.allowColumnDragAndDrop) != null && x.value) || !R) {
|
|
126
|
-
r.value = s.value;
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
r.value = ((g = r.value) == null ? void 0 : g.length) === 0 ? s.value : s.value.sort((F, I) => {
|
|
130
|
-
const N = r.value.findIndex((M) => M.field === F.field), U = r.value.findIndex((M) => M.field === I.field);
|
|
131
|
-
return N === -1 ? 1 : U === -1 ? -1 : N - U;
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
const i = E();
|
|
136
|
-
let a = null;
|
|
137
|
-
const f = L(() => {
|
|
138
|
-
var N, U;
|
|
139
|
-
const p = [];
|
|
140
|
-
let h = 0, R = 0;
|
|
141
|
-
const x = {};
|
|
142
|
-
let g = r.value.filter((M) => M.visible !== !1);
|
|
143
|
-
const F = r.value.filter((M) => M.visible === !1);
|
|
144
|
-
if ((N = l == null ? void 0 : l.hasSelectableColumn) != null && N.value || (U = l == null ? void 0 : l.hasNestedContent) != null && U.value) {
|
|
145
|
-
const M = kn(l);
|
|
146
|
-
g = [
|
|
147
|
-
{
|
|
148
|
-
field: V,
|
|
149
|
-
label: "",
|
|
150
|
-
minWidth: M,
|
|
151
|
-
width: M,
|
|
152
|
-
frozen: !0,
|
|
153
|
-
padding: { left: !1, right: !1 }
|
|
154
|
-
},
|
|
155
|
-
...g
|
|
156
|
-
];
|
|
157
|
-
}
|
|
158
|
-
g.forEach((M) => {
|
|
159
|
-
const D = { ...M };
|
|
160
|
-
let j;
|
|
161
|
-
D.flex && D.flex > 0 ? (h += D.flex, j = 0, p.push(D)) : j = Math.max(
|
|
162
|
-
(D == null ? void 0 : D.width) ?? Dn,
|
|
163
|
-
(D == null ? void 0 : D.minWidth) ?? Be
|
|
164
|
-
), R += j, D.width = j, D.minWidth = (D == null ? void 0 : D.minWidth) ?? Be, x[D.field] = D;
|
|
165
|
-
});
|
|
166
|
-
const I = Math.max(i.value - R, 0);
|
|
167
|
-
if (h > 0 && i.value > 0) {
|
|
168
|
-
const M = Un(I, h, p);
|
|
169
|
-
Object.keys(M).forEach((D) => {
|
|
170
|
-
x[D].width = M[D].computedWidth;
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
return F.forEach((M) => {
|
|
174
|
-
const D = { ...M };
|
|
175
|
-
x[D.field] = D;
|
|
176
|
-
}), Object.values(x);
|
|
177
|
-
}), S = E(void 0), C = (p) => {
|
|
178
|
-
S.value = { ...S.value, ...p };
|
|
179
|
-
}, b = async () => {
|
|
180
|
-
r.value.some((p) => p == null ? void 0 : p.autoWidth) && (c.value = !0, await Y(), r == null || r.value.filter((p) => p == null ? void 0 : p.autoWidth).forEach(({ field: p, minWidth: h }) => {
|
|
181
|
-
var F, I, N, U;
|
|
182
|
-
const R = Ue(
|
|
183
|
-
(F = m.value) == null ? void 0 : F[p],
|
|
184
|
-
(I = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : I.value
|
|
185
|
-
), x = (U = (N = v.value) == null ? void 0 : N[p]) == null ? void 0 : U.reduce(
|
|
186
|
-
(M, D) => Math.max(M, Ue(D)),
|
|
187
|
-
0
|
|
188
|
-
), g = Math.max(R, x ?? 0);
|
|
189
|
-
(h === void 0 || g > h) && C({
|
|
190
|
-
[p]: {
|
|
191
|
-
width: g
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
}), c.value = !1);
|
|
195
|
-
};
|
|
196
|
-
Z([() => r.value, () => _.value], async () => {
|
|
197
|
-
r.value.some((p) => p == null ? void 0 : p.autoWidth) && await b();
|
|
198
|
-
});
|
|
199
|
-
const y = L(
|
|
200
|
-
() => f.value.map((p) => {
|
|
201
|
-
var h, R;
|
|
202
|
-
return {
|
|
203
|
-
...p,
|
|
204
|
-
// Override column width with resized ones
|
|
205
|
-
width: ((R = (h = S.value) == null ? void 0 : h[p.field]) == null ? void 0 : R.width) ?? p.width
|
|
206
|
-
};
|
|
207
|
-
})
|
|
208
|
-
), A = L(
|
|
209
|
-
() => {
|
|
210
|
-
var p;
|
|
211
|
-
return (p = y.value) == null ? void 0 : p.filter(({ visible: h }) => h !== !1).reduce((h, R) => R.width + h, 0);
|
|
212
|
-
}
|
|
213
|
-
), P = L(
|
|
214
|
-
() => i.value <= A.value
|
|
215
|
-
), T = L(() => ({
|
|
216
|
-
width: i.value > A.value ? "100%" : "fit-content"
|
|
217
|
-
}));
|
|
218
|
-
return ye(() => {
|
|
219
|
-
var h;
|
|
220
|
-
const p = l != null && l.isDataGridTemplate ? Bn : 0;
|
|
221
|
-
Y(() => {
|
|
222
|
-
u.value && (i.value = u.value.getBoundingClientRect().width - p);
|
|
223
|
-
const R = Z(
|
|
224
|
-
u,
|
|
225
|
-
() => {
|
|
226
|
-
u.value && (Y(() => R()), a = Oe(u.value, ({ width: x }) => {
|
|
227
|
-
i.value = x - p;
|
|
228
|
-
}));
|
|
229
|
-
},
|
|
230
|
-
{ immediate: !0 }
|
|
231
|
-
);
|
|
232
|
-
}), (h = document == null ? void 0 : document.fonts) != null && h.ready ? document.fonts.ready.then(() => {
|
|
233
|
-
b();
|
|
234
|
-
}) : b();
|
|
235
|
-
}), Qe(() => {
|
|
236
|
-
a == null || a.disconnect();
|
|
237
|
-
}), tn(() => {
|
|
238
|
-
var p;
|
|
239
|
-
v.value && ((p = Object.keys(v.value)) == null ? void 0 : p.length) > 0 && Object.keys(v.value).forEach((R) => {
|
|
240
|
-
v.value[R] = [];
|
|
241
|
-
});
|
|
242
|
-
}), {
|
|
243
|
-
columnDefs: y,
|
|
244
|
-
gridColumnWidthStyle: T,
|
|
245
|
-
onColumnWidthOverride: C,
|
|
246
|
-
isMeasuringColumnWidths: c,
|
|
247
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: P,
|
|
248
|
-
columns: r,
|
|
249
|
-
totalWidthOfAllColumns: A
|
|
250
|
-
};
|
|
251
|
-
}, Gn = (s, e, n, t, o) => {
|
|
252
|
-
const l = E(s.value ?? []), r = Ee({
|
|
253
|
-
allItemsSelected: !1,
|
|
254
|
-
isIndeterminate: !1
|
|
255
|
-
}), _ = () => {
|
|
256
|
-
e(w.SELECT, l.value), e(w.UPDATE_SELECTION, l.value);
|
|
257
|
-
}, u = (c) => {
|
|
258
|
-
var a, f, S, C, b;
|
|
259
|
-
if (l.value = c, ((a = n.value) == null ? void 0 : a.length) > 0 && ((f = n.value) == null ? void 0 : f.filter((y) => !o(y)).every((y) => l.value.includes(t(y))))) {
|
|
260
|
-
r.allItemsSelected = !0;
|
|
261
|
-
const y = ((S = n.value) == null ? void 0 : S.length) > 0 && n.value.every((A) => l.value.includes(t(A)));
|
|
262
|
-
r.isIndeterminate = !y;
|
|
263
|
-
} else
|
|
264
|
-
r.allItemsSelected = !1, r.isIndeterminate = ((C = l.value) == null ? void 0 : C.length) > 0 && ((b = n.value) == null ? void 0 : b.length) > 0 && n.value.some((y) => l.value.includes(t(y)));
|
|
265
|
-
}, m = (c) => {
|
|
266
|
-
Y(() => {
|
|
267
|
-
var i, a, f;
|
|
268
|
-
if (r.allItemsSelected = c, c) {
|
|
269
|
-
l.value = (a = (i = n.value) == null ? void 0 : i.filter((C) => !o(C))) == null ? void 0 : a.map((C) => t(C));
|
|
270
|
-
const S = ((f = n.value) == null ? void 0 : f.length) > 0 && n.value.every((C) => l.value.includes(t(C)));
|
|
271
|
-
r.isIndeterminate = l.value.length > 0 && !S;
|
|
272
|
-
} else
|
|
273
|
-
l.value = [], r.isIndeterminate = !1;
|
|
274
|
-
_();
|
|
275
|
-
});
|
|
276
|
-
}, v = (c) => {
|
|
277
|
-
Y(() => {
|
|
278
|
-
u(c), _();
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
return Z(
|
|
282
|
-
() => s.value,
|
|
283
|
-
() => {
|
|
284
|
-
u(s.value ?? []);
|
|
285
|
-
},
|
|
286
|
-
{ immediate: !0 }
|
|
287
|
-
), Z(
|
|
288
|
-
() => n.value,
|
|
289
|
-
() => {
|
|
290
|
-
u(l.value);
|
|
291
|
-
}
|
|
292
|
-
), { onAllRowSelect: m, onRowSelect: v, allItemsSelectedState: r, selectedItems: l };
|
|
293
|
-
}, Hn = (s, e, n) => ({ isSorting: (r) => s.value.some((_) => _.field === r), getSortingDirection: (r) => {
|
|
294
|
-
var _;
|
|
295
|
-
return (_ = s.value.find((u) => u.field === r)) == null ? void 0 : _.direction;
|
|
296
|
-
}, sortByColumnField: (r) => {
|
|
297
|
-
var m;
|
|
298
|
-
if (!e.value.some((v) => v.field === r && v.sortable))
|
|
299
|
-
return;
|
|
300
|
-
const u = [{
|
|
301
|
-
field: r,
|
|
302
|
-
direction: ((m = s.value.find((v) => v.field === r)) == null ? void 0 : m.direction) === se.ASCENDING ? se.DESCENDING : se.ASCENDING
|
|
303
|
-
}];
|
|
304
|
-
n("sort", u);
|
|
305
|
-
} });
|
|
306
|
-
var H = ((s) => (s[s.ARROW_DOWN = ee.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ee.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ee.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ee.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ee.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ee.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ee.END] = "END", s[s.HOME = ee.HOME] = "HOME", s))(H || {});
|
|
307
|
-
const Vn = (s, e, n) => {
|
|
308
|
-
const t = L(() => {
|
|
309
|
-
const a = e.value.filter(({ visible: f }) => f !== !1);
|
|
310
|
-
return n.value ? a.length + 1 : a.length;
|
|
311
|
-
}), o = L(
|
|
312
|
-
() => [...Object.values(s.value)].flat(1).sort((a, f) => {
|
|
313
|
-
const S = Number(a.getAttribute("data-cellindex")), C = Number(f.getAttribute("data-cellindex"));
|
|
314
|
-
return S > C ? 1 : C > S ? -1 : 0;
|
|
315
|
-
})
|
|
316
|
-
), l = (a) => Math.floor(a / t.value), r = (a, f, S) => {
|
|
317
|
-
const C = o.value.length - 1, b = t.value - 1, y = l(a), A = a - t.value * y;
|
|
318
|
-
return {
|
|
319
|
-
[H.PAGE_UP]: A,
|
|
320
|
-
[H.PAGE_DOWN]: C - b + A,
|
|
321
|
-
[H.END]: S ? C : t.value * y + b,
|
|
322
|
-
[H.HOME]: S ? 0 : t.value * y
|
|
323
|
-
}[f];
|
|
324
|
-
}, _ = (a, f) => {
|
|
325
|
-
const C = {
|
|
326
|
-
[H.ARROW_DOWN]: t.value,
|
|
327
|
-
[H.ARROW_UP]: -t.value,
|
|
328
|
-
[H.ARROW_LEFT]: -1,
|
|
329
|
-
[H.ARROW_RIGHT]: 1
|
|
330
|
-
}[f], b = a + C;
|
|
331
|
-
return b < 0 || b >= o.value.length ? a : b;
|
|
332
|
-
}, u = (a) => [
|
|
333
|
-
H.PAGE_UP,
|
|
334
|
-
H.PAGE_DOWN,
|
|
335
|
-
H.END,
|
|
336
|
-
H.HOME
|
|
337
|
-
].includes(a), m = (a, f, S) => {
|
|
338
|
-
const C = o.value.indexOf(a);
|
|
339
|
-
return u(f) ? r(C, f, S) : _(C, f);
|
|
340
|
-
}, v = (a, f, S) => {
|
|
341
|
-
if (!o.value.includes(a))
|
|
342
|
-
return;
|
|
343
|
-
const C = m(a, f, S);
|
|
344
|
-
o.value[C].focus();
|
|
345
|
-
}, c = (a) => a in H;
|
|
346
|
-
return {
|
|
347
|
-
isNavigationKeyCode: c,
|
|
348
|
-
focusOnNextGridcell: v,
|
|
349
|
-
navigationInput: (a) => {
|
|
350
|
-
const { ctrlKey: f, keyCode: S, target: C } = a;
|
|
351
|
-
Object.values(s.value).flat(1).includes(C) && c(S) && v(C, S, f);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}, Zn = 90, jn = (s, e, n, t, o) => {
|
|
355
|
-
const l = E(s), r = E(e), _ = E(n), u = E(t), m = L(() => l.value !== "none"), v = L(() => l.value === "automatic"), c = () => {
|
|
356
|
-
o(w.UPDATE_SHOW_MORE);
|
|
357
|
-
};
|
|
358
|
-
return Z(
|
|
359
|
-
() => r.value,
|
|
360
|
-
() => {
|
|
361
|
-
v.value && _.value.offsetHeight / r.value * 100 > Zn && !u.value && c();
|
|
362
|
-
}
|
|
363
|
-
), { isLazyLoad: m, isInfiniteScroll: v, verticalScrollPosition: r, emitLazyLoadEvent: c };
|
|
364
|
-
}, qn = (s, e, n) => {
|
|
365
|
-
const t = E(s), o = E(e), l = Ee({
|
|
366
|
-
dragging: null,
|
|
367
|
-
dragToLeft: null,
|
|
368
|
-
target: null
|
|
369
|
-
}), r = (a, f = 0) => {
|
|
370
|
-
const S = t.value.findIndex((y) => y.field === a.field), C = S + f;
|
|
371
|
-
if (C < 0 || C > t.value.length - 1)
|
|
372
|
-
return;
|
|
373
|
-
const b = [...t.value];
|
|
374
|
-
b.splice(C, 0, b.splice(S, 1)[0]), n(w.COLUMNS, b), n(w.UPDATE_COLUMNS, b);
|
|
375
|
-
}, _ = (a, f) => {
|
|
376
|
-
l.dragging = a, f.dataTransfer.setData("text", ""), f.dataTransfer.dropEffect = "move";
|
|
377
|
-
}, u = (a, f) => {
|
|
378
|
-
l.target = a;
|
|
379
|
-
const S = f.currentTarget.getBoundingClientRect(), C = S.left + S.width / 2, b = f.clientX ?? 0;
|
|
380
|
-
l.dragToLeft = b <= C;
|
|
381
|
-
}, m = (a) => {
|
|
382
|
-
var f, S;
|
|
383
|
-
if (((f = l.dragging) == null ? void 0 : f.field) !== a.field) {
|
|
384
|
-
const C = t.value.findIndex((p) => {
|
|
385
|
-
var h;
|
|
386
|
-
return p.field === ((h = l.dragging) == null ? void 0 : h.field);
|
|
387
|
-
}), b = t.value.findIndex((p) => p.field === a.field), y = l.dragToLeft ? b : b + 1, A = y > C ? y - 1 : y;
|
|
388
|
-
let P = [...t.value];
|
|
389
|
-
P.splice(
|
|
390
|
-
A === -1 ? 0 : A,
|
|
391
|
-
0,
|
|
392
|
-
P.splice(C, 1)[0]
|
|
393
|
-
);
|
|
394
|
-
const T = t.value.findIndex((p) => !(p != null && p.frozen));
|
|
395
|
-
((S = l.dragging) == null ? void 0 : S.frozen) !== a.frozen && y !== T && (P = P.map(
|
|
396
|
-
(p) => {
|
|
397
|
-
var h;
|
|
398
|
-
return ((h = l.dragging) == null ? void 0 : h.field) === p.field ? { ...p, frozen: !!(a != null && a.frozen) } : p;
|
|
399
|
-
}
|
|
400
|
-
)), n(w.COLUMNS, P), n(w.UPDATE_COLUMNS, P);
|
|
401
|
-
}
|
|
402
|
-
l.dragging = null, l.target = null;
|
|
403
|
-
}, v = () => {
|
|
404
|
-
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
405
|
-
}, c = L(() => o.value ? {
|
|
406
|
-
[k.COLUMN_DRAG_START]: (a, f) => _(a, f),
|
|
407
|
-
[k.COLUMN_DRAG_ENTER]: (a, f) => u(a, f),
|
|
408
|
-
[k.COLUMN_DROP]: (a) => m(a),
|
|
409
|
-
[k.COLUMN_DRAG_END]: () => v()
|
|
410
|
-
} : {}), i = L(() => (a) => o.value ? {
|
|
411
|
-
dragenter: (f) => {
|
|
412
|
-
f.preventDefault(), u(a, f);
|
|
413
|
-
},
|
|
414
|
-
drop: () => {
|
|
415
|
-
m(a);
|
|
416
|
-
},
|
|
417
|
-
dragover: (f) => {
|
|
418
|
-
f.preventDefault();
|
|
419
|
-
}
|
|
420
|
-
} : {});
|
|
421
|
-
return {
|
|
422
|
-
// Values
|
|
423
|
-
draggingColumns: l,
|
|
424
|
-
// Methods
|
|
425
|
-
draggingEventsForColumns: c,
|
|
426
|
-
draggingEventsForRowCell: i,
|
|
427
|
-
onMoveColumnByOffset: r
|
|
428
|
-
};
|
|
429
|
-
}, Yn = (s, e) => {
|
|
430
|
-
const n = E(s), t = L(
|
|
431
|
-
() => [...n.value].sort((c, i) => c.frozen === i.frozen ? 0 : c.frozen ? -1 : 1)
|
|
432
|
-
), o = L(
|
|
433
|
-
() => t.value.filter((c) => c.frozen && c.visible !== !1)
|
|
434
|
-
), l = L(
|
|
435
|
-
() => t.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
436
|
-
), r = L(
|
|
437
|
-
() => [
|
|
438
|
-
{ columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
|
|
439
|
-
{ columnSet: l.value, id: "unfrozen" }
|
|
440
|
-
].filter(({ columnSet: c }) => c.length)
|
|
441
|
-
), _ = L(
|
|
442
|
-
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== V).length === 1
|
|
443
|
-
), u = (c) => e(w.UPDATE_CONDENSED, c), m = (c) => {
|
|
444
|
-
e(w.COLUMNS, c), e(w.UPDATE_COLUMNS, c);
|
|
445
|
-
};
|
|
446
|
-
return {
|
|
447
|
-
// Values
|
|
448
|
-
columnSets: r,
|
|
449
|
-
isOnlyOneVisibleColumn: _,
|
|
450
|
-
sortedColumns: t,
|
|
451
|
-
// Methods
|
|
452
|
-
onConfigSettingsUpdate: u,
|
|
453
|
-
onConfigSettingsColumnsUpdate: m,
|
|
454
|
-
onConfigSettingsColumnUpdate: (c) => {
|
|
455
|
-
const i = t.value.map(
|
|
456
|
-
(a) => (a == null ? void 0 : a.field) === c.field ? c : a
|
|
457
|
-
);
|
|
458
|
-
m(i);
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
}, ke = (s, e) => {
|
|
462
|
-
const n = E(0);
|
|
463
|
-
let t = null;
|
|
464
|
-
const o = () => {
|
|
465
|
-
s != null && s.value && e.value && (n.value = s.value.offsetHeight);
|
|
466
|
-
};
|
|
467
|
-
return ye(() => {
|
|
468
|
-
Y(() => {
|
|
469
|
-
const l = Z(
|
|
470
|
-
s,
|
|
471
|
-
() => {
|
|
472
|
-
s != null && s.value && (Y(() => l()), t = Oe(s.value, () => {
|
|
473
|
-
o();
|
|
474
|
-
}));
|
|
475
|
-
},
|
|
476
|
-
{ immediate: !0 }
|
|
477
|
-
);
|
|
478
|
-
Z(
|
|
479
|
-
e,
|
|
480
|
-
() => {
|
|
481
|
-
e.value ? o() : n.value = 0;
|
|
482
|
-
},
|
|
483
|
-
{ immediate: !0 }
|
|
484
|
-
);
|
|
485
|
-
});
|
|
486
|
-
}), Qe(() => {
|
|
487
|
-
t == null || t.disconnect();
|
|
488
|
-
}), n;
|
|
489
|
-
}, Xn = (s, e, n, t, o) => {
|
|
490
|
-
const l = E(0), r = E(!1), _ = E(!1);
|
|
491
|
-
Z(
|
|
492
|
-
() => l.value,
|
|
493
|
-
() => {
|
|
494
|
-
s.value.scrollLeft = l.value, e.value.scrollLeft = l.value, r.value = !!l.value, _.value = e.value.scrollWidth - e.value.offsetWidth > l.value;
|
|
495
|
-
}
|
|
496
|
-
), ye(async () => {
|
|
497
|
-
var i, a;
|
|
498
|
-
await Y(), ((i = e.value) == null ? void 0 : i.offsetWidth) < ((a = e.value) == null ? void 0 : a.scrollWidth) && (_.value = !0);
|
|
499
|
-
});
|
|
500
|
-
const u = (i) => {
|
|
501
|
-
if (l.value = i.target.scrollLeft, n.value = s.value.scrollHeight - i.target.scrollTop, t != null && t.value) {
|
|
502
|
-
const a = i.target.scrollLeft;
|
|
503
|
-
t.value.scrollLeft !== a && (t.value.scrollLeft = a);
|
|
504
|
-
}
|
|
505
|
-
}, m = (i) => {
|
|
506
|
-
i.key !== "Tab" && i.key !== "ArrowRight" && i.key !== "ArrowLeft" || (i.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
507
|
-
s.value.style.overflowX = "auto";
|
|
508
|
-
}));
|
|
509
|
-
}, v = (i) => {
|
|
510
|
-
const a = i.target.scrollLeft;
|
|
511
|
-
s.value.scrollLeft !== a && (s.value.scrollLeft = a);
|
|
512
|
-
}, c = L(() => {
|
|
513
|
-
var i, a, f;
|
|
514
|
-
return {
|
|
515
|
-
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((i = o == null ? void 0 : o.pagination) == null ? void 0 : i.value) && ((a = o == null ? void 0 : o.stickyPagination) == null ? void 0 : a.value) && !((f = o == null ? void 0 : o.isLazyLoad) != null && f.value)
|
|
516
|
-
};
|
|
517
|
-
});
|
|
518
|
-
return {
|
|
519
|
-
// Values
|
|
520
|
-
scrollLeftPosition: l,
|
|
521
|
-
hasLeftOverflow: r,
|
|
522
|
-
hasRightOverflow: _,
|
|
523
|
-
horizontalScrollbarConditionalClasses: c,
|
|
524
|
-
// Methods
|
|
525
|
-
updateScrollPosition: u,
|
|
526
|
-
updateScrollPositionOnFrozenColumnsNavigation: m,
|
|
527
|
-
syncVirtualScrollerWithBody: v
|
|
528
|
-
};
|
|
529
|
-
}, Jn = (s, e, n, t) => {
|
|
530
|
-
const o = E(null), l = L(() => {
|
|
531
|
-
var S, C, b, y;
|
|
532
|
-
if (!o.value || o.value.field === V)
|
|
533
|
-
return {
|
|
534
|
-
hoveredOverColumnField: "",
|
|
535
|
-
isSeparatorOffset: !1,
|
|
536
|
-
noBorderLeft: !1,
|
|
537
|
-
noBorderRight: !1
|
|
538
|
-
};
|
|
539
|
-
const r = (C = (S = s.value.find((A) => A.isFrozenColumns)) == null ? void 0 : S.columnSet) == null ? void 0 : C.filter((A) => A.field !== V), _ = s.value.find((A) => !(A != null && A.isFrozenColumns)), u = o.value.frozen && (r == null ? void 0 : r[0].field) === o.value.field, m = !o.value.frozen && ((b = _ == null ? void 0 : _.columnSet) == null ? void 0 : b[0].field) === o.value.field, v = (e.value || n.value) && u, c = (e.value || n.value) && !r && m, i = r && m, a = (r == null ? void 0 : r.length) > 0 && o.value.frozen && (r == null ? void 0 : r[r.length - 1].field) === o.value.field, f = n.value && t.value && !o.value.frozen && ((y = _ == null ? void 0 : _.columnSet) == null ? void 0 : y[_.columnSet.length - 1].field) === o.value.field;
|
|
540
|
-
return {
|
|
541
|
-
hoveredOverColumnField: o.value.field,
|
|
542
|
-
isSeparatorOffset: f,
|
|
543
|
-
noBorderLeft: !!v || !!c || !!i,
|
|
544
|
-
noBorderRight: !!a || !!f
|
|
545
|
-
};
|
|
546
|
-
});
|
|
547
|
-
return {
|
|
548
|
-
hoveredOverColumn: o,
|
|
549
|
-
hoveredOverColumnState: l
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
let We = 0;
|
|
553
|
-
const Kn = {
|
|
554
|
-
beforeCreate() {
|
|
555
|
-
this.uuid = We.toString(), We += 1;
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
var Qn = function() {
|
|
559
|
-
var e = this, n = e._self._c;
|
|
560
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-arrow_up_down_sort__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
561
|
-
}, es = [], ts = /* @__PURE__ */ B(
|
|
562
|
-
Kn,
|
|
563
|
-
Qn,
|
|
564
|
-
es,
|
|
565
|
-
!1,
|
|
566
|
-
null,
|
|
567
|
-
null
|
|
568
|
-
);
|
|
569
|
-
const ns = ts.exports;
|
|
570
|
-
let Ge = 0;
|
|
571
|
-
const ss = {
|
|
572
|
-
beforeCreate() {
|
|
573
|
-
this.uuid = Ge.toString(), Ge += 1;
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
var os = function() {
|
|
577
|
-
var e = this, n = e._self._c;
|
|
578
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
|
|
579
|
-
}, ls = [], as = /* @__PURE__ */ B(
|
|
580
|
-
ss,
|
|
581
|
-
os,
|
|
582
|
-
ls,
|
|
583
|
-
!1,
|
|
584
|
-
null,
|
|
585
|
-
null
|
|
586
|
-
);
|
|
587
|
-
const is = as.exports;
|
|
588
|
-
let He = 0;
|
|
589
|
-
const rs = {
|
|
590
|
-
beforeCreate() {
|
|
591
|
-
this.uuid = He.toString(), He += 1;
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
var ds = function() {
|
|
595
|
-
var e = this, n = e._self._c;
|
|
596
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
597
|
-
}, cs = [], us = /* @__PURE__ */ B(
|
|
598
|
-
rs,
|
|
599
|
-
ds,
|
|
600
|
-
cs,
|
|
601
|
-
!1,
|
|
602
|
-
null,
|
|
603
|
-
null
|
|
604
|
-
);
|
|
605
|
-
const ut = us.exports;
|
|
606
|
-
let Ve = 0;
|
|
607
|
-
const fs = {
|
|
608
|
-
beforeCreate() {
|
|
609
|
-
this.uuid = Ve.toString(), Ve += 1;
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
var gs = function() {
|
|
613
|
-
var e = this, n = e._self._c;
|
|
614
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z" } }), n("path", { attrs: { fill: "#00112C", d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z" } }), n("path", { attrs: { fill: "#00112C", d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z" } })]);
|
|
615
|
-
}, _s = [], vs = /* @__PURE__ */ B(
|
|
616
|
-
fs,
|
|
617
|
-
gs,
|
|
618
|
-
_s,
|
|
619
|
-
!1,
|
|
620
|
-
null,
|
|
621
|
-
null
|
|
622
|
-
);
|
|
623
|
-
const Cs = vs.exports;
|
|
624
|
-
let Ze = 0;
|
|
625
|
-
const ms = {
|
|
626
|
-
beforeCreate() {
|
|
627
|
-
this.uuid = Ze.toString(), Ze += 1;
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
var hs = function() {
|
|
631
|
-
var e = this, n = e._self._c;
|
|
632
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_ascending__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_ascending__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
633
|
-
}, ps = [], Ls = /* @__PURE__ */ B(
|
|
634
|
-
ms,
|
|
635
|
-
hs,
|
|
636
|
-
ps,
|
|
637
|
-
!1,
|
|
638
|
-
null,
|
|
639
|
-
null
|
|
640
|
-
);
|
|
641
|
-
const Ss = Ls.exports;
|
|
642
|
-
let je = 0;
|
|
643
|
-
const Es = {
|
|
644
|
-
beforeCreate() {
|
|
645
|
-
this.uuid = je.toString(), je += 1;
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
var bs = function() {
|
|
649
|
-
var e = this, n = e._self._c;
|
|
650
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_descending__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_descending__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
651
|
-
}, ys = [], ws = /* @__PURE__ */ B(
|
|
652
|
-
Es,
|
|
653
|
-
bs,
|
|
654
|
-
ys,
|
|
655
|
-
!1,
|
|
656
|
-
null,
|
|
657
|
-
null
|
|
658
|
-
);
|
|
659
|
-
const Os = ws.exports;
|
|
660
|
-
let qe = 0;
|
|
661
|
-
const Rs = {
|
|
662
|
-
beforeCreate() {
|
|
663
|
-
this.uuid = qe.toString(), qe += 1;
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
var As = function() {
|
|
667
|
-
var e = this, n = e._self._c;
|
|
668
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { fill: "#00112C", d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z" } })]);
|
|
669
|
-
}, Is = [], Ts = /* @__PURE__ */ B(
|
|
670
|
-
Rs,
|
|
671
|
-
As,
|
|
672
|
-
Is,
|
|
673
|
-
!1,
|
|
674
|
-
null,
|
|
675
|
-
null
|
|
676
|
-
);
|
|
677
|
-
const Ns = Ts.exports;
|
|
678
|
-
let Ye = 0;
|
|
679
|
-
const Ds = {
|
|
680
|
-
beforeCreate() {
|
|
681
|
-
this.uuid = Ye.toString(), Ye += 1;
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
var xs = function() {
|
|
685
|
-
var e = this, n = e._self._c;
|
|
686
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
687
|
-
}, Fs = [], Ms = /* @__PURE__ */ B(
|
|
688
|
-
Ds,
|
|
689
|
-
xs,
|
|
690
|
-
Fs,
|
|
691
|
-
!1,
|
|
692
|
-
null,
|
|
693
|
-
null
|
|
694
|
-
);
|
|
695
|
-
const $s = Ms.exports, Ps = {
|
|
696
|
-
"en-US": {
|
|
697
|
-
sortColumn: "Sort {name} column",
|
|
698
|
-
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
699
|
-
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
700
|
-
freezeColumn: "Freeze column",
|
|
701
|
-
hideColumn: "Hide column",
|
|
702
|
-
moveColumnLeft: "Move column left",
|
|
703
|
-
moveColumnRight: "Move column right",
|
|
704
|
-
selectAll: "Select all",
|
|
705
|
-
selectPage: "Select this page",
|
|
706
|
-
selectionMenu: "Selection menu",
|
|
707
|
-
showColumn: "Show column",
|
|
708
|
-
unfreezeColumn: "Unfreeze column",
|
|
709
|
-
columnActions: "{name} column actions"
|
|
710
|
-
},
|
|
711
|
-
"pt-BR": {
|
|
712
|
-
freezeColumn: "Congelar coluna",
|
|
713
|
-
hideColumn: "Ocultar coluna",
|
|
714
|
-
moveColumnLeft: "Mover coluna para a esquerda",
|
|
715
|
-
moveColumnRight: "Mover coluna para a direita",
|
|
716
|
-
selectAll: "Selecionar tudo",
|
|
717
|
-
unfreezeColumn: "Descongelar coluna"
|
|
718
|
-
},
|
|
719
|
-
"ja-JP": {
|
|
720
|
-
freezeColumn: "列を固定",
|
|
721
|
-
hideColumn: "列を非表示",
|
|
722
|
-
moveColumnLeft: "列を左へ移動",
|
|
723
|
-
moveColumnRight: "列を右へ移動",
|
|
724
|
-
selectAll: "すべて選択",
|
|
725
|
-
unfreezeColumn: "列の固定を解除"
|
|
726
|
-
}
|
|
727
|
-
}, zs = {
|
|
728
|
-
i18n: { messages: Ps },
|
|
729
|
-
name: "data-grid-columns"
|
|
730
|
-
}, Bs = /* @__PURE__ */ J({
|
|
731
|
-
...zs,
|
|
732
|
-
props: {
|
|
733
|
-
/**
|
|
734
|
-
* Column definitions using 'key' to relate to data object.
|
|
735
|
-
*/
|
|
736
|
-
columns: {
|
|
737
|
-
type: Array,
|
|
738
|
-
required: !0
|
|
739
|
-
},
|
|
740
|
-
/**
|
|
741
|
-
* Columns being dragged, contains dragging column and a target column
|
|
742
|
-
*/
|
|
743
|
-
draggingColumns: {
|
|
744
|
-
type: Object,
|
|
745
|
-
default: void 0
|
|
746
|
-
},
|
|
747
|
-
/**
|
|
748
|
-
* Toggle the columns draggable events.
|
|
749
|
-
*/
|
|
750
|
-
hasDraggableColumns: {
|
|
751
|
-
type: Boolean,
|
|
752
|
-
default: !0
|
|
753
|
-
},
|
|
754
|
-
/**
|
|
755
|
-
* If resize is enabled
|
|
756
|
-
*/
|
|
757
|
-
hasResizableColumns: {
|
|
758
|
-
type: Boolean,
|
|
759
|
-
default: !0
|
|
760
|
-
},
|
|
761
|
-
/**
|
|
762
|
-
* Signifies if the column panel is enabled.
|
|
763
|
-
*/
|
|
764
|
-
hasColumnPanel: {
|
|
765
|
-
type: Boolean,
|
|
766
|
-
default: !1
|
|
767
|
-
},
|
|
768
|
-
/**
|
|
769
|
-
* If set to true, aligns the first column panel to the right of its button.
|
|
770
|
-
*/
|
|
771
|
-
hasFirstColumnPanelRightAligned: {
|
|
772
|
-
type: Boolean,
|
|
773
|
-
default: !1
|
|
774
|
-
},
|
|
775
|
-
/**
|
|
776
|
-
* If the data grid has overflow on the left side
|
|
777
|
-
*/
|
|
778
|
-
hasLeftOverflow: {
|
|
779
|
-
type: Boolean,
|
|
780
|
-
default: !1
|
|
781
|
-
},
|
|
782
|
-
/**
|
|
783
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
784
|
-
*/
|
|
785
|
-
hoveredOverColumnState: {
|
|
786
|
-
type: Object,
|
|
787
|
-
required: !0
|
|
788
|
-
},
|
|
789
|
-
/**
|
|
790
|
-
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
791
|
-
*/
|
|
792
|
-
isMeasuringColumnWidths: {
|
|
793
|
-
type: Boolean,
|
|
794
|
-
default: !1
|
|
795
|
-
},
|
|
796
|
-
/**
|
|
797
|
-
* Used to disable hiding the last visible column.
|
|
798
|
-
*/
|
|
799
|
-
isOnlyOneVisibleColumn: {
|
|
800
|
-
type: Boolean,
|
|
801
|
-
default: !1
|
|
802
|
-
},
|
|
803
|
-
/**
|
|
804
|
-
* If these columns are frozen (pinned) columns
|
|
805
|
-
*/
|
|
806
|
-
isFrozenColumns: {
|
|
807
|
-
type: Boolean,
|
|
808
|
-
default: !1
|
|
809
|
-
},
|
|
810
|
-
/**
|
|
811
|
-
* Show frozen columns separator
|
|
812
|
-
*/
|
|
813
|
-
showFrozenColumnsSeparator: {
|
|
814
|
-
type: Boolean,
|
|
815
|
-
default: !1
|
|
816
|
-
},
|
|
817
|
-
/**
|
|
818
|
-
* The column all items selected state
|
|
819
|
-
*/
|
|
820
|
-
allItemsSelectedState: {
|
|
821
|
-
type: Object,
|
|
822
|
-
default: void 0
|
|
823
|
-
},
|
|
824
|
-
/**
|
|
825
|
-
* Determines if the user has enabled row selection
|
|
826
|
-
*/
|
|
827
|
-
selectable: {
|
|
828
|
-
type: Boolean,
|
|
829
|
-
default: !1
|
|
830
|
-
},
|
|
831
|
-
/**
|
|
832
|
-
* Adds an extra option when selecting all, to select items in other pages too
|
|
833
|
-
*/
|
|
834
|
-
selectableAcrossPages: {
|
|
835
|
-
type: Boolean,
|
|
836
|
-
default: !1
|
|
837
|
-
},
|
|
838
|
-
/**
|
|
839
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
840
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
841
|
-
*/
|
|
842
|
-
sortBy: {
|
|
843
|
-
type: Array,
|
|
844
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
845
|
-
default: () => []
|
|
846
|
-
},
|
|
847
|
-
/**
|
|
848
|
-
* Truncates all data grid column headers
|
|
849
|
-
*/
|
|
850
|
-
truncateColumnHeaders: {
|
|
851
|
-
type: Boolean,
|
|
852
|
-
default: !1
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
emits: ["sort", "column-hover"],
|
|
856
|
-
setup(s, { expose: e, emit: n }) {
|
|
857
|
-
const t = s, o = 100, { t: l } = oe(), { columns: r, sortBy: _ } = be(t), u = E({}), m = E({}), v = E(), c = E(), i = (d) => n(k.SELECT_ALL_ROWS, d), a = (d) => d.field === V, f = L(() => [
|
|
858
|
-
{
|
|
859
|
-
text: l("selectPage"),
|
|
860
|
-
handler: () => i(!0)
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
text: l("selectAll"),
|
|
864
|
-
handler: () => n(k.SELECT_ALL_ACROSS_PAGES)
|
|
865
|
-
}
|
|
866
|
-
]), { startResize: S, isResizing: C, columnHoverEventToEmitAfterResizing: b } = Nn(r, n), { isSorting: y, getSortingDirection: A, sortByColumnField: P } = Hn(_, r, n), T = (d) => {
|
|
867
|
-
var K;
|
|
868
|
-
if (!d.sortable)
|
|
869
|
-
return null;
|
|
870
|
-
const $ = (K = t.sortBy.find(({ field: le }) => le === d.field)) == null ? void 0 : K.direction;
|
|
871
|
-
return $ ? {
|
|
872
|
-
[se.ASCENDING]: Ce.ASCENDING,
|
|
873
|
-
[se.DESCENDING]: Ce.DESCENDING
|
|
874
|
-
}[$] : Ce.NONE;
|
|
875
|
-
}, p = L(() => (d) => t.hasDraggableColumns ? {
|
|
876
|
-
dragstart: ($) => {
|
|
877
|
-
n(k.COLUMN_DRAG_START, d, $);
|
|
878
|
-
},
|
|
879
|
-
dragover: ($) => {
|
|
880
|
-
$.preventDefault();
|
|
881
|
-
},
|
|
882
|
-
dragenter: ($) => {
|
|
883
|
-
$.preventDefault(), n(k.COLUMN_DRAG_ENTER, d, $);
|
|
884
|
-
},
|
|
885
|
-
drop: () => {
|
|
886
|
-
n(k.COLUMN_DROP, d);
|
|
887
|
-
},
|
|
888
|
-
dragend: () => {
|
|
889
|
-
n(k.COLUMN_DRAG_END);
|
|
890
|
-
}
|
|
891
|
-
} : {}), h = L(() => (d) => [
|
|
892
|
-
{
|
|
893
|
-
text: l("moveColumnLeft"),
|
|
894
|
-
handler: () => n(k.COLUMN_MOVE, d, -1),
|
|
895
|
-
icon: bn,
|
|
896
|
-
disabled: t.columns[0].field === d.field
|
|
897
|
-
},
|
|
898
|
-
{
|
|
899
|
-
text: l("moveColumnRight"),
|
|
900
|
-
handler: () => n(k.COLUMN_MOVE, d, 1),
|
|
901
|
-
icon: is,
|
|
902
|
-
disabled: t.columns[t.columns.length - 1].field === d.field
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
text: d != null && d.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
906
|
-
handler: () => n(k.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
|
|
907
|
-
icon: ut
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
text: (d == null ? void 0 : d.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
911
|
-
handler: () => {
|
|
912
|
-
n(k.COLUMN_UPDATE, {
|
|
913
|
-
...d,
|
|
914
|
-
visible: (d == null ? void 0 : d.visible) === !1
|
|
915
|
-
});
|
|
916
|
-
},
|
|
917
|
-
icon: (d == null ? void 0 : d.visible) !== !1 ? Cs : Ns,
|
|
918
|
-
disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
919
|
-
}
|
|
920
|
-
]), R = (d) => {
|
|
921
|
-
v.value = d.field, c.value && clearTimeout(c.value);
|
|
922
|
-
}, x = () => {
|
|
923
|
-
const d = setTimeout(() => {
|
|
924
|
-
v.value = "";
|
|
925
|
-
}, o);
|
|
926
|
-
c.value = d;
|
|
927
|
-
}, g = (d) => {
|
|
928
|
-
let $ = {
|
|
929
|
-
mouseenter: () => {
|
|
930
|
-
R(d), C.value ? b.value = d : n("column-hover", d);
|
|
931
|
-
},
|
|
932
|
-
mouseleave: () => {
|
|
933
|
-
x(), C.value ? b.value = null : n("column-hover", null);
|
|
934
|
-
},
|
|
935
|
-
focus: () => R(d)
|
|
936
|
-
};
|
|
937
|
-
return a(d) || ($ = {
|
|
938
|
-
...$,
|
|
939
|
-
...p.value(d)
|
|
940
|
-
}), $;
|
|
941
|
-
}, F = (d) => d.infoIconTooltip || d.sortable || t.hasColumnPanel, I = (d, $) => {
|
|
942
|
-
var X;
|
|
943
|
-
((X = u.value) == null ? void 0 : X[$]) === void 0 && (u.value = { ...u.value, [$]: null }), d !== null && (u.value[$] = d);
|
|
944
|
-
}, N = L(() => {
|
|
945
|
-
var $;
|
|
946
|
-
const d = {
|
|
947
|
-
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
948
|
-
};
|
|
949
|
-
return ($ = r.value[0]) != null && $.frozen ? {
|
|
950
|
-
...d,
|
|
951
|
-
"b-data-grid-columns--frozen": !0,
|
|
952
|
-
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
953
|
-
"b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
|
|
954
|
-
} : {
|
|
955
|
-
...d,
|
|
956
|
-
"b-data-grid-columns--unfrozen": !0
|
|
957
|
-
};
|
|
958
|
-
}), U = (d, $) => d && $ === 0 ? Pe.BOTTOM_START : Pe.BOTTOM_END, M = (d, $) => {
|
|
959
|
-
var X, K, le, W, ae, fe, de, ge, ce, ie;
|
|
960
|
-
return {
|
|
961
|
-
"b-data-grid-columns__column--column-hovered": d.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
962
|
-
"b-data-grid-columns__column--column-hovered-no-border-left": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
963
|
-
"b-data-grid-columns__column--column-hovered-no-border-right": d.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
964
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && $ === r.value.length - 1,
|
|
965
|
-
"b-data-grid-columns__column--sortable": d.sortable,
|
|
966
|
-
"b-data-grid-columns__column--padding-left-unset": ((X = d == null ? void 0 : d.padding) == null ? void 0 : X.left) === !1,
|
|
967
|
-
"b-data-grid-columns__column--padding-right-unset": ((K = d == null ? void 0 : d.padding) == null ? void 0 : K.right) === !1,
|
|
968
|
-
"b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
|
|
969
|
-
"b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
|
|
970
|
-
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((W = (le = t.draggingColumns) == null ? void 0 : le.dragging) == null ? void 0 : W.field),
|
|
971
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((fe = (ae = t.draggingColumns) == null ? void 0 : ae.target) == null ? void 0 : fe.field) && ((de = t.draggingColumns) == null ? void 0 : de.dragToLeft),
|
|
972
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((ce = (ge = t.draggingColumns) == null ? void 0 : ge.target) == null ? void 0 : ce.field) && !((ie = t.draggingColumns) != null && ie.dragToLeft),
|
|
973
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || t.hasColumnPanel && v.value === d.field || t.selectableAcrossPages
|
|
974
|
-
};
|
|
975
|
-
}, D = (d) => ({
|
|
976
|
-
"b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
|
|
977
|
-
}), j = (d) => ({
|
|
978
|
-
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
979
|
-
}), re = (d) => ({
|
|
980
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
981
|
-
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === d.field && t.hoveredOverColumnState.isSeparatorOffset
|
|
982
|
-
}), he = L(() => ({
|
|
983
|
-
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
984
|
-
}));
|
|
985
|
-
return e({
|
|
986
|
-
columnHeaderRefs: u
|
|
987
|
-
}), { __sfc: !0, props: t, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: r, sortBy: _, columnHeaderRefs: u, contextMenuRef: m, hoveredColumnField: v, closingTimeOutId: c, onAllRowSelect: i, isActionsColumn: a, selectAllMenu: f, startResize: S, isResizing: C, columnHoverEventToEmitAfterResizing: b, isSorting: y, getSortingDirection: A, sortByColumnField: P, getSortingColumnDirection: T, draggingEventsForColumn: p, contextualMenuData: h, showContextualMenu: R, hideContextualMenu: x, dataGridColumnEvents: g, hasColumnActions: F, registerColumnsRefs: I, conditionalColumnsClasses: N, computeMenuPosition: U, conditionalColumnClasses: M, conditionalColumnHeaderAndActionsClasses: D, conditionalColumnActionsClasses: j, conditionalColumnSeparatorClasses: re, conditionalColumnHeaderClasses: he, BentoCheckbox: it, BentoDatagridSortDirection: se, BentoTypography: me, BentoInfoIcon: Ln, DatagridColumnsEvent: k, BentoMenu: rt, BentoToggleButton: Re, ArrowUpAndDownSortIcon: ns, SortAscendingIcon: Ss, SortDescendingIcon: Os, TriangleDown: $s };
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
var Us = function() {
|
|
991
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
992
|
-
return n("div", { staticClass: "b-data-grid-columns", class: t.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(t.columns, function(o, l) {
|
|
993
|
-
return n("div", e._g({ key: o.field, ref: (r) => t.registerColumnsRefs(r, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: t.conditionalColumnClasses(o, l), style: { width: o.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 1, "aria-label": o.label, "aria-sort": t.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: e.hasDraggableColumns && !t.isResizing && !t.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || e.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, t.dataGridColumnEvents(o)), [t.isActionsColumn(o) && e.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(t.BentoCheckbox, { attrs: { "model-value": e.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": t.onAllRowSelect } }), e.selectableAcrossPages ? [n(t.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: t.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
994
|
-
return [n(t.TriangleDown, { attrs: { "svg-title": t.t("selectionMenu") } })];
|
|
995
|
-
}, proxy: !0 }], null, !0) })] : e._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: t.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": t.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(t.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: t.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [e._t(`head-${o.field}`, function() {
|
|
996
|
-
return [n("span", { staticClass: "b-data-grid-columns__label" }, [e._v(e._s(o.label))])];
|
|
997
|
-
}, { column: o })], 2), t.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: t.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(t.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : e._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(t.BentoToggleButton, { attrs: { condensed: "", toggled: t.isSorting(o.field), variant: "tertiary" }, on: { click: function(r) {
|
|
998
|
-
return t.sortByColumnField(o.field);
|
|
999
|
-
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1000
|
-
return [t.getSortingDirection(o.field) ? t.getSortingDirection(o.field) === t.BentoDatagridSortDirection.ASCENDING ? n(t.SortAscendingIcon, { attrs: { "svg-title": t.t("sortColumnInDescendingOrder", { name: o.label }) } }) : t.getSortingDirection(o.field) === t.BentoDatagridSortDirection.DESCENDING ? n(t.SortDescendingIcon, { attrs: { "svg-title": t.t("sortColumnInAscendingOrder", { name: o.label }) } }) : e._e() : n(t.ArrowUpAndDownSortIcon, { attrs: { "svg-title": t.t("sortColumn", { name: o.label }) } })];
|
|
1001
|
-
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel && t.hoveredColumnField === o.field ? n(t.BentoMenu, { ref: (r) => t.contextMenuRef[o.field] = r, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: t.contextualMenuData(o), "menu-position": t.computeMenuPosition(e.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(r) {
|
|
1002
|
-
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1003
|
-
}, close: function(r) {
|
|
1004
|
-
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1005
|
-
} } }) : e._e()], 1) : e._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: t.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(r) {
|
|
1006
|
-
return t.startResize(e.hasResizableColumns, o.field, r);
|
|
1007
|
-
}, click: function(r) {
|
|
1008
|
-
r.stopPropagation();
|
|
1009
|
-
} } }, [!e.isFrozenColumns || e.isFrozenColumns && l !== t.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
|
|
1010
|
-
}), 0);
|
|
1011
|
-
}, ks = [], Ws = /* @__PURE__ */ B(
|
|
1012
|
-
Bs,
|
|
1013
|
-
Us,
|
|
1014
|
-
ks,
|
|
1015
|
-
!1,
|
|
1016
|
-
null,
|
|
1017
|
-
"43622155"
|
|
1018
|
-
);
|
|
1019
|
-
const Gs = Ws.exports;
|
|
1020
|
-
var te = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(te || {});
|
|
1021
|
-
let Xe = 0;
|
|
1022
|
-
const Hs = {
|
|
1023
|
-
beforeCreate() {
|
|
1024
|
-
this.uuid = Xe.toString(), Xe += 1;
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
var Vs = function() {
|
|
1028
|
-
var e = this, n = e._self._c;
|
|
1029
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1030
|
-
}, Zs = [], js = /* @__PURE__ */ B(
|
|
1031
|
-
Hs,
|
|
1032
|
-
Vs,
|
|
1033
|
-
Zs,
|
|
1034
|
-
!1,
|
|
1035
|
-
null,
|
|
1036
|
-
null
|
|
1037
|
-
);
|
|
1038
|
-
const qs = js.exports, Ys = {
|
|
1039
|
-
"en-US": {
|
|
1040
|
-
toggleColumnVisibility: "Toggle {label} column visibility",
|
|
1041
|
-
toggleColumnFreeze: "Toggle {label} column freeze"
|
|
1042
|
-
}
|
|
1043
|
-
}, Xs = J({
|
|
1044
|
-
i18n: { messages: Ys },
|
|
1045
|
-
name: "bento-data-grid",
|
|
1046
|
-
components: {
|
|
1047
|
-
BentoFreezeIcon: ut,
|
|
1048
|
-
BentoToggle: lt
|
|
1049
|
-
},
|
|
1050
|
-
props: {
|
|
1051
|
-
/**
|
|
1052
|
-
* Is column visibitlity toggle disabled
|
|
1053
|
-
*/
|
|
1054
|
-
isColumnVisibilityToggleDisabled: {
|
|
1055
|
-
type: Boolean,
|
|
1056
|
-
required: !0
|
|
1057
|
-
},
|
|
1058
|
-
/**
|
|
1059
|
-
* Column definition
|
|
1060
|
-
*/
|
|
1061
|
-
column: {
|
|
1062
|
-
type: Object,
|
|
1063
|
-
required: !0
|
|
1064
|
-
}
|
|
1065
|
-
},
|
|
1066
|
-
emits: ["visible-column", "updated-column"],
|
|
1067
|
-
setup(s, { emit: e }) {
|
|
1068
|
-
const { t: n } = oe(), t = E(!1), o = L(() => {
|
|
1069
|
-
var c;
|
|
1070
|
-
return (c = s.column) == null ? void 0 : c.frozen;
|
|
1071
|
-
}), l = L(() => {
|
|
1072
|
-
var c;
|
|
1073
|
-
return ((c = s.column) == null ? void 0 : c.visible) !== !1;
|
|
1074
|
-
}), r = () => {
|
|
1075
|
-
e("visible-column", { ...s.column, visible: !l.value });
|
|
1076
|
-
}, _ = () => {
|
|
1077
|
-
e("updated-column", { ...s.column, frozen: !o.value });
|
|
1078
|
-
}, u = () => {
|
|
1079
|
-
o.value || (t.value = !0);
|
|
1080
|
-
}, m = () => {
|
|
1081
|
-
o.value || (t.value = !1);
|
|
1082
|
-
}, v = L(() => ({
|
|
1083
|
-
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1084
|
-
}));
|
|
1085
|
-
return {
|
|
1086
|
-
// Values
|
|
1087
|
-
isFreezeIconOptionShown: t,
|
|
1088
|
-
isColumnFrozen: o,
|
|
1089
|
-
freezeIconConditionalClasses: v,
|
|
1090
|
-
isColumnVisible: l,
|
|
1091
|
-
// Methods
|
|
1092
|
-
toggleColumnVisibility: r,
|
|
1093
|
-
showFreezeIcon: u,
|
|
1094
|
-
hideFreezeIcon: m,
|
|
1095
|
-
toggleColumnFreeze: _,
|
|
1096
|
-
// Translations
|
|
1097
|
-
t: n
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
});
|
|
1101
|
-
var Js = function() {
|
|
1102
|
-
var e = this, n = e._self._c;
|
|
1103
|
-
return e._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": e.t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": "after", value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(t) {
|
|
1104
|
-
return e.toggleColumnFreeze.apply(null, arguments);
|
|
1105
|
-
} } })], 1);
|
|
1106
|
-
}, Ks = [], Qs = /* @__PURE__ */ B(
|
|
1107
|
-
Xs,
|
|
1108
|
-
Js,
|
|
1109
|
-
Ks,
|
|
1110
|
-
!1,
|
|
1111
|
-
null,
|
|
1112
|
-
"eae7733f"
|
|
1113
|
-
);
|
|
1114
|
-
const eo = Qs.exports, to = {
|
|
1115
|
-
"en-US": {
|
|
1116
|
-
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1117
|
-
closeSearch: "Close search",
|
|
1118
|
-
columns: "Columns",
|
|
1119
|
-
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1120
|
-
condensed: "Condensed",
|
|
1121
|
-
condensedToggle: "Condensed toggle",
|
|
1122
|
-
configSettingsPanel: "Configuration settings Panel",
|
|
1123
|
-
displayOptions: "Display options",
|
|
1124
|
-
noColumnsMatch: "No columns match this search",
|
|
1125
|
-
search: "Search",
|
|
1126
|
-
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1127
|
-
size: "Size",
|
|
1128
|
-
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility"
|
|
1129
|
-
},
|
|
1130
|
-
"pt-BR": {
|
|
1131
|
-
condensed: "Condensado",
|
|
1132
|
-
search: "Buscar",
|
|
1133
|
-
size: "Tamanho"
|
|
1134
|
-
},
|
|
1135
|
-
"ja-JP": {
|
|
1136
|
-
condensed: "凝縮",
|
|
1137
|
-
search: "検索",
|
|
1138
|
-
size: "サイズ"
|
|
1139
|
-
}
|
|
1140
|
-
}, no = J({
|
|
1141
|
-
i18n: { messages: to },
|
|
1142
|
-
name: "bento-data-grid",
|
|
1143
|
-
components: {
|
|
1144
|
-
BentoButton: ot,
|
|
1145
|
-
BentoCrossIcon: tt,
|
|
1146
|
-
BentoPopover: vn,
|
|
1147
|
-
BentoSettingsIcon: qs,
|
|
1148
|
-
BentoToggleButton: Re,
|
|
1149
|
-
BentoDataGridConfigSettingsConfigRow: eo,
|
|
1150
|
-
BentoSearchBar: Cn,
|
|
1151
|
-
BentoSearchIcon: hn,
|
|
1152
|
-
BentoToggle: lt,
|
|
1153
|
-
BentoTypography: me
|
|
1154
|
-
},
|
|
1155
|
-
directives: { BentoClickOutsideDirective: pn },
|
|
1156
|
-
props: {
|
|
1157
|
-
/**
|
|
1158
|
-
* Column definitions
|
|
1159
|
-
*/
|
|
1160
|
-
columns: {
|
|
1161
|
-
type: Array,
|
|
1162
|
-
required: !0
|
|
1163
|
-
},
|
|
1164
|
-
/**
|
|
1165
|
-
* Sets the row cells to the condensed padding state.
|
|
1166
|
-
*/
|
|
1167
|
-
condensed: {
|
|
1168
|
-
type: Boolean,
|
|
1169
|
-
default: !1
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
emits: [te.CONFIG_SETTINGS, te.UPDATE_COLUMNS],
|
|
1173
|
-
setup(s, { emit: e }) {
|
|
1174
|
-
const { t: n } = oe(), t = E(null), o = at("data-grid-config-settings-popover"), l = E(null), r = E(!1), _ = E(!0), u = E(null), m = E(""), v = et(s, "columns"), c = E(!1), i = mn(m, v), a = () => {
|
|
1175
|
-
m.value = "";
|
|
1176
|
-
}, f = L(
|
|
1177
|
-
() => !s.columns.some((h) => h.visible === !1 && !h.mandatory)
|
|
1178
|
-
), S = () => {
|
|
1179
|
-
a(), c.value = !c.value, c.value ? Y(() => {
|
|
1180
|
-
var h;
|
|
1181
|
-
return (h = l.value.$refs.bentoInputField) == null ? void 0 : h.focusInput();
|
|
1182
|
-
}) : Y(() => {
|
|
1183
|
-
var h, R;
|
|
1184
|
-
return (R = (h = u == null ? void 0 : u.value) == null ? void 0 : h.$el) == null ? void 0 : R.focus();
|
|
1185
|
-
}), _.value = f.value;
|
|
1186
|
-
}, C = (h) => h.mandatory ?? !1, b = (h) => {
|
|
1187
|
-
const R = s.columns.map((x) => ({
|
|
1188
|
-
...x,
|
|
1189
|
-
visible: h.field === x.field ? h.visible : x.visible
|
|
1190
|
-
}));
|
|
1191
|
-
e(te.UPDATE_COLUMNS, R);
|
|
1192
|
-
}, y = (h) => {
|
|
1193
|
-
h ? e(
|
|
1194
|
-
te.UPDATE_COLUMNS,
|
|
1195
|
-
s.columns.map((R) => ({ ...R, visible: !0 }))
|
|
1196
|
-
) : e(
|
|
1197
|
-
te.UPDATE_COLUMNS,
|
|
1198
|
-
s.columns.map((R) => ({ ...R, visible: (R == null ? void 0 : R.mandatory) === !0 }))
|
|
1199
|
-
);
|
|
1200
|
-
}, A = (h) => {
|
|
1201
|
-
const R = s.columns.map((x) => ({
|
|
1202
|
-
...x,
|
|
1203
|
-
frozen: h.field === x.field ? !!(h != null && h.frozen) : !!(x != null && x.frozen)
|
|
1204
|
-
}));
|
|
1205
|
-
e(te.UPDATE_COLUMNS, R);
|
|
1206
|
-
}, P = (h) => {
|
|
1207
|
-
r.value = h, _.value = f.value;
|
|
1208
|
-
};
|
|
1209
|
-
return {
|
|
1210
|
-
// Values
|
|
1211
|
-
configSettingsButtonRef: t,
|
|
1212
|
-
popoverId: o,
|
|
1213
|
-
isConfigSettingsPanelOpen: r,
|
|
1214
|
-
allColumnsVisbilityToggleState: _,
|
|
1215
|
-
filteredColumnVisibilityColumns: i,
|
|
1216
|
-
searchTerm: m,
|
|
1217
|
-
isColumnVisibilityFilterShown: c,
|
|
1218
|
-
searchBarRef: l,
|
|
1219
|
-
searchButtonRef: u,
|
|
1220
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: V,
|
|
1221
|
-
// Methods
|
|
1222
|
-
setConfigSettingsPanelVisibility: P,
|
|
1223
|
-
emitCondensedToggle: (h) => e(te.CONFIG_SETTINGS, h),
|
|
1224
|
-
toggleAllColumnVisibility: y,
|
|
1225
|
-
clearAction: a,
|
|
1226
|
-
toggleColumnFilter: S,
|
|
1227
|
-
emitVisibleColumns: b,
|
|
1228
|
-
emitFrozenColumns: A,
|
|
1229
|
-
onClickOutside: () => P(!1),
|
|
1230
|
-
isColumnVisibilityToggleDisabled: C,
|
|
1231
|
-
// Translations
|
|
1232
|
-
t: n
|
|
1233
|
-
};
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
|
-
var so = function() {
|
|
1237
|
-
var e = this, n = e._self._c;
|
|
1238
|
-
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary", condensed: "", toggled: e.isConfigSettingsPanelOpen }, on: { click: function(t) {
|
|
1239
|
-
return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
|
|
1240
|
-
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1241
|
-
return [n("bento-settings-icon", { attrs: { "svg-title": e.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1242
|
-
}, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(e.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(t) {
|
|
1243
|
-
return e.setConfigSettingsPanelVisibility(!1);
|
|
1244
|
-
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1245
|
-
return [n("bento-cross-icon", { attrs: { "svg-title": e.t("closeConfigSettingsPanel") } })];
|
|
1246
|
-
}, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": e.t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1247
|
-
return [n("bento-cross-icon")];
|
|
1248
|
-
}, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1249
|
-
return [n("bento-search-icon")];
|
|
1250
|
-
}, proxy: !0 }], null, !1, 2341044271) }, [e._v(e._s(e.t("search")))])], 1), e.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.t("columnVisibilitySearchFilter").toString() }, on: { input: function(t) {
|
|
1251
|
-
e.searchTerm = t;
|
|
1252
|
-
}, clear: e.clearAction, "escape-pressed": e.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(t) {
|
|
1253
|
-
return n("div", { key: t.field }, [t.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: t, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(t) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
|
|
1254
|
-
}), e.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [e._v(" " + e._s(e.t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
|
|
1255
|
-
}, oo = [], lo = /* @__PURE__ */ B(
|
|
1256
|
-
no,
|
|
1257
|
-
so,
|
|
1258
|
-
oo,
|
|
1259
|
-
!1,
|
|
1260
|
-
null,
|
|
1261
|
-
"e7f0a261"
|
|
1262
|
-
);
|
|
1263
|
-
const ao = lo.exports, ft = {
|
|
1264
|
-
"en-US": {
|
|
1265
|
-
gettingYourData: "Getting your data",
|
|
1266
|
-
loading: "Loading",
|
|
1267
|
-
selectRow: "Select row",
|
|
1268
|
-
showMore: "Show more",
|
|
1269
|
-
sortAscending: "{field} sort ascending",
|
|
1270
|
-
sortDescending: "{field} sort descending",
|
|
1271
|
-
sortInactive: "{field} sort inactive"
|
|
1272
|
-
},
|
|
1273
|
-
"pt-BR": {
|
|
1274
|
-
loading: "Carregando",
|
|
1275
|
-
showMore: "Mostrar mais"
|
|
1276
|
-
},
|
|
1277
|
-
"ja-JP": {
|
|
1278
|
-
loading: "読み込み中",
|
|
1279
|
-
showMore: "表示内容を増やす"
|
|
1280
|
-
}
|
|
1281
|
-
}, io = {
|
|
1282
|
-
i18n: { messages: ft }
|
|
1283
|
-
}, ro = /* @__PURE__ */ J({
|
|
1284
|
-
...io,
|
|
1285
|
-
__name: "data-grid-lazy-load",
|
|
1286
|
-
props: {
|
|
1287
|
-
loading: { type: Boolean },
|
|
1288
|
-
isInfiniteScroll: { type: Boolean }
|
|
1289
|
-
},
|
|
1290
|
-
setup(s) {
|
|
1291
|
-
const { t: e } = oe();
|
|
1292
|
-
return { __sfc: !0, t: e, BentoLoadingButton: yn, BentoLoadingButtonState: wn, BentoLoadingIndicator: nt, BentoDatagridEvent: w };
|
|
1293
|
-
}
|
|
1294
|
-
});
|
|
1295
|
-
var co = function() {
|
|
1296
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1297
|
-
return n("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? n(t.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? n(t.BentoLoadingButton, { attrs: { variant: "secondary", state: t.BentoLoadingButtonState.LOADING } }, [e._v(e._s(t.t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? n(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1298
|
-
return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1299
|
-
} } }, [e._v(e._s(t.t("showMore")))]) : e._e()], 1);
|
|
1300
|
-
}, uo = [], fo = /* @__PURE__ */ B(
|
|
1301
|
-
ro,
|
|
1302
|
-
co,
|
|
1303
|
-
uo,
|
|
1304
|
-
!1,
|
|
1305
|
-
null,
|
|
1306
|
-
"fd9b8204"
|
|
1307
|
-
);
|
|
1308
|
-
const go = fo.exports;
|
|
1309
|
-
let Je = 0;
|
|
1310
|
-
const _o = {
|
|
1311
|
-
beforeCreate() {
|
|
1312
|
-
this.uuid = Je.toString(), Je += 1;
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
|
-
var vo = function() {
|
|
1316
|
-
var e = this, n = e._self._c;
|
|
1317
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
|
|
1318
|
-
}, Co = [], mo = /* @__PURE__ */ B(
|
|
1319
|
-
_o,
|
|
1320
|
-
vo,
|
|
1321
|
-
Co,
|
|
1322
|
-
!1,
|
|
1323
|
-
null,
|
|
1324
|
-
null
|
|
1325
|
-
);
|
|
1326
|
-
const ho = mo.exports, po = {
|
|
1327
|
-
"en-US": {
|
|
1328
|
-
copy: "Copy",
|
|
1329
|
-
edit: "Edit",
|
|
1330
|
-
open: "Open",
|
|
1331
|
-
more: "More"
|
|
1332
|
-
},
|
|
1333
|
-
"pt-BR": {
|
|
1334
|
-
copy: "Copiar",
|
|
1335
|
-
edit: "Editar",
|
|
1336
|
-
open: "Abrir",
|
|
1337
|
-
more: "Mais"
|
|
1338
|
-
},
|
|
1339
|
-
"ja-JP": {
|
|
1340
|
-
copy: "コピー",
|
|
1341
|
-
edit: "編集",
|
|
1342
|
-
open: "を開く",
|
|
1343
|
-
more: "表示を増やす"
|
|
1344
|
-
}
|
|
1345
|
-
}, Lo = {
|
|
1346
|
-
i18n: { messages: po },
|
|
1347
|
-
name: "data-grid-cell-actions"
|
|
1348
|
-
}, So = /* @__PURE__ */ J({
|
|
1349
|
-
...Lo,
|
|
1350
|
-
props: {
|
|
1351
|
-
/**
|
|
1352
|
-
* Column definitions using 'key' to relate to data object.
|
|
1353
|
-
*/
|
|
1354
|
-
cellActions: {
|
|
1355
|
-
type: Array,
|
|
1356
|
-
required: !0,
|
|
1357
|
-
validator: (s) => (s == null ? void 0 : s.length) <= 2
|
|
1358
|
-
},
|
|
1359
|
-
/**
|
|
1360
|
-
* The column field key.
|
|
1361
|
-
*/
|
|
1362
|
-
columnKey: {
|
|
1363
|
-
type: String,
|
|
1364
|
-
required: !0
|
|
1365
|
-
},
|
|
1366
|
-
/**
|
|
1367
|
-
* The row data item object.
|
|
1368
|
-
*/
|
|
1369
|
-
rowDataItem: {
|
|
1370
|
-
type: Object,
|
|
1371
|
-
required: !0
|
|
1372
|
-
}
|
|
1373
|
-
},
|
|
1374
|
-
emits: ["menu-item-click-close"],
|
|
1375
|
-
setup(s, { emit: e }) {
|
|
1376
|
-
const n = s, { t } = oe(), o = L(() => {
|
|
1377
|
-
var i;
|
|
1378
|
-
return ((i = n.cellActions) == null ? void 0 : i.length) > 2 && st(
|
|
1379
|
-
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1380
|
-
), n.cellActions.slice(0, 2);
|
|
1381
|
-
}), l = L(() => (i, a) => {
|
|
1382
|
-
if (!(!a && i.isShort || a && !i.isShort))
|
|
1383
|
-
switch (i.variant) {
|
|
1384
|
-
case "copy":
|
|
1385
|
-
return t("copy");
|
|
1386
|
-
case "edit":
|
|
1387
|
-
return t("edit");
|
|
1388
|
-
case "open":
|
|
1389
|
-
return t("open");
|
|
1390
|
-
case "more":
|
|
1391
|
-
return t("more");
|
|
1392
|
-
default:
|
|
1393
|
-
return i.title;
|
|
1394
|
-
}
|
|
1395
|
-
}), r = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
|
|
1396
|
-
click: () => i.event(n.rowDataItem, n.columnKey)
|
|
1397
|
-
} : {}, _ = (i) => ({
|
|
1398
|
-
...i,
|
|
1399
|
-
handler: () => {
|
|
1400
|
-
i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
|
|
1401
|
-
}
|
|
1402
|
-
}), u = (i) => i.map((a) => {
|
|
1403
|
-
const f = a;
|
|
1404
|
-
return f != null && f.items && (f.items = u(f.items)), { ..._(f) };
|
|
1405
|
-
});
|
|
1406
|
-
return { __sfc: !0, t, props: n, emit: e, limitedRowCellActionsProps: o, getButtonTitle: l, generateButtonEvents: r, generateMenuEvents: _, transformMenuEvents: u, getCopyText: (i) => {
|
|
1407
|
-
var a, f;
|
|
1408
|
-
return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : (f = (a = n.rowDataItem) == null ? void 0 : a[n.columnKey]) == null ? void 0 : f.toString();
|
|
1409
|
-
}, shouldShowMenuIconRight: (i) => i.iconRight || ((i == null ? void 0 : i.variant) === "more" || (i == null ? void 0 : i.variant) === "open") && !i.isShort, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: ot, BentoMenu: rt, Copy: An, Edit1Icon: ho, ExternalLinkIcon: Rn, OptionsVerticalIcon: Sn };
|
|
1410
|
-
}
|
|
1411
|
-
});
|
|
1412
|
-
var Eo = function() {
|
|
1413
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1414
|
-
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, e._l(t.limitedRowCellActionsProps, function(o, l) {
|
|
1415
|
-
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(t.BentoMenu, { attrs: { data: t.transformMenuEvents(o.menuData), button: {
|
|
1416
|
-
condensed: !0,
|
|
1417
|
-
variant: "secondary",
|
|
1418
|
-
disabled: o.disabled
|
|
1419
|
-
}, teleport: "" }, on: { "menu-item-click": function(r) {
|
|
1420
|
-
return t.emit("menu-item-click-close");
|
|
1421
|
-
} }, scopedSlots: e._u([t.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
|
|
1422
|
-
return [(o == null ? void 0 : o.variant) === "more" ? n(t.OptionsVerticalIcon, { attrs: { "svg-title": t.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": t.getButtonTitle(o, !0) } })];
|
|
1423
|
-
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1424
|
-
return [e._v(" " + e._s(t.getButtonTitle(o)) + " ")];
|
|
1425
|
-
}, proxy: !0 }, t.shouldShowMenuIconRight(o) ? { key: "iconRight", fn: function() {
|
|
1426
|
-
return [(o == null ? void 0 : o.variant) === "open" ? n(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1427
|
-
}, proxy: !0 } : null], null, !0) }) : o.variant === "copy" ? n(t.Copy, { attrs: { text: t.getCopyText(o), "button-text": t.getButtonTitle(o), button: {
|
|
1428
|
-
condensed: !0,
|
|
1429
|
-
variant: "secondary"
|
|
1430
|
-
} } }) : n(t.BentoButton, e._g({ attrs: { condensed: "", variant: "secondary", critical: o.critical, disabled: o.disabled, link: o.link }, scopedSlots: e._u([o.iconLeft || o.variant === "edit" ? { key: "iconLeft", fn: function() {
|
|
1431
|
-
return [(o == null ? void 0 : o.variant) === "edit" ? n(t.Edit1Icon, { attrs: { "svg-title": t.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1432
|
-
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1433
|
-
return [e._v(" " + e._s(t.getButtonTitle(o)) + " ")];
|
|
1434
|
-
}, proxy: !0 }, o.iconRight || o.variant === "open" ? { key: "iconRight", fn: function() {
|
|
1435
|
-
return [(o == null ? void 0 : o.variant) === "open" ? n(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1436
|
-
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(o)))], 1);
|
|
1437
|
-
}), 0)])]);
|
|
1438
|
-
}, bo = [], yo = /* @__PURE__ */ B(
|
|
1439
|
-
So,
|
|
1440
|
-
Eo,
|
|
1441
|
-
bo,
|
|
1442
|
-
!1,
|
|
1443
|
-
null,
|
|
1444
|
-
"a6bb216c"
|
|
1445
|
-
);
|
|
1446
|
-
const wo = yo.exports;
|
|
1447
|
-
var G = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s))(G || {});
|
|
1448
|
-
const Oo = {
|
|
1449
|
-
"en-US": {
|
|
1450
|
-
collapseNestedContent: "Collapse nested content",
|
|
1451
|
-
expandNestedContent: "Expand nested content",
|
|
1452
|
-
selectRow: "Select row"
|
|
1453
|
-
}
|
|
1454
|
-
}, Ro = {
|
|
1455
|
-
i18n: { messages: Oo },
|
|
1456
|
-
name: "data-grid-cell"
|
|
1457
|
-
}, Ao = /* @__PURE__ */ J({
|
|
1458
|
-
...Ro,
|
|
1459
|
-
props: {
|
|
1460
|
-
draggingEventsForRowCell: {
|
|
1461
|
-
type: Function,
|
|
1462
|
-
required: !0
|
|
1463
|
-
},
|
|
1464
|
-
/**
|
|
1465
|
-
* The columns sets including
|
|
1466
|
-
*/
|
|
1467
|
-
columnSets: {
|
|
1468
|
-
type: Array,
|
|
1469
|
-
required: !0
|
|
1470
|
-
},
|
|
1471
|
-
/**
|
|
1472
|
-
* The columns set we are iterating over
|
|
1473
|
-
*/
|
|
1474
|
-
column: {
|
|
1475
|
-
type: Object,
|
|
1476
|
-
required: !0
|
|
1477
|
-
},
|
|
1478
|
-
colIndex: {
|
|
1479
|
-
type: Number,
|
|
1480
|
-
required: !0
|
|
1481
|
-
},
|
|
1482
|
-
columnSetIndex: {
|
|
1483
|
-
type: Number,
|
|
1484
|
-
required: !0
|
|
1485
|
-
},
|
|
1486
|
-
/**
|
|
1487
|
-
* Sets the row cells to the condensed padding state.
|
|
1488
|
-
*/
|
|
1489
|
-
condensed: {
|
|
1490
|
-
type: Boolean,
|
|
1491
|
-
default: !1
|
|
1492
|
-
},
|
|
1493
|
-
/**
|
|
1494
|
-
* Columns being dragged, contains dragging column and a target column
|
|
1495
|
-
*/
|
|
1496
|
-
draggingColumns: {
|
|
1497
|
-
type: Object,
|
|
1498
|
-
default: void 0
|
|
1499
|
-
},
|
|
1500
|
-
/**
|
|
1501
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1502
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
1503
|
-
*/
|
|
1504
|
-
getDataItemId: {
|
|
1505
|
-
type: Function,
|
|
1506
|
-
default: (s) => s.id
|
|
1507
|
-
},
|
|
1508
|
-
/**
|
|
1509
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1510
|
-
*/
|
|
1511
|
-
hoveredOverColumnState: {
|
|
1512
|
-
type: Object,
|
|
1513
|
-
required: !0
|
|
1514
|
-
},
|
|
1515
|
-
/**
|
|
1516
|
-
* A customisable method to determine if a row is not selectable.
|
|
1517
|
-
* The default is that every row is selectable.
|
|
1518
|
-
*/
|
|
1519
|
-
isDataItemDisabled: {
|
|
1520
|
-
type: Function,
|
|
1521
|
-
default: () => !1
|
|
1522
|
-
},
|
|
1523
|
-
isMeasuringColumnWidths: {
|
|
1524
|
-
type: Boolean,
|
|
1525
|
-
default: !1
|
|
1526
|
-
},
|
|
1527
|
-
/**
|
|
1528
|
-
* Determines if the nested content is visible.
|
|
1529
|
-
*/
|
|
1530
|
-
isNestedContentExpanded: {
|
|
1531
|
-
type: Boolean,
|
|
1532
|
-
default: !1
|
|
1533
|
-
},
|
|
1534
|
-
/**
|
|
1535
|
-
* Determines if the nest content slot is enabled for this data row.
|
|
1536
|
-
*/
|
|
1537
|
-
nestedContent: {
|
|
1538
|
-
type: Boolean,
|
|
1539
|
-
default: !1
|
|
1540
|
-
},
|
|
1541
|
-
/**
|
|
1542
|
-
* The IDs of the rows this cell controls to show / hide them.
|
|
1543
|
-
*/
|
|
1544
|
-
nestedRowsElementIds: {
|
|
1545
|
-
type: Array,
|
|
1546
|
-
default: () => []
|
|
1547
|
-
},
|
|
1548
|
-
/**
|
|
1549
|
-
* The row data object
|
|
1550
|
-
*/
|
|
1551
|
-
rowData: {
|
|
1552
|
-
type: Object,
|
|
1553
|
-
required: !0
|
|
1554
|
-
},
|
|
1555
|
-
rowIndex: {
|
|
1556
|
-
type: Number,
|
|
1557
|
-
required: !0
|
|
1558
|
-
},
|
|
1559
|
-
/**
|
|
1560
|
-
* Determines if the row selection is enabled.
|
|
1561
|
-
*/
|
|
1562
|
-
selectable: {
|
|
1563
|
-
type: Boolean,
|
|
1564
|
-
default: !1
|
|
1565
|
-
},
|
|
1566
|
-
selectedItems: {
|
|
1567
|
-
type: Array,
|
|
1568
|
-
required: !0
|
|
1569
|
-
}
|
|
1570
|
-
},
|
|
1571
|
-
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1572
|
-
setup(s, { expose: e, emit: n }) {
|
|
1573
|
-
const t = s, o = we(), l = dt(o), { t: r } = oe(), _ = E(null), u = E(null), m = E(!1), v = E([]), c = L(() => {
|
|
1574
|
-
var g;
|
|
1575
|
-
return !!((g = t.rowData) != null && g[t.column.field]);
|
|
1576
|
-
}), i = L(
|
|
1577
|
-
() => t.column.field === V ? t.nestedRowsElementIds.join(" ") : ""
|
|
1578
|
-
), a = L(
|
|
1579
|
-
() => t.column.field === V && !t.selectable && !t.nestedContent
|
|
1580
|
-
), f = (g, F) => (g == null ? void 0 : g.overflow) === Se.ELLIPSIS ? `${F}` : void 0, S = (g) => g ?? "-", C = (g) => t.columnSets.slice(0, g).reduce((F, { columnSet: I }) => F + I.length, 0), b = (g, F) => g + C(F), y = (g, F, I) => C() * g + b(F, I), A = (g) => {
|
|
1581
|
-
var F;
|
|
1582
|
-
(g === null || !_.value.contains(g) && !((F = v.value) != null && F.map((I) => I.value).some((I) => I === g || (I == null ? void 0 : I.contains(g))))) && (m.value = !1);
|
|
1583
|
-
}, P = () => {
|
|
1584
|
-
m.value = !1;
|
|
1585
|
-
}, T = (g) => {
|
|
1586
|
-
const I = { ...{
|
|
1587
|
-
...t.draggingEventsForRowCell(g)
|
|
1588
|
-
} };
|
|
1589
|
-
return g.frozen && (I.keyup = (N) => n("on-frozen-columns-key-press", N), I.keydown = (N) => n("on-frozen-columns-key-press", N)), g.cellActions && (I.mouseenter = () => {
|
|
1590
|
-
m.value = !0;
|
|
1591
|
-
}, I.mouseleave = (N) => {
|
|
1592
|
-
m.value = !1, A(N == null ? void 0 : N.relatedTarget);
|
|
1593
|
-
}, I.mouseleave = (N) => {
|
|
1594
|
-
A(N == null ? void 0 : N.relatedTarget);
|
|
1595
|
-
}, I.focus = (N) => {
|
|
1596
|
-
m.value = !0;
|
|
1597
|
-
}, I.focusout = (N) => {
|
|
1598
|
-
A(N == null ? void 0 : N.relatedTarget);
|
|
1599
|
-
}), I;
|
|
1600
|
-
}, p = () => {
|
|
1601
|
-
n("nested-content-toggled");
|
|
1602
|
-
};
|
|
1603
|
-
Z(
|
|
1604
|
-
() => m.value,
|
|
1605
|
-
() => {
|
|
1606
|
-
m.value === !0 ? n("cell-hovered", t.rowIndex) : n("cell-hovered", -1);
|
|
1607
|
-
}
|
|
1608
|
-
);
|
|
1609
|
-
const h = (g) => {
|
|
1610
|
-
v.value.push(g);
|
|
1611
|
-
}, R = (g) => {
|
|
1612
|
-
_.value.contains(g == null ? void 0 : g.relatedTarget) || (m.value = !1);
|
|
1613
|
-
};
|
|
1614
|
-
nn(En, {
|
|
1615
|
-
registerMenuContainerElement: h,
|
|
1616
|
-
menuMouseLeave: R
|
|
1617
|
-
});
|
|
1618
|
-
const x = (g) => {
|
|
1619
|
-
var F, I, N, U, M, D, j;
|
|
1620
|
-
return {
|
|
1621
|
-
[`b-data-grid-cell--${G.COLUMN_HOVERED}`]: (g == null ? void 0 : g.field) === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1622
|
-
[`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (g == null ? void 0 : g.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1623
|
-
[`b-data-grid-cell--${G.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (g == null ? void 0 : g.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1624
|
-
[`b-data-grid-cell--${G.PADDING_LEFT_UNSET}`]: ((F = g == null ? void 0 : g.padding) == null ? void 0 : F.left) === !1,
|
|
1625
|
-
[`b-data-grid-cell--${G.PADDING_RIGHT_UNSET}`]: ((I = g == null ? void 0 : g.padding) == null ? void 0 : I.right) === !1,
|
|
1626
|
-
[`b-data-grid-cell--${G.NUMERIC}`]: g == null ? void 0 : g.numeric,
|
|
1627
|
-
[`b-data-grid-cell--${G.CONDENSED}`]: t.condensed,
|
|
1628
|
-
[`b-data-grid-cell--${G.OVERFLOW_ELLIPSIS}`]: (g == null ? void 0 : g.overflow) === Se.ELLIPSIS,
|
|
1629
|
-
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING}`]: ((N = t.draggingColumns.dragging) == null ? void 0 : N.field) === g.field,
|
|
1630
|
-
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((U = t.draggingColumns.target) == null ? void 0 : U.field) === g.field && ((M = t.draggingColumns) == null ? void 0 : M.dragToLeft),
|
|
1631
|
-
[`b-data-grid-cell--${G.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((D = t.draggingColumns.target) == null ? void 0 : D.field) === g.field && !((j = t.draggingColumns) != null && j.dragToLeft),
|
|
1632
|
-
[`b-data-grid-cell--${G.FROZEN}`]: g == null ? void 0 : g.frozen,
|
|
1633
|
-
[`b-data-grid-cell--${G.NESTED_CONTENT_ENABLED}`]: t.nestedContent,
|
|
1634
|
-
[`b-data-grid-cell--${G.ACTION_COL_NESTED_CONTENT_ENABLED}`]: t.nestedContent && !t.selectable && g.field === V,
|
|
1635
|
-
[`b-data-grid-cell--${G.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: t.nestedContent && t.selectable && g.field === V,
|
|
1636
|
-
[`b-data-grid-cell--${G.ACTION_COL_SELECTION_ENABLED}`]: g.field === V && t.selectable
|
|
1637
|
-
};
|
|
1638
|
-
};
|
|
1639
|
-
return e({
|
|
1640
|
-
gridcellRef: _
|
|
1641
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: r, props: t, emit: n, gridcellRef: _, cellActionsRef: u, shouldShowCellActions: m, childrenMenuContainerElements: v, hasRowData: c, controlledNestedRowElementIds: i, ariaHidden: a, conditionalTitleAttribute: f, getRowData: S, sumColumnAmountsInColumnSets: C, getColIndex: b, getCellIndex: y, isLeavingCellFocus: A, onMenuClose: P, getGridcellEvents: T, toggleNestedContent: p, registerMenuContainerElement: h, menuMouseLeave: R, conditionalRowCellClasses: x, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: V, BentoCheckbox: it, BentoTypography: me, BentoToggleButton: Re, DataGridCellActions: wo, ChevronDownIcon: In, ChevronUpIcon: Tn };
|
|
1642
|
-
}
|
|
1643
|
-
});
|
|
1644
|
-
var Io = function() {
|
|
1645
|
-
var o;
|
|
1646
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1647
|
-
return n("div", e._g({ key: `cell-${e.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: t.conditionalRowCellClasses(e.column), style: {
|
|
1648
|
-
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
1649
|
-
}, attrs: { "aria-hidden": t.ariaHidden, "data-testid": `cell-${e.column.field}`, "data-cellindex": t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex), role: "gridcell", tabindex: t.getCellIndex(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(e.colIndex, e.columnSetIndex) + 1 } }, t.getGridcellEvents(e.column)), [e.column.field === t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [e.selectable ? [n(t.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": t.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(e.rowData), value: e.getDataItemId(e.rowData) }, on: { "update:model-value": function(l) {
|
|
1650
|
-
return e.$emit("select-row", l);
|
|
1651
|
-
} } })] : e._e(), e.nestedContent ? [n(t.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": t.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: e.isNestedContentExpanded }, on: { click: t.toggleNestedContent }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1652
|
-
return [e.isNestedContentExpanded ? n(t.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": t.t("collapseNestedContent") } }) : n(t.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": t.t("expandNestedContent") } })];
|
|
1653
|
-
}, proxy: !0 }], null, !1, 1879847906) })] : e._e()] : [n(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${e.column.field}`, function() {
|
|
1654
|
-
return [n("span", { attrs: { title: t.conditionalTitleAttribute(e.column, e.rowData[e.column.field]) } }, [e._v(e._s(t.getRowData(e.rowData[e.column.field])))])];
|
|
1655
|
-
}, { item: e.rowData })], 2), ((o = e.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions && (t.hasRowData || t.hasSlot(`item-${e.column.field}`)) ? n(t.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData }, on: { "menu-item-click-close": t.onMenuClose } }) : e._e()], 1) : e._e()]], 2);
|
|
1656
|
-
}, To = [], No = /* @__PURE__ */ B(
|
|
1657
|
-
Ao,
|
|
1658
|
-
Io,
|
|
1659
|
-
To,
|
|
1660
|
-
!1,
|
|
1661
|
-
null,
|
|
1662
|
-
"50c6b8ee"
|
|
1663
|
-
);
|
|
1664
|
-
const Do = No.exports, xo = {
|
|
1665
|
-
name: "data-grid-row"
|
|
1666
|
-
}, Fo = /* @__PURE__ */ J({
|
|
1667
|
-
...xo,
|
|
1668
|
-
props: {
|
|
1669
|
-
/**
|
|
1670
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
1671
|
-
*/
|
|
1672
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
1673
|
-
/**
|
|
1674
|
-
* The columns sets including
|
|
1675
|
-
*/
|
|
1676
|
-
columnSets: {
|
|
1677
|
-
type: Array,
|
|
1678
|
-
required: !0
|
|
1679
|
-
},
|
|
1680
|
-
/**
|
|
1681
|
-
* Sets the row cells to the condensed padding state.
|
|
1682
|
-
*/
|
|
1683
|
-
condensed: {
|
|
1684
|
-
type: Boolean,
|
|
1685
|
-
default: !1
|
|
1686
|
-
},
|
|
1687
|
-
/**
|
|
1688
|
-
* Columns being dragged, contains dragging column and a target column
|
|
1689
|
-
*/
|
|
1690
|
-
draggingColumns: {
|
|
1691
|
-
type: Object,
|
|
1692
|
-
default: void 0
|
|
1693
|
-
},
|
|
1694
|
-
/**
|
|
1695
|
-
* Dragging event handlers for each row cell
|
|
1696
|
-
*/
|
|
1697
|
-
draggingEventsForRowCell: {
|
|
1698
|
-
type: Function,
|
|
1699
|
-
required: !0
|
|
1700
|
-
},
|
|
1701
|
-
/**
|
|
1702
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1703
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
1704
|
-
*/
|
|
1705
|
-
getDataItemId: {
|
|
1706
|
-
type: Function,
|
|
1707
|
-
default: (s) => s.id
|
|
1708
|
-
},
|
|
1709
|
-
/**
|
|
1710
|
-
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
1711
|
-
*/
|
|
1712
|
-
hasLeftOverflow: {
|
|
1713
|
-
type: Boolean,
|
|
1714
|
-
default: !1
|
|
1715
|
-
},
|
|
1716
|
-
/**
|
|
1717
|
-
* Enables the nested content slot functionality.
|
|
1718
|
-
*/
|
|
1719
|
-
hasNestedContent: {
|
|
1720
|
-
type: Boolean,
|
|
1721
|
-
default: !1
|
|
1722
|
-
},
|
|
1723
|
-
/**
|
|
1724
|
-
* Highlighted row IDs.
|
|
1725
|
-
*/
|
|
1726
|
-
highlightedRows: {
|
|
1727
|
-
type: Array,
|
|
1728
|
-
default: () => []
|
|
1729
|
-
},
|
|
1730
|
-
/**
|
|
1731
|
-
* The row index of a currently hovered row.
|
|
1732
|
-
*/
|
|
1733
|
-
hoveredRowIndex: {
|
|
1734
|
-
type: Number,
|
|
1735
|
-
default: -1
|
|
1736
|
-
},
|
|
1737
|
-
/**
|
|
1738
|
-
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1739
|
-
*/
|
|
1740
|
-
hoveredOverColumnState: {
|
|
1741
|
-
type: Object,
|
|
1742
|
-
required: !0
|
|
1743
|
-
},
|
|
1744
|
-
/**
|
|
1745
|
-
* A customisable method to determine if a row is not selectable.
|
|
1746
|
-
* The default is that every row is selectable.
|
|
1747
|
-
*/
|
|
1748
|
-
isDataItemDisabled: {
|
|
1749
|
-
type: Function,
|
|
1750
|
-
default: () => !1
|
|
1751
|
-
},
|
|
1752
|
-
/**
|
|
1753
|
-
* If the row is the last child in it's parent container.
|
|
1754
|
-
*/
|
|
1755
|
-
isRowLastChild: {
|
|
1756
|
-
type: Boolean,
|
|
1757
|
-
default: !1
|
|
1758
|
-
},
|
|
1759
|
-
/**
|
|
1760
|
-
* If columns are being measured for the autoWidth functionality.
|
|
1761
|
-
*/
|
|
1762
|
-
isMeasuringColumnWidths: {
|
|
1763
|
-
type: Boolean,
|
|
1764
|
-
default: !1
|
|
1765
|
-
},
|
|
1766
|
-
/**
|
|
1767
|
-
* The row data object
|
|
1768
|
-
*/
|
|
1769
|
-
rowData: {
|
|
1770
|
-
type: Object,
|
|
1771
|
-
required: !0
|
|
1772
|
-
},
|
|
1773
|
-
/**
|
|
1774
|
-
* The row index.
|
|
1775
|
-
*/
|
|
1776
|
-
rowIndex: {
|
|
1777
|
-
type: Number,
|
|
1778
|
-
required: !0
|
|
1779
|
-
},
|
|
1780
|
-
/**
|
|
1781
|
-
* The number of rows that this row is within.
|
|
1782
|
-
*/
|
|
1783
|
-
rowSetSize: {
|
|
1784
|
-
type: Number,
|
|
1785
|
-
default: 0
|
|
1786
|
-
},
|
|
1787
|
-
/**
|
|
1788
|
-
* Determines whether to render frozen seperator on the row.
|
|
1789
|
-
*/
|
|
1790
|
-
showFrozenColumnsSeparator: {
|
|
1791
|
-
type: Boolean,
|
|
1792
|
-
default: !1
|
|
1793
|
-
},
|
|
1794
|
-
/**
|
|
1795
|
-
* Determines if the row selection is enabled.
|
|
1796
|
-
*/
|
|
1797
|
-
selectable: {
|
|
1798
|
-
type: Boolean,
|
|
1799
|
-
default: !1
|
|
1800
|
-
},
|
|
1801
|
-
/**
|
|
1802
|
-
* The array of IDs for the selected rows.
|
|
1803
|
-
*/
|
|
1804
|
-
selectedItems: {
|
|
1805
|
-
type: Array,
|
|
1806
|
-
required: !0
|
|
1807
|
-
},
|
|
1808
|
-
/**
|
|
1809
|
-
* Enables / Disables the nested-content slot
|
|
1810
|
-
*/
|
|
1811
|
-
shouldShowNestedContent: {
|
|
1812
|
-
type: Function,
|
|
1813
|
-
default: (s) => !0
|
|
1814
|
-
}
|
|
1815
|
-
},
|
|
1816
|
-
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "row-click"],
|
|
1817
|
-
setup(s, { expose: e, emit: n }) {
|
|
1818
|
-
const t = s, o = we(), l = dt(o), r = E({}), _ = E(!1), u = E(), m = at("nested-content-slot"), v = L(() => {
|
|
1819
|
-
if (t.hasNestedContent) {
|
|
1820
|
-
const T = _.value.toString();
|
|
1821
|
-
return {
|
|
1822
|
-
"aria-expanded": t.shouldShowNestedContent(t.rowData) ? T : void 0,
|
|
1823
|
-
"aria-level": "1",
|
|
1824
|
-
"aria-posinset": t.rowIndex + 1,
|
|
1825
|
-
"aria-setsize": t.rowSetSize
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
return { "aria-rowindex": t.rowIndex + 1 };
|
|
1829
|
-
}), c = (T, p) => {
|
|
1830
|
-
const h = T;
|
|
1831
|
-
T !== null && (h != null && h.gridcellRef) && (r.value[p] = h.gridcellRef);
|
|
1832
|
-
}, i = (T) => {
|
|
1833
|
-
if (!t.selectable)
|
|
1834
|
-
return null;
|
|
1835
|
-
const p = t.getDataItemId(T);
|
|
1836
|
-
return t.selectedItems.includes(p).toString();
|
|
1837
|
-
}, a = (T) => {
|
|
1838
|
-
t.allowRowClicks && n("row-click", t.rowData, T);
|
|
1839
|
-
}, { updateContentHeight: f, contentHeight: S } = On(u, _), C = L(() => {
|
|
1840
|
-
if (t.hasNestedContent)
|
|
1841
|
-
return {
|
|
1842
|
-
paddingLeft: `${r.value[V].clientWidth + ct}px`,
|
|
1843
|
-
"max-height": t.hasNestedContent && S.value ? S.value : 0
|
|
1844
|
-
};
|
|
1845
|
-
});
|
|
1846
|
-
Z(
|
|
1847
|
-
() => u.value,
|
|
1848
|
-
() => {
|
|
1849
|
-
let T = null;
|
|
1850
|
-
!T && u.value && (T = Oe(u.value, () => {
|
|
1851
|
-
u.value && f();
|
|
1852
|
-
}));
|
|
1853
|
-
}
|
|
1854
|
-
);
|
|
1855
|
-
const b = () => {
|
|
1856
|
-
_.value = !_.value, f();
|
|
1857
|
-
}, y = (T, p) => ({
|
|
1858
|
-
"b-data-grid-row-container__row--disabled": t.isDataItemDisabled(T),
|
|
1859
|
-
"b-data-grid-row-container__row--row-clicks-enabled": t.allowRowClicks,
|
|
1860
|
-
"b-data-grid-row-container__row--highlighted": t.highlightedRows.includes(t.getDataItemId(T)) || t.selectedItems.includes(t.getDataItemId(T)),
|
|
1861
|
-
"b-data-grid-row-container__row--hovered": t.hoveredRowIndex === p,
|
|
1862
|
-
"b-data-grid-row-container__row--is-last-child": t.isRowLastChild && !_.value
|
|
1863
|
-
}), A = (T) => ({
|
|
1864
|
-
"b-data-grid-row-container__row-cell-set--frozen": T,
|
|
1865
|
-
[`b-data-grid-row-container__row-cell-set--${ne.OVERFLOW_SHADOW_LEFT}`]: T && t.hasLeftOverflow,
|
|
1866
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": T && t.showFrozenColumnsSeparator,
|
|
1867
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !T,
|
|
1868
|
-
"b-data-grid-row-container__row-cell-set--is-measuring": t.isMeasuringColumnWidths
|
|
1869
|
-
}), P = L(() => ({
|
|
1870
|
-
"b-data-grid-row-container__row-nested-slot--is-last-child": t.isRowLastChild
|
|
1871
|
-
}));
|
|
1872
|
-
return e({
|
|
1873
|
-
gridcellRefs: r
|
|
1874
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: t, emit: n, gridcellRefs: r, isNestedContentShown: _, nestedContentRef: u, nestedContentSlotId: m, ariaRowAttributes: v, registerRowCellRef: c, getRowAriaSelectedValue: i, onRowClick: a, updateContentHeight: f, contentHeight: S, nestedContentStyles: C, nestedContentToggled: b, conditionalRowClasses: y, conditionalRowSetClasses: A, conditionalNestedContentRowClasses: P, DataGridCell: Do };
|
|
1875
|
-
}
|
|
1876
|
-
});
|
|
1877
|
-
var Mo = function() {
|
|
1878
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1879
|
-
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", e._b({ key: e.rowIndex, staticClass: "b-data-grid-row-container__row", class: t.conditionalRowClasses(e.rowData, e.rowIndex), attrs: { role: "row", "aria-selected": t.getRowAriaSelectedValue(e.rowData) }, on: { click: t.onRowClick } }, "div", t.ariaRowAttributes, !1), [e._l(e.columnSets, function({ columnSet: o, id: l, isFrozenColumns: r }, _) {
|
|
1880
|
-
return [o != null && o.length ? n("div", { key: `data-grid-rows-${l}`, staticClass: "b-data-grid-row-container__cells", class: t.conditionalRowSetClasses(r), attrs: { "data-testid": `data-grid-${l}-rows` } }, e._l(o, function(u, m) {
|
|
1881
|
-
return n(t.DataGridCell, { key: `cell-${u.field}`, ref: (v) => t.registerRowCellRef(v, u.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: u, "column-set-index": _, "col-index": m, "column-sets": e.columnSets, condensed: e.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": e.getDataItemId, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": e.isDataItemDisabled, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-nested-content-expanded": t.isNestedContentShown, "nested-content": e.hasNestedContent && e.shouldShowNestedContent(e.rowData), "nested-rows-element-ids": [t.nestedContentSlotId], "row-data": e.rowData, "row-index": e.rowIndex, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": function(v) {
|
|
1882
|
-
return t.emit("cell-hovered", v);
|
|
1883
|
-
}, "on-frozen-columns-key-press": function(v) {
|
|
1884
|
-
return t.emit("on-frozen-columns-key-press", v);
|
|
1885
|
-
}, "select-row": function(v) {
|
|
1886
|
-
return t.emit("select-row", v);
|
|
1887
|
-
}, "nested-content-toggled": t.nestedContentToggled }, scopedSlots: e._u([e._l(t.slots, function(v, c) {
|
|
1888
|
-
return { key: c, fn: function(i) {
|
|
1889
|
-
return [e._t(c, null, null, i)];
|
|
1890
|
-
} };
|
|
1891
|
-
})], null, !0) });
|
|
1892
|
-
}), 1) : e._e()];
|
|
1893
|
-
})], 2), e.hasNestedContent && t.hasSlot("nested-slot") ? n("Transition", { key: `${e.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [t.isNestedContentShown ? n("div", { staticClass: "b-data-grid-row-container__row-nested-slot", class: t.conditionalNestedContentRowClasses, style: t.nestedContentStyles, attrs: { id: t.nestedContentSlotId, "aria-level": "2", "aria-posinset": "1", "aria-setsize": "1", role: "row", tabindex: "-1" } }, [n("div", { ref: "nestedContentRef" }, [e._t("nested-slot", null, { item: e.rowData })], 2)]) : e._e()]) : e._e()], 1);
|
|
1894
|
-
}, $o = [], Po = /* @__PURE__ */ B(
|
|
1895
|
-
Fo,
|
|
1896
|
-
Mo,
|
|
1897
|
-
$o,
|
|
1898
|
-
!1,
|
|
1899
|
-
null,
|
|
1900
|
-
"69cd59d7"
|
|
1901
|
-
);
|
|
1902
|
-
const zo = Po.exports;
|
|
1903
|
-
let Ke = 0;
|
|
1904
|
-
const Bo = {
|
|
1905
|
-
beforeCreate() {
|
|
1906
|
-
this.uuid = Ke.toString(), Ke += 1;
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
1909
|
-
var Uo = function() {
|
|
1910
|
-
var e = this, n = e._self._c;
|
|
1911
|
-
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-warning_circle_fill__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-warning_circle_fill__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1912
|
-
}, ko = [], Wo = /* @__PURE__ */ B(
|
|
1913
|
-
Bo,
|
|
1914
|
-
Uo,
|
|
1915
|
-
ko,
|
|
1916
|
-
!1,
|
|
1917
|
-
null,
|
|
1918
|
-
null
|
|
1919
|
-
);
|
|
1920
|
-
const Go = Wo.exports, Ho = {}, Vo = /* @__PURE__ */ J({
|
|
1921
|
-
...Ho,
|
|
1922
|
-
__name: "data-grid-static-icon",
|
|
1923
|
-
props: {
|
|
1924
|
-
colored: { type: Boolean, default: !1 },
|
|
1925
|
-
tooltipText: null,
|
|
1926
|
-
variant: { default: "no-value" }
|
|
1927
|
-
},
|
|
1928
|
-
setup(s) {
|
|
1929
|
-
const e = s, n = L(() => {
|
|
1930
|
-
switch (e.variant) {
|
|
1931
|
-
case "checkmark":
|
|
1932
|
-
return sn;
|
|
1933
|
-
case "warning":
|
|
1934
|
-
return on;
|
|
1935
|
-
case "error":
|
|
1936
|
-
return Go;
|
|
1937
|
-
case "cross":
|
|
1938
|
-
return tt;
|
|
1939
|
-
case "no-value":
|
|
1940
|
-
return $e;
|
|
1941
|
-
default:
|
|
1942
|
-
return $e;
|
|
1943
|
-
}
|
|
1944
|
-
}), t = L(() => ({
|
|
1945
|
-
"b-data-grid-static-icon--colored": e.colored && e.variant !== "no-value"
|
|
1946
|
-
})), o = L(() => `b-data-grid-static-icon__${e.variant}`), l = L(() => ln.AUTO);
|
|
1947
|
-
return { __sfc: !0, props: e, computedIcon: n, conditionalClasses: t, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: an };
|
|
1948
|
-
}
|
|
1949
|
-
});
|
|
1950
|
-
var Zo = function() {
|
|
1951
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1952
|
-
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: e.tooltipText, expression: "tooltipText", arg: t.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: t.conditionalClasses, attrs: { "aria-label": e.tooltipText, tabindex: "0" } }, [n(t.computedIcon, { tag: "component", class: t.computedIconClass, attrs: { "svg-title": e.tooltipText } })], 1);
|
|
1953
|
-
}, jo = [], qo = /* @__PURE__ */ B(
|
|
1954
|
-
Vo,
|
|
1955
|
-
Zo,
|
|
1956
|
-
jo,
|
|
1957
|
-
!1,
|
|
1958
|
-
null,
|
|
1959
|
-
"f8532817"
|
|
1960
|
-
);
|
|
1961
|
-
const kl = qo.exports, Yo = {
|
|
1962
|
-
i18n: { messages: ft },
|
|
1963
|
-
name: "bento-data-grid"
|
|
1964
|
-
}, Xo = /* @__PURE__ */ J({
|
|
1965
|
-
...Yo,
|
|
1966
|
-
props: {
|
|
1967
|
-
/**
|
|
1968
|
-
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
1969
|
-
*/
|
|
1970
|
-
allowRowClicks: { type: Boolean, default: !1 },
|
|
1971
|
-
/**
|
|
1972
|
-
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
1973
|
-
*/
|
|
1974
|
-
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
1975
|
-
/**
|
|
1976
|
-
* List of actions that will be rendered in the action bar when user selects items.
|
|
1977
|
-
*
|
|
1978
|
-
* Each object in the list should have a `title`, an `event` and,
|
|
1979
|
-
* optionally, an `icon`.
|
|
1980
|
-
*
|
|
1981
|
-
* The component will display 4 actions and the hide the rest inside a menu.
|
|
1982
|
-
*
|
|
1983
|
-
* @see BentoButton for a list of all the other props supported by each button action.
|
|
1984
|
-
*/
|
|
1985
|
-
bulkActions: {
|
|
1986
|
-
type: Array,
|
|
1987
|
-
default: null
|
|
1988
|
-
},
|
|
1989
|
-
/**
|
|
1990
|
-
* Sets the row cells to the condensed padding state.
|
|
1991
|
-
*/
|
|
1992
|
-
condensed: {
|
|
1993
|
-
type: Boolean,
|
|
1994
|
-
default: !1
|
|
1995
|
-
},
|
|
1996
|
-
/**
|
|
1997
|
-
* Column definitions using 'key' to relate to data object.
|
|
1998
|
-
*/
|
|
1999
|
-
columns: {
|
|
2000
|
-
type: Array,
|
|
2001
|
-
required: !0
|
|
2002
|
-
},
|
|
2003
|
-
/**
|
|
2004
|
-
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2005
|
-
*/
|
|
2006
|
-
columnPanel: { type: Boolean, default: !1 },
|
|
2007
|
-
/**
|
|
2008
|
-
* An array of data objects to display.
|
|
2009
|
-
*/
|
|
2010
|
-
data: {
|
|
2011
|
-
type: Array,
|
|
2012
|
-
required: !0
|
|
2013
|
-
},
|
|
2014
|
-
/**
|
|
2015
|
-
* Empty state props that will be passed down to inner empty-state component
|
|
2016
|
-
*/
|
|
2017
|
-
emptyState: {
|
|
2018
|
-
type: Object,
|
|
2019
|
-
default: void 0
|
|
2020
|
-
},
|
|
2021
|
-
/**
|
|
2022
|
-
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2023
|
-
* {@see BentoFilterBarModel}
|
|
2024
|
-
*/
|
|
2025
|
-
filters: {
|
|
2026
|
-
type: ve.props.value.type,
|
|
2027
|
-
default: void 0
|
|
2028
|
-
},
|
|
2029
|
-
/**
|
|
2030
|
-
* An array of the values for each filter set in `value`.
|
|
2031
|
-
* {@see BentoFilterValues}
|
|
2032
|
-
*/
|
|
2033
|
-
filterValues: {
|
|
2034
|
-
type: ve.props.filterValues.type,
|
|
2035
|
-
default: () => []
|
|
2036
|
-
},
|
|
2037
|
-
/**
|
|
2038
|
-
* Filter bar search term useful to filter all the data by text
|
|
2039
|
-
*/
|
|
2040
|
-
filterSearchTerm: {
|
|
2041
|
-
type: ve.props.searchTerm.type,
|
|
2042
|
-
default: void 0
|
|
2043
|
-
},
|
|
2044
|
-
/**
|
|
2045
|
-
* Allows the grid to be rendered inside a confined space.
|
|
2046
|
-
*/
|
|
2047
|
-
fitContent: { type: Boolean, default: !1 },
|
|
2048
|
-
/**
|
|
2049
|
-
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2050
|
-
* This is used selecting and performance reasons and must exist in each data item.
|
|
2051
|
-
*/
|
|
2052
|
-
getDataItemId: {
|
|
2053
|
-
type: Function,
|
|
2054
|
-
default: (s) => s.id
|
|
2055
|
-
},
|
|
2056
|
-
/**
|
|
2057
|
-
* If resize is enabled
|
|
2058
|
-
*/
|
|
2059
|
-
hasResizableColumns: {
|
|
2060
|
-
type: Boolean,
|
|
2061
|
-
default: !0
|
|
2062
|
-
},
|
|
2063
|
-
/**
|
|
2064
|
-
* Enables the nested content slot functionality.
|
|
2065
|
-
*/
|
|
2066
|
-
hasNestedContent: {
|
|
2067
|
-
type: Boolean,
|
|
2068
|
-
default: !1
|
|
2069
|
-
},
|
|
2070
|
-
/**
|
|
2071
|
-
* Highlighted items
|
|
2072
|
-
*/
|
|
2073
|
-
highlightedRows: {
|
|
2074
|
-
type: Array,
|
|
2075
|
-
default: () => []
|
|
2076
|
-
},
|
|
2077
|
-
/**
|
|
2078
|
-
* A customisable method to determine if a row is not selectable.
|
|
2079
|
-
* The default is that every row is selectable.
|
|
2080
|
-
*/
|
|
2081
|
-
isDataItemDisabled: {
|
|
2082
|
-
type: Function,
|
|
2083
|
-
default: () => !1
|
|
2084
|
-
},
|
|
2085
|
-
/**
|
|
2086
|
-
* The type of `Lazy Load`.
|
|
2087
|
-
* Type "automatic" will enable infinite scrolling
|
|
2088
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
2089
|
-
* @values automatic, button, none
|
|
2090
|
-
*/
|
|
2091
|
-
lazyLoadType: {
|
|
2092
|
-
type: String,
|
|
2093
|
-
default: "none",
|
|
2094
|
-
validator: (s) => ["automatic", "button", "none"].includes(s)
|
|
2095
|
-
},
|
|
2096
|
-
/**
|
|
2097
|
-
* If the loading indicator should be shown.
|
|
2098
|
-
*/
|
|
2099
|
-
loading: {
|
|
2100
|
-
type: Boolean,
|
|
2101
|
-
default: !1
|
|
2102
|
-
},
|
|
2103
|
-
/**
|
|
2104
|
-
* Enables / Disables the table's surrounding border.
|
|
2105
|
-
*/
|
|
2106
|
-
outline: {
|
|
2107
|
-
type: Boolean,
|
|
2108
|
-
default: !1
|
|
2109
|
-
},
|
|
2110
|
-
/**
|
|
2111
|
-
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2112
|
-
*/
|
|
2113
|
-
noSpacingTop: {
|
|
2114
|
-
type: Boolean,
|
|
2115
|
-
default: !1
|
|
2116
|
-
},
|
|
2117
|
-
/**
|
|
2118
|
-
* Pagination props that will be passed down to inner pagination component
|
|
2119
|
-
*/
|
|
2120
|
-
pagination: {
|
|
2121
|
-
type: Object,
|
|
2122
|
-
default: void 0
|
|
2123
|
-
},
|
|
2124
|
-
/**
|
|
2125
|
-
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
2126
|
-
*/
|
|
2127
|
-
selectableAcrossPages: {
|
|
2128
|
-
type: Boolean,
|
|
2129
|
-
default: !1
|
|
2130
|
-
},
|
|
2131
|
-
/**
|
|
2132
|
-
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2133
|
-
*/
|
|
2134
|
-
stickyHorizontalScrollbar: {
|
|
2135
|
-
type: Boolean,
|
|
2136
|
-
default: !1
|
|
2137
|
-
},
|
|
2138
|
-
/**
|
|
2139
|
-
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
2140
|
-
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
2141
|
-
*/
|
|
2142
|
-
stickyPagination: {
|
|
2143
|
-
type: Boolean,
|
|
2144
|
-
default: !1
|
|
2145
|
-
},
|
|
2146
|
-
/**
|
|
2147
|
-
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
2148
|
-
* Defaults to true.
|
|
2149
|
-
*/
|
|
2150
|
-
stickyFilters: {
|
|
2151
|
-
type: Boolean,
|
|
2152
|
-
default: !0
|
|
2153
|
-
},
|
|
2154
|
-
/**
|
|
2155
|
-
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
2156
|
-
*/
|
|
2157
|
-
selectable: {
|
|
2158
|
-
type: Boolean,
|
|
2159
|
-
default: !1
|
|
2160
|
-
},
|
|
2161
|
-
/**
|
|
2162
|
-
* Selected items
|
|
2163
|
-
*/
|
|
2164
|
-
selection: {
|
|
2165
|
-
type: Array,
|
|
2166
|
-
default: () => []
|
|
2167
|
-
},
|
|
2168
|
-
/**
|
|
2169
|
-
* Enables / Disables the nested-content slot
|
|
2170
|
-
*/
|
|
2171
|
-
shouldShowNestedContent: {
|
|
2172
|
-
type: Function,
|
|
2173
|
-
default: (s) => !0
|
|
2174
|
-
},
|
|
2175
|
-
/**
|
|
2176
|
-
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
2177
|
-
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
2178
|
-
*/
|
|
2179
|
-
sortBy: {
|
|
2180
|
-
type: Array,
|
|
2181
|
-
// NOTE: is an array to allow multi-sorting in the future
|
|
2182
|
-
default: () => []
|
|
2183
|
-
},
|
|
2184
|
-
/**
|
|
2185
|
-
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
2186
|
-
*/
|
|
2187
|
-
tabTitle: {
|
|
2188
|
-
type: String,
|
|
2189
|
-
default: null
|
|
2190
|
-
},
|
|
2191
|
-
/**
|
|
2192
|
-
* Truncates all data grid column headers
|
|
2193
|
-
*/
|
|
2194
|
-
truncateColumnHeaders: {
|
|
2195
|
-
type: Boolean,
|
|
2196
|
-
default: !1
|
|
2197
|
-
}
|
|
2198
|
-
},
|
|
2199
|
-
emits: [
|
|
2200
|
-
w.COLUMNS,
|
|
2201
|
-
w.COLUMN_RESIZE,
|
|
2202
|
-
w.ITEMS_PAGE,
|
|
2203
|
-
w.FILTER_SEARCH_INPUT,
|
|
2204
|
-
w.FILTER_SEARCH_CLEAR,
|
|
2205
|
-
w.NAVIGATE,
|
|
2206
|
-
w.UPDATE_COLUMNS,
|
|
2207
|
-
w.UPDATE_CONDENSED,
|
|
2208
|
-
w.UPDATE_FILTER_VALUES,
|
|
2209
|
-
w.UPDATE_FILTERS,
|
|
2210
|
-
w.UPDATE_FILTER_SEARCH_TERM,
|
|
2211
|
-
w.UPDATE_SHOW_MORE,
|
|
2212
|
-
w.UPDATE_PAGINATION,
|
|
2213
|
-
w.UPDATE_SELECTION,
|
|
2214
|
-
w.UPDATE_SORT_BY,
|
|
2215
|
-
w.ROW_CLICK,
|
|
2216
|
-
w.SELECT,
|
|
2217
|
-
w.SELECT_ALL_ACROSS_PAGES,
|
|
2218
|
-
w.SORT
|
|
2219
|
-
],
|
|
2220
|
-
setup(s, { expose: e, emit: n }) {
|
|
2221
|
-
const t = s, o = we(), l = E(null), r = E(), _ = E({}), u = E(null), m = E(null), v = E(), c = E(null), i = E(null), {
|
|
2222
|
-
allowColumnDragAndDrop: a,
|
|
2223
|
-
columns: f,
|
|
2224
|
-
columnPanel: S,
|
|
2225
|
-
data: C,
|
|
2226
|
-
lazyLoadType: b,
|
|
2227
|
-
loading: y,
|
|
2228
|
-
hasNestedContent: A,
|
|
2229
|
-
selectable: P,
|
|
2230
|
-
selection: T,
|
|
2231
|
-
selectableAcrossPages: p,
|
|
2232
|
-
stickyPagination: h,
|
|
2233
|
-
outline: R,
|
|
2234
|
-
pagination: x
|
|
2235
|
-
} = be(t), g = E(-1), { t: F } = oe(), I = L(() => re.value.filter((O) => O.frozen).length), N = Me(
|
|
2236
|
-
_n,
|
|
2237
|
-
() => ({
|
|
2238
|
-
isDataGridTemplate: !1,
|
|
2239
|
-
stickyTabs: E(!1),
|
|
2240
|
-
tabsRef: E(null)
|
|
2241
|
-
})
|
|
2242
|
-
), { isDataGridTemplate: U, stickyTabs: M, tabsRef: D } = N(), j = L(() => t.fitContent || U ? 0 : null), {
|
|
2243
|
-
columnDefs: re,
|
|
2244
|
-
onColumnWidthOverride: he,
|
|
2245
|
-
gridColumnWidthStyle: d,
|
|
2246
|
-
isMeasuringColumnWidths: $,
|
|
2247
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: X,
|
|
2248
|
-
columns: K,
|
|
2249
|
-
totalWidthOfAllColumns: le
|
|
2250
|
-
} = Wn(f, C, l, _, u, {
|
|
2251
|
-
hasColumnPanel: S,
|
|
2252
|
-
hasSelectableColumn: P,
|
|
2253
|
-
hasSelectableAcrossPages: p,
|
|
2254
|
-
hasNestedContent: A,
|
|
2255
|
-
allowColumnDragAndDrop: a,
|
|
2256
|
-
isDataGridTemplate: U
|
|
2257
|
-
}), W = (O, ...z) => {
|
|
2258
|
-
(O === w.COLUMNS || O === w.UPDATE_COLUMNS) && ([K.value] = z), n(O, ...z);
|
|
2259
|
-
}, ae = ke(D, M), fe = L(
|
|
2260
|
-
() => t.stickyFilters ? `${ae.value}px` : null
|
|
2261
|
-
), de = ke(m, et(t, "stickyFilters")), ge = L(
|
|
2262
|
-
() => `${de.value + ae.value}px`
|
|
2263
|
-
), {
|
|
2264
|
-
sortedColumns: ce,
|
|
2265
|
-
columnSets: ie,
|
|
2266
|
-
isOnlyOneVisibleColumn: gt,
|
|
2267
|
-
onConfigSettingsUpdate: _t,
|
|
2268
|
-
onConfigSettingsColumnsUpdate: vt,
|
|
2269
|
-
onConfigSettingsColumnUpdate: Ct
|
|
2270
|
-
} = Yn(re, W), { hoveredOverColumn: mt, hoveredOverColumnState: ht } = Jn(
|
|
2271
|
-
ie,
|
|
2272
|
-
P,
|
|
2273
|
-
R,
|
|
2274
|
-
X
|
|
2275
|
-
), { draggingColumns: pt, draggingEventsForColumns: Lt, draggingEventsForRowCell: St, onMoveColumnByOffset: Et } = qn(ce, a, W), { onAllRowSelect: bt, onRowSelect: yt, selectedItems: Ae, allItemsSelectedState: wt } = Gn(
|
|
2276
|
-
T,
|
|
2277
|
-
W,
|
|
2278
|
-
C,
|
|
2279
|
-
t.getDataItemId,
|
|
2280
|
-
t.isDataItemDisabled
|
|
2281
|
-
), { navigationInput: Ot } = Vn(u, f, P), { isLazyLoad: pe, isInfiniteScroll: Rt, verticalScrollPosition: Ie, emitLazyLoadEvent: At } = jn(
|
|
2282
|
-
b,
|
|
2283
|
-
c,
|
|
2284
|
-
l,
|
|
2285
|
-
y,
|
|
2286
|
-
W
|
|
2287
|
-
), {
|
|
2288
|
-
updateScrollPosition: It,
|
|
2289
|
-
updateScrollPositionOnFrozenColumnsNavigation: Tt,
|
|
2290
|
-
syncVirtualScrollerWithBody: Nt,
|
|
2291
|
-
hasLeftOverflow: Le,
|
|
2292
|
-
hasRightOverflow: Te,
|
|
2293
|
-
horizontalScrollbarConditionalClasses: Dt
|
|
2294
|
-
} = Xn(l, r, Ie, i, {
|
|
2295
|
-
isLazyLoad: pe,
|
|
2296
|
-
pagination: x,
|
|
2297
|
-
stickyPagination: h
|
|
2298
|
-
}), Ne = () => {
|
|
2299
|
-
v.value.isClearAllVisible ? v.value.clearAllFilters() : v.value.isResetAllVisible && v.value.resetAllFilters();
|
|
2300
|
-
}, xt = L(() => {
|
|
2301
|
-
var O, z;
|
|
2302
|
-
return {
|
|
2303
|
-
...t.emptyState,
|
|
2304
|
-
variant: ((O = t.emptyState) == null ? void 0 : O.variant) === "embedded" || ((z = t.emptyState) == null ? void 0 : z.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
2305
|
-
};
|
|
2306
|
-
}), Ft = L(() => ({
|
|
2307
|
-
[`b-data-grid--${ne.OUTLINE}`]: t.outline,
|
|
2308
|
-
[`b-data-grid--${ne.SCROLL}`]: t.fitContent || pe.value,
|
|
2309
|
-
[`b-data-grid--${ne.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
2310
|
-
[`b-data-grid--${ne.OVERFLOW_SHADOW_LEFT}`]: Le.value && !I.value,
|
|
2311
|
-
[`b-data-grid--${ne.OVERFLOW_SHADOW_RIGHT}`]: Te.value,
|
|
2312
|
-
[`b-data-grid--${ne.NO_SPACING_TOP}`]: t.noSpacingTop
|
|
2313
|
-
})), Mt = L(() => ({
|
|
2314
|
-
"b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
|
|
2315
|
-
})), $t = L(() => ie.value.findIndex((O) => O.columnSet.length)), Pt = L(() => !((t.selectable || t.hasNestedContent) && I.value === 1) || Le.value), zt = L(() => ({
|
|
2316
|
-
"b-data-grid__filters--sticky": !!t.stickyFilters || U
|
|
2317
|
-
})), Bt = L(() => {
|
|
2318
|
-
var O, z, q, Q, _e, ue;
|
|
2319
|
-
return {
|
|
2320
|
-
"b-data-grid__pagination--padding-left-unset": ((q = (z = (O = t.columns) == null ? void 0 : O[0]) == null ? void 0 : z.padding) == null ? void 0 : q.left) === !1,
|
|
2321
|
-
"b-data-grid__pagination--padding-right-unset": ((ue = (_e = (Q = t.columns) == null ? void 0 : Q[t.columns.length - 1]) == null ? void 0 : _e.padding) == null ? void 0 : ue.right) === !1,
|
|
2322
|
-
"b-data-grid__pagination--sticky": !!t.stickyPagination || U
|
|
2323
|
-
};
|
|
2324
|
-
}), Ut = (O) => {
|
|
2325
|
-
const z = O;
|
|
2326
|
-
O !== null && (z != null && z.columnHeaderRefs) && Object.entries(z == null ? void 0 : z.columnHeaderRefs).forEach(([q, Q]) => {
|
|
2327
|
-
_.value[q] = Q;
|
|
2328
|
-
});
|
|
2329
|
-
}, kt = (O, z) => {
|
|
2330
|
-
const q = O;
|
|
2331
|
-
O !== null && (q != null && q.gridcellRefs) && Object.entries(q == null ? void 0 : q.gridcellRefs).map(([Q, _e]) => {
|
|
2332
|
-
var ue;
|
|
2333
|
-
((ue = u.value) == null ? void 0 : ue[Q]) === void 0 && (u.value = { ...u.value, [Q]: [] }), u.value[Q][z] = _e;
|
|
2334
|
-
});
|
|
2335
|
-
}, Wt = (O, z) => {
|
|
2336
|
-
t.allowRowClicks && W(w.ROW_CLICK, O, z);
|
|
2337
|
-
}, Gt = (O) => {
|
|
2338
|
-
g.value = O;
|
|
2339
|
-
}, Ht = L(() => !!t.selectableAcrossPages && !!t.pagination), Vt = L(() => t.hasNestedContent ? "treegrid" : "grid"), Zt = cn({
|
|
2340
|
-
label: o != null && o.header ? un(o)("header") : null,
|
|
2341
|
-
defaultFallback: "data grid"
|
|
2342
|
-
}), De = L(() => {
|
|
2343
|
-
var O;
|
|
2344
|
-
return ((O = Ae.value) == null ? void 0 : O.length) ?? 0;
|
|
2345
|
-
}), jt = L(() => t.bulkActions && De.value > 0), qt = (O) => W(w.COLUMN_RESIZE, O), Yt = (O) => {
|
|
2346
|
-
W(w.UPDATE_SORT_BY, O), W(w.SORT, O);
|
|
2347
|
-
}, Xt = (O, z) => {
|
|
2348
|
-
W(w.NAVIGATE, O), W(w.UPDATE_PAGINATION, {
|
|
2349
|
-
...t.pagination,
|
|
2350
|
-
size: z,
|
|
2351
|
-
page: O
|
|
2352
|
-
});
|
|
2353
|
-
}, Jt = (O) => {
|
|
2354
|
-
W(w.ITEMS_PAGE, O);
|
|
2355
|
-
}, Kt = () => {
|
|
2356
|
-
W(w.FILTER_SEARCH_CLEAR);
|
|
2357
|
-
}, Qt = (O) => {
|
|
2358
|
-
W(w.UPDATE_FILTER_SEARCH_TERM, O), W(w.FILTER_SEARCH_INPUT, O);
|
|
2359
|
-
}, xe = L(() => f.value.some((O) => O.mandatory));
|
|
2360
|
-
xe.value || st(
|
|
2361
|
-
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2362
|
-
);
|
|
2363
|
-
const Fe = Me(gn, () => null);
|
|
2364
|
-
return Fe(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Ne }), { __sfc: !0, props: t, slots: o, body: l, columnsRef: r, columnHeaderRefs: _, gridcellRefs: u, filtersRef: m, filterBarRef: v, verticalScrollPositionRef: c, virtualHorizontalScrollbarRef: i, allowColumnDragAndDrop: a, columns: f, columnPanel: S, data: C, lazyLoadType: b, loading: y, hasNestedContent: A, selectable: P, selection: T, selectableAcrossPages: p, stickyPagination: h, outline: R, pagination: x, hoveredRowIndex: g, t: F, frozenColumnsLength: I, registerDatagridInDataGridTemplate: N, isDataGridTemplate: U, stickyTabs: M, tabsRef: D, computedColumnsTabIndex: j, columnDefs: re, onColumnWidthOverride: he, gridColumnWidthStyle: d, isMeasuringColumnWidths: $, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: X, localColumnsState: K, totalWidthOfAllColumns: le, definedEmitsFunction: n, emit: W, stickyFiltersHeight: ae, computedStickyFiltersTopPosition: fe, columnHeadersHeight: de, computedColumnHeadersTopPosition: ge, sortedColumns: ce, columnSets: ie, isOnlyOneVisibleColumn: gt, onConfigSettingsUpdate: _t, onConfigSettingsColumnsUpdate: vt, onConfigSettingsColumnUpdate: Ct, hoveredOverColumn: mt, hoveredOverColumnState: ht, draggingColumns: pt, draggingEventsForColumns: Lt, draggingEventsForRowCell: St, onMoveColumnByOffset: Et, onAllRowSelect: bt, onRowSelect: yt, selectedItems: Ae, allItemsSelectedState: wt, navigationInput: Ot, isLazyLoad: pe, isInfiniteScroll: Rt, verticalScrollPosition: Ie, emitLazyLoadEvent: At, updateScrollPosition: It, updateScrollPositionOnFrozenColumnsNavigation: Tt, syncVirtualScrollerWithBody: Nt, hasLeftOverflow: Le, hasRightOverflow: Te, horizontalScrollbarConditionalClasses: Dt, onEmptyStateClearResetButtonClick: Ne, limitedEmptyStateProps: xt, conditionalGridClasses: Ft, conditionalGridBodyClasses: Mt, computedColumnPanelAlignment: $t, showFrozenColumnsSeparator: Pt, conditionalFilterClasses: zt, conditionalPaginationClasses: Bt, registerColumnHeaderRefs: Ut, registerRowCellRefs: kt, onRowClick: Wt, onCellHover: Gt, selectableAcrossPagesComputed: Ht, ariaGridRole: Vt, ariaGridHeaderText: Zt, itemsSelectedCounter: De, showActionBar: jt, onColumnResized: qt, onSort: Yt, onPaginationNavigate: Xt, onItemsPerPageChange: Jt, onSearchTermCleared: Kt, onSearchTermInput: Qt, hasMandatoryColumn: xe, setTitle: Fe, BentoActionBar: rn, BentoPagination: dn, BentoLoadingIndicator: nt, BentoTypography: me, BentoDataGridConfigSettings: ao, DataGridColumns: Gs, DataGridLazyLoad: go, DataGridRow: zo, BentoDatagridEvent: w, BentoEmptyState: fn, BentoFilterBar: ve };
|
|
2365
|
-
}
|
|
2366
|
-
});
|
|
2367
|
-
var Jo = function() {
|
|
2368
|
-
var o;
|
|
2369
|
-
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
2370
|
-
return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText, role: t.ariaGridRole } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: t.conditionalFilterClasses, style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? n(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [t.columnPanel ? n(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: t.localColumnsState, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: l, id: r, isFrozenColumns: _ }, u) {
|
|
2371
|
-
return [l != null && l.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${r}`, ref: (m) => t.registerColumnHeaderRefs(m), refInFor: !0, attrs: { columns: l, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": _, "show-frozen-columns-separator": t.showFrozenColumnsSeparator, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": t.columnPanel, "has-left-overflow": t.hasLeftOverflow, "has-first-column-panel-right-aligned": u === t.computedColumnPanelAlignment, "hovered-over-column-state": t.hoveredOverColumnState, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, selectable: t.selectable, "selectable-across-pages": t.selectableAcrossPagesComputed, "truncate-column-headers": e.truncateColumnHeaders }, on: { "column-hover": function(m) {
|
|
2372
|
-
t.hoveredOverColumn = m;
|
|
2373
|
-
}, "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, "select-all-across-pages": function(m) {
|
|
2374
|
-
return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
2375
|
-
}, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(m, v) {
|
|
2376
|
-
return { key: v, fn: function(c) {
|
|
2377
|
-
return [e._t(v, null, null, c)];
|
|
2378
|
-
} };
|
|
2379
|
-
})], null, !0) }, t.draggingEventsForColumns)) : e._e()];
|
|
2380
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: t.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: t.loading ? "0" : "-1", "aria-busy": t.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [t.loading && !t.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((o = t.data) == null ? void 0 : o.length) === 0 && e.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(l, r) {
|
|
2381
|
-
var _, u;
|
|
2382
|
-
return n(t.DataGridRow, { key: r, ref: (m) => t.registerRowCellRefs(m, r), refInFor: !0, style: t.gridColumnWidthStyle, attrs: { "allow-row-clicks": e.allowRowClicks, "column-sets": t.columnSets, condensed: e.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": e.getDataItemId, "has-nested-content": t.hasNestedContent, "has-left-overflow": t.hasLeftOverflow, "highlighted-rows": e.highlightedRows, "hovered-row-index": t.hoveredRowIndex, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": e.isDataItemDisabled, "is-row-last-child": r + 1 === ((_ = t.data) == null ? void 0 : _.length), "is-measuring-column-widths": t.isMeasuringColumnWidths, "row-data": l, "row-index": r, "row-set-size": (u = t.data) == null ? void 0 : u.length, "show-frozen-columns-separator": t.showFrozenColumnsSeparator, "should-show-nested-content": e.shouldShowNestedContent, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": t.onCellHover, "row-click": t.onRowClick, "on-frozen-columns-key-press": t.updateScrollPositionOnFrozenColumnsNavigation, "select-row": t.onRowSelect }, scopedSlots: e._u([e._l(t.slots, function(m, v) {
|
|
2383
|
-
return { key: v, fn: function(c) {
|
|
2384
|
-
return [e._t(v, null, null, c)];
|
|
2385
|
-
} };
|
|
2386
|
-
})], null, !0) });
|
|
2387
|
-
}), 1)]), t.isLazyLoad ? n(t.DataGridLazyLoad, { attrs: { loading: t.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: t.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: t.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${t.totalWidthOfAllColumns}px`, height: "15px" } })]) : e._e(), t.pagination && !t.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: t.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(t.BentoPagination, e._b({ attrs: { "aria-label": `${t.ariaGridHeaderText} navigation` }, on: { navigate: t.onPaginationNavigate, "items-page": t.onItemsPerPageChange } }, "bento-pagination", t.pagination, !1))], 1) : e._e(), e.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e(), t.showActionBar ? n(t.BentoActionBar, { attrs: { actions: e.bulkActions, "item-counter": t.itemsSelectedCounter, "extra-bottom-spacing": t.stickyPagination }, on: { close: function(l) {
|
|
2388
|
-
return t.onAllRowSelect(!1);
|
|
2389
|
-
} } }) : e._e()], 1);
|
|
2390
|
-
}, Ko = [], Qo = /* @__PURE__ */ B(
|
|
2391
|
-
Xo,
|
|
2392
|
-
Jo,
|
|
2393
|
-
Ko,
|
|
2394
|
-
!1,
|
|
2395
|
-
null,
|
|
2396
|
-
"c48486f5"
|
|
2397
|
-
);
|
|
2398
|
-
const Wl = Qo.exports;
|
|
2399
|
-
export {
|
|
2400
|
-
Se as B,
|
|
2401
|
-
kl as a,
|
|
2402
|
-
ne as b,
|
|
2403
|
-
se as c,
|
|
2404
|
-
Wl as d,
|
|
2405
|
-
w as e,
|
|
2406
|
-
Ce as f
|
|
2407
|
-
};
|
|
2408
|
-
//# sourceMappingURL=data-grid.ahAWR42s.js.map
|