@ironsource/shared-ui 2.1.12-rc.48 → 2.1.12-rc.49
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/ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +72 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
- package/components/columnPicker/index.d.ts +20 -20
- package/components/link/Link.vue.d.ts +5 -0
- package/components/link/Link.vue.js +3 -3
- package/components/link/Link.vue2.js +36 -28
- package/components/link/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.js +4 -4
- package/components/sortableList/SortableItem.vue2.js +3 -3
- package/components/sortableList/SortableList.vue.d.ts +2 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +96 -106
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +5 -5
- package/components/table/v4/DataGrid.vue2.js +349 -331
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
- package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
- package/components/table/v4/index.d.ts +104 -103
- package/index.d.ts +287 -284
- package/index.js +82 -78
- package/package.json +5 -1
- package/testids/index.d.ts +8 -0
- package/testids/index.js +34 -33
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ef67c78e_lang.css"; import { defineComponent as ye, useCssVars as fe, unref as t, useSlots as ke, computed as y, openBlock as i, createBlock as C, createSlots as Y, withCtx as u, createElementVNode as g, normalizeStyle as v, normalizeClass as f, isRef as Se, renderSlot as n, createCommentVNode as c, createElementBlock as d, Fragment as x, renderList as $, createVNode as S, createTextVNode as V, toDisplayString as D, mergeProps as I } from "vue";
|
|
2
2
|
import M from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ge from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import me from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import Q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
6
|
import be from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
7
|
import "./DataGrid.vue.js";
|
|
8
8
|
import "./DataGridMenu.vue.js";
|
|
9
9
|
import "./DataGridRowsCounter.vue.js";
|
|
10
10
|
import ve from "./DataGridHeader.vue.js";
|
|
11
11
|
import "./MultipleDataGrid.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import Ce from "
|
|
15
|
-
import xe from "./
|
|
16
|
-
import $e from "./
|
|
17
|
-
import
|
|
18
|
-
|
|
12
|
+
import pe from "./DataGridContainer.vue.js";
|
|
13
|
+
import { TableTestIdModifiers as R } from "../../../testids/index.js";
|
|
14
|
+
import { tableCommon as Ce } from "../common/Table.common.js";
|
|
15
|
+
import xe from "./SortIcon.vue.js";
|
|
16
|
+
import $e from "./HelpIcon.vue.js";
|
|
17
|
+
import Re from "./ExpandRowToggle.vue.js";
|
|
18
|
+
import { DEFAULT_ROW_HEIGHT as Te, CHECKBOX_COLUMN_ID as we } from "../common/consts.js";
|
|
19
|
+
const Be = ["data-testid"], He = ["data-testid"], Ee = ["data-testid"], Pe = {
|
|
19
20
|
key: 1,
|
|
20
21
|
class: "expand-toggle-cell"
|
|
21
|
-
},
|
|
22
|
+
}, Le = ["onClick"], Ve = { class: "table-head-container" }, Ie = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "totals-row"
|
|
24
|
-
},
|
|
25
|
+
}, Me = ["data-testid"], Ae = ["onMouseenter", "onClick"], Fe = {
|
|
25
26
|
key: 2,
|
|
26
27
|
class: "expanded-row"
|
|
27
|
-
},
|
|
28
|
+
}, Ne = {
|
|
28
29
|
key: 3,
|
|
29
30
|
class: "floating-row"
|
|
30
|
-
},
|
|
31
|
+
}, Oe = { key: 1 }, De = {
|
|
31
32
|
key: 0,
|
|
32
33
|
class: "table-footer"
|
|
33
|
-
},
|
|
34
|
+
}, it = /* @__PURE__ */ ye({
|
|
34
35
|
__name: "DataGrid",
|
|
35
36
|
props: {
|
|
36
37
|
title: { default: "" },
|
|
@@ -39,9 +40,9 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
|
|
|
39
40
|
sections: { default: null },
|
|
40
41
|
sort: { default: null },
|
|
41
42
|
selection: { default: null },
|
|
42
|
-
getRowId: { type: Function, default: (
|
|
43
|
-
getRowKey: { type: Function, default: (
|
|
44
|
-
selectedMatcher: { type: Function, default: (
|
|
43
|
+
getRowId: { type: Function, default: (s, m) => m },
|
|
44
|
+
getRowKey: { type: Function, default: (s, m) => m },
|
|
45
|
+
selectedMatcher: { type: Function, default: (s, m) => s === m },
|
|
45
46
|
isSticky: { type: Boolean, default: !0 },
|
|
46
47
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
47
48
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -51,7 +52,7 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
|
|
|
51
52
|
isInfiniteScroll: { type: Boolean, default: !1 },
|
|
52
53
|
showTotalsRow: { type: Boolean },
|
|
53
54
|
infiniteScrollThreshold: { default: 100 },
|
|
54
|
-
rowHeight: { type: [Number, Function], default:
|
|
55
|
+
rowHeight: { type: [Number, Function], default: Te },
|
|
55
56
|
loadingRowCount: { default: 3 },
|
|
56
57
|
defaultScrollPosition: { default: null },
|
|
57
58
|
helpTooltipVariant: { default: "icon" },
|
|
@@ -67,353 +68,370 @@ const we = ["data-testid"], Be = ["data-testid"], He = ["data-testid"], Ee = {
|
|
|
67
68
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
68
69
|
},
|
|
69
70
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
70
|
-
setup(
|
|
71
|
-
const a =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
setup(s, { expose: m, emit: k }) {
|
|
72
|
+
const a = s;
|
|
73
|
+
fe((l) => ({
|
|
74
|
+
"6539eabc": s.zIndexBase,
|
|
75
|
+
"118a88d4": t(te),
|
|
76
|
+
"49737de2": t(z)
|
|
76
77
|
}));
|
|
77
|
-
const
|
|
78
|
-
list:
|
|
79
|
-
containerProps:
|
|
80
|
-
wrapperProps:
|
|
81
|
-
activeRow:
|
|
82
|
-
gridColumnTemplate:
|
|
83
|
-
toggleSortOrder:
|
|
84
|
-
columnsStickyPositions:
|
|
85
|
-
hasSearchSlot:
|
|
86
|
-
containerStyle:
|
|
78
|
+
const b = ke(), X = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
|
|
79
|
+
list: T,
|
|
80
|
+
containerProps: j,
|
|
81
|
+
wrapperProps: q,
|
|
82
|
+
activeRow: w,
|
|
83
|
+
gridColumnTemplate: z,
|
|
84
|
+
toggleSortOrder: J,
|
|
85
|
+
columnsStickyPositions: B,
|
|
86
|
+
hasSearchSlot: Z,
|
|
87
|
+
containerStyle: _,
|
|
87
88
|
onScroll: K,
|
|
88
89
|
savingRows: U,
|
|
89
|
-
hasExpandSlot:
|
|
90
|
-
toggleExpandRow:
|
|
91
|
-
cssExpandGridCol:
|
|
90
|
+
hasExpandSlot: H,
|
|
91
|
+
toggleExpandRow: ee,
|
|
92
|
+
cssExpandGridCol: te,
|
|
92
93
|
isRowExpanded: A,
|
|
93
94
|
hasCheckboxes: F,
|
|
94
|
-
activeMenuRow:
|
|
95
|
+
activeMenuRow: le,
|
|
95
96
|
scrollTo: se
|
|
96
|
-
} =
|
|
97
|
-
() => a.title ||
|
|
98
|
-
), p =
|
|
97
|
+
} = Ce(a, k), G = y(() => !!b.footer), ae = y(
|
|
98
|
+
() => a.title || b.title || Z.value || b["table-header-actions"] || b["table-header-pre-search"]
|
|
99
|
+
), p = y({
|
|
99
100
|
get: () => a.search,
|
|
100
|
-
set: (
|
|
101
|
-
}),
|
|
102
|
-
const
|
|
103
|
-
return !!
|
|
104
|
-
}),
|
|
105
|
-
|
|
101
|
+
set: (l) => k("update:search", l)
|
|
102
|
+
}), ie = y(() => a.selection.length || 0), N = y(() => {
|
|
103
|
+
const l = a.rows.map((o, e) => a.getRowId(o, e));
|
|
104
|
+
return !!l.length && l.every((o) => E(o));
|
|
105
|
+
}), E = (l) => a.selection.findIndex((o) => a.selectedMatcher(l, o)) !== -1, oe = (l) => {
|
|
106
|
+
E(l) ? (P(
|
|
106
107
|
a.selection.filter(
|
|
107
|
-
(o) => !a.selectedMatcher(
|
|
108
|
+
(o) => !a.selectedMatcher(l, o)
|
|
108
109
|
)
|
|
109
|
-
),
|
|
110
|
-
},
|
|
110
|
+
), k("selectRow", !1)) : (P([...a.selection, l]), k("selectRow", !0));
|
|
111
|
+
}, de = () => {
|
|
111
112
|
if (N.value)
|
|
112
|
-
|
|
113
|
+
P([]), k("selectAll", !1);
|
|
113
114
|
else {
|
|
114
|
-
const
|
|
115
|
-
|
|
115
|
+
const l = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
116
|
+
P([...a.selection, ...l]), k("selectAll", !0);
|
|
116
117
|
}
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
},
|
|
118
|
+
}, P = (l) => {
|
|
119
|
+
k("update:selection", l);
|
|
120
|
+
}, ne = (l) => !a.isLoading && w.value === l, re = y(
|
|
120
121
|
() => a.emptyStateVariant ?? (p.value ? "no-results" : "no-data")
|
|
121
|
-
),
|
|
122
|
+
), ce = y(
|
|
122
123
|
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : p.value ? "Search again with different filters" : void 0
|
|
123
|
-
), O =
|
|
124
|
+
), O = y(() => ({
|
|
124
125
|
class: {
|
|
125
126
|
sticky: a.isSelectionSticky,
|
|
126
127
|
bordered: a.isSelectionBordered
|
|
127
128
|
},
|
|
128
|
-
style: a.isSelectionSticky ?
|
|
129
|
-
})),
|
|
130
|
-
sticky:
|
|
131
|
-
isStickyRight:
|
|
132
|
-
bordered:
|
|
133
|
-
isTextRight:
|
|
134
|
-
}), W =
|
|
135
|
-
() => a.columns.map((
|
|
136
|
-
),
|
|
137
|
-
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(
|
|
138
|
-
}),
|
|
139
|
-
return
|
|
129
|
+
style: a.isSelectionSticky ? B.value[we] : null
|
|
130
|
+
})), ue = (l) => ({
|
|
131
|
+
sticky: l.isSticky,
|
|
132
|
+
isStickyRight: l.isStickyRight,
|
|
133
|
+
bordered: l.isBordered,
|
|
134
|
+
isTextRight: l.isTextRight
|
|
135
|
+
}), W = y(
|
|
136
|
+
() => a.columns.map((l) => ue(l))
|
|
137
|
+
), he = (l) => ({
|
|
138
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
|
|
139
|
+
}), L = y(() => T.value.reduce((l, o) => (l[o.index] = he(o.index), l), {}));
|
|
140
|
+
return m({
|
|
140
141
|
scrollTo: se
|
|
141
|
-
}), (
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
ref: t(X).ref,
|
|
148
|
-
style: b(t(Z)),
|
|
149
|
-
class: y({
|
|
150
|
-
hasFooter: t(G)
|
|
151
|
-
}),
|
|
152
|
-
"data-testid": `${l.testId}-${t($).TABLE}`,
|
|
153
|
-
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
154
|
-
(...e) => t(K) && t(K)(...e))
|
|
155
|
-
}, [
|
|
156
|
-
t(le) ? (i(), L(t(ve), {
|
|
157
|
-
key: 0,
|
|
158
|
-
search: t(p),
|
|
159
|
-
"onUpdate:search": o[0] || (o[0] = (e) => Se(p) ? p.value = e : null),
|
|
160
|
-
title: l.title,
|
|
161
|
-
"is-sticky": l.isStickyHeader,
|
|
162
|
-
"show-search": l.showSearch,
|
|
163
|
-
"search-placeholder": l.searchPlaceholder,
|
|
164
|
-
"search-auto-focus": l.searchAutoFocus,
|
|
165
|
-
"z-index-base": l.zIndexBase,
|
|
166
|
-
"test-id": l.testId,
|
|
167
|
-
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
168
|
-
}, ke({
|
|
169
|
-
title: S(() => [
|
|
170
|
-
r(s.$slots, "title")
|
|
171
|
-
]),
|
|
172
|
-
search: S(() => [
|
|
173
|
-
r(s.$slots, "search")
|
|
174
|
-
]),
|
|
175
|
-
_: 2
|
|
176
|
-
}, [
|
|
177
|
-
t(v)["table-header-pre-search"] ? {
|
|
178
|
-
name: "table-header-pre-search",
|
|
179
|
-
fn: S(() => [
|
|
180
|
-
r(s.$slots, "table-header-pre-search")
|
|
181
|
-
]),
|
|
182
|
-
key: "0"
|
|
183
|
-
} : void 0,
|
|
184
|
-
t(v)["table-header-actions"] ? {
|
|
185
|
-
name: "table-header-actions",
|
|
186
|
-
fn: S(() => [
|
|
187
|
-
r(s.$slots, "table-header-actions")
|
|
188
|
-
]),
|
|
189
|
-
key: "1"
|
|
190
|
-
} : void 0
|
|
191
|
-
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
192
|
-
m("thead", {
|
|
193
|
-
class: y({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
142
|
+
}), (l, o) => (i(), C(pe, null, Y({
|
|
143
|
+
default: u(() => [
|
|
144
|
+
g("div", {
|
|
145
|
+
class: "table-container",
|
|
146
|
+
"data-testid": `${s.testId}-${t(R).CONTAINER}`,
|
|
147
|
+
onMouseleave: o[3] || (o[3] = (e) => w.value = null)
|
|
194
148
|
}, [
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
149
|
+
g("table", {
|
|
150
|
+
ref: t(j).ref,
|
|
151
|
+
style: v(t(_)),
|
|
152
|
+
class: f({
|
|
153
|
+
hasFooter: t(G)
|
|
154
|
+
}),
|
|
155
|
+
"data-testid": `${s.testId}-${t(R).TABLE}`,
|
|
156
|
+
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
157
|
+
(...e) => t(K) && t(K)(...e))
|
|
198
158
|
}, [
|
|
199
|
-
(
|
|
200
|
-
key: e.id,
|
|
201
|
-
class: y(["section-container", { sticky: e.isSticky }])
|
|
202
|
-
}, [
|
|
203
|
-
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
204
|
-
m("div", {
|
|
205
|
-
style: b({ width: e.width + "px" }),
|
|
206
|
-
class: y({ section: !0 })
|
|
207
|
-
}, [
|
|
208
|
-
k(t(M), { variant: "body2" }, {
|
|
209
|
-
default: S(() => [
|
|
210
|
-
V(z(e.title), 1)
|
|
211
|
-
]),
|
|
212
|
-
_: 2
|
|
213
|
-
}, 1024)
|
|
214
|
-
], 4)
|
|
215
|
-
])
|
|
216
|
-
], 2))), 128))
|
|
217
|
-
], 8, He),
|
|
218
|
-
m("tr", null, [
|
|
219
|
-
t(F) ? (i(), d("th", I({
|
|
159
|
+
t(ae) ? (i(), C(t(ve), {
|
|
220
160
|
key: 0,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
])
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}),
|
|
240
|
-
style: b(e.isSticky ? t(w)[e.id] : null),
|
|
241
|
-
onClick: (n) => e.isSortable ? t(q)(e) : null
|
|
161
|
+
search: t(p),
|
|
162
|
+
"onUpdate:search": o[0] || (o[0] = (e) => Se(p) ? p.value = e : null),
|
|
163
|
+
title: s.title,
|
|
164
|
+
"is-sticky": s.isStickyHeader,
|
|
165
|
+
"show-search": s.showSearch,
|
|
166
|
+
"search-placeholder": s.searchPlaceholder,
|
|
167
|
+
"search-auto-focus": s.searchAutoFocus,
|
|
168
|
+
"z-index-base": s.zIndexBase,
|
|
169
|
+
"test-id": s.testId,
|
|
170
|
+
onOnClearSearch: o[1] || (o[1] = (e) => k("onClearSearch"))
|
|
171
|
+
}, Y({
|
|
172
|
+
title: u(() => [
|
|
173
|
+
n(l.$slots, "title")
|
|
174
|
+
]),
|
|
175
|
+
search: u(() => [
|
|
176
|
+
n(l.$slots, "search")
|
|
177
|
+
]),
|
|
178
|
+
_: 2
|
|
242
179
|
}, [
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
180
|
+
t(b)["table-header-pre-search"] ? {
|
|
181
|
+
name: "table-header-pre-search",
|
|
182
|
+
fn: u(() => [
|
|
183
|
+
n(l.$slots, "table-header-pre-search")
|
|
184
|
+
]),
|
|
185
|
+
key: "0"
|
|
186
|
+
} : void 0,
|
|
187
|
+
t(b)["table-header-actions"] ? {
|
|
188
|
+
name: "table-header-actions",
|
|
189
|
+
fn: u(() => [
|
|
190
|
+
n(l.$slots, "table-header-actions")
|
|
191
|
+
]),
|
|
192
|
+
key: "1"
|
|
193
|
+
} : void 0
|
|
194
|
+
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
195
|
+
g("thead", {
|
|
196
|
+
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
197
|
+
}, [
|
|
198
|
+
g("div", {
|
|
199
|
+
class: "sections",
|
|
200
|
+
"data-testid": `${s.testId}-${t(R).SECTIONS}`
|
|
201
|
+
}, [
|
|
202
|
+
(i(!0), d(x, null, $(s.sections, (e) => (i(), d("div", {
|
|
203
|
+
key: e.id,
|
|
204
|
+
class: f(["section-container", { sticky: e.isSticky }])
|
|
205
|
+
}, [
|
|
206
|
+
n(l.$slots, `section-${e.id}`, {}, () => [
|
|
207
|
+
g("div", {
|
|
208
|
+
style: v({ width: e.width + "px" }),
|
|
209
|
+
class: f({ section: !0 })
|
|
210
|
+
}, [
|
|
211
|
+
S(t(M), { variant: "body2" }, {
|
|
212
|
+
default: u(() => [
|
|
213
|
+
V(D(e.title), 1)
|
|
214
|
+
]),
|
|
215
|
+
_: 2
|
|
216
|
+
}, 1024)
|
|
217
|
+
], 4)
|
|
218
|
+
])
|
|
219
|
+
], 2))), 128))
|
|
220
|
+
], 8, Ee),
|
|
221
|
+
g("tr", null, [
|
|
222
|
+
t(F) ? (i(), d("th", I({
|
|
223
|
+
key: 0,
|
|
224
|
+
class: "checkbox-cell"
|
|
225
|
+
}, t(O)), [
|
|
226
|
+
n(l.$slots, "select-all-checkbox", {}, () => [
|
|
227
|
+
S(t(Q), {
|
|
228
|
+
disabled: s.isLoading,
|
|
229
|
+
"is-checked": t(N),
|
|
230
|
+
"is-indeterminate": !t(N) && t(ie) > 0,
|
|
231
|
+
"onUpdate:isChecked": de
|
|
232
|
+
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
233
|
+
])
|
|
234
|
+
], 16)) : c("", !0),
|
|
235
|
+
t(H) ? (i(), d("th", Pe)) : c("", !0),
|
|
236
|
+
(i(!0), d(x, null, $(s.columns, (e, h) => (i(), d("th", {
|
|
237
|
+
key: e.id,
|
|
238
|
+
class: f({
|
|
239
|
+
...t(W)[h],
|
|
240
|
+
isSortable: e.isSortable,
|
|
241
|
+
[`column-${e.id}`]: !0
|
|
242
|
+
}),
|
|
243
|
+
style: v(
|
|
244
|
+
e.isSticky ? t(B)[e.id] : null
|
|
245
|
+
),
|
|
246
|
+
onClick: (r) => e.isSortable ? t(J)(e) : null
|
|
247
|
+
}, [
|
|
248
|
+
g("div", Ve, [
|
|
249
|
+
n(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
250
|
+
S(t(be), {
|
|
251
|
+
text: e.helpText,
|
|
252
|
+
disabled: !e.helpText || s.helpTooltipVariant === "icon",
|
|
253
|
+
placement: e.helpTextPlacement || "top",
|
|
254
|
+
"test-id": `help-tooltip-underlined-${e.id}`
|
|
257
255
|
}, {
|
|
258
|
-
default:
|
|
259
|
-
|
|
256
|
+
default: u(() => [
|
|
257
|
+
S(t(M), {
|
|
258
|
+
variant: "tableLabel",
|
|
259
|
+
class: f({
|
|
260
|
+
underlined: e.helpText && s.helpTooltipVariant === "underline"
|
|
261
|
+
})
|
|
262
|
+
}, {
|
|
263
|
+
default: u(() => [
|
|
264
|
+
V(D(e.title), 1)
|
|
265
|
+
]),
|
|
266
|
+
_: 2
|
|
267
|
+
}, 1032, ["class"])
|
|
260
268
|
]),
|
|
261
269
|
_: 2
|
|
262
|
-
}, 1032, ["
|
|
270
|
+
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
263
271
|
]),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
]),
|
|
281
|
-
l.showTotalsRow && t(R).length > 0 ? (i(), d("tr", Ve, [
|
|
282
|
-
t(F) ? (i(), d("td", I({
|
|
283
|
-
key: 0,
|
|
284
|
-
class: "bg"
|
|
285
|
-
}, t(O)), null, 16)) : c("", !0),
|
|
286
|
-
(i(!0), d(C, null, x(l.columns, (e, u) => (i(), d("td", {
|
|
287
|
-
key: e.id,
|
|
288
|
-
class: y({
|
|
289
|
-
...t(W)[u],
|
|
290
|
-
[`total-${e.id}`]: !0
|
|
291
|
-
}),
|
|
292
|
-
style: b(e.isSticky ? t(w)[e.id] : null)
|
|
293
|
-
}, [
|
|
294
|
-
r(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
295
|
-
u === 0 ? (i(), L(t(M), {
|
|
296
|
-
key: 0,
|
|
297
|
-
variant: "h6"
|
|
298
|
-
}, {
|
|
299
|
-
default: S(() => [
|
|
300
|
-
V("Totals")
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
})) : c("", !0)
|
|
304
|
-
])
|
|
305
|
-
], 6))), 128))
|
|
306
|
-
])) : c("", !0)
|
|
307
|
-
], 2),
|
|
308
|
-
m("tbody", null, [
|
|
309
|
-
t(R).length > 0 ? (i(), d("div", I({
|
|
310
|
-
key: 0,
|
|
311
|
-
class: "table-body-wrapper",
|
|
312
|
-
"data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
|
|
313
|
-
}, t(j)), [
|
|
314
|
-
(i(!0), d(C, null, x(t(R), (e) => (i(), d("tr", {
|
|
315
|
-
key: l.getRowKey(e.data, e.index),
|
|
316
|
-
class: y(["table-row", {
|
|
317
|
-
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
318
|
-
active: t(T) === e.index,
|
|
319
|
-
activeMenu: t(te) === e.index,
|
|
320
|
-
expanded: t(B) && t(A)(e.index),
|
|
321
|
-
[Q(e.index)]: !0
|
|
322
|
-
}]),
|
|
323
|
-
style: b(t(P)[e.index]),
|
|
324
|
-
onMouseenter: (u) => T.value = e.index,
|
|
325
|
-
onClick: (u) => f("clickRow", e.index)
|
|
326
|
-
}, [
|
|
327
|
-
t(F) ? (i(), d("td", I({
|
|
328
|
-
key: 0,
|
|
329
|
-
class: "checkbox-cell"
|
|
330
|
-
}, t(O), {
|
|
331
|
-
style: t(P)[e.index]
|
|
332
|
-
}), [
|
|
333
|
-
k(t(Y), {
|
|
334
|
-
"is-checked": H(l.getRowId(e.data, e.index)),
|
|
335
|
-
"onUpdate:isChecked": (u) => ie(l.getRowId(e.data, e.index))
|
|
336
|
-
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
337
|
-
], 16)) : c("", !0),
|
|
338
|
-
t(B) ? (i(), d("td", {
|
|
339
|
-
key: 1,
|
|
340
|
-
class: "expand-toggle-cell",
|
|
341
|
-
style: b(t(P)[e.index])
|
|
342
|
-
}, [
|
|
343
|
-
k($e, {
|
|
344
|
-
expanded: t(A)(e.index),
|
|
345
|
-
onClick: (u) => t(_)(e.index, u)
|
|
346
|
-
}, null, 8, ["expanded", "onClick"])
|
|
347
|
-
], 4)) : c("", !0),
|
|
348
|
-
(i(!0), d(C, null, x(l.columns, (u, n) => (i(), d("td", {
|
|
349
|
-
key: n,
|
|
350
|
-
class: y({
|
|
351
|
-
sticky: l.columns[n].isSticky,
|
|
352
|
-
isStickyRight: l.columns[n].isStickyRight,
|
|
353
|
-
bordered: l.columns[n].isBordered,
|
|
354
|
-
isTextRight: l.columns[n].isTextRight,
|
|
355
|
-
[`column-${l.columns[n].id}`]: !0
|
|
356
|
-
}),
|
|
357
|
-
style: b([
|
|
358
|
-
l.columns[n].isSticky ? t(w)[l.columns[n].id] : null,
|
|
359
|
-
t(P)[e.index]
|
|
360
|
-
])
|
|
361
|
-
}, [
|
|
362
|
-
!l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
|
|
272
|
+
e.helpText && s.helpTooltipVariant === "icon" ? (i(), C($e, {
|
|
273
|
+
key: 0,
|
|
274
|
+
"hover-help-text": e.helpText,
|
|
275
|
+
"hover-help-text-placement": e.helpTextPlacement,
|
|
276
|
+
"test-id": `help-tooltip-${e.id}`
|
|
277
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
278
|
+
n(l.$slots, `after-header-${e.id}`, { column: e }),
|
|
279
|
+
e.isSortable && e.id === s.sort?.sortBy ? (i(), C(xe, {
|
|
280
|
+
key: 1,
|
|
281
|
+
"sort-order": s.sort.sortOrder
|
|
282
|
+
}, null, 8, ["sort-order"])) : c("", !0)
|
|
283
|
+
])
|
|
284
|
+
], 14, Le))), 128))
|
|
285
|
+
]),
|
|
286
|
+
s.showTotalsRow && t(T).length > 0 ? (i(), d("tr", Ie, [
|
|
287
|
+
t(F) ? (i(), d("td", I({
|
|
363
288
|
key: 0,
|
|
364
|
-
class:
|
|
289
|
+
class: "bg"
|
|
290
|
+
}, t(O)), null, 16)) : c("", !0),
|
|
291
|
+
(i(!0), d(x, null, $(s.columns, (e, h) => (i(), d("td", {
|
|
292
|
+
key: e.id,
|
|
293
|
+
class: f({
|
|
294
|
+
...t(W)[h],
|
|
295
|
+
[`total-${e.id}`]: !0
|
|
296
|
+
}),
|
|
297
|
+
style: v(
|
|
298
|
+
e.isSticky ? t(B)[e.id] : null
|
|
299
|
+
)
|
|
365
300
|
}, [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
k(t(M), { variant: "body1" }, {
|
|
374
|
-
default: S(() => [
|
|
375
|
-
V(z(e.data[n]), 1)
|
|
301
|
+
n(l.$slots, `total-${e.id}`, { column: e }, () => [
|
|
302
|
+
h === 0 ? (i(), C(t(M), {
|
|
303
|
+
key: 0,
|
|
304
|
+
variant: "h6"
|
|
305
|
+
}, {
|
|
306
|
+
default: u(() => [
|
|
307
|
+
V("Totals")
|
|
376
308
|
]),
|
|
377
|
-
_:
|
|
378
|
-
},
|
|
309
|
+
_: 1
|
|
310
|
+
})) : c("", !0)
|
|
379
311
|
])
|
|
380
|
-
],
|
|
381
|
-
k(t(ge), { round: "" })
|
|
382
|
-
])
|
|
383
|
-
], 6))), 128)),
|
|
384
|
-
t(B) && t(A)(e.index) ? (i(), d("div", Ae, [
|
|
385
|
-
r(s.$slots, "expanded", {
|
|
386
|
-
row: e,
|
|
387
|
-
gridColumnTemplate: t(D)
|
|
388
|
-
})
|
|
389
|
-
])) : c("", !0),
|
|
390
|
-
de(e.index) ? (i(), d("div", Fe, [
|
|
391
|
-
r(s.$slots, "floating-row", {
|
|
392
|
-
row: e,
|
|
393
|
-
rowIndex: e.index
|
|
394
|
-
})
|
|
312
|
+
], 6))), 128))
|
|
395
313
|
])) : c("", !0)
|
|
396
|
-
],
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
class: "
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
314
|
+
], 2),
|
|
315
|
+
g("tbody", null, [
|
|
316
|
+
t(T).length > 0 ? (i(), d("div", I({
|
|
317
|
+
key: 0,
|
|
318
|
+
class: "table-body-wrapper",
|
|
319
|
+
"data-testid": `${s.testId}-${t(R).BODY_WRAPPER}`
|
|
320
|
+
}, t(q)), [
|
|
321
|
+
(i(!0), d(x, null, $(t(T), (e) => (i(), d("tr", {
|
|
322
|
+
key: s.getRowKey(e.data, e.index),
|
|
323
|
+
class: f(["table-row", {
|
|
324
|
+
loading: s.isLoading || s.isLoading && !e.data || t(U).includes(e.index),
|
|
325
|
+
active: t(w) === e.index,
|
|
326
|
+
activeMenu: t(le) === e.index,
|
|
327
|
+
expanded: t(H) && t(A)(e.index),
|
|
328
|
+
[X(e.index)]: !0
|
|
329
|
+
}]),
|
|
330
|
+
style: v(t(L)[e.index]),
|
|
331
|
+
onMouseenter: (h) => w.value = e.index,
|
|
332
|
+
onClick: (h) => k("clickRow", e.index)
|
|
333
|
+
}, [
|
|
334
|
+
t(F) ? (i(), d("td", I({
|
|
335
|
+
key: 0,
|
|
336
|
+
class: "checkbox-cell"
|
|
337
|
+
}, t(O), {
|
|
338
|
+
style: t(L)[e.index]
|
|
339
|
+
}), [
|
|
340
|
+
S(t(Q), {
|
|
341
|
+
"is-checked": E(s.getRowId(e.data, e.index)),
|
|
342
|
+
"onUpdate:isChecked": (h) => oe(s.getRowId(e.data, e.index))
|
|
343
|
+
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
344
|
+
], 16)) : c("", !0),
|
|
345
|
+
t(H) ? (i(), d("td", {
|
|
346
|
+
key: 1,
|
|
347
|
+
class: "expand-toggle-cell",
|
|
348
|
+
style: v(t(L)[e.index])
|
|
349
|
+
}, [
|
|
350
|
+
S(Re, {
|
|
351
|
+
expanded: t(A)(e.index),
|
|
352
|
+
onClick: (h) => t(ee)(e.index, h)
|
|
353
|
+
}, null, 8, ["expanded", "onClick"])
|
|
354
|
+
], 4)) : c("", !0),
|
|
355
|
+
(i(!0), d(x, null, $(s.columns, (h, r) => (i(), d("td", {
|
|
356
|
+
key: r,
|
|
357
|
+
class: f({
|
|
358
|
+
sticky: s.columns[r].isSticky,
|
|
359
|
+
isStickyRight: s.columns[r].isStickyRight,
|
|
360
|
+
bordered: s.columns[r].isBordered,
|
|
361
|
+
isTextRight: s.columns[r].isTextRight,
|
|
362
|
+
[`column-${s.columns[r].id}`]: !0
|
|
363
|
+
}),
|
|
364
|
+
style: v([
|
|
365
|
+
s.columns[r].isSticky ? t(B)[s.columns[r].id] : null,
|
|
366
|
+
t(L)[e.index]
|
|
367
|
+
])
|
|
368
|
+
}, [
|
|
369
|
+
!s.isLoading || s.isLoading && e.data[r] ? (i(), d("div", {
|
|
370
|
+
key: 0,
|
|
371
|
+
class: f(["table-cell", { last: r === e.data.length - 1 }])
|
|
372
|
+
}, [
|
|
373
|
+
n(l.$slots, `cell-${s.columns[r].id}`, {
|
|
374
|
+
cell: e.data[r],
|
|
375
|
+
isLoading: t(U).includes(e.index),
|
|
376
|
+
cellIndex: r,
|
|
377
|
+
row: e,
|
|
378
|
+
rowIndex: e.index
|
|
379
|
+
}, () => [
|
|
380
|
+
S(t(M), { variant: "body1" }, {
|
|
381
|
+
default: u(() => [
|
|
382
|
+
V(D(e.data[r]), 1)
|
|
383
|
+
]),
|
|
384
|
+
_: 2
|
|
385
|
+
}, 1024)
|
|
386
|
+
])
|
|
387
|
+
], 2)) : n(l.$slots, "loader", { key: 1 }, () => [
|
|
388
|
+
S(t(ge), { round: "" })
|
|
389
|
+
])
|
|
390
|
+
], 6))), 128)),
|
|
391
|
+
t(H) && t(A)(e.index) ? (i(), d("div", Fe, [
|
|
392
|
+
n(l.$slots, "expanded", {
|
|
393
|
+
row: e,
|
|
394
|
+
gridColumnTemplate: t(z)
|
|
395
|
+
})
|
|
396
|
+
])) : c("", !0),
|
|
397
|
+
ne(e.index) ? (i(), d("div", Ne, [
|
|
398
|
+
n(l.$slots, "floating-row", {
|
|
399
|
+
row: e,
|
|
400
|
+
rowIndex: e.index
|
|
401
|
+
})
|
|
402
|
+
])) : c("", !0)
|
|
403
|
+
], 46, Ae))), 128))
|
|
404
|
+
], 16, Me)) : (i(), d("div", Oe, [
|
|
405
|
+
n(l.$slots, "empty-state", {}, () => [
|
|
406
|
+
S(t(me), {
|
|
407
|
+
class: "empty-state",
|
|
408
|
+
title: s.emptyStateTitle,
|
|
409
|
+
subtitle: t(ce),
|
|
410
|
+
variant: t(re),
|
|
411
|
+
"icon-name": "file-search",
|
|
412
|
+
"test-id": `${s.testId}-${t(R).EMPTY_STATE}`
|
|
413
|
+
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
414
|
+
])
|
|
415
|
+
]))
|
|
407
416
|
])
|
|
408
|
-
])
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
])
|
|
414
|
-
|
|
417
|
+
], 46, He),
|
|
418
|
+
t(G) ? (i(), d("div", De, [
|
|
419
|
+
n(l.$slots, "footer")
|
|
420
|
+
])) : c("", !0)
|
|
421
|
+
], 40, Be)
|
|
422
|
+
]),
|
|
423
|
+
_: 2
|
|
424
|
+
}, [
|
|
425
|
+
t(b)["side-panel"] ? {
|
|
426
|
+
name: "side-panel",
|
|
427
|
+
fn: u(() => [
|
|
428
|
+
n(l.$slots, "side-panel")
|
|
429
|
+
]),
|
|
430
|
+
key: "0"
|
|
431
|
+
} : void 0
|
|
432
|
+
]), 1024));
|
|
415
433
|
}
|
|
416
434
|
});
|
|
417
435
|
export {
|
|
418
|
-
|
|
436
|
+
it as default
|
|
419
437
|
};
|