@adyen/bento-vue2 1.22.0 → 1.24.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/README.md +2 -0
- package/dist/@types/index.d.ts +346 -258
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +7 -7
- package/dist/alert.js +73 -54
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.6bd3ae4d.js → base-button.090f511d.js} +2 -2
- package/dist/chunks/{base-button.6bd3ae4d.js.map → base-button.090f511d.js.map} +1 -1
- package/dist/chunks/{base-modal.bf917e7d.js → base-modal.aa09a60c.js} +7 -7
- package/dist/chunks/{base-modal.bf917e7d.js.map → base-modal.aa09a60c.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js → button-actions-with-menu.879c4573.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js.map → button-actions-with-menu.879c4573.js.map} +1 -1
- package/dist/chunks/{button-actions.2bf1d9d1.js → button-actions.239456cb.js} +3 -3
- package/dist/chunks/{button-actions.2bf1d9d1.js.map → button-actions.239456cb.js.map} +1 -1
- package/dist/chunks/{button.80c3c527.js → button.6e6324f0.js} +3 -3
- package/dist/chunks/{button.80c3c527.js.map → button.6e6324f0.js.map} +1 -1
- package/dist/chunks/{calendar.8cbb911d.js → calendar.1e416969.js} +5 -5
- package/dist/chunks/{calendar.8cbb911d.js.map → calendar.1e416969.js.map} +1 -1
- package/dist/chunks/{checkbox-input.17e832f1.js → checkbox-input.1c3cc8ed.js} +2 -2
- package/dist/chunks/{checkbox-input.17e832f1.js.map → checkbox-input.1c3cc8ed.js.map} +1 -1
- package/dist/chunks/{checkbox.11454247.js → checkbox.f38276e6.js} +4 -4
- package/dist/chunks/{checkbox.11454247.js.map → checkbox.f38276e6.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js → checkmark-circle-fill.345311d2.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
- package/dist/chunks/{checkmark-small.07adbfcb.js → checkmark-small.520f01b1.js} +2 -2
- package/dist/chunks/{checkmark-small.07adbfcb.js.map → checkmark-small.520f01b1.js.map} +1 -1
- package/dist/chunks/{checkmark.9979f1c1.js → checkmark.a6ed8f47.js} +2 -2
- package/dist/chunks/{checkmark.9979f1c1.js.map → checkmark.a6ed8f47.js.map} +1 -1
- package/dist/chunks/{chevron-left.64e168be.js → chevron-left.5edf02ac.js} +2 -2
- package/dist/chunks/{chevron-left.64e168be.js.map → chevron-left.5edf02ac.js.map} +1 -1
- package/dist/chunks/{chevron-up.628ac446.js → chevron-up.81185563.js} +2 -2
- package/dist/chunks/{chevron-up.628ac446.js.map → chevron-up.81185563.js.map} +1 -1
- package/dist/chunks/{controls-group.0892d082.js → controls-group.f1dfa419.js} +3 -3
- package/dist/chunks/{controls-group.0892d082.js.map → controls-group.f1dfa419.js.map} +1 -1
- package/dist/chunks/{copy.2d2c6b85.js → copy.acc9f1b0.js} +4 -4
- package/dist/chunks/{copy.2d2c6b85.js.map → copy.acc9f1b0.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.34e86c56.js → cross-circle-fill.27580c4b.js} +2 -2
- package/dist/chunks/{cross-circle-fill.34e86c56.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
- package/dist/chunks/{cross-small.e3c016cb.js → cross-small.e851e0de.js} +2 -2
- package/dist/chunks/{cross-small.e3c016cb.js.map → cross-small.e851e0de.js.map} +1 -1
- package/dist/chunks/{cross.e5433f3b.js → cross.04678d81.js} +2 -2
- package/dist/chunks/{cross.e5433f3b.js.map → cross.04678d81.js.map} +1 -1
- package/dist/chunks/{dialog-page.21f1eb92.js → dialog-page.75b295b7.js} +3 -3
- package/dist/chunks/{dialog-page.21f1eb92.js.map → dialog-page.75b295b7.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.9c23c94d.js → dropdown-default-textbox.c1f8fe5f.js} +57 -37
- package/dist/chunks/dropdown-default-textbox.c1f8fe5f.js.map +1 -0
- package/dist/chunks/{dropdown.dad8cedd.js → dropdown.669b858b.js} +20 -21
- package/dist/chunks/{dropdown.dad8cedd.js.map → dropdown.669b858b.js.map} +1 -1
- package/dist/chunks/{error-message.5fdafd8c.js → error-message.8734e591.js} +3 -3
- package/dist/chunks/{error-message.5fdafd8c.js.map → error-message.8734e591.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.e917ed3f.js → fixed-scroller.772ad033.js} +3 -3
- package/dist/chunks/{fixed-scroller.e917ed3f.js.map → fixed-scroller.772ad033.js.map} +1 -1
- package/dist/chunks/{footer-actions.599e5a1d.js → footer-actions.11071f12.js} +4 -4
- package/dist/chunks/{footer-actions.599e5a1d.js.map → footer-actions.11071f12.js.map} +1 -1
- package/dist/chunks/{index.823243d9.js → index.03ae22b4.js} +2 -2
- package/dist/chunks/{index.823243d9.js.map → index.03ae22b4.js.map} +1 -1
- package/dist/chunks/index.49ce3f6a.js +49 -0
- package/dist/chunks/index.49ce3f6a.js.map +1 -0
- package/dist/chunks/{index.0c4a8dd9.js → index.51308a21.js} +3 -3
- package/dist/chunks/{index.0c4a8dd9.js.map → index.51308a21.js.map} +1 -1
- package/dist/chunks/{index.937a82c2.js → index.5d5f2200.js} +7 -7
- package/dist/chunks/{index.937a82c2.js.map → index.5d5f2200.js.map} +1 -1
- package/dist/chunks/{index.73634ace.js → index.73abb1a9.js} +31 -32
- package/dist/chunks/{index.73634ace.js.map → index.73abb1a9.js.map} +1 -1
- package/dist/chunks/{index.929dda57.js → index.87180cdd.js} +107 -106
- package/dist/chunks/index.87180cdd.js.map +1 -0
- package/dist/chunks/{index.d681cfda.js → index.8e6bc325.js} +12 -11
- package/dist/chunks/index.8e6bc325.js.map +1 -0
- package/dist/chunks/{index.7d2ea1de.js → index.94980f50.js} +2 -2
- package/dist/chunks/{index.7d2ea1de.js.map → index.94980f50.js.map} +1 -1
- package/dist/chunks/index.ba6c1040.js +79 -0
- package/dist/chunks/index.ba6c1040.js.map +1 -0
- package/dist/chunks/{index.3ddbe834.js → index.f19887a1.js} +2 -2
- package/dist/chunks/{index.3ddbe834.js.map → index.f19887a1.js.map} +1 -1
- package/dist/chunks/{index.66c8d79f.js → index.ff09389c.js} +7 -7
- package/dist/chunks/{index.66c8d79f.js.map → index.ff09389c.js.map} +1 -1
- package/dist/chunks/{info.b11d377e.js → info.8b6328aa.js} +2 -2
- package/dist/chunks/{info.b11d377e.js.map → info.8b6328aa.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.52ca5a60.js → listbox-option-tag.c0a56a95.js} +3 -3
- package/dist/chunks/{listbox-option-tag.52ca5a60.js.map → listbox-option-tag.c0a56a95.js.map} +1 -1
- package/dist/chunks/{listbox.6d8bd2ae.js → listbox.e6e1bc90.js} +8 -8
- package/dist/chunks/{listbox.6d8bd2ae.js.map → listbox.e6e1bc90.js.map} +1 -1
- package/dist/chunks/{loading-button.73c0bd64.js → loading-button.84a5529d.js} +4 -4
- package/dist/chunks/{loading-button.73c0bd64.js.map → loading-button.84a5529d.js.map} +1 -1
- package/dist/chunks/{payment-method.eeb54552.js → payment-method.faa302de.js} +2 -2
- package/dist/chunks/{payment-method.eeb54552.js.map → payment-method.faa302de.js.map} +1 -1
- package/dist/chunks/{refresh.f8e1b23c.js → refresh.71a03998.js} +2 -2
- package/dist/chunks/{refresh.f8e1b23c.js.map → refresh.71a03998.js.map} +1 -1
- package/dist/chunks/{search.4b38a2ef.js → search.471270fe.js} +2 -2
- package/dist/chunks/{search.4b38a2ef.js.map → search.471270fe.js.map} +1 -1
- package/dist/chunks/{tooltip.a9133b59.js → tooltip.8e9d733c.js} +3 -3
- package/dist/chunks/{tooltip.a9133b59.js.map → tooltip.8e9d733c.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js +52 -0
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js.map +1 -0
- package/dist/chunks/use-click-outside.941d1600.js +14 -0
- package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +898 -805
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +39 -40
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +410 -421
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +5 -5
- package/dist/index.js +247 -269
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +38 -34
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +7 -7
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/selection-card.js +5 -5
- package/dist/sidepanel.js +7 -7
- package/dist/status.js +2 -2
- package/dist/stepper.js +144 -133
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +143 -98
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +7 -7
- package/dist/typography.js +1 -1
- package/dist/web-types.json +204 -117
- package/package.json +3 -3
- package/dist/chunks/directive.0408e565.js +0 -23
- package/dist/chunks/directive.0408e565.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.9c23c94d.js.map +0 -1
- package/dist/chunks/index.0c33067d.js +0 -127
- package/dist/chunks/index.0c33067d.js.map +0 -1
- package/dist/chunks/index.5af5de46.js +0 -83
- package/dist/chunks/index.5af5de46.js.map +0 -1
- package/dist/chunks/index.929dda57.js.map +0 -1
- package/dist/chunks/index.d681cfda.js.map +0 -1
- package/dist/chunks/info-filled.ee9571d9.js +0 -26
- package/dist/chunks/info-filled.ee9571d9.js.map +0 -1
- package/dist/chunks/toastController.fd667b68.js +0 -15
- package/dist/chunks/toastController.fd667b68.js.map +0 -1
- /package/dist/assets/{cross-small.css → cross.css} +0 -0
package/dist/data-grid.js
CHANGED
|
@@ -1,376 +1,396 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { BentoActionBar as
|
|
3
|
-
import { BentoPagination as
|
|
4
|
-
import { BentoLoadingIndicator as
|
|
5
|
-
import { B as
|
|
6
|
-
import { u as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { BentoEmptyState as
|
|
10
|
-
import { BentoFilterBar as
|
|
11
|
-
import { E as
|
|
12
|
-
import { D as
|
|
13
|
-
import { o as
|
|
1
|
+
import { ref as S, reactive as pe, toRefs as he, computed as b, watchEffect as xt, watch as z, onMounted as Le, nextTick as B, onUnmounted as Ze, onBeforeUpdate as Ft, defineComponent as Y, toRef as je, useSlots as Mt, inject as De } from "vue";
|
|
2
|
+
import { BentoActionBar as Pt } from "./action-bar.js";
|
|
3
|
+
import { BentoPagination as Ut } from "./pagination.js";
|
|
4
|
+
import { BentoLoadingIndicator as qe } from "./loading-indicator.js";
|
|
5
|
+
import { B as ge, p as Ye } from "./chunks/index.ba6c1040.js";
|
|
6
|
+
import { u as zt } from "./chunks/aria-label.ac9651a5.js";
|
|
7
|
+
import { g as Bt } from "./chunks/get-slot-text.99c3d860.js";
|
|
8
|
+
import { u as ve } from "./chunks/i18n.eb5b985b.js";
|
|
9
|
+
import { BentoEmptyState as Gt } from "./empty-state.js";
|
|
10
|
+
import { BentoFilterBar as _e } from "./filter-bar.js";
|
|
11
|
+
import { E as Wt } from "./chunks/tabs.keys.358742f2.js";
|
|
12
|
+
import { D as kt } from "./chunks/data-grid-template.keys.a819a991.js";
|
|
13
|
+
import { o as Xe } from "./chunks/resize.a041304d.js";
|
|
14
14
|
import "./chunks/index.4c062058.js";
|
|
15
|
-
import { K as
|
|
16
|
-
import { B as
|
|
17
|
-
import { a as
|
|
18
|
-
import { BentoToggle as
|
|
19
|
-
import { BentoSearchBar as
|
|
20
|
-
import { u as
|
|
21
|
-
import { n as
|
|
22
|
-
import { C as
|
|
23
|
-
import { S as
|
|
24
|
-
import { g as
|
|
25
|
-
import { BentoToggleButton as
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { B as
|
|
29
|
-
import { E as
|
|
30
|
-
import { C as
|
|
31
|
-
import { BentoInfoIcon as
|
|
32
|
-
import { A as
|
|
33
|
-
import { l as
|
|
34
|
-
import { B as
|
|
35
|
-
import "./assets/
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
const n =
|
|
39
|
-
let g = 0,
|
|
40
|
-
const
|
|
41
|
-
() => Object.fromEntries(s.value.map(({ field:
|
|
15
|
+
import { K as H } from "./chunks/tooltip.8e9d733c.js";
|
|
16
|
+
import { B as Ne, a as Ht } from "./chunks/index.5d5f2200.js";
|
|
17
|
+
import { a as Ke } from "./chunks/button.6e6324f0.js";
|
|
18
|
+
import { BentoToggle as Je } from "./toggle.js";
|
|
19
|
+
import { BentoSearchBar as Vt } from "./search-bar.js";
|
|
20
|
+
import { u as Zt } from "./chunks/dropdown.669b858b.js";
|
|
21
|
+
import { n as F } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
22
|
+
import { C as jt } from "./chunks/cross.04678d81.js";
|
|
23
|
+
import { S as qt } from "./chunks/search.471270fe.js";
|
|
24
|
+
import { g as Yt } from "./chunks/unique-id.a2a2b458.js";
|
|
25
|
+
import { BentoToggleButton as Qe } from "./button.js";
|
|
26
|
+
import { B as Xt } from "./chunks/dropdown-default-textbox.c1f8fe5f.js";
|
|
27
|
+
import { B as et } from "./chunks/checkbox.f38276e6.js";
|
|
28
|
+
import { B as tt, O as Kt } from "./chunks/index.87180cdd.js";
|
|
29
|
+
import { E as Jt } from "./chunks/index.8e6bc325.js";
|
|
30
|
+
import { C as Qt } from "./chunks/copy.acc9f1b0.js";
|
|
31
|
+
import { BentoInfoIcon as en } from "./info-icon.js";
|
|
32
|
+
import { A as tn } from "./chunks/dialog-page.75b295b7.js";
|
|
33
|
+
import { l as $e } from "./chunks/events.58c00e6d.js";
|
|
34
|
+
import { B as nn, a as sn } from "./chunks/loading-button.84a5529d.js";
|
|
35
|
+
import "./assets/index37.css";
|
|
36
|
+
var Ce = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(Ce || {}), j = /* @__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))(j || {}), q = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(q || {}), E = /* @__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))(E || {}), fe = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(fe || {}), x = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SORT = "sort", 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))(x || {});
|
|
37
|
+
const ln = (s, e) => {
|
|
38
|
+
const n = S(null), t = S(!1), l = S(void 0), o = s.value.reduce((_, h) => (_[h.field] = null, _), {}), u = pe(o), f = he(u);
|
|
39
|
+
let g = 0, m = "";
|
|
40
|
+
const d = b(
|
|
41
|
+
() => Object.fromEntries(s.value.map(({ field: _, width: h, minWidth: y }) => [_, { width: h, minWidth: y }]))
|
|
42
42
|
);
|
|
43
|
-
|
|
44
|
-
let c = null,
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
field:
|
|
51
|
-
width:
|
|
52
|
-
}), c = null,
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
o();
|
|
43
|
+
xt(() => l.value = d.value);
|
|
44
|
+
let c = null, R = null;
|
|
45
|
+
const r = (_) => {
|
|
46
|
+
const h = _.clientX - g, y = m, C = l.value[y].width + h;
|
|
47
|
+
l.value[y].width = C > d.value[y].minWidth ? C : d.value[y].minWidth, e(x.COLUMN_RESIZING, l.value), g = _.clientX;
|
|
48
|
+
}, a = () => {
|
|
49
|
+
t.value = !1, c == null || c(), R == null || R(), m && e(x.COLUMN_RESIZE, {
|
|
50
|
+
field: m,
|
|
51
|
+
width: l.value[m].width
|
|
52
|
+
}), c = null, R = null, m = "", g = null;
|
|
53
|
+
}, v = (_, h, y) => {
|
|
54
|
+
if (y.preventDefault(), _) {
|
|
55
|
+
if (t.value = !0, y.buttons !== 1) {
|
|
56
|
+
a();
|
|
58
57
|
return;
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
m = h, g = y.clientX, c = $e(window, "mousemove", r), R = $e(window, "mouseup", a);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
return z(
|
|
63
|
+
() => t.value,
|
|
64
|
+
(_, h) => {
|
|
65
|
+
!_ && h && (e(x.COLUMN_HOVER, n.value), n.value = null);
|
|
61
66
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
), {
|
|
68
|
+
resizeData: l,
|
|
69
|
+
allColumnRefs: f,
|
|
70
|
+
startResize: v,
|
|
71
|
+
isResizing: t,
|
|
72
|
+
columnHoverEventToEmitAfterResizing: n
|
|
67
73
|
};
|
|
68
|
-
|
|
74
|
+
}, on = 100, xe = 50, J = "b-select", an = 32, rn = 56, dn = (s, e, n) => {
|
|
75
|
+
const t = {}, l = [], o = (f) => {
|
|
76
|
+
const g = t[f];
|
|
77
|
+
g && g.frozen !== !0 && (t[f].frozen = !0, l.push(f));
|
|
78
|
+
};
|
|
79
|
+
function u() {
|
|
69
80
|
if (l.length === n.length)
|
|
70
81
|
return;
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
l.forEach((
|
|
74
|
-
|
|
82
|
+
const f = { min: {}, max: {} };
|
|
83
|
+
let g = s, m = e, d = 0;
|
|
84
|
+
l.forEach((c) => {
|
|
85
|
+
g -= t[c].computedWidth, m -= t[c].flex;
|
|
75
86
|
});
|
|
76
|
-
for (let
|
|
77
|
-
const
|
|
78
|
-
if (t[
|
|
87
|
+
for (let c = 0, R = n.length; c < R; c += 1) {
|
|
88
|
+
const r = n[c];
|
|
89
|
+
if (t[r.field] && t[r.field].frozen === !0)
|
|
79
90
|
continue;
|
|
80
|
-
let
|
|
81
|
-
|
|
91
|
+
let v = g / m * r.flex;
|
|
92
|
+
v < r.minWidth && (d += r.minWidth - v, v = r.minWidth, f.min[r.field] = !0), t[r.field] = {
|
|
82
93
|
frozen: !1,
|
|
83
|
-
computedWidth:
|
|
84
|
-
flex:
|
|
94
|
+
computedWidth: v,
|
|
95
|
+
flex: r.flex
|
|
85
96
|
};
|
|
86
97
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}) : n.forEach(({ field:
|
|
90
|
-
|
|
91
|
-
}),
|
|
98
|
+
d > 0 ? Object.keys(f.min).forEach((c) => {
|
|
99
|
+
o(c);
|
|
100
|
+
}) : n.forEach(({ field: c }) => {
|
|
101
|
+
o(c);
|
|
102
|
+
}), u();
|
|
92
103
|
}
|
|
93
|
-
return
|
|
94
|
-
},
|
|
95
|
-
const
|
|
104
|
+
return u(), t;
|
|
105
|
+
}, cn = (s, e, n, t, l) => {
|
|
106
|
+
const o = S(s.value), u = S(e), f = S(n), g = S(t), m = S(!1);
|
|
96
107
|
z(
|
|
97
108
|
() => s.value,
|
|
98
109
|
() => {
|
|
99
110
|
var C;
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
return
|
|
111
|
+
o.value = ((C = o.value) == null ? void 0 : C.length) === 0 ? s.value : s.value.sort((O, T) => {
|
|
112
|
+
const p = o.value.findIndex((D) => D.field === O.field), I = o.value.findIndex((D) => D.field === T.field);
|
|
113
|
+
return p === -1 ? 1 : I === -1 ? -1 : p - I;
|
|
103
114
|
});
|
|
104
115
|
}
|
|
105
116
|
);
|
|
106
|
-
const
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
const d = S();
|
|
118
|
+
let c = null;
|
|
119
|
+
Le(() => {
|
|
120
|
+
B(() => {
|
|
121
|
+
f.value && (d.value = f.value.getBoundingClientRect().width);
|
|
111
122
|
const C = z(
|
|
112
|
-
|
|
123
|
+
f,
|
|
113
124
|
() => {
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
f.value && (B(() => C()), c = Xe(f.value, ({ width: O }) => {
|
|
126
|
+
d.value = O;
|
|
116
127
|
}));
|
|
117
128
|
},
|
|
118
129
|
{ immediate: !0 }
|
|
119
130
|
);
|
|
120
131
|
});
|
|
121
|
-
}),
|
|
122
|
-
|
|
123
|
-
}),
|
|
132
|
+
}), Ze(() => {
|
|
133
|
+
c == null || c.disconnect();
|
|
134
|
+
}), Ft(() => {
|
|
124
135
|
var C;
|
|
125
|
-
|
|
126
|
-
|
|
136
|
+
g.value && ((C = Object.keys(g.value)) == null ? void 0 : C.length) > 0 && Object.keys(g.value).forEach((T) => {
|
|
137
|
+
g.value[T] = [];
|
|
127
138
|
});
|
|
128
139
|
});
|
|
129
|
-
const
|
|
130
|
-
var
|
|
140
|
+
const R = b(() => {
|
|
141
|
+
var G;
|
|
131
142
|
const C = [];
|
|
132
|
-
let
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
const
|
|
136
|
-
l != null && l.hasSelectableColumn.value
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
let O = 0, T = 0;
|
|
144
|
+
const p = {};
|
|
145
|
+
let I = o.value.filter((w) => w.visible !== !1);
|
|
146
|
+
const D = o.value.filter((w) => w.visible === !1);
|
|
147
|
+
if (l != null && l.hasSelectableColumn.value) {
|
|
148
|
+
const w = (G = l == null ? void 0 : l.hasSelectableAcrossPages) != null && G.value ? rn : an;
|
|
149
|
+
I = [
|
|
150
|
+
{
|
|
151
|
+
field: J,
|
|
152
|
+
label: "",
|
|
153
|
+
minWidth: w,
|
|
154
|
+
width: w,
|
|
155
|
+
frozen: !0,
|
|
156
|
+
padding: { left: !1, right: !1 }
|
|
157
|
+
},
|
|
158
|
+
...I
|
|
159
|
+
];
|
|
160
|
+
}
|
|
161
|
+
I.forEach((w) => {
|
|
162
|
+
const A = { ...w };
|
|
163
|
+
let W;
|
|
164
|
+
A.flex && A.flex > 0 ? (O += A.flex, W = 0, C.push(A)) : W = Math.max(
|
|
165
|
+
(A == null ? void 0 : A.width) ?? on,
|
|
166
|
+
(A == null ? void 0 : A.minWidth) ?? xe
|
|
167
|
+
), T += W, A.width = W, A.minWidth = (A == null ? void 0 : A.minWidth) ?? xe, p[A.field] = A;
|
|
152
168
|
});
|
|
153
|
-
const U = Math.max(
|
|
154
|
-
if (
|
|
155
|
-
const
|
|
156
|
-
Object.keys(
|
|
157
|
-
|
|
169
|
+
const U = Math.max(d.value - T, 0);
|
|
170
|
+
if (O > 0 && d.value > 0) {
|
|
171
|
+
const w = dn(U, O, C);
|
|
172
|
+
Object.keys(w).forEach((A) => {
|
|
173
|
+
p[A].width = w[A].computedWidth;
|
|
158
174
|
});
|
|
159
175
|
}
|
|
160
|
-
return
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
}), Object.values(
|
|
164
|
-
}),
|
|
165
|
-
|
|
176
|
+
return D.forEach((w) => {
|
|
177
|
+
const A = { ...w };
|
|
178
|
+
p[A.field] = A;
|
|
179
|
+
}), Object.values(p);
|
|
180
|
+
}), r = S(void 0), a = (C) => {
|
|
181
|
+
r.value = { ...r.value, ...C };
|
|
166
182
|
};
|
|
167
|
-
|
|
168
|
-
[() =>
|
|
183
|
+
z(
|
|
184
|
+
[() => o.value, () => u.value],
|
|
169
185
|
async () => {
|
|
170
|
-
|
|
171
|
-
var
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
186
|
+
o.value.some((C) => C == null ? void 0 : C.autoWidth) && (m.value = !0, await B(), o == null || o.value.filter((C) => C == null ? void 0 : C.autoWidth).forEach(({ field: C, minWidth: O }) => {
|
|
187
|
+
var p, I;
|
|
188
|
+
const T = (I = (p = g.value) == null ? void 0 : p[C]) == null ? void 0 : I.reduce((D, U) => {
|
|
189
|
+
let G = 4;
|
|
190
|
+
const w = getComputedStyle(U);
|
|
191
|
+
return (w == null ? void 0 : w.padding) === "0px" && (G += 32), Math.max(D, U != null && U.offsetWidth ? U.offsetWidth + G : 0);
|
|
192
|
+
}, 0);
|
|
193
|
+
(O === void 0 || T > O) && a({
|
|
177
194
|
[C]: {
|
|
178
|
-
width:
|
|
195
|
+
width: T
|
|
179
196
|
}
|
|
180
197
|
});
|
|
181
|
-
}),
|
|
198
|
+
}), m.value = !1);
|
|
182
199
|
},
|
|
183
200
|
{ immediate: !0 }
|
|
184
201
|
);
|
|
185
|
-
const
|
|
186
|
-
() =>
|
|
187
|
-
var
|
|
202
|
+
const v = b(
|
|
203
|
+
() => R.value.map((C) => {
|
|
204
|
+
var O, T;
|
|
188
205
|
return {
|
|
189
206
|
...C,
|
|
190
207
|
// Override column width with resized ones
|
|
191
|
-
width: ((
|
|
208
|
+
width: ((T = (O = r.value) == null ? void 0 : O[C.field]) == null ? void 0 : T.width) ?? C.width
|
|
192
209
|
};
|
|
193
210
|
})
|
|
194
|
-
),
|
|
211
|
+
), _ = b(
|
|
195
212
|
() => {
|
|
196
213
|
var C;
|
|
197
|
-
return (C =
|
|
214
|
+
return (C = v.value) == null ? void 0 : C.filter(({ visible: O }) => O !== !1).reduce((O, T) => T.width + O, 0);
|
|
198
215
|
}
|
|
199
|
-
),
|
|
200
|
-
|
|
216
|
+
), h = b(
|
|
217
|
+
() => d.value <= _.value
|
|
218
|
+
), y = b(() => ({
|
|
219
|
+
width: d.value > _.value ? "100%" : "fit-content"
|
|
201
220
|
}));
|
|
202
221
|
return {
|
|
203
|
-
columnDefs:
|
|
204
|
-
gridColumnWidthStyle:
|
|
222
|
+
columnDefs: v,
|
|
223
|
+
gridColumnWidthStyle: y,
|
|
205
224
|
onColumnWidthOverride: a,
|
|
206
|
-
isMeasuringColumnWidths:
|
|
207
|
-
|
|
225
|
+
isMeasuringColumnWidths: m,
|
|
226
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: h,
|
|
227
|
+
columns: o
|
|
208
228
|
};
|
|
209
|
-
},
|
|
210
|
-
const
|
|
229
|
+
}, un = (s, e, n, t, l) => {
|
|
230
|
+
const o = S(s.value ?? []), u = pe({
|
|
211
231
|
allItemsSelected: !1,
|
|
212
232
|
isIndeterminate: !1
|
|
213
|
-
}),
|
|
214
|
-
e(
|
|
215
|
-
},
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
|
|
233
|
+
}), f = () => {
|
|
234
|
+
e(E.SELECT, o.value), e(E.UPDATE_SELECTION, o.value);
|
|
235
|
+
}, g = (c) => {
|
|
236
|
+
var r, a, v, _, h;
|
|
237
|
+
if (o.value = c, ((r = n.value) == null ? void 0 : r.length) > 0 && ((a = n.value) == null ? void 0 : a.filter((y) => !l(y)).every((y) => o.value.includes(t(y))))) {
|
|
238
|
+
u.allItemsSelected = !0;
|
|
239
|
+
const y = ((v = n.value) == null ? void 0 : v.length) > 0 && n.value.every((C) => o.value.includes(t(C)));
|
|
240
|
+
u.isIndeterminate = !y;
|
|
221
241
|
} else
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
242
|
+
u.allItemsSelected = !1, u.isIndeterminate = ((_ = o.value) == null ? void 0 : _.length) > 0 && ((h = n.value) == null ? void 0 : h.length) > 0 && n.value.some((y) => o.value.includes(t(y)));
|
|
243
|
+
}, m = (c) => {
|
|
244
|
+
B(() => {
|
|
245
|
+
var R, r, a;
|
|
246
|
+
if (u.allItemsSelected = c, c) {
|
|
247
|
+
o.value = (r = (R = n.value) == null ? void 0 : R.filter((_) => !l(_))) == null ? void 0 : r.map((_) => t(_));
|
|
248
|
+
const v = ((a = n.value) == null ? void 0 : a.length) > 0 && n.value.every((_) => o.value.includes(t(_)));
|
|
249
|
+
u.isIndeterminate = o.value.length > 0 && !v;
|
|
230
250
|
} else
|
|
231
|
-
|
|
232
|
-
|
|
251
|
+
o.value = [], u.isIndeterminate = !1;
|
|
252
|
+
f();
|
|
233
253
|
});
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
|
|
254
|
+
}, d = (c) => {
|
|
255
|
+
B(() => {
|
|
256
|
+
g(c), f();
|
|
237
257
|
});
|
|
238
258
|
};
|
|
239
259
|
return z(
|
|
240
260
|
() => s.value,
|
|
241
261
|
() => {
|
|
242
|
-
|
|
262
|
+
g(s.value ?? []);
|
|
243
263
|
},
|
|
244
264
|
{ immediate: !0 }
|
|
245
265
|
), z(
|
|
246
266
|
() => n.value,
|
|
247
267
|
() => {
|
|
248
|
-
|
|
268
|
+
g(o.value);
|
|
249
269
|
}
|
|
250
|
-
), { onAllRowSelect:
|
|
251
|
-
},
|
|
252
|
-
var
|
|
253
|
-
return (
|
|
254
|
-
}, sortByColumnField: (
|
|
255
|
-
var
|
|
256
|
-
if (!e.value.some((
|
|
270
|
+
), { onAllRowSelect: m, onRowSelect: d, allItemsSelectedState: u, selectedItems: o };
|
|
271
|
+
}, _n = (s, e, n) => ({ isSorting: (u) => s.value.some((f) => f.field === u), getSortingDirection: (u) => {
|
|
272
|
+
var f;
|
|
273
|
+
return (f = s.value.find((g) => g.field === u)) == null ? void 0 : f.direction;
|
|
274
|
+
}, sortByColumnField: (u) => {
|
|
275
|
+
var m;
|
|
276
|
+
if (!e.value.some((d) => d.field === u && d.sortable))
|
|
257
277
|
return;
|
|
258
|
-
const
|
|
259
|
-
field:
|
|
260
|
-
direction: ((
|
|
278
|
+
const g = [{
|
|
279
|
+
field: u,
|
|
280
|
+
direction: ((m = s.value.find((d) => d.field === u)) == null ? void 0 : m.direction) === q.ASCENDING ? q.DESCENDING : q.ASCENDING
|
|
261
281
|
}];
|
|
262
|
-
n(
|
|
282
|
+
n(x.SORT, g);
|
|
263
283
|
} });
|
|
264
|
-
var
|
|
265
|
-
const
|
|
266
|
-
const t =
|
|
267
|
-
const
|
|
268
|
-
return n.value ?
|
|
269
|
-
}), l =
|
|
270
|
-
() => [...Object.values(s.value)].flat(1).sort((
|
|
271
|
-
const
|
|
272
|
-
return
|
|
284
|
+
var M = ((s) => (s[s.ARROW_DOWN = H.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = H.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = H.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = H.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = H.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = H.PAGE_DOWN] = "PAGE_DOWN", s[s.END = H.END] = "END", s[s.HOME = H.HOME] = "HOME", s))(M || {});
|
|
285
|
+
const fn = (s, e, n) => {
|
|
286
|
+
const t = b(() => {
|
|
287
|
+
const r = e.value.filter(({ visible: a }) => a !== !1);
|
|
288
|
+
return n.value ? r.length + 1 : r.length;
|
|
289
|
+
}), l = b(
|
|
290
|
+
() => [...Object.values(s.value)].flat(1).sort((r, a) => {
|
|
291
|
+
const v = Number(r.getAttribute("data-cellindex")), _ = Number(a.getAttribute("data-cellindex"));
|
|
292
|
+
return v > _ ? 1 : _ > v ? -1 : 0;
|
|
273
293
|
})
|
|
274
|
-
),
|
|
275
|
-
const
|
|
294
|
+
), o = (r) => Math.floor(r / t.value), u = (r, a, v) => {
|
|
295
|
+
const _ = l.value.length - 1, h = t.value - 1, y = o(r), C = r - t.value * y;
|
|
276
296
|
return {
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
297
|
+
[M.PAGE_UP]: C,
|
|
298
|
+
[M.PAGE_DOWN]: _ - h + C,
|
|
299
|
+
[M.END]: v ? _ : t.value * y + h,
|
|
300
|
+
[M.HOME]: v ? 0 : t.value * y
|
|
281
301
|
}[a];
|
|
282
|
-
},
|
|
283
|
-
const
|
|
284
|
-
[
|
|
285
|
-
[
|
|
286
|
-
[
|
|
287
|
-
[
|
|
288
|
-
}[a],
|
|
289
|
-
return
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
].includes(
|
|
296
|
-
const
|
|
297
|
-
return
|
|
298
|
-
},
|
|
299
|
-
if (!l.value.includes(
|
|
302
|
+
}, f = (r, a) => {
|
|
303
|
+
const _ = {
|
|
304
|
+
[M.ARROW_DOWN]: t.value,
|
|
305
|
+
[M.ARROW_UP]: -t.value,
|
|
306
|
+
[M.ARROW_LEFT]: -1,
|
|
307
|
+
[M.ARROW_RIGHT]: 1
|
|
308
|
+
}[a], h = r + _;
|
|
309
|
+
return h < 0 || h >= l.value.length ? r : h;
|
|
310
|
+
}, g = (r) => [
|
|
311
|
+
M.PAGE_UP,
|
|
312
|
+
M.PAGE_DOWN,
|
|
313
|
+
M.END,
|
|
314
|
+
M.HOME
|
|
315
|
+
].includes(r), m = (r, a, v) => {
|
|
316
|
+
const _ = l.value.indexOf(r);
|
|
317
|
+
return g(a) ? u(_, a, v) : f(_, a);
|
|
318
|
+
}, d = (r, a, v) => {
|
|
319
|
+
if (!l.value.includes(r))
|
|
300
320
|
return;
|
|
301
|
-
const
|
|
302
|
-
l.value[
|
|
303
|
-
},
|
|
321
|
+
const _ = m(r, a, v);
|
|
322
|
+
l.value[_].focus();
|
|
323
|
+
}, c = (r) => r in M;
|
|
304
324
|
return {
|
|
305
|
-
isNavigationKeyCode:
|
|
306
|
-
focusOnNextGridcell:
|
|
307
|
-
navigationInput: (
|
|
308
|
-
const { ctrlKey: a, keyCode:
|
|
309
|
-
Object.values(s.value).flat(1).includes(
|
|
325
|
+
isNavigationKeyCode: c,
|
|
326
|
+
focusOnNextGridcell: d,
|
|
327
|
+
navigationInput: (r) => {
|
|
328
|
+
const { ctrlKey: a, keyCode: v, target: _ } = r;
|
|
329
|
+
Object.values(s.value).flat(1).includes(_) && c(v) && d(_, v, a);
|
|
310
330
|
}
|
|
311
331
|
};
|
|
312
|
-
},
|
|
313
|
-
const
|
|
314
|
-
l(
|
|
332
|
+
}, gn = 90, vn = (s, e, n, t, l) => {
|
|
333
|
+
const o = S(s), u = S(e), f = S(n), g = S(t), m = b(() => o.value !== "none"), d = b(() => o.value === "automatic"), c = () => {
|
|
334
|
+
l(E.UPDATE_SHOW_MORE);
|
|
315
335
|
};
|
|
316
336
|
return z(
|
|
317
|
-
() =>
|
|
337
|
+
() => u.value,
|
|
318
338
|
() => {
|
|
319
|
-
|
|
339
|
+
d.value && f.value.offsetHeight / u.value * 100 > gn && !g.value && c();
|
|
320
340
|
}
|
|
321
|
-
), { isLazyLoad:
|
|
322
|
-
},
|
|
323
|
-
const t =
|
|
341
|
+
), { isLazyLoad: m, isInfiniteScroll: d, verticalScrollPosition: u, emitLazyLoadEvent: c };
|
|
342
|
+
}, mn = (s, e, n) => {
|
|
343
|
+
const t = S(s), l = S(e), o = pe({
|
|
324
344
|
dragging: null,
|
|
325
345
|
dragToLeft: null,
|
|
326
346
|
target: null
|
|
327
|
-
}),
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
347
|
+
}), u = (r, a = 0) => {
|
|
348
|
+
const v = t.value.findIndex((y) => y.field === r.field), _ = v + a;
|
|
349
|
+
if (_ < 0 || _ > t.value.length - 1)
|
|
330
350
|
return;
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
},
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
var a,
|
|
341
|
-
if (((a =
|
|
342
|
-
const
|
|
343
|
-
var
|
|
344
|
-
return
|
|
345
|
-
}),
|
|
346
|
-
let
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
const h = [...t.value];
|
|
352
|
+
h.splice(_, 0, h.splice(v, 1)[0]), n(E.COLUMNS, h), n(E.UPDATE_COLUMNS, h);
|
|
353
|
+
}, f = (r, a) => {
|
|
354
|
+
o.dragging = r, a.dataTransfer.setData("text", ""), a.dataTransfer.dropEffect = "move";
|
|
355
|
+
}, g = (r, a) => {
|
|
356
|
+
o.target = r;
|
|
357
|
+
const v = a.currentTarget.getBoundingClientRect(), _ = v.left + v.width / 2, h = a.clientX ?? 0;
|
|
358
|
+
o.dragToLeft = h <= _;
|
|
359
|
+
}, m = (r) => {
|
|
360
|
+
var a, v;
|
|
361
|
+
if (((a = o.dragging) == null ? void 0 : a.field) !== r.field) {
|
|
362
|
+
const _ = t.value.findIndex((p) => {
|
|
363
|
+
var I;
|
|
364
|
+
return p.field === ((I = o.dragging) == null ? void 0 : I.field);
|
|
365
|
+
}), h = t.value.findIndex((p) => p.field === r.field), y = o.dragToLeft ? h : h + 1, C = y > _ ? y - 1 : y;
|
|
366
|
+
let O = [...t.value];
|
|
367
|
+
O.splice(
|
|
368
|
+
C === -1 ? 0 : C,
|
|
349
369
|
0,
|
|
350
|
-
|
|
370
|
+
O.splice(_, 1)[0]
|
|
351
371
|
);
|
|
352
|
-
const
|
|
353
|
-
((
|
|
354
|
-
(
|
|
355
|
-
var
|
|
356
|
-
return ((
|
|
372
|
+
const T = t.value.findIndex((p) => !(p != null && p.frozen));
|
|
373
|
+
((v = o.dragging) == null ? void 0 : v.frozen) !== r.frozen && y !== T && (O = O.map(
|
|
374
|
+
(p) => {
|
|
375
|
+
var I;
|
|
376
|
+
return ((I = o.dragging) == null ? void 0 : I.field) === p.field ? { ...p, frozen: !!(r != null && r.frozen) } : p;
|
|
357
377
|
}
|
|
358
|
-
)), n(
|
|
378
|
+
)), n(E.COLUMNS, O), n(E.UPDATE_COLUMNS, O);
|
|
359
379
|
}
|
|
360
|
-
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
},
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
[
|
|
367
|
-
[
|
|
368
|
-
} : {}),
|
|
380
|
+
o.dragging = null, o.target = null;
|
|
381
|
+
}, d = () => {
|
|
382
|
+
o.dragging = null, o.dragToLeft = null, o.target = null;
|
|
383
|
+
}, c = b(() => l.value ? {
|
|
384
|
+
[x.COLUMN_DRAG_START]: (r, a) => f(r, a),
|
|
385
|
+
[x.COLUMN_DRAG_ENTER]: (r, a) => g(r, a),
|
|
386
|
+
[x.COLUMN_DROP]: (r) => m(r),
|
|
387
|
+
[x.COLUMN_DRAG_END]: () => d()
|
|
388
|
+
} : {}), R = b(() => (r) => l.value ? {
|
|
369
389
|
dragenter: (a) => {
|
|
370
|
-
a.preventDefault(),
|
|
390
|
+
a.preventDefault(), g(r, a);
|
|
371
391
|
},
|
|
372
392
|
drop: () => {
|
|
373
|
-
|
|
393
|
+
m(r);
|
|
374
394
|
},
|
|
375
395
|
dragover: (a) => {
|
|
376
396
|
a.preventDefault();
|
|
@@ -378,56 +398,56 @@ const cn = (s, e, n) => {
|
|
|
378
398
|
} : {});
|
|
379
399
|
return {
|
|
380
400
|
// Values
|
|
381
|
-
draggingColumns:
|
|
401
|
+
draggingColumns: o,
|
|
382
402
|
// Methods
|
|
383
|
-
draggingEventsForColumns:
|
|
384
|
-
draggingEventsForRowCell:
|
|
385
|
-
onMoveColumnByOffset:
|
|
403
|
+
draggingEventsForColumns: c,
|
|
404
|
+
draggingEventsForRowCell: R,
|
|
405
|
+
onMoveColumnByOffset: u
|
|
386
406
|
};
|
|
387
|
-
},
|
|
388
|
-
const n =
|
|
389
|
-
() => [...n.value].sort((
|
|
390
|
-
), l =
|
|
391
|
-
() => t.value.filter((
|
|
392
|
-
),
|
|
393
|
-
() => t.value.filter((
|
|
394
|
-
),
|
|
407
|
+
}, Cn = (s, e) => {
|
|
408
|
+
const n = S(s), t = b(
|
|
409
|
+
() => [...n.value].sort((c, R) => c.frozen === R.frozen ? 0 : c.frozen ? -1 : 1)
|
|
410
|
+
), l = b(
|
|
411
|
+
() => t.value.filter((c) => c.frozen && c.visible !== !1)
|
|
412
|
+
), o = b(
|
|
413
|
+
() => t.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
414
|
+
), u = b(
|
|
395
415
|
() => [
|
|
396
416
|
{ columnSet: l.value, id: "frozen", isFrozenColumns: !0 },
|
|
397
|
-
{ columnSet:
|
|
398
|
-
].filter(({ columnSet:
|
|
399
|
-
),
|
|
400
|
-
() => n.value.filter((
|
|
401
|
-
),
|
|
402
|
-
e(
|
|
417
|
+
{ columnSet: o.value, id: "unfrozen" }
|
|
418
|
+
].filter(({ columnSet: c }) => c.length)
|
|
419
|
+
), f = b(
|
|
420
|
+
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== J).length === 1
|
|
421
|
+
), g = (c) => e(E.UPDATE_CONDENSED, c), m = (c) => {
|
|
422
|
+
e(E.COLUMNS, c), e(E.UPDATE_COLUMNS, c);
|
|
403
423
|
};
|
|
404
424
|
return {
|
|
405
425
|
// Values
|
|
406
|
-
columnSets:
|
|
407
|
-
isOnlyOneVisibleColumn:
|
|
426
|
+
columnSets: u,
|
|
427
|
+
isOnlyOneVisibleColumn: f,
|
|
408
428
|
sortedColumns: t,
|
|
409
429
|
// Methods
|
|
410
|
-
onConfigSettingsUpdate:
|
|
411
|
-
onConfigSettingsColumnsUpdate:
|
|
412
|
-
onConfigSettingsColumnUpdate: (
|
|
413
|
-
const
|
|
414
|
-
(
|
|
430
|
+
onConfigSettingsUpdate: g,
|
|
431
|
+
onConfigSettingsColumnsUpdate: m,
|
|
432
|
+
onConfigSettingsColumnUpdate: (c) => {
|
|
433
|
+
const R = t.value.map(
|
|
434
|
+
(r) => (r == null ? void 0 : r.field) === c.field ? c : r
|
|
415
435
|
);
|
|
416
|
-
|
|
436
|
+
m(R);
|
|
417
437
|
}
|
|
418
438
|
};
|
|
419
|
-
},
|
|
420
|
-
const n =
|
|
439
|
+
}, Fe = (s, e) => {
|
|
440
|
+
const n = S(0);
|
|
421
441
|
let t = null;
|
|
422
442
|
const l = () => {
|
|
423
443
|
s != null && s.value && e.value && (n.value = s.value.offsetHeight);
|
|
424
444
|
};
|
|
425
|
-
return
|
|
426
|
-
|
|
427
|
-
const
|
|
445
|
+
return Le(() => {
|
|
446
|
+
B(() => {
|
|
447
|
+
const o = z(
|
|
428
448
|
s,
|
|
429
449
|
() => {
|
|
430
|
-
s != null && s.value && (
|
|
450
|
+
s != null && s.value && (B(() => o()), t = Xe(s.value, () => {
|
|
431
451
|
l();
|
|
432
452
|
}));
|
|
433
453
|
},
|
|
@@ -441,65 +461,67 @@ const cn = (s, e, n) => {
|
|
|
441
461
|
{ immediate: !0 }
|
|
442
462
|
);
|
|
443
463
|
});
|
|
444
|
-
}),
|
|
464
|
+
}), Ze(() => {
|
|
445
465
|
t == null || t.disconnect();
|
|
446
466
|
}), n;
|
|
447
|
-
},
|
|
448
|
-
const t =
|
|
467
|
+
}, pn = (s, e, n) => {
|
|
468
|
+
const t = S(0), l = S(!1), o = S(!1);
|
|
449
469
|
return z(
|
|
450
470
|
() => t.value,
|
|
451
471
|
() => {
|
|
452
|
-
s.value.scrollLeft = t.value, e.value.scrollLeft = t.value, l.value = !!t.value,
|
|
472
|
+
s.value.scrollLeft = t.value, e.value.scrollLeft = t.value, l.value = !!t.value, o.value = e.value.scrollWidth - e.value.offsetWidth > t.value;
|
|
453
473
|
}
|
|
454
|
-
),
|
|
455
|
-
var
|
|
456
|
-
await
|
|
474
|
+
), Le(async () => {
|
|
475
|
+
var g, m;
|
|
476
|
+
await B(), ((g = e.value) == null ? void 0 : g.offsetWidth) < ((m = e.value) == null ? void 0 : m.scrollWidth) && (o.value = !0);
|
|
457
477
|
}), {
|
|
458
478
|
// Values
|
|
459
479
|
scrollLeftPosition: t,
|
|
460
480
|
hasLeftOverflow: l,
|
|
461
|
-
hasRightOverflow:
|
|
481
|
+
hasRightOverflow: o,
|
|
462
482
|
// Methods
|
|
463
|
-
updateScrollPosition: (
|
|
464
|
-
t.value =
|
|
483
|
+
updateScrollPosition: (g) => {
|
|
484
|
+
t.value = g.target.scrollLeft, n.value = s.value.scrollHeight - g.target.scrollTop;
|
|
465
485
|
},
|
|
466
|
-
updateScrollPositionOnFrozenColumnsNavigation: (
|
|
467
|
-
|
|
486
|
+
updateScrollPositionOnFrozenColumnsNavigation: (g) => {
|
|
487
|
+
g.key !== "Tab" && g.key !== "ArrowRight" && g.key !== "ArrowLeft" || (g.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
468
488
|
s.value.style.overflowX = "auto";
|
|
469
489
|
}));
|
|
470
490
|
}
|
|
471
491
|
};
|
|
492
|
+
}, hn = (s, e, n, t) => {
|
|
493
|
+
const l = S(null), o = b(() => {
|
|
494
|
+
var v, _, h, y, C;
|
|
495
|
+
if (!l.value || l.value.field === J)
|
|
496
|
+
return {
|
|
497
|
+
hoveredOverColumnField: "",
|
|
498
|
+
isSeparatorOffset: !1,
|
|
499
|
+
noBorderLeft: !1,
|
|
500
|
+
noBorderRight: !1
|
|
501
|
+
};
|
|
502
|
+
const u = s.value.find((O) => O.isFrozenColumns), f = s.value.find((O) => !(O != null && O.isFrozenColumns)), g = l.value.frozen && ((v = u == null ? void 0 : u.columnSet) == null ? void 0 : v[0].field) === l.value.field, m = !l.value.frozen && ((_ = f == null ? void 0 : f.columnSet) == null ? void 0 : _[0].field) === l.value.field, d = (e.value || n.value) && g, c = (e.value || n.value) && !u && m, R = u && m, r = ((h = u == null ? void 0 : u.columnSet) == null ? void 0 : h.length) > 0 && l.value.frozen && ((y = u == null ? void 0 : u.columnSet) == null ? void 0 : y[u.columnSet.length - 1].field) === l.value.field, a = n.value && t.value && !l.value.frozen && ((C = f == null ? void 0 : f.columnSet) == null ? void 0 : C[f.columnSet.length - 1].field) === l.value.field;
|
|
503
|
+
return {
|
|
504
|
+
hoveredOverColumnField: l.value.field,
|
|
505
|
+
isSeparatorOffset: a,
|
|
506
|
+
noBorderLeft: !!d || !!c || !!R,
|
|
507
|
+
noBorderRight: !!r || !!a
|
|
508
|
+
};
|
|
509
|
+
});
|
|
510
|
+
return {
|
|
511
|
+
hoveredOverColumn: l,
|
|
512
|
+
hoveredOverColumnState: o
|
|
513
|
+
};
|
|
472
514
|
};
|
|
473
|
-
let
|
|
474
|
-
const Cn = {
|
|
475
|
-
beforeCreate() {
|
|
476
|
-
this.uuid = we.toString(), we += 1;
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
var mn = function() {
|
|
480
|
-
var e = this, n = e._self._c;
|
|
481
|
-
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" } })])])]);
|
|
482
|
-
}, vn = [], pn = /* @__PURE__ */ P(
|
|
483
|
-
Cn,
|
|
484
|
-
mn,
|
|
485
|
-
vn,
|
|
486
|
-
!1,
|
|
487
|
-
null,
|
|
488
|
-
null,
|
|
489
|
-
null,
|
|
490
|
-
null
|
|
491
|
-
);
|
|
492
|
-
const hn = pn.exports;
|
|
493
|
-
let Oe = 0;
|
|
515
|
+
let Me = 0;
|
|
494
516
|
const Ln = {
|
|
495
517
|
beforeCreate() {
|
|
496
|
-
this.uuid =
|
|
518
|
+
this.uuid = Me.toString(), Me += 1;
|
|
497
519
|
}
|
|
498
520
|
};
|
|
499
521
|
var Sn = function() {
|
|
500
522
|
var e = this, n = e._self._c;
|
|
501
|
-
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("
|
|
502
|
-
}, yn = [], En = /* @__PURE__ */
|
|
523
|
+
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" } })])])]);
|
|
524
|
+
}, yn = [], En = /* @__PURE__ */ F(
|
|
503
525
|
Ln,
|
|
504
526
|
Sn,
|
|
505
527
|
yn,
|
|
@@ -510,58 +532,58 @@ var Sn = function() {
|
|
|
510
532
|
null
|
|
511
533
|
);
|
|
512
534
|
const bn = En.exports;
|
|
513
|
-
let
|
|
514
|
-
const
|
|
535
|
+
let Pe = 0;
|
|
536
|
+
const On = {
|
|
515
537
|
beforeCreate() {
|
|
516
|
-
this.uuid =
|
|
538
|
+
this.uuid = Pe.toString(), Pe += 1;
|
|
517
539
|
}
|
|
518
540
|
};
|
|
519
541
|
var Rn = function() {
|
|
520
542
|
var e = this, n = e._self._c;
|
|
521
|
-
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("
|
|
522
|
-
},
|
|
523
|
-
|
|
543
|
+
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" } })]);
|
|
544
|
+
}, In = [], An = /* @__PURE__ */ F(
|
|
545
|
+
On,
|
|
524
546
|
Rn,
|
|
525
|
-
|
|
547
|
+
In,
|
|
526
548
|
!1,
|
|
527
549
|
null,
|
|
528
550
|
null,
|
|
529
551
|
null,
|
|
530
552
|
null
|
|
531
553
|
);
|
|
532
|
-
const
|
|
533
|
-
let
|
|
554
|
+
const Tn = An.exports;
|
|
555
|
+
let Ue = 0;
|
|
534
556
|
const wn = {
|
|
535
557
|
beforeCreate() {
|
|
536
|
-
this.uuid =
|
|
558
|
+
this.uuid = Ue.toString(), Ue += 1;
|
|
537
559
|
}
|
|
538
560
|
};
|
|
539
|
-
var
|
|
561
|
+
var Dn = function() {
|
|
540
562
|
var e = this, n = e._self._c;
|
|
541
|
-
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("
|
|
542
|
-
},
|
|
563
|
+
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)" } })])])]);
|
|
564
|
+
}, Nn = [], $n = /* @__PURE__ */ F(
|
|
543
565
|
wn,
|
|
544
|
-
On,
|
|
545
566
|
Dn,
|
|
567
|
+
Nn,
|
|
546
568
|
!1,
|
|
547
569
|
null,
|
|
548
570
|
null,
|
|
549
571
|
null,
|
|
550
572
|
null
|
|
551
573
|
);
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
const
|
|
574
|
+
const nt = $n.exports;
|
|
575
|
+
let ze = 0;
|
|
576
|
+
const xn = {
|
|
555
577
|
beforeCreate() {
|
|
556
|
-
this.uuid =
|
|
578
|
+
this.uuid = ze.toString(), ze += 1;
|
|
557
579
|
}
|
|
558
580
|
};
|
|
559
|
-
var
|
|
581
|
+
var Fn = function() {
|
|
560
582
|
var e = this, n = e._self._c;
|
|
561
|
-
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("
|
|
562
|
-
}, Mn = [],
|
|
563
|
-
Pn,
|
|
583
|
+
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" } })]);
|
|
584
|
+
}, Mn = [], Pn = /* @__PURE__ */ F(
|
|
564
585
|
xn,
|
|
586
|
+
Fn,
|
|
565
587
|
Mn,
|
|
566
588
|
!1,
|
|
567
589
|
null,
|
|
@@ -569,20 +591,20 @@ var xn = function() {
|
|
|
569
591
|
null,
|
|
570
592
|
null
|
|
571
593
|
);
|
|
572
|
-
const
|
|
573
|
-
let
|
|
594
|
+
const Un = Pn.exports;
|
|
595
|
+
let Be = 0;
|
|
574
596
|
const zn = {
|
|
575
597
|
beforeCreate() {
|
|
576
|
-
this.uuid =
|
|
598
|
+
this.uuid = Be.toString(), Be += 1;
|
|
577
599
|
}
|
|
578
600
|
};
|
|
579
|
-
var
|
|
601
|
+
var Bn = function() {
|
|
580
602
|
var e = this, n = e._self._c;
|
|
581
|
-
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-
|
|
582
|
-
},
|
|
603
|
+
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" } })])])]);
|
|
604
|
+
}, Gn = [], Wn = /* @__PURE__ */ F(
|
|
583
605
|
zn,
|
|
584
|
-
Gn,
|
|
585
606
|
Bn,
|
|
607
|
+
Gn,
|
|
586
608
|
!1,
|
|
587
609
|
null,
|
|
588
610
|
null,
|
|
@@ -590,18 +612,18 @@ var Gn = function() {
|
|
|
590
612
|
null
|
|
591
613
|
);
|
|
592
614
|
const kn = Wn.exports;
|
|
593
|
-
let
|
|
594
|
-
const
|
|
615
|
+
let Ge = 0;
|
|
616
|
+
const Hn = {
|
|
595
617
|
beforeCreate() {
|
|
596
|
-
this.uuid =
|
|
618
|
+
this.uuid = Ge.toString(), Ge += 1;
|
|
597
619
|
}
|
|
598
620
|
};
|
|
599
|
-
var
|
|
621
|
+
var Vn = function() {
|
|
600
622
|
var e = this, n = e._self._c;
|
|
601
|
-
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("
|
|
602
|
-
}, Zn = [], jn = /* @__PURE__ */
|
|
603
|
-
Vn,
|
|
623
|
+
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" } })])])]);
|
|
624
|
+
}, Zn = [], jn = /* @__PURE__ */ F(
|
|
604
625
|
Hn,
|
|
626
|
+
Vn,
|
|
605
627
|
Zn,
|
|
606
628
|
!1,
|
|
607
629
|
null,
|
|
@@ -610,16 +632,16 @@ var Hn = function() {
|
|
|
610
632
|
null
|
|
611
633
|
);
|
|
612
634
|
const qn = jn.exports;
|
|
613
|
-
let
|
|
635
|
+
let We = 0;
|
|
614
636
|
const Yn = {
|
|
615
637
|
beforeCreate() {
|
|
616
|
-
this.uuid =
|
|
638
|
+
this.uuid = We.toString(), We += 1;
|
|
617
639
|
}
|
|
618
640
|
};
|
|
619
641
|
var Xn = function() {
|
|
620
642
|
var e = this, n = e._self._c;
|
|
621
|
-
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.
|
|
622
|
-
}, Kn = [], Jn = /* @__PURE__ */
|
|
643
|
+
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" } })]);
|
|
644
|
+
}, Kn = [], Jn = /* @__PURE__ */ F(
|
|
623
645
|
Yn,
|
|
624
646
|
Xn,
|
|
625
647
|
Kn,
|
|
@@ -629,7 +651,27 @@ var Xn = function() {
|
|
|
629
651
|
null,
|
|
630
652
|
null
|
|
631
653
|
);
|
|
632
|
-
const Qn = Jn.exports
|
|
654
|
+
const Qn = Jn.exports;
|
|
655
|
+
let ke = 0;
|
|
656
|
+
const es = {
|
|
657
|
+
beforeCreate() {
|
|
658
|
+
this.uuid = ke.toString(), ke += 1;
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
var ts = function() {
|
|
662
|
+
var e = this, n = e._self._c;
|
|
663
|
+
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" } })]);
|
|
664
|
+
}, ns = [], ss = /* @__PURE__ */ F(
|
|
665
|
+
es,
|
|
666
|
+
ts,
|
|
667
|
+
ns,
|
|
668
|
+
!1,
|
|
669
|
+
null,
|
|
670
|
+
null,
|
|
671
|
+
null,
|
|
672
|
+
null
|
|
673
|
+
);
|
|
674
|
+
const ls = ss.exports, is = {
|
|
633
675
|
"en-US": {
|
|
634
676
|
sortColumn: "Sort {name} column",
|
|
635
677
|
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
@@ -642,13 +684,14 @@ const Qn = Jn.exports, es = {
|
|
|
642
684
|
selectPage: "Select this page",
|
|
643
685
|
selectionMenu: "Selection menu",
|
|
644
686
|
showColumn: "Show column",
|
|
645
|
-
unfreezeColumn: "Unfreeze column"
|
|
687
|
+
unfreezeColumn: "Unfreeze column",
|
|
688
|
+
columnActions: "{name} column actions"
|
|
646
689
|
}
|
|
647
|
-
},
|
|
648
|
-
i18n: { messages:
|
|
690
|
+
}, os = {
|
|
691
|
+
i18n: { messages: is },
|
|
649
692
|
name: "data-grid-columns"
|
|
650
|
-
},
|
|
651
|
-
...
|
|
693
|
+
}, as = /* @__PURE__ */ Y({
|
|
694
|
+
...os,
|
|
652
695
|
props: {
|
|
653
696
|
/**
|
|
654
697
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -699,6 +742,13 @@ const Qn = Jn.exports, es = {
|
|
|
699
742
|
type: Boolean,
|
|
700
743
|
default: !1
|
|
701
744
|
},
|
|
745
|
+
/**
|
|
746
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
747
|
+
*/
|
|
748
|
+
hoveredOverColumnState: {
|
|
749
|
+
type: Object,
|
|
750
|
+
required: !0
|
|
751
|
+
},
|
|
702
752
|
/**
|
|
703
753
|
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
704
754
|
*/
|
|
@@ -758,79 +808,96 @@ const Qn = Jn.exports, es = {
|
|
|
758
808
|
default: !1
|
|
759
809
|
}
|
|
760
810
|
},
|
|
811
|
+
emits: ["column-hover"],
|
|
761
812
|
setup(s, { emit: e }) {
|
|
762
|
-
const n = s, { t } =
|
|
813
|
+
const n = s, t = 100, { t: l } = ve(), { columns: o, sortBy: u } = he(n), f = S({}), g = S(), m = S(), d = (i) => e(x.SELECT_ALL_ROWS, i), c = (i) => i.field === J, R = b(() => [
|
|
763
814
|
{
|
|
764
|
-
text:
|
|
765
|
-
handler: () =>
|
|
815
|
+
text: l("selectPage"),
|
|
816
|
+
handler: () => d(!0)
|
|
766
817
|
},
|
|
767
818
|
{
|
|
768
|
-
text:
|
|
769
|
-
handler: () => e(
|
|
819
|
+
text: l("selectAll"),
|
|
820
|
+
handler: () => e(x.SELECT_ALL_ACROSS_PAGES)
|
|
770
821
|
}
|
|
771
|
-
]), { startResize:
|
|
772
|
-
var
|
|
773
|
-
if (!
|
|
822
|
+
]), { startResize: r, isResizing: a, columnHoverEventToEmitAfterResizing: v } = ln(o, e), { isSorting: _, getSortingDirection: h, sortByColumnField: y } = _n(u, o, e), C = (i) => {
|
|
823
|
+
var k;
|
|
824
|
+
if (!i.sortable)
|
|
774
825
|
return null;
|
|
775
|
-
const
|
|
776
|
-
return
|
|
777
|
-
[
|
|
778
|
-
[
|
|
779
|
-
}[
|
|
780
|
-
},
|
|
781
|
-
dragstart: (
|
|
782
|
-
e(
|
|
826
|
+
const N = (k = n.sortBy.find(({ field: X }) => X === i.field)) == null ? void 0 : k.direction;
|
|
827
|
+
return N ? {
|
|
828
|
+
[q.ASCENDING]: fe.ASCENDING,
|
|
829
|
+
[q.DESCENDING]: fe.DESCENDING
|
|
830
|
+
}[N] : fe.NONE;
|
|
831
|
+
}, O = b(() => (i) => n.hasDraggableColumns ? {
|
|
832
|
+
dragstart: (N) => {
|
|
833
|
+
e(x.COLUMN_DRAG_START, i, N);
|
|
783
834
|
},
|
|
784
|
-
dragover: (
|
|
785
|
-
|
|
835
|
+
dragover: (N) => {
|
|
836
|
+
N.preventDefault();
|
|
786
837
|
},
|
|
787
|
-
dragenter: (
|
|
788
|
-
|
|
838
|
+
dragenter: (N) => {
|
|
839
|
+
N.preventDefault(), e(x.COLUMN_DRAG_ENTER, i, N);
|
|
789
840
|
},
|
|
790
841
|
drop: () => {
|
|
791
|
-
e(
|
|
842
|
+
e(x.COLUMN_DROP, i);
|
|
792
843
|
},
|
|
793
844
|
dragend: () => {
|
|
794
|
-
e(
|
|
845
|
+
e(x.COLUMN_DRAG_END);
|
|
795
846
|
}
|
|
796
|
-
} : {}),
|
|
847
|
+
} : {}), T = b(() => (i) => [
|
|
797
848
|
{
|
|
798
|
-
text:
|
|
799
|
-
handler: () => e(
|
|
800
|
-
icon:
|
|
801
|
-
disabled: n.columns[0].field ===
|
|
849
|
+
text: l("moveColumnLeft"),
|
|
850
|
+
handler: () => e(x.COLUMN_MOVE, i, -1),
|
|
851
|
+
icon: tn,
|
|
852
|
+
disabled: n.columns[0].field === i.field
|
|
802
853
|
},
|
|
803
854
|
{
|
|
804
|
-
text:
|
|
805
|
-
handler: () => e(
|
|
806
|
-
icon:
|
|
807
|
-
disabled: n.columns[n.columns.length - 1].field ===
|
|
855
|
+
text: l("moveColumnRight"),
|
|
856
|
+
handler: () => e(x.COLUMN_MOVE, i, 1),
|
|
857
|
+
icon: Tn,
|
|
858
|
+
disabled: n.columns[n.columns.length - 1].field === i.field
|
|
808
859
|
},
|
|
809
860
|
{
|
|
810
|
-
text:
|
|
811
|
-
handler: () => e(
|
|
812
|
-
icon:
|
|
861
|
+
text: i != null && i.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
862
|
+
handler: () => e(x.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
|
|
863
|
+
icon: nt
|
|
813
864
|
},
|
|
814
865
|
{
|
|
815
|
-
text: (
|
|
866
|
+
text: (i == null ? void 0 : i.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
816
867
|
handler: () => {
|
|
817
|
-
e(
|
|
818
|
-
...
|
|
819
|
-
visible: (
|
|
868
|
+
e(x.COLUMN_UPDATE, {
|
|
869
|
+
...i,
|
|
870
|
+
visible: (i == null ? void 0 : i.visible) === !1
|
|
820
871
|
});
|
|
821
872
|
},
|
|
822
|
-
icon: (
|
|
823
|
-
disabled: (
|
|
873
|
+
icon: (i == null ? void 0 : i.visible) !== !1 ? Un : Qn,
|
|
874
|
+
disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && n.isOnlyOneVisibleColumn
|
|
824
875
|
}
|
|
825
|
-
]),
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
876
|
+
]), p = (i) => {
|
|
877
|
+
g.value = i.field, m.value && clearTimeout(m.value);
|
|
878
|
+
}, I = () => {
|
|
879
|
+
const i = setTimeout(() => {
|
|
880
|
+
g.value = "";
|
|
881
|
+
}, t);
|
|
882
|
+
m.value = i;
|
|
883
|
+
}, D = (i) => {
|
|
884
|
+
let N = {
|
|
885
|
+
mouseenter: () => {
|
|
886
|
+
p(i), a.value ? v.value = i : e("column-hover", i);
|
|
887
|
+
},
|
|
888
|
+
mouseleave: () => {
|
|
889
|
+
I(), a.value ? v.value = null : e("column-hover", null);
|
|
890
|
+
},
|
|
891
|
+
focus: () => p(i)
|
|
892
|
+
};
|
|
893
|
+
return c(i) || (N = {
|
|
894
|
+
...N,
|
|
895
|
+
...O.value(i)
|
|
896
|
+
}), N;
|
|
897
|
+
}, U = (i) => i.infoIconTooltip || i.sortable || n.hasColumnPanel, G = b(
|
|
831
898
|
() => {
|
|
832
|
-
var
|
|
833
|
-
return (
|
|
899
|
+
var i;
|
|
900
|
+
return (i = o.value[0]) != null && i.frozen ? {
|
|
834
901
|
"b-data-grid-columns--frozen": !0,
|
|
835
902
|
"b-data-grid-columns--frozen-separator": n.showFrozenColumnsSeparator,
|
|
836
903
|
"b-data-grid-columns--overflow-shadow-left": n.hasLeftOverflow
|
|
@@ -838,94 +905,99 @@ const Qn = Jn.exports, es = {
|
|
|
838
905
|
"b-data-grid-columns--unfrozen": !0
|
|
839
906
|
};
|
|
840
907
|
}
|
|
841
|
-
),
|
|
842
|
-
var
|
|
908
|
+
), w = (i, N) => i && N === 0 ? Ne.BOTTOM_START : Ne.BOTTOM_END, A = (i, N) => {
|
|
909
|
+
var Q, k, X, ee, K, le, ie, oe, ae, re;
|
|
843
910
|
return {
|
|
844
|
-
"b-data-grid-columns__column--
|
|
845
|
-
"b-data-grid-columns__column--
|
|
846
|
-
"b-data-grid-columns__column--
|
|
847
|
-
"b-data-grid-columns__column--
|
|
848
|
-
"b-data-grid-columns__column--
|
|
849
|
-
"b-data-grid-columns__column--
|
|
850
|
-
"b-data-grid-columns__column--
|
|
851
|
-
"b-data-grid-columns__column--
|
|
852
|
-
"b-data-grid-columns__column--
|
|
911
|
+
"b-data-grid-columns__column--column-hovered": i.field === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
912
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": i.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
913
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": i.field === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
914
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": n.isFrozenColumns && N === o.value.length - 1,
|
|
915
|
+
"b-data-grid-columns__column--sortable": i.sortable,
|
|
916
|
+
"b-data-grid-columns__column--padding-left-unset": ((Q = i == null ? void 0 : i.padding) == null ? void 0 : Q.left) === !1,
|
|
917
|
+
"b-data-grid-columns__column--padding-right-unset": ((k = i == null ? void 0 : i.padding) == null ? void 0 : k.right) === !1,
|
|
918
|
+
"b-data-grid-columns__column--numeric": i == null ? void 0 : i.numeric,
|
|
919
|
+
"b-data-grid-columns__column--frozen": i == null ? void 0 : i.frozen,
|
|
920
|
+
"b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((ee = (X = n.draggingColumns) == null ? void 0 : X.dragging) == null ? void 0 : ee.field),
|
|
921
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === ((le = (K = n.draggingColumns) == null ? void 0 : K.target) == null ? void 0 : le.field) && ((ie = n.draggingColumns) == null ? void 0 : ie.dragToLeft),
|
|
922
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((ae = (oe = n.draggingColumns) == null ? void 0 : oe.target) == null ? void 0 : ae.field) && !((re = n.draggingColumns) != null && re.dragToLeft),
|
|
923
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": i.sortable || i.infoIconTooltip || n.hasColumnPanel && g.value === i.field || n.selectableAcrossPages
|
|
853
924
|
};
|
|
854
|
-
},
|
|
855
|
-
"b-data-grid-columns__column-header-and-actions--numeric":
|
|
856
|
-
}),
|
|
857
|
-
"b-data-grid-columns__column-actions--numeric":
|
|
858
|
-
}),
|
|
859
|
-
"b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns
|
|
860
|
-
|
|
925
|
+
}, W = (i) => ({
|
|
926
|
+
"b-data-grid-columns__column-header-and-actions--numeric": i == null ? void 0 : i.numeric
|
|
927
|
+
}), me = (i) => ({
|
|
928
|
+
"b-data-grid-columns__column-actions--numeric": i == null ? void 0 : i.numeric
|
|
929
|
+
}), ne = (i) => ({
|
|
930
|
+
"b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns,
|
|
931
|
+
"b-data-grid-columns__column-separator-container--is-offset": n.hoveredOverColumnState.hoveredOverColumnField === i.field && n.hoveredOverColumnState.isSeparatorOffset
|
|
932
|
+
}), se = b(() => ({
|
|
861
933
|
"b-data-grid-columns__column-header--truncated": n.truncateColumnHeaders
|
|
862
934
|
}));
|
|
863
|
-
return { __sfc: !0, props: n, emit: e, t,
|
|
935
|
+
return { __sfc: !0, props: n, emit: e, CLOSING_CONTEXTUAL_MENU_DELAY_MS: t, t: l, columns: o, sortBy: u, contextMenuRef: f, hoveredColumnField: g, closingTimeOutId: m, onAllRowSelect: d, isSelectColumn: c, selectAllMenu: R, startResize: r, isResizing: a, columnHoverEventToEmitAfterResizing: v, isSorting: _, getSortingDirection: h, sortByColumnField: y, getSortingColumnDirection: C, draggingEventsForColumn: O, contextualMenuData: T, showContextualMenu: p, hideContextualMenu: I, dataGridColumnEvents: D, hasColumnActions: U, conditionalColumnsClasses: G, computeMenuPosition: w, conditionalColumnClasses: A, conditionalColumnHeaderAndActionsClasses: W, conditionalColumnActionsClasses: me, conditionalColumnSeparatorClasses: ne, conditionalColumnHeaderClasses: se, BentoCheckbox: et, BentoDatagridSortDirection: q, BentoTypography: ge, BentoInfoIcon: en, DatagridColumnsEvent: x, BentoMenu: tt, BentoToggleButton: Qe, ArrowUpAndDownSortIcon: bn, SortAscendingIcon: kn, SortDescendingIcon: qn, TriangleDown: ls };
|
|
864
936
|
}
|
|
865
937
|
});
|
|
866
|
-
var
|
|
938
|
+
var rs = function() {
|
|
867
939
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
868
|
-
return n("div", { staticClass: "b-data-grid-columns", class: t.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(t.columns, function(l,
|
|
869
|
-
return n("div", e._g({ key: l.field, staticClass: "b-data-grid-columns__column", class: t.conditionalColumnClasses(l), style: { width: `${l.width}px` }, attrs: { "aria-colindex":
|
|
940
|
+
return n("div", { staticClass: "b-data-grid-columns", class: t.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(t.columns, function(l, o) {
|
|
941
|
+
return n("div", e._g({ key: l.field, staticClass: "b-data-grid-columns__column", class: t.conditionalColumnClasses(l, o), style: { width: `${l.width}px` }, attrs: { "aria-colindex": o + 1, "aria-label": l.label, "aria-sort": t.getSortingColumnDirection(l), "data-testid": `${l.field}-column-header`, draggable: e.hasDraggableColumns && !t.isResizing && !t.isSelectColumn(l), role: "columnheader", tabindex: l.sortable || e.hasColumnPanel || l.infoIconTooltip ? "0" : "-1" } }, t.dataGridColumnEvents(l)), [t.isSelectColumn(l) ? 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() {
|
|
870
942
|
return [n(t.TriangleDown, { attrs: { "svg-title": t.t("selectionMenu") } })];
|
|
871
|
-
}, proxy: !0 }], null, !0) })] : e._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: t.conditionalColumnHeaderAndActionsClasses(l) }, [n(t.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: t.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [e._t(`head-${l.field}`, function() {
|
|
943
|
+
}, proxy: !0 }], null, !0) })] : e._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: t.conditionalColumnHeaderAndActionsClasses(l), attrs: { "aria-label": t.t("columnActions", { name: l.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-${l.field}`, function() {
|
|
872
944
|
return [n("span", { staticClass: "b-data-grid-columns__label" }, [e._v(e._s(l.label))])];
|
|
873
|
-
}, { column: l })], 2),
|
|
945
|
+
}, { column: l })], 2), t.hasColumnActions(l) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: t.conditionalColumnActionsClasses(l) }, [l.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(t.BentoInfoIcon, { attrs: { "tooltip-text": l.infoIconTooltip } })], 1) : e._e(), l.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(t.BentoToggleButton, { attrs: { condensed: "", toggled: t.isSorting(l.field), variant: "tertiary" }, on: { click: function(u) {
|
|
874
946
|
return t.sortByColumnField(l.field);
|
|
875
947
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
876
948
|
return [t.getSortingDirection(l.field) ? t.getSortingDirection(l.field) === t.BentoDatagridSortDirection.ASCENDING ? n(t.SortAscendingIcon, { attrs: { "svg-title": t.t("sortColumnInDescendingOrder", { name: l.label }) } }) : t.getSortingDirection(l.field) === t.BentoDatagridSortDirection.DESCENDING ? n(t.SortDescendingIcon, { attrs: { "svg-title": t.t("sortColumnInAscendingOrder", { name: l.label }) } }) : e._e() : n(t.ArrowUpAndDownSortIcon, { attrs: { "svg-title": t.t("sortColumn", { name: l.label }) } })];
|
|
877
|
-
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel ? n(t.BentoMenu, { staticClass: "b-data-grid-columns__menu", attrs: { data: t.contextualMenuData(l), "menu-position": t.computeMenuPosition(e.hasFirstColumnPanelRightAligned,
|
|
949
|
+
}, proxy: !0 }], null, !0) })], 1) : e._e(), e.hasColumnPanel && t.hoveredColumnField === l.field ? n(t.BentoMenu, { ref: (u) => t.contextMenuRef[l.field] = u, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: t.contextualMenuData(l), "menu-position": t.computeMenuPosition(e.hasFirstColumnPanelRightAligned, o), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(u) {
|
|
878
950
|
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
879
|
-
}, close: function(
|
|
951
|
+
}, close: function(u) {
|
|
880
952
|
return e.$emit(t.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
881
|
-
} } }) : e._e()], 1) : e._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: t.conditionalColumnSeparatorClasses, attrs: { "data-testid": `data-grid-column-${l.field}`, role: "presentation" }, on: { mousedown: function(
|
|
882
|
-
return t.startResize(e.hasResizableColumns, l.field,
|
|
883
|
-
}, click: function(
|
|
884
|
-
|
|
885
|
-
} } }, [!e.isFrozenColumns || e.isFrozenColumns &&
|
|
953
|
+
} } }) : e._e()], 1) : e._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: t.conditionalColumnSeparatorClasses(l), attrs: { "data-testid": `data-grid-column-${l.field}`, role: "presentation" }, on: { mousedown: function(u) {
|
|
954
|
+
return t.startResize(e.hasResizableColumns, l.field, u);
|
|
955
|
+
}, click: function(u) {
|
|
956
|
+
u.stopPropagation();
|
|
957
|
+
} } }, [!e.isFrozenColumns || e.isFrozenColumns && o !== t.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
|
|
886
958
|
}), 0);
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
959
|
+
}, ds = [], cs = /* @__PURE__ */ F(
|
|
960
|
+
as,
|
|
961
|
+
rs,
|
|
962
|
+
ds,
|
|
891
963
|
!1,
|
|
892
964
|
null,
|
|
893
|
-
"
|
|
965
|
+
"47bb59a9",
|
|
894
966
|
null,
|
|
895
967
|
null
|
|
896
968
|
);
|
|
897
|
-
const
|
|
898
|
-
var
|
|
899
|
-
let
|
|
900
|
-
const
|
|
969
|
+
const us = cs.exports;
|
|
970
|
+
var V = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(V || {});
|
|
971
|
+
let He = 0;
|
|
972
|
+
const _s = {
|
|
901
973
|
beforeCreate() {
|
|
902
|
-
this.uuid =
|
|
974
|
+
this.uuid = He.toString(), He += 1;
|
|
903
975
|
}
|
|
904
976
|
};
|
|
905
|
-
var
|
|
977
|
+
var fs = function() {
|
|
906
978
|
var e = this, n = e._self._c;
|
|
907
979
|
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" } })])])]);
|
|
908
|
-
},
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
980
|
+
}, gs = [], vs = /* @__PURE__ */ F(
|
|
981
|
+
_s,
|
|
982
|
+
fs,
|
|
983
|
+
gs,
|
|
912
984
|
!1,
|
|
913
985
|
null,
|
|
914
986
|
null,
|
|
915
987
|
null,
|
|
916
988
|
null
|
|
917
989
|
);
|
|
918
|
-
const
|
|
990
|
+
const ms = vs.exports, Cs = {
|
|
919
991
|
"en-US": {
|
|
920
992
|
toggleColumnVisibility: "Toggle {label} column visibility",
|
|
921
993
|
toggleColumnFreeze: "Toggle {label} column freeze"
|
|
922
994
|
}
|
|
923
|
-
},
|
|
924
|
-
i18n: { messages:
|
|
995
|
+
}, ps = Y({
|
|
996
|
+
i18n: { messages: Cs },
|
|
925
997
|
name: "bento-data-grid",
|
|
926
998
|
components: {
|
|
927
|
-
BentoFreezeIcon:
|
|
928
|
-
BentoToggle:
|
|
999
|
+
BentoFreezeIcon: nt,
|
|
1000
|
+
BentoToggle: Je
|
|
929
1001
|
},
|
|
930
1002
|
props: {
|
|
931
1003
|
/**
|
|
@@ -945,53 +1017,53 @@ const us = ds.exports, _s = {
|
|
|
945
1017
|
},
|
|
946
1018
|
emits: ["visible-column", "updated-column"],
|
|
947
1019
|
setup(s, { emit: e }) {
|
|
948
|
-
const n =
|
|
949
|
-
var
|
|
950
|
-
return (
|
|
951
|
-
}), l =
|
|
952
|
-
var
|
|
953
|
-
return ((
|
|
954
|
-
}),
|
|
1020
|
+
const n = S(!1), t = b(() => {
|
|
1021
|
+
var d;
|
|
1022
|
+
return (d = s.column) == null ? void 0 : d.frozen;
|
|
1023
|
+
}), l = b(() => {
|
|
1024
|
+
var d;
|
|
1025
|
+
return ((d = s.column) == null ? void 0 : d.visible) !== !1;
|
|
1026
|
+
}), o = () => {
|
|
955
1027
|
e("visible-column", { ...s.column, visible: !l.value });
|
|
956
|
-
},
|
|
1028
|
+
}, u = () => {
|
|
957
1029
|
e("updated-column", { ...s.column, frozen: !t.value });
|
|
958
|
-
}, g = () => {
|
|
959
|
-
t.value || (n.value = !0);
|
|
960
1030
|
}, f = () => {
|
|
1031
|
+
t.value || (n.value = !0);
|
|
1032
|
+
}, g = () => {
|
|
961
1033
|
t.value || (n.value = !1);
|
|
962
|
-
},
|
|
1034
|
+
}, m = b(() => ({
|
|
963
1035
|
["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: t.value
|
|
964
1036
|
}));
|
|
965
1037
|
return {
|
|
966
1038
|
// Values
|
|
967
1039
|
isFreezeIconOptionShown: n,
|
|
968
1040
|
isColumnFrozen: t,
|
|
969
|
-
freezeIconConditionalClasses:
|
|
1041
|
+
freezeIconConditionalClasses: m,
|
|
970
1042
|
isColumnVisible: l,
|
|
971
1043
|
// Methods
|
|
972
|
-
toggleColumnVisibility:
|
|
973
|
-
showFreezeIcon:
|
|
974
|
-
hideFreezeIcon:
|
|
975
|
-
toggleColumnFreeze:
|
|
1044
|
+
toggleColumnVisibility: o,
|
|
1045
|
+
showFreezeIcon: f,
|
|
1046
|
+
hideFreezeIcon: g,
|
|
1047
|
+
toggleColumnFreeze: u
|
|
976
1048
|
};
|
|
977
1049
|
}
|
|
978
1050
|
});
|
|
979
|
-
var
|
|
1051
|
+
var hs = function() {
|
|
980
1052
|
var e = this, n = e._self._c;
|
|
981
1053
|
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) {
|
|
982
1054
|
return e.toggleColumnFreeze.apply(null, arguments);
|
|
983
1055
|
} } })], 1);
|
|
984
|
-
},
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1056
|
+
}, Ls = [], Ss = /* @__PURE__ */ F(
|
|
1057
|
+
ps,
|
|
1058
|
+
hs,
|
|
1059
|
+
Ls,
|
|
988
1060
|
!1,
|
|
989
1061
|
null,
|
|
990
1062
|
"246774cd",
|
|
991
1063
|
null,
|
|
992
1064
|
null
|
|
993
1065
|
);
|
|
994
|
-
const
|
|
1066
|
+
const ys = Ss.exports, Es = {
|
|
995
1067
|
"en-US": {
|
|
996
1068
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
997
1069
|
configSettingsPanel: "Configuration settings Panel",
|
|
@@ -1007,22 +1079,22 @@ const vs = ms.exports, ps = {
|
|
|
1007
1079
|
closeSearch: "Close search",
|
|
1008
1080
|
noColumnsMatch: "No columns match this search"
|
|
1009
1081
|
}
|
|
1010
|
-
},
|
|
1011
|
-
i18n: { messages:
|
|
1082
|
+
}, bs = Y({
|
|
1083
|
+
i18n: { messages: Es },
|
|
1012
1084
|
name: "bento-data-grid",
|
|
1013
1085
|
components: {
|
|
1014
|
-
BentoButton:
|
|
1015
|
-
BentoCrossIcon:
|
|
1016
|
-
BentoPopover:
|
|
1017
|
-
BentoSettingsIcon:
|
|
1018
|
-
BentoToggleButton:
|
|
1019
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1020
|
-
BentoSearchBar:
|
|
1021
|
-
BentoSearchIcon:
|
|
1022
|
-
BentoToggle:
|
|
1023
|
-
BentoTypography:
|
|
1086
|
+
BentoButton: Ke,
|
|
1087
|
+
BentoCrossIcon: jt,
|
|
1088
|
+
BentoPopover: Ht,
|
|
1089
|
+
BentoSettingsIcon: ms,
|
|
1090
|
+
BentoToggleButton: Qe,
|
|
1091
|
+
BentoDataGridConfigSettingsConfigRow: ys,
|
|
1092
|
+
BentoSearchBar: Vt,
|
|
1093
|
+
BentoSearchIcon: qt,
|
|
1094
|
+
BentoToggle: Je,
|
|
1095
|
+
BentoTypography: ge
|
|
1024
1096
|
},
|
|
1025
|
-
directives: { BentoClickOutsideDirective:
|
|
1097
|
+
directives: { BentoClickOutsideDirective: Xt },
|
|
1026
1098
|
props: {
|
|
1027
1099
|
/**
|
|
1028
1100
|
* Column definitions
|
|
@@ -1039,65 +1111,69 @@ const vs = ms.exports, ps = {
|
|
|
1039
1111
|
default: !1
|
|
1040
1112
|
}
|
|
1041
1113
|
},
|
|
1042
|
-
emits: [
|
|
1114
|
+
emits: [V.CONFIG_SETTINGS, V.UPDATE_COLUMNS],
|
|
1043
1115
|
setup(s, { emit: e }) {
|
|
1044
|
-
const n =
|
|
1116
|
+
const n = S(null), t = Yt("data-grid-config-settings-popover"), l = S(null), o = S(!1), u = S(!0), f = S(null), g = S(""), m = je(s, "columns"), d = S(!1), c = Zt(g, m), R = () => {
|
|
1045
1117
|
g.value = "";
|
|
1046
|
-
},
|
|
1047
|
-
() => !s.columns.some((
|
|
1048
|
-
),
|
|
1049
|
-
|
|
1050
|
-
var
|
|
1051
|
-
return (
|
|
1052
|
-
})
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1118
|
+
}, r = b(
|
|
1119
|
+
() => !s.columns.some((p) => p.visible === !1 && !p.mandatory)
|
|
1120
|
+
), a = () => {
|
|
1121
|
+
R(), d.value = !d.value, d.value ? B(() => {
|
|
1122
|
+
var p;
|
|
1123
|
+
return (p = l.value.$refs.bentoInputField) == null ? void 0 : p.focusInput();
|
|
1124
|
+
}) : B(() => {
|
|
1125
|
+
var p, I;
|
|
1126
|
+
return (I = (p = f == null ? void 0 : f.value) == null ? void 0 : p.$el) == null ? void 0 : I.focus();
|
|
1127
|
+
}), u.value = r.value;
|
|
1128
|
+
}, v = (p) => p.mandatory ?? !1, _ = (p) => {
|
|
1129
|
+
const I = s.columns.map((D) => ({
|
|
1130
|
+
...D,
|
|
1131
|
+
visible: p.field === D.field ? p.visible : D.visible
|
|
1057
1132
|
}));
|
|
1058
|
-
e(
|
|
1059
|
-
},
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
s.columns.map((
|
|
1133
|
+
e(V.UPDATE_COLUMNS, I);
|
|
1134
|
+
}, h = (p) => {
|
|
1135
|
+
p ? e(
|
|
1136
|
+
V.UPDATE_COLUMNS,
|
|
1137
|
+
s.columns.map((I) => ({ ...I, visible: !0 }))
|
|
1063
1138
|
) : e(
|
|
1064
|
-
|
|
1065
|
-
s.columns.map((
|
|
1139
|
+
V.UPDATE_COLUMNS,
|
|
1140
|
+
s.columns.map((I) => ({ ...I, visible: (I == null ? void 0 : I.mandatory) === !0 }))
|
|
1066
1141
|
);
|
|
1067
|
-
},
|
|
1068
|
-
const
|
|
1069
|
-
...
|
|
1070
|
-
frozen:
|
|
1142
|
+
}, y = (p) => {
|
|
1143
|
+
const I = s.columns.map((D) => ({
|
|
1144
|
+
...D,
|
|
1145
|
+
frozen: p.field === D.field ? !!(p != null && p.frozen) : !!(D != null && D.frozen)
|
|
1071
1146
|
}));
|
|
1072
|
-
e(
|
|
1073
|
-
}, C = (
|
|
1074
|
-
|
|
1147
|
+
e(V.UPDATE_COLUMNS, I);
|
|
1148
|
+
}, C = (p) => {
|
|
1149
|
+
o.value = p, u.value = r.value;
|
|
1075
1150
|
};
|
|
1076
1151
|
return {
|
|
1077
1152
|
// Values
|
|
1078
1153
|
configSettingsButtonRef: n,
|
|
1079
1154
|
popoverId: t,
|
|
1080
|
-
isConfigSettingsPanelOpen:
|
|
1081
|
-
allColumnsVisbilityToggleState:
|
|
1155
|
+
isConfigSettingsPanelOpen: o,
|
|
1156
|
+
allColumnsVisbilityToggleState: u,
|
|
1082
1157
|
filteredColumnVisibilityColumns: c,
|
|
1083
1158
|
searchTerm: g,
|
|
1084
|
-
isColumnVisibilityFilterShown:
|
|
1159
|
+
isColumnVisibilityFilterShown: d,
|
|
1085
1160
|
searchBarRef: l,
|
|
1161
|
+
searchButtonRef: f,
|
|
1086
1162
|
DATAGRID_SELECT_FIELD_NAME: J,
|
|
1087
1163
|
// Methods
|
|
1088
1164
|
setConfigSettingsPanelVisibility: C,
|
|
1089
|
-
emitCondensedToggle: (
|
|
1090
|
-
toggleAllColumnVisibility:
|
|
1091
|
-
clearAction:
|
|
1092
|
-
toggleColumnFilter:
|
|
1093
|
-
emitVisibleColumns:
|
|
1094
|
-
emitFrozenColumns:
|
|
1165
|
+
emitCondensedToggle: (p) => e(V.CONFIG_SETTINGS, p),
|
|
1166
|
+
toggleAllColumnVisibility: h,
|
|
1167
|
+
clearAction: R,
|
|
1168
|
+
toggleColumnFilter: a,
|
|
1169
|
+
emitVisibleColumns: _,
|
|
1170
|
+
emitFrozenColumns: y,
|
|
1095
1171
|
onClickOutside: () => C(!1),
|
|
1096
|
-
isColumnVisibilityToggleDisabled:
|
|
1172
|
+
isColumnVisibilityToggleDisabled: v
|
|
1097
1173
|
};
|
|
1098
1174
|
}
|
|
1099
1175
|
});
|
|
1100
|
-
var
|
|
1176
|
+
var Os = function() {
|
|
1101
1177
|
var e = this, n = e._self._c;
|
|
1102
1178
|
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) {
|
|
1103
1179
|
return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
|
|
@@ -1109,26 +1185,24 @@ var Ls = function() {
|
|
|
1109
1185
|
return [n("bento-cross-icon", { attrs: { "svg-title": e.$t("closeConfigSettingsPanel") } })];
|
|
1110
1186
|
}, proxy: !0 }], null, !1, 13708930) })], 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() {
|
|
1111
1187
|
return [n("bento-cross-icon")];
|
|
1112
|
-
}, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.$t("closeSearch")) + " ")]) : n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1188
|
+
}, 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() {
|
|
1113
1189
|
return [n("bento-search-icon")];
|
|
1114
|
-
}, proxy: !0 }], null, !1, 2341044271) }, [e._v(
|
|
1190
|
+
}, 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) {
|
|
1115
1191
|
e.searchTerm = t;
|
|
1116
|
-
}, clear: e.clearAction, "escape-pressed": function(t) {
|
|
1117
|
-
return e.toggleColumnFilter();
|
|
1118
|
-
} } })], 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) {
|
|
1192
|
+
}, 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) {
|
|
1119
1193
|
return n("div", { key: t.field }, [t.field !== e.DATAGRID_SELECT_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);
|
|
1120
1194
|
}), 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);
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1195
|
+
}, Rs = [], Is = /* @__PURE__ */ F(
|
|
1196
|
+
bs,
|
|
1197
|
+
Os,
|
|
1198
|
+
Rs,
|
|
1125
1199
|
!1,
|
|
1126
1200
|
null,
|
|
1127
|
-
"
|
|
1201
|
+
"80f78a2b",
|
|
1128
1202
|
null,
|
|
1129
1203
|
null
|
|
1130
1204
|
);
|
|
1131
|
-
const
|
|
1205
|
+
const As = Is.exports, st = {
|
|
1132
1206
|
"en-US": {
|
|
1133
1207
|
gettingYourData: "Getting your data",
|
|
1134
1208
|
loading: "Loading",
|
|
@@ -1138,66 +1212,66 @@ const Es = ys.exports, Xe = {
|
|
|
1138
1212
|
sortInactive: "{field} sort inactive",
|
|
1139
1213
|
selectRow: "Select row"
|
|
1140
1214
|
}
|
|
1141
|
-
},
|
|
1142
|
-
i18n: { messages:
|
|
1143
|
-
},
|
|
1144
|
-
...
|
|
1215
|
+
}, Ts = {
|
|
1216
|
+
i18n: { messages: st }
|
|
1217
|
+
}, ws = /* @__PURE__ */ Y({
|
|
1218
|
+
...Ts,
|
|
1145
1219
|
__name: "data-grid-lazy-load",
|
|
1146
1220
|
props: {
|
|
1147
1221
|
loading: { type: Boolean },
|
|
1148
1222
|
isInfiniteScroll: { type: Boolean }
|
|
1149
1223
|
},
|
|
1150
1224
|
setup(s) {
|
|
1151
|
-
return { __sfc: !0, BentoLoadingButton:
|
|
1225
|
+
return { __sfc: !0, BentoLoadingButton: nn, BentoLoadingButtonState: sn, BentoLoadingIndicator: qe, BentoDatagridEvent: E };
|
|
1152
1226
|
}
|
|
1153
1227
|
});
|
|
1154
|
-
var
|
|
1228
|
+
var Ds = function() {
|
|
1155
1229
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1156
1230
|
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(e.$t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? n(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(l) {
|
|
1157
1231
|
return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1158
1232
|
} } }, [e._v(e._s(e.$t("showMore")))]) : e._e()], 1);
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1233
|
+
}, Ns = [], $s = /* @__PURE__ */ F(
|
|
1234
|
+
ws,
|
|
1235
|
+
Ds,
|
|
1236
|
+
Ns,
|
|
1163
1237
|
!1,
|
|
1164
1238
|
null,
|
|
1165
1239
|
"434be84c",
|
|
1166
1240
|
null,
|
|
1167
1241
|
null
|
|
1168
1242
|
);
|
|
1169
|
-
const
|
|
1170
|
-
let
|
|
1171
|
-
const
|
|
1243
|
+
const xs = $s.exports;
|
|
1244
|
+
let Ve = 0;
|
|
1245
|
+
const Fs = {
|
|
1172
1246
|
beforeCreate() {
|
|
1173
|
-
this.uuid =
|
|
1247
|
+
this.uuid = Ve.toString(), Ve += 1;
|
|
1174
1248
|
}
|
|
1175
1249
|
};
|
|
1176
|
-
var
|
|
1250
|
+
var Ms = function() {
|
|
1177
1251
|
var e = this, n = e._self._c;
|
|
1178
1252
|
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" } })]);
|
|
1179
|
-
},
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1253
|
+
}, Ps = [], Us = /* @__PURE__ */ F(
|
|
1254
|
+
Fs,
|
|
1255
|
+
Ms,
|
|
1256
|
+
Ps,
|
|
1183
1257
|
!1,
|
|
1184
1258
|
null,
|
|
1185
1259
|
null,
|
|
1186
1260
|
null,
|
|
1187
1261
|
null
|
|
1188
1262
|
);
|
|
1189
|
-
const
|
|
1263
|
+
const zs = Us.exports, Bs = {
|
|
1190
1264
|
"en-US": {
|
|
1191
1265
|
copy: "Copy",
|
|
1192
1266
|
edit: "Edit",
|
|
1193
1267
|
open: "Open",
|
|
1194
1268
|
more: "More"
|
|
1195
1269
|
}
|
|
1196
|
-
},
|
|
1197
|
-
i18n: { messages:
|
|
1270
|
+
}, Gs = {
|
|
1271
|
+
i18n: { messages: Bs },
|
|
1198
1272
|
name: "data-grid-cell-actions"
|
|
1199
|
-
},
|
|
1200
|
-
...
|
|
1273
|
+
}, Ws = /* @__PURE__ */ Y({
|
|
1274
|
+
...Gs,
|
|
1201
1275
|
props: {
|
|
1202
1276
|
/**
|
|
1203
1277
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1223,14 +1297,14 @@ const Ps = $s.exports, xs = {
|
|
|
1223
1297
|
}
|
|
1224
1298
|
},
|
|
1225
1299
|
setup(s) {
|
|
1226
|
-
const e = s, { t: n } =
|
|
1227
|
-
var
|
|
1228
|
-
return ((
|
|
1300
|
+
const e = s, { t: n } = ve(), t = S(), l = b(() => {
|
|
1301
|
+
var d;
|
|
1302
|
+
return ((d = e.cellActions) == null ? void 0 : d.length) > 2 && Ye(
|
|
1229
1303
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1230
1304
|
), e.cellActions.slice(0, 2);
|
|
1231
|
-
}),
|
|
1232
|
-
if (!(!
|
|
1233
|
-
switch (
|
|
1305
|
+
}), o = b(() => (d, c) => {
|
|
1306
|
+
if (!(!c && d.isShort || c && !d.isShort))
|
|
1307
|
+
switch (d.variant) {
|
|
1234
1308
|
case "copy":
|
|
1235
1309
|
return n("copy");
|
|
1236
1310
|
case "edit":
|
|
@@ -1240,21 +1314,21 @@ const Ps = $s.exports, xs = {
|
|
|
1240
1314
|
case "more":
|
|
1241
1315
|
return n("more");
|
|
1242
1316
|
default:
|
|
1243
|
-
return
|
|
1317
|
+
return d.title;
|
|
1244
1318
|
}
|
|
1245
1319
|
});
|
|
1246
|
-
return { __sfc: !0, t: n, props: e, cellActionsMenu: t, limitedRowCellActionsProps: l, getButtonTitle:
|
|
1247
|
-
click: () =>
|
|
1248
|
-
} : {}, getCopyText: (
|
|
1249
|
-
var
|
|
1250
|
-
return (
|
|
1251
|
-
}, shouldShowMenuIconRight: (
|
|
1320
|
+
return { __sfc: !0, t: n, props: e, cellActionsMenu: t, limitedRowCellActionsProps: l, getButtonTitle: o, generateButtonEvents: (d) => (d == null ? void 0 : d.event) !== void 0 ? {
|
|
1321
|
+
click: () => d.event(e.rowDataItem, e.columnKey)
|
|
1322
|
+
} : {}, getCopyText: (d) => {
|
|
1323
|
+
var c, R;
|
|
1324
|
+
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(e.rowDataItem, e.columnKey) : (R = (c = e.rowDataItem) == null ? void 0 : c[e.columnKey]) == null ? void 0 : R.toString();
|
|
1325
|
+
}, shouldShowMenuIconRight: (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: Ke, BentoMenu: tt, Copy: Qt, Edit1Icon: zs, ExternalLinkIcon: Jt, OptionsVerticalIcon: Kt };
|
|
1252
1326
|
}
|
|
1253
1327
|
});
|
|
1254
|
-
var
|
|
1328
|
+
var ks = function() {
|
|
1255
1329
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1256
|
-
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(l,
|
|
1257
|
-
return n("div", { key:
|
|
1330
|
+
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(l, o) {
|
|
1331
|
+
return n("div", { key: o, staticClass: "b-data-grid-cell-actions__action" }, [l.menuData ? n(t.BentoMenu, { ref: "cellActionsMenu", refInFor: !0, attrs: { data: l.menuData, button: {
|
|
1258
1332
|
condensed: !0,
|
|
1259
1333
|
variant: "secondary",
|
|
1260
1334
|
disabled: l.disabled
|
|
@@ -1275,27 +1349,27 @@ var Fs = function() {
|
|
|
1275
1349
|
return [(l == null ? void 0 : l.variant) === "open" ? n(t.ExternalLinkIcon, { attrs: { "svg-title": t.getButtonTitle(l, !0) } }) : n(l.iconRight, { tag: "component", attrs: { "svg-title": l.title } })];
|
|
1276
1350
|
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(l)))], 1);
|
|
1277
1351
|
}), 0)])]);
|
|
1278
|
-
},
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1352
|
+
}, Hs = [], Vs = /* @__PURE__ */ F(
|
|
1353
|
+
Ws,
|
|
1354
|
+
ks,
|
|
1355
|
+
Hs,
|
|
1282
1356
|
!1,
|
|
1283
1357
|
null,
|
|
1284
1358
|
"ab88b1aa",
|
|
1285
1359
|
null,
|
|
1286
1360
|
null
|
|
1287
1361
|
);
|
|
1288
|
-
const
|
|
1289
|
-
var
|
|
1290
|
-
const
|
|
1362
|
+
const Zs = Vs.exports;
|
|
1363
|
+
var P = /* @__PURE__ */ ((s) => (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.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s))(P || {});
|
|
1364
|
+
const js = {
|
|
1291
1365
|
"en-US": {
|
|
1292
1366
|
selectRow: "Select row"
|
|
1293
1367
|
}
|
|
1294
|
-
},
|
|
1295
|
-
i18n: { messages:
|
|
1368
|
+
}, qs = {
|
|
1369
|
+
i18n: { messages: js },
|
|
1296
1370
|
name: "data-grid-cell"
|
|
1297
|
-
},
|
|
1298
|
-
...
|
|
1371
|
+
}, Ys = /* @__PURE__ */ Y({
|
|
1372
|
+
...qs,
|
|
1299
1373
|
props: {
|
|
1300
1374
|
draggingEventsForRowCell: {
|
|
1301
1375
|
type: Function,
|
|
@@ -1345,6 +1419,13 @@ const Ws = {
|
|
|
1345
1419
|
type: Function,
|
|
1346
1420
|
default: (s) => s.id
|
|
1347
1421
|
},
|
|
1422
|
+
/**
|
|
1423
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1424
|
+
*/
|
|
1425
|
+
hoveredOverColumnState: {
|
|
1426
|
+
type: Object,
|
|
1427
|
+
required: !0
|
|
1428
|
+
},
|
|
1348
1429
|
/**
|
|
1349
1430
|
* A customisable method to determine if a row is not selectable.
|
|
1350
1431
|
* The default is that every row is selectable.
|
|
@@ -1375,59 +1456,62 @@ const Ws = {
|
|
|
1375
1456
|
},
|
|
1376
1457
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element"],
|
|
1377
1458
|
setup(s, { expose: e, emit: n }) {
|
|
1378
|
-
const t = s, { t: l } =
|
|
1379
|
-
const
|
|
1459
|
+
const t = s, { t: l } = ve(), o = S(null), u = S(!1), f = (a, v) => (a == null ? void 0 : a.overflow) === Ce.ELLIPSIS ? `${v}` : void 0, g = (a) => a ?? "-", m = (a) => t.columnSets.slice(0, a).reduce((v, { columnSet: _ }) => v + _.length, 0), d = (a, v) => a + m(v), c = (a, v, _) => m() * a + d(v, _), R = (a) => {
|
|
1460
|
+
const _ = { ...{
|
|
1380
1461
|
...t.draggingEventsForRowCell(a)
|
|
1381
|
-
};
|
|
1382
|
-
return a.frozen && (
|
|
1383
|
-
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1386
|
-
}),
|
|
1387
|
-
},
|
|
1388
|
-
var
|
|
1462
|
+
} };
|
|
1463
|
+
return a.frozen && (_.keyup = (h) => n("on-frozen-columns-key-press", h), _.keydown = (h) => n("on-frozen-columns-key-press", h)), a.cellActions && (_.mouseenter = () => {
|
|
1464
|
+
u.value = !0;
|
|
1465
|
+
}, _.mouseleave = () => {
|
|
1466
|
+
u.value = !1;
|
|
1467
|
+
}), _;
|
|
1468
|
+
}, r = (a) => {
|
|
1469
|
+
var v, _, h, y, C, O, T;
|
|
1389
1470
|
return {
|
|
1390
|
-
[`b-data-grid-cell--${
|
|
1391
|
-
[`b-data-grid-cell--${
|
|
1392
|
-
[`b-data-grid-cell--${
|
|
1393
|
-
[`b-data-grid-cell--${
|
|
1394
|
-
[`b-data-grid-cell--${
|
|
1395
|
-
[`b-data-grid-cell--${
|
|
1396
|
-
[`b-data-grid-cell--${
|
|
1397
|
-
[`b-data-grid-cell--${
|
|
1398
|
-
[`b-data-grid-cell--${
|
|
1471
|
+
[`b-data-grid-cell--${P.COLUMN_HOVERED}`]: (a == null ? void 0 : a.field) === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1472
|
+
[`b-data-grid-cell--${P.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (a == null ? void 0 : a.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1473
|
+
[`b-data-grid-cell--${P.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (a == null ? void 0 : a.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1474
|
+
[`b-data-grid-cell--${P.PADDING_LEFT_UNSET}`]: ((v = a == null ? void 0 : a.padding) == null ? void 0 : v.left) === !1,
|
|
1475
|
+
[`b-data-grid-cell--${P.PADDING_RIGHT_UNSET}`]: ((_ = a == null ? void 0 : a.padding) == null ? void 0 : _.right) === !1,
|
|
1476
|
+
[`b-data-grid-cell--${P.NUMERIC}`]: a == null ? void 0 : a.numeric,
|
|
1477
|
+
[`b-data-grid-cell--${P.CONDENSED}`]: t.condensed,
|
|
1478
|
+
[`b-data-grid-cell--${P.OVERFLOW_ELLIPSIS}`]: (a == null ? void 0 : a.overflow) === Ce.ELLIPSIS,
|
|
1479
|
+
[`b-data-grid-cell--${P.IS_COLUMN_REORDERING}`]: ((h = t.draggingColumns.dragging) == null ? void 0 : h.field) === a.field,
|
|
1480
|
+
[`b-data-grid-cell--${P.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((y = t.draggingColumns.target) == null ? void 0 : y.field) === a.field && ((C = t.draggingColumns) == null ? void 0 : C.dragToLeft),
|
|
1481
|
+
[`b-data-grid-cell--${P.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((O = t.draggingColumns.target) == null ? void 0 : O.field) === a.field && !((T = t.draggingColumns) != null && T.dragToLeft),
|
|
1482
|
+
[`b-data-grid-cell--${P.FROZEN}`]: a == null ? void 0 : a.frozen
|
|
1399
1483
|
};
|
|
1400
1484
|
};
|
|
1401
1485
|
return e({
|
|
1402
|
-
gridcellRef:
|
|
1403
|
-
}), { __sfc: !0, t: l, props: t, emit: n, gridcellRef:
|
|
1486
|
+
gridcellRef: o
|
|
1487
|
+
}), { __sfc: !0, t: l, props: t, emit: n, gridcellRef: o, shouldShowCellActions: u, conditionalTitleAttribute: f, getRowData: g, sumColumnAmountsInColumnSets: m, getColIndex: d, getCellIndex: c, getGridcellEvents: R, conditionalRowCellClasses: r, DATAGRID_SELECT_FIELD_NAME: J, BentoCheckbox: et, BentoTypography: ge, DataGridCellActions: Zs };
|
|
1404
1488
|
}
|
|
1405
1489
|
});
|
|
1406
|
-
var
|
|
1490
|
+
var Xs = function() {
|
|
1407
1491
|
var l;
|
|
1408
1492
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1409
1493
|
return n("div", e._g({ key: `cell-${e.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: t.conditionalRowCellClasses(e.column), style: {
|
|
1410
1494
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
1411
1495
|
}, attrs: { "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_SELECT_FIELD_NAME ? [n(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${e.column.field}`, function() {
|
|
1412
1496
|
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])))])];
|
|
1413
|
-
}, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions ? n(t.DataGridCellActions, { attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData } }) : e._e()], 1) : e._e()] : [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(
|
|
1414
|
-
return e.$emit("select-row",
|
|
1497
|
+
}, { item: e.rowData })], 2), ((l = e.column.cellActions) == null ? void 0 : l.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [t.shouldShowCellActions ? n(t.DataGridCellActions, { attrs: { "cell-actions": e.column.cellActions, "column-key": e.column.field, "row-data-item": e.rowData } }) : e._e()], 1) : e._e()] : [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(o) {
|
|
1498
|
+
return e.$emit("select-row", o);
|
|
1415
1499
|
} } })]], 2);
|
|
1416
|
-
},
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1500
|
+
}, Ks = [], Js = /* @__PURE__ */ F(
|
|
1501
|
+
Ys,
|
|
1502
|
+
Xs,
|
|
1503
|
+
Ks,
|
|
1420
1504
|
!1,
|
|
1421
1505
|
null,
|
|
1422
|
-
"
|
|
1506
|
+
"b4fca883",
|
|
1423
1507
|
null,
|
|
1424
1508
|
null
|
|
1425
1509
|
);
|
|
1426
|
-
const
|
|
1427
|
-
i18n: { messages:
|
|
1510
|
+
const Qs = Js.exports, el = {
|
|
1511
|
+
i18n: { messages: st },
|
|
1428
1512
|
name: "bento-data-grid"
|
|
1429
|
-
},
|
|
1430
|
-
...
|
|
1513
|
+
}, tl = /* @__PURE__ */ Y({
|
|
1514
|
+
...el,
|
|
1431
1515
|
props: {
|
|
1432
1516
|
/**
|
|
1433
1517
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -1488,7 +1572,7 @@ const qs = js.exports, Ys = {
|
|
|
1488
1572
|
* {@see BentoFilterBarModel}
|
|
1489
1573
|
*/
|
|
1490
1574
|
filters: {
|
|
1491
|
-
type:
|
|
1575
|
+
type: _e.props.value.type,
|
|
1492
1576
|
default: void 0
|
|
1493
1577
|
},
|
|
1494
1578
|
/**
|
|
@@ -1496,14 +1580,14 @@ const qs = js.exports, Ys = {
|
|
|
1496
1580
|
* {@see BentoFilterValues}
|
|
1497
1581
|
*/
|
|
1498
1582
|
filterValues: {
|
|
1499
|
-
type:
|
|
1583
|
+
type: _e.props.filterValues.type,
|
|
1500
1584
|
default: () => []
|
|
1501
1585
|
},
|
|
1502
1586
|
/**
|
|
1503
1587
|
* Filter bar search term useful to filter all the data by text
|
|
1504
1588
|
*/
|
|
1505
1589
|
filterSearchTerm: {
|
|
1506
|
-
type:
|
|
1590
|
+
type: _e.props.searchTerm.type,
|
|
1507
1591
|
default: void 0
|
|
1508
1592
|
},
|
|
1509
1593
|
/**
|
|
@@ -1634,193 +1718,202 @@ const qs = js.exports, Ys = {
|
|
|
1634
1718
|
}
|
|
1635
1719
|
},
|
|
1636
1720
|
emits: [
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1721
|
+
E.COLUMNS,
|
|
1722
|
+
E.COLUMN_RESIZE,
|
|
1723
|
+
E.ITEMS_PAGE,
|
|
1724
|
+
E.FILTER_SEARCH_INPUT,
|
|
1725
|
+
E.FILTER_SEARCH_CLEAR,
|
|
1726
|
+
E.NAVIGATE,
|
|
1727
|
+
E.UPDATE_COLUMNS,
|
|
1728
|
+
E.UPDATE_CONDENSED,
|
|
1729
|
+
E.UPDATE_FILTER_VALUES,
|
|
1730
|
+
E.UPDATE_FILTERS,
|
|
1731
|
+
E.UPDATE_FILTER_SEARCH_TERM,
|
|
1732
|
+
E.UPDATE_SHOW_MORE,
|
|
1733
|
+
E.UPDATE_PAGINATION,
|
|
1734
|
+
E.UPDATE_SELECTION,
|
|
1735
|
+
E.UPDATE_SORT_BY,
|
|
1736
|
+
E.ROW_CLICK,
|
|
1737
|
+
E.SELECT,
|
|
1738
|
+
E.SELECT_ALL_ACROSS_PAGES,
|
|
1739
|
+
E.SORT
|
|
1656
1740
|
],
|
|
1657
1741
|
setup(s, { expose: e, emit: n }) {
|
|
1658
|
-
const t = s, l =
|
|
1659
|
-
allowColumnDragAndDrop:
|
|
1660
|
-
columns:
|
|
1661
|
-
data:
|
|
1742
|
+
const t = s, l = Mt(), o = S(null), u = S(), f = S(null), g = S(null), m = S(), d = S(null), {
|
|
1743
|
+
allowColumnDragAndDrop: c,
|
|
1744
|
+
columns: R,
|
|
1745
|
+
data: r,
|
|
1662
1746
|
lazyLoadType: a,
|
|
1663
|
-
selectable:
|
|
1664
|
-
selection:
|
|
1665
|
-
loading:
|
|
1666
|
-
selectableAcrossPages:
|
|
1667
|
-
|
|
1668
|
-
|
|
1747
|
+
selectable: v,
|
|
1748
|
+
selection: _,
|
|
1749
|
+
loading: h,
|
|
1750
|
+
selectableAcrossPages: y,
|
|
1751
|
+
outline: C
|
|
1752
|
+
} = he(t), { t: O } = ve(), T = b(() => w.value.filter((L) => L.frozen).length), p = De(
|
|
1753
|
+
kt,
|
|
1669
1754
|
() => ({
|
|
1670
1755
|
isDataGridTemplate: !1,
|
|
1671
|
-
stickyTabs:
|
|
1672
|
-
tabsRef:
|
|
1756
|
+
stickyTabs: S(!1),
|
|
1757
|
+
tabsRef: S(null)
|
|
1673
1758
|
})
|
|
1674
|
-
), { isDataGridTemplate:
|
|
1675
|
-
columnDefs:
|
|
1676
|
-
onColumnWidthOverride:
|
|
1677
|
-
gridColumnWidthStyle:
|
|
1678
|
-
isMeasuringColumnWidths:
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1759
|
+
), { isDataGridTemplate: I, stickyTabs: D, tabsRef: U } = p(), G = b(() => t.fitContent || I ? 0 : null), {
|
|
1760
|
+
columnDefs: w,
|
|
1761
|
+
onColumnWidthOverride: A,
|
|
1762
|
+
gridColumnWidthStyle: W,
|
|
1763
|
+
isMeasuringColumnWidths: me,
|
|
1764
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: ne,
|
|
1765
|
+
columns: se
|
|
1766
|
+
} = cn(R, r, o, f, {
|
|
1767
|
+
hasSelectableColumn: v,
|
|
1768
|
+
hasSelectableAcrossPages: y
|
|
1769
|
+
}), i = (L, ...$) => {
|
|
1770
|
+
(L === E.COLUMNS || L === E.UPDATE_COLUMNS) && ([se.value] = $), n(L, ...$);
|
|
1771
|
+
}, N = Fe(U, D), Q = b(
|
|
1772
|
+
() => t.stickyFilters ? `${N.value}px` : null
|
|
1773
|
+
), k = Fe(g, je(t, "stickyFilters")), X = b(
|
|
1774
|
+
() => `${k.value + N.value}px`
|
|
1689
1775
|
), {
|
|
1690
|
-
sortedColumns:
|
|
1691
|
-
columnSets:
|
|
1692
|
-
isOnlyOneVisibleColumn:
|
|
1693
|
-
onConfigSettingsUpdate:
|
|
1694
|
-
onConfigSettingsColumnsUpdate:
|
|
1695
|
-
onConfigSettingsColumnUpdate:
|
|
1696
|
-
} =
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1776
|
+
sortedColumns: ee,
|
|
1777
|
+
columnSets: K,
|
|
1778
|
+
isOnlyOneVisibleColumn: le,
|
|
1779
|
+
onConfigSettingsUpdate: ie,
|
|
1780
|
+
onConfigSettingsColumnsUpdate: oe,
|
|
1781
|
+
onConfigSettingsColumnUpdate: ae
|
|
1782
|
+
} = Cn(w, i), { hoveredOverColumn: re, hoveredOverColumnState: lt } = hn(
|
|
1783
|
+
K,
|
|
1784
|
+
v,
|
|
1785
|
+
C,
|
|
1786
|
+
ne
|
|
1787
|
+
), { draggingColumns: Se, draggingEventsForColumns: it, draggingEventsForRowCell: ot, onMoveColumnByOffset: at } = mn(ee, c, i), { onAllRowSelect: rt, onRowSelect: dt, selectedItems: de, allItemsSelectedState: ct } = un(
|
|
1788
|
+
_,
|
|
1789
|
+
i,
|
|
1790
|
+
r,
|
|
1700
1791
|
t.getDataItemId,
|
|
1701
1792
|
t.isDataItemDisabled
|
|
1702
|
-
), { navigationInput:
|
|
1793
|
+
), { navigationInput: ut } = fn(f, R, v), { isLazyLoad: ye, isInfiniteScroll: _t, verticalScrollPosition: Ee, emitLazyLoadEvent: ft } = vn(
|
|
1703
1794
|
a,
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
), { updateScrollPosition:
|
|
1709
|
-
|
|
1710
|
-
},
|
|
1711
|
-
var
|
|
1795
|
+
d,
|
|
1796
|
+
o,
|
|
1797
|
+
h,
|
|
1798
|
+
i
|
|
1799
|
+
), { updateScrollPosition: gt, updateScrollPositionOnFrozenColumnsNavigation: vt, hasLeftOverflow: ce, hasRightOverflow: be } = pn(o, u, Ee), Oe = () => {
|
|
1800
|
+
m.value.isClearAllVisible ? m.value.clearAllFilters() : m.value.isResetAllVisible && m.value.resetAllFilters();
|
|
1801
|
+
}, mt = b(() => {
|
|
1802
|
+
var L, $;
|
|
1712
1803
|
return {
|
|
1713
1804
|
...t.emptyState,
|
|
1714
|
-
variant: ((
|
|
1805
|
+
variant: ((L = t.emptyState) == null ? void 0 : L.variant) === "embedded" || (($ = t.emptyState) == null ? void 0 : $.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
1715
1806
|
};
|
|
1716
|
-
}),
|
|
1717
|
-
[`b-data-grid--${
|
|
1718
|
-
[`b-data-grid--${
|
|
1719
|
-
[`b-data-grid--${
|
|
1720
|
-
[`b-data-grid--${
|
|
1721
|
-
[`b-data-grid--${
|
|
1722
|
-
})),
|
|
1723
|
-
var
|
|
1807
|
+
}), Ct = b(() => ({
|
|
1808
|
+
[`b-data-grid--${j.OUTLINE}`]: t.outline,
|
|
1809
|
+
[`b-data-grid--${j.SCROLL}`]: t.fitContent || ye.value,
|
|
1810
|
+
[`b-data-grid--${j.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
1811
|
+
[`b-data-grid--${j.OVERFLOW_SHADOW_LEFT}`]: ce.value && !T.value,
|
|
1812
|
+
[`b-data-grid--${j.OVERFLOW_SHADOW_RIGHT}`]: be.value
|
|
1813
|
+
})), pt = b(() => K.value.findIndex((L) => L.columnSet.length)), ht = (L) => {
|
|
1814
|
+
var $;
|
|
1724
1815
|
return {
|
|
1725
|
-
"b-data-grid__row--disabled": t.isDataItemDisabled(
|
|
1816
|
+
"b-data-grid__row--disabled": t.isDataItemDisabled(L),
|
|
1726
1817
|
"b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
|
|
1727
|
-
"b-data-grid__cell--is-re-ordering": ((
|
|
1728
|
-
"b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(
|
|
1818
|
+
"b-data-grid__cell--is-re-ordering": (($ = Se.target) == null ? void 0 : $.field) !== void 0,
|
|
1819
|
+
"b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(L)) || de.value.includes(t.getDataItemId(L))
|
|
1729
1820
|
};
|
|
1730
|
-
},
|
|
1731
|
-
"b-data-grid__row-cell-set--frozen":
|
|
1732
|
-
[`b-data-grid__row-cell-set--${
|
|
1733
|
-
"b-data-grid__row-cell-set--frozen-separator":
|
|
1734
|
-
"b-data-grid__row-cell-set--unfrozen": !
|
|
1735
|
-
}),
|
|
1736
|
-
var
|
|
1821
|
+
}, Re = b(() => !(t.selectable && T.value === 1) || ce.value), Lt = (L) => ({
|
|
1822
|
+
"b-data-grid__row-cell-set--frozen": L,
|
|
1823
|
+
[`b-data-grid__row-cell-set--${j.OVERFLOW_SHADOW_LEFT}`]: L && ce.value,
|
|
1824
|
+
"b-data-grid__row-cell-set--frozen-separator": L && Re.value,
|
|
1825
|
+
"b-data-grid__row-cell-set--unfrozen": !L
|
|
1826
|
+
}), St = b(() => {
|
|
1827
|
+
var L, $, ue, Z, te, we;
|
|
1737
1828
|
return {
|
|
1738
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
1739
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
1740
|
-
"b-data-grid__pagination--sticky": !!t.stickyPagination ||
|
|
1829
|
+
"b-data-grid__pagination--padding-left-unset": ((ue = ($ = (L = t.columns) == null ? void 0 : L[0]) == null ? void 0 : $.padding) == null ? void 0 : ue.left) === !1,
|
|
1830
|
+
"b-data-grid__pagination--padding-right-unset": ((we = (te = (Z = t.columns) == null ? void 0 : Z[t.columns.length - 1]) == null ? void 0 : te.padding) == null ? void 0 : we.right) === !1,
|
|
1831
|
+
"b-data-grid__pagination--sticky": !!t.stickyPagination || I
|
|
1741
1832
|
};
|
|
1742
|
-
}),
|
|
1743
|
-
var
|
|
1744
|
-
const
|
|
1745
|
-
((
|
|
1746
|
-
},
|
|
1747
|
-
t.allowRowClicks &&
|
|
1748
|
-
},
|
|
1749
|
-
label: l != null && l.header ?
|
|
1833
|
+
}), yt = (L, $, ue) => {
|
|
1834
|
+
var te;
|
|
1835
|
+
const Z = L;
|
|
1836
|
+
((te = f.value) == null ? void 0 : te[$]) === void 0 && (f.value = { ...f.value, [$]: [] }), L !== null && (Z != null && Z.gridcellRef) && (f.value[$][ue] = Z.gridcellRef);
|
|
1837
|
+
}, Et = (L, $) => {
|
|
1838
|
+
t.allowRowClicks && i(E.ROW_CLICK, L, $);
|
|
1839
|
+
}, bt = b(() => !!t.selectableAcrossPages && !!t.pagination), Ot = zt({
|
|
1840
|
+
label: l != null && l.header ? Bt(l)("header") : null,
|
|
1750
1841
|
defaultFallback: "data grid"
|
|
1751
|
-
}),
|
|
1842
|
+
}), Rt = (L) => {
|
|
1752
1843
|
if (!t.selectable)
|
|
1753
1844
|
return null;
|
|
1754
|
-
const
|
|
1755
|
-
return
|
|
1756
|
-
},
|
|
1757
|
-
var
|
|
1758
|
-
return ((
|
|
1759
|
-
}),
|
|
1760
|
-
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1845
|
+
const $ = t.getDataItemId(L);
|
|
1846
|
+
return de.value.includes($).toString();
|
|
1847
|
+
}, Ie = b(() => {
|
|
1848
|
+
var L;
|
|
1849
|
+
return ((L = de.value) == null ? void 0 : L.length) ?? 0;
|
|
1850
|
+
}), It = b(() => t.bulkActions && Ie.value > 0), At = (L) => i(E.COLUMN_RESIZE, L), Tt = (L) => {
|
|
1851
|
+
i(E.UPDATE_SORT_BY, L), i(E.SORT, L);
|
|
1852
|
+
}, wt = (L, $) => {
|
|
1853
|
+
i(E.NAVIGATE, L), i(E.UPDATE_PAGINATION, {
|
|
1763
1854
|
...t.pagination,
|
|
1764
|
-
size:
|
|
1765
|
-
page:
|
|
1855
|
+
size: $,
|
|
1856
|
+
page: L
|
|
1766
1857
|
});
|
|
1767
|
-
},
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1770
|
-
|
|
1771
|
-
},
|
|
1772
|
-
|
|
1773
|
-
},
|
|
1774
|
-
|
|
1858
|
+
}, Dt = (L) => {
|
|
1859
|
+
i(E.ITEMS_PAGE, L);
|
|
1860
|
+
}, Nt = () => {
|
|
1861
|
+
i(E.FILTER_SEARCH_CLEAR);
|
|
1862
|
+
}, $t = (L) => {
|
|
1863
|
+
i(E.UPDATE_FILTER_SEARCH_TERM, L), i(E.FILTER_SEARCH_INPUT, L);
|
|
1864
|
+
}, Ae = b(() => R.value.some((L) => L.mandatory));
|
|
1865
|
+
Ae.value || Ye(
|
|
1775
1866
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
1776
1867
|
);
|
|
1777
|
-
const
|
|
1778
|
-
return
|
|
1868
|
+
const Te = De(Wt, () => null);
|
|
1869
|
+
return Te(t.tabTitle), e({ onEmptyStateClearResetButtonClick: Oe }), { __sfc: !0, props: t, slots: l, body: o, columnsRef: u, gridcellRefs: f, filtersRef: g, filterBarRef: m, verticalScrollPositionRef: d, allowColumnDragAndDrop: c, columns: R, data: r, lazyLoadType: a, selectable: v, selection: _, loading: h, selectableAcrossPages: y, outline: C, t: O, frozenColumnsLength: T, registerDatagridInDataGridTemplate: p, isDataGridTemplate: I, stickyTabs: D, tabsRef: U, computedColumnsTabIndex: G, columnDefs: w, onColumnWidthOverride: A, gridColumnWidthStyle: W, isMeasuringColumnWidths: me, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: ne, localColumnsState: se, definedEmitsFunction: n, emit: i, stickyFiltersHeight: N, computedStickyFiltersTopPosition: Q, columnHeadersHeight: k, computedColumnHeadersTopPosition: X, sortedColumns: ee, columnSets: K, isOnlyOneVisibleColumn: le, onConfigSettingsUpdate: ie, onConfigSettingsColumnsUpdate: oe, onConfigSettingsColumnUpdate: ae, hoveredOverColumn: re, hoveredOverColumnState: lt, draggingColumns: Se, draggingEventsForColumns: it, draggingEventsForRowCell: ot, onMoveColumnByOffset: at, onAllRowSelect: rt, onRowSelect: dt, selectedItems: de, allItemsSelectedState: ct, navigationInput: ut, isLazyLoad: ye, isInfiniteScroll: _t, verticalScrollPosition: Ee, emitLazyLoadEvent: ft, updateScrollPosition: gt, updateScrollPositionOnFrozenColumnsNavigation: vt, hasLeftOverflow: ce, hasRightOverflow: be, onEmptyStateClearResetButtonClick: Oe, limitedEmptyStateProps: mt, conditionalGridClasses: Ct, computedColumnPanelAlignment: pt, conditionalRowClasses: ht, showFrozenColumnsSeparator: Re, conditionalRowSetClasses: Lt, conditionalPaginationClasses: St, registerRowCellRef: yt, onRowClick: Et, selectableAcrossPagesComputed: bt, ariaGridHeaderText: Ot, getRowAriaSelectedValue: Rt, itemsSelectedCounter: Ie, showActionBar: It, onColumnResized: At, onSort: Tt, onPaginationNavigate: wt, onItemsPerPageChange: Dt, onSearchTermCleared: Nt, onSearchTermInput: $t, hasMandatoryColumn: Ae, setTitle: Te, BentoActionBar: Pt, BentoPagination: Ut, BentoLoadingIndicator: qe, BentoTypography: ge, BentoDataGridConfigSettings: As, DataGridCell: Qs, DataGridColumns: us, DataGridLazyLoad: xs, BentoDatagridEvent: E, BentoEmptyState: Gt, BentoFilterBar: _e };
|
|
1779
1870
|
}
|
|
1780
1871
|
});
|
|
1781
|
-
var
|
|
1872
|
+
var nl = function() {
|
|
1782
1873
|
var l;
|
|
1783
1874
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1784
|
-
return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", 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: (
|
|
1785
|
-
return [
|
|
1875
|
+
return n("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", 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: (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, o), "update:filter-values": (o) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, o) } }) : 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 } }, [e.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: o, id: u, isFrozenColumns: f }, g) {
|
|
1876
|
+
return [o != null && o.length ? n(t.DataGridColumns, e._g({ key: `data-grid-columns-${u}`, attrs: { columns: o, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": f, "show-frozen-columns-separator": t.showFrozenColumnsSeparator, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": t.hasLeftOverflow, "has-first-column-panel-right-aligned": g === t.computedColumnPanelAlignment, "hovered-over-column-state": t.hoveredOverColumnState, "is-only-one-visible-column": t.isOnlyOneVisibleColumn, "selectable-across-pages": t.selectableAcrossPagesComputed, "truncate-column-headers": e.truncateColumnHeaders }, on: { "column-hover": function(m) {
|
|
1877
|
+
t.hoveredOverColumn = m;
|
|
1878
|
+
}, "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) {
|
|
1786
1879
|
return t.emit(t.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
1787
|
-
}, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(
|
|
1788
|
-
return { key:
|
|
1789
|
-
return [e._t(
|
|
1880
|
+
}, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(m, d) {
|
|
1881
|
+
return { key: d, fn: function(c) {
|
|
1882
|
+
return [e._t(d, null, null, c)];
|
|
1790
1883
|
} };
|
|
1791
1884
|
})], null, !0) }, t.draggingEventsForColumns)) : e._e()];
|
|
1792
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", 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) : ((l = t.data) == null ? void 0 : l.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(
|
|
1793
|
-
return n("div", { key:
|
|
1794
|
-
return t.onRowClick(
|
|
1795
|
-
} } }, [e._l(t.columnSets, function({ columnSet:
|
|
1796
|
-
return [
|
|
1797
|
-
return n(t.DataGridCell, { key: `cell-${
|
|
1798
|
-
return { key: a, fn: function(
|
|
1799
|
-
return [e._t(a, null, null,
|
|
1885
|
+
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", 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) : ((l = t.data) == null ? void 0 : l.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(o, u) {
|
|
1886
|
+
return n("div", { key: u, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(o), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": u + 1, "aria-selected": t.getRowAriaSelectedValue(o) }, on: { click: function(f) {
|
|
1887
|
+
return t.onRowClick(o, f);
|
|
1888
|
+
} } }, [e._l(t.columnSets, function({ columnSet: f, id: g, isFrozenColumns: m }, d) {
|
|
1889
|
+
return [f != null && f.length ? n("div", { key: `data-grid-rows-${g}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(m), attrs: { "data-testid": `data-grid-${g}-rows` } }, e._l(f, function(c, R) {
|
|
1890
|
+
return n(t.DataGridCell, { key: `cell-${c.field}`, ref: (r) => t.registerRowCellRef(r, c.field, u), refInFor: !0, attrs: { column: c, "column-set-index": d, "col-index": R, "column-sets": t.columnSets, condensed: e.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": e.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": e.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "row-data": o, "row-index": u, "selected-items": t.selectedItems }, on: { "cell-hover": (r) => t.hoveredOverColumn = r, "on-frozen-columns-key-press": t.updateScrollPositionOnFrozenColumnsNavigation, "select-row": t.onRowSelect }, scopedSlots: e._u([e._l(t.slots, function(r, a) {
|
|
1891
|
+
return { key: a, fn: function(v) {
|
|
1892
|
+
return [e._t(a, null, null, v)];
|
|
1800
1893
|
} };
|
|
1801
1894
|
})], null, !0) }, [e._v("s ")]);
|
|
1802
1895
|
}), 1) : e._e()];
|
|
1803
1896
|
})], 2);
|
|
1804
|
-
}), 0)]), t.isLazyLoad ? n(t.DataGridLazyLoad, { attrs: { loading: t.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.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", e.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": e.stickyPagination }, on: { close: function(
|
|
1897
|
+
}), 0)]), t.isLazyLoad ? n(t.DataGridLazyLoad, { attrs: { loading: t.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.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", e.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": e.stickyPagination }, on: { close: function(o) {
|
|
1805
1898
|
return t.onAllRowSelect(!1);
|
|
1806
1899
|
} } }) : e._e()], 1);
|
|
1807
|
-
},
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1900
|
+
}, sl = [], ll = /* @__PURE__ */ F(
|
|
1901
|
+
tl,
|
|
1902
|
+
nl,
|
|
1903
|
+
sl,
|
|
1811
1904
|
!1,
|
|
1812
1905
|
null,
|
|
1813
|
-
"
|
|
1906
|
+
"3df47143",
|
|
1814
1907
|
null,
|
|
1815
1908
|
null
|
|
1816
1909
|
);
|
|
1817
|
-
const
|
|
1910
|
+
const zl = ll.exports;
|
|
1818
1911
|
export {
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1912
|
+
Ce as BentoColumnOverflow,
|
|
1913
|
+
zl as BentoDataGrid,
|
|
1914
|
+
fe as BentoDatagridAriaSortValue,
|
|
1915
|
+
E as BentoDatagridEvent,
|
|
1916
|
+
q as BentoDatagridSortDirection,
|
|
1917
|
+
j as BentoDatagridStyleState
|
|
1825
1918
|
};
|
|
1826
1919
|
//# sourceMappingURL=data-grid.js.map
|