@ironsource/shared-ui 2.1.12-test.54 → 2.1.12-test.56
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/DataGrid.vue_vue_type_style_index_0_scoped_606e8cfd_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +68 -64
- package/components/dropdown/v4/index.d.ts +20 -1
- package/components/table/v4/DataGrid.vue.d.ts +5 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +165 -162
- package/components/table/v4/index.d.ts +20 -1
- package/index.d.ts +80 -4
- package/index.js +1 -1
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6db25923_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_606e8cfd_lang.css"; import { defineComponent as me, useCssVars as be, unref as t, useSlots as ve, computed as u, openBlock as i, createBlock as C, normalizeClass as h, createSlots as Q, withCtx as y, createElementVNode as m, mergeProps as $, normalizeStyle as g, isRef as pe, renderSlot as n, createCommentVNode as c, createElementBlock as d, Fragment as x, renderList as R, createVNode as k, createTextVNode as L, toDisplayString as O } from "vue";
|
|
2
2
|
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import Ce from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import $e from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import X from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
|
-
import
|
|
6
|
+
import xe 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 Re from "./DataGridHeader.vue.js";
|
|
11
11
|
import "./MultipleDataGrid.vue.js";
|
|
12
12
|
import Te from "./DataGridContainer.vue.js";
|
|
13
|
-
import { TableTestIdModifiers as
|
|
14
|
-
import { tableCommon as
|
|
15
|
-
import
|
|
13
|
+
import { TableTestIdModifiers as T } from "../../../testids/index.js";
|
|
14
|
+
import { tableCommon as He } from "../common/Table.common.js";
|
|
15
|
+
import we from "./SortIcon.vue.js";
|
|
16
16
|
import Ee from "./HelpIcon.vue.js";
|
|
17
17
|
import Be from "./ExpandRowToggle.vue.js";
|
|
18
18
|
import { DEFAULT_ROW_HEIGHT as Ae, CHECKBOX_COLUMN_ID as Ie, DATA_GRID_HEADER_HEIGHT as j, HEADER_ROW_HEIGHT as q } from "../common/consts.js";
|
|
@@ -41,9 +41,9 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
41
41
|
sections: { default: null },
|
|
42
42
|
sort: { default: null },
|
|
43
43
|
selection: { default: null },
|
|
44
|
-
getRowId: { type: Function, default: (l,
|
|
45
|
-
getRowKey: { type: Function, default: (l,
|
|
46
|
-
selectedMatcher: { type: Function, default: (l,
|
|
44
|
+
getRowId: { type: Function, default: (l, b) => b },
|
|
45
|
+
getRowKey: { type: Function, default: (l, b) => b },
|
|
46
|
+
selectedMatcher: { type: Function, default: (l, b) => l === b },
|
|
47
47
|
isSticky: { type: Boolean, default: !0 },
|
|
48
48
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
49
49
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -58,6 +58,7 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
58
58
|
defaultScrollPosition: { default: null },
|
|
59
59
|
helpTooltipVariant: { default: "icon" },
|
|
60
60
|
testId: { default: "" },
|
|
61
|
+
useAvailableHeight: { type: Boolean, default: !1 },
|
|
61
62
|
search: { default: null },
|
|
62
63
|
showSearch: { type: Boolean, default: !1 },
|
|
63
64
|
searchPlaceholder: { default: "Search" },
|
|
@@ -69,101 +70,102 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
69
70
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
70
71
|
},
|
|
71
72
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
72
|
-
setup(l, { expose:
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
setup(l, { expose: b, emit: S }) {
|
|
74
|
+
const s = l;
|
|
75
|
+
be((a) => ({
|
|
76
|
+
"9903e19e": l.zIndexBase,
|
|
77
|
+
"7ac44e36": t(le),
|
|
78
|
+
"5a57469e": t(z),
|
|
79
|
+
"7af56be8": t(Se)
|
|
79
80
|
}));
|
|
80
|
-
const
|
|
81
|
-
list:
|
|
81
|
+
const v = ve(), J = (a) => s.rowCustomClassKey && s.rows[a] ? s.rows[a][s.rowCustomClassKey] : "", {
|
|
82
|
+
list: H,
|
|
82
83
|
containerProps: G,
|
|
83
84
|
wrapperProps: Z,
|
|
84
85
|
activeRow: w,
|
|
85
86
|
gridColumnTemplate: z,
|
|
86
87
|
toggleSortOrder: _,
|
|
87
|
-
columnsStickyPositions:
|
|
88
|
+
columnsStickyPositions: E,
|
|
88
89
|
hasSearchSlot: ee,
|
|
89
90
|
containerStyle: te,
|
|
90
91
|
onScroll: K,
|
|
91
92
|
savingRows: U,
|
|
92
|
-
hasExpandSlot:
|
|
93
|
-
toggleExpandRow:
|
|
93
|
+
hasExpandSlot: B,
|
|
94
|
+
toggleExpandRow: ae,
|
|
94
95
|
cssExpandGridCol: le,
|
|
95
96
|
isRowExpanded: D,
|
|
96
97
|
hasCheckboxes: M,
|
|
97
|
-
activeMenuRow:
|
|
98
|
+
activeMenuRow: se,
|
|
98
99
|
scrollTo: ie
|
|
99
|
-
} =
|
|
100
|
-
() =>
|
|
101
|
-
),
|
|
102
|
-
get: () =>
|
|
103
|
-
set: (
|
|
104
|
-
}), de = u(() =>
|
|
105
|
-
const
|
|
106
|
-
return !!
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
(o) => !
|
|
100
|
+
} = He(s, S), W = u(() => !!v.footer), oe = u(
|
|
101
|
+
() => s.title || v.title || ee.value || v["table-header-actions"] || v["table-header-pre-search"]
|
|
102
|
+
), p = u({
|
|
103
|
+
get: () => s.search,
|
|
104
|
+
set: (a) => S("update:search", a)
|
|
105
|
+
}), de = u(() => s.selection.length || 0), F = u(() => {
|
|
106
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e));
|
|
107
|
+
return !!a.length && a.every((o) => A(o));
|
|
108
|
+
}), A = (a) => s.selection.findIndex((o) => s.selectedMatcher(a, o)) !== -1, ne = (a) => {
|
|
109
|
+
A(a) ? (I(
|
|
110
|
+
s.selection.filter(
|
|
111
|
+
(o) => !s.selectedMatcher(a, o)
|
|
111
112
|
)
|
|
112
|
-
), S("selectRow", !1)) : (
|
|
113
|
+
), S("selectRow", !1)) : (I([...s.selection, a]), S("selectRow", !0));
|
|
113
114
|
}, re = () => {
|
|
114
115
|
if (F.value)
|
|
115
|
-
|
|
116
|
+
I([]), S("selectAll", !1);
|
|
116
117
|
else {
|
|
117
|
-
const
|
|
118
|
-
|
|
118
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e)).filter((o) => !A(o));
|
|
119
|
+
I([...s.selection, ...a]), S("selectAll", !0);
|
|
119
120
|
}
|
|
120
|
-
},
|
|
121
|
-
S("update:selection",
|
|
122
|
-
}, ce = (
|
|
123
|
-
() =>
|
|
121
|
+
}, I = (a) => {
|
|
122
|
+
S("update:selection", a);
|
|
123
|
+
}, ce = (a) => !s.isLoading && w.value === a, ue = u(
|
|
124
|
+
() => s.emptyStateVariant ?? (p.value ? "no-results" : "no-data")
|
|
124
125
|
), he = u(
|
|
125
|
-
() =>
|
|
126
|
+
() => s.emptyStateSubtitle ? s.emptyStateSubtitle : p.value ? "Search again with different filters" : void 0
|
|
126
127
|
), N = u(() => ({
|
|
127
128
|
class: {
|
|
128
|
-
sticky:
|
|
129
|
-
bordered:
|
|
129
|
+
sticky: s.isSelectionSticky,
|
|
130
|
+
bordered: s.isSelectionBordered
|
|
130
131
|
},
|
|
131
|
-
style:
|
|
132
|
-
})), ye = (
|
|
133
|
-
sticky:
|
|
134
|
-
isStickyRight:
|
|
135
|
-
bordered:
|
|
136
|
-
isTextRight:
|
|
132
|
+
style: s.isSelectionSticky ? E.value[Ie] : null
|
|
133
|
+
})), ye = (a) => ({
|
|
134
|
+
sticky: a.isSticky,
|
|
135
|
+
isStickyRight: a.isStickyRight,
|
|
136
|
+
bordered: a.isBordered,
|
|
137
|
+
isTextRight: a.isTextRight
|
|
137
138
|
}), Y = u(
|
|
138
|
-
() =>
|
|
139
|
-
), fe = (
|
|
140
|
-
minHeight: (typeof
|
|
141
|
-
}),
|
|
142
|
-
() =>
|
|
139
|
+
() => s.columns.map((a) => ye(a))
|
|
140
|
+
), fe = (a) => ({
|
|
141
|
+
minHeight: (typeof s.rowHeight == "function" ? s.rowHeight(a) : s.rowHeight) + "px"
|
|
142
|
+
}), P = u(() => H.value.reduce((a, o) => (a[o.index] = fe(o.index), a), {})), Se = u(() => `${j}px`), { height: ge } = Pe(G.ref), ke = u(
|
|
143
|
+
() => ge.value - q - j
|
|
143
144
|
);
|
|
144
|
-
return
|
|
145
|
+
return b({
|
|
145
146
|
scrollTo: ie
|
|
146
|
-
}), (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
}), (a, o) => (i(), C(Te, {
|
|
148
|
+
class: h({ useAvailableHeight: l.useAvailableHeight })
|
|
149
|
+
}, Q({
|
|
150
|
+
default: y(() => [
|
|
151
|
+
m("div", $({ class: "table-container" }, a.$attrs, {
|
|
152
|
+
"data-testid": `${l.testId}-${t(T).CONTAINER}`,
|
|
151
153
|
onMouseleave: o[3] || (o[3] = (e) => w.value = null)
|
|
152
|
-
}, [
|
|
154
|
+
}), [
|
|
153
155
|
m("table", {
|
|
154
156
|
ref: t(G).ref,
|
|
155
|
-
style:
|
|
156
|
-
class:
|
|
157
|
+
style: g(t(te)),
|
|
158
|
+
class: h({
|
|
157
159
|
hasFooter: t(W)
|
|
158
160
|
}),
|
|
159
|
-
"data-testid": `${l.testId}-${t(
|
|
161
|
+
"data-testid": `${l.testId}-${t(T).TABLE}`,
|
|
160
162
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
161
163
|
(...e) => t(K) && t(K)(...e))
|
|
162
164
|
}, [
|
|
163
165
|
t(oe) ? (i(), C(t(Re), {
|
|
164
166
|
key: 0,
|
|
165
|
-
search: t(
|
|
166
|
-
"onUpdate:search": o[0] || (o[0] = (e) =>
|
|
167
|
+
search: t(p),
|
|
168
|
+
"onUpdate:search": o[0] || (o[0] = (e) => pe(p) ? p.value = e : null),
|
|
167
169
|
title: l.title,
|
|
168
170
|
"is-sticky": l.isStickyHeader,
|
|
169
171
|
"show-search": l.showSearch,
|
|
@@ -173,48 +175,48 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
173
175
|
"test-id": l.testId,
|
|
174
176
|
onOnClearSearch: o[1] || (o[1] = (e) => S("onClearSearch"))
|
|
175
177
|
}, Q({
|
|
176
|
-
title:
|
|
177
|
-
n(
|
|
178
|
+
title: y(() => [
|
|
179
|
+
n(a.$slots, "title")
|
|
178
180
|
]),
|
|
179
|
-
search:
|
|
180
|
-
n(
|
|
181
|
+
search: y(() => [
|
|
182
|
+
n(a.$slots, "search")
|
|
181
183
|
]),
|
|
182
184
|
_: 2
|
|
183
185
|
}, [
|
|
184
|
-
t(
|
|
186
|
+
t(v)["table-header-pre-search"] ? {
|
|
185
187
|
name: "table-header-pre-search",
|
|
186
|
-
fn:
|
|
187
|
-
n(
|
|
188
|
+
fn: y(() => [
|
|
189
|
+
n(a.$slots, "table-header-pre-search")
|
|
188
190
|
]),
|
|
189
191
|
key: "0"
|
|
190
192
|
} : void 0,
|
|
191
|
-
t(
|
|
193
|
+
t(v)["table-header-actions"] ? {
|
|
192
194
|
name: "table-header-actions",
|
|
193
|
-
fn:
|
|
194
|
-
n(
|
|
195
|
+
fn: y(() => [
|
|
196
|
+
n(a.$slots, "table-header-actions")
|
|
195
197
|
]),
|
|
196
198
|
key: "1"
|
|
197
199
|
} : void 0
|
|
198
200
|
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
199
201
|
m("thead", {
|
|
200
|
-
class:
|
|
202
|
+
class: h({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
201
203
|
}, [
|
|
202
204
|
m("div", {
|
|
203
205
|
class: "sections",
|
|
204
|
-
"data-testid": `${l.testId}-${t(
|
|
206
|
+
"data-testid": `${l.testId}-${t(T).SECTIONS}`
|
|
205
207
|
}, [
|
|
206
|
-
(i(!0), d(x, null,
|
|
208
|
+
(i(!0), d(x, null, R(l.sections, (e) => (i(), d("div", {
|
|
207
209
|
key: e.id,
|
|
208
|
-
class:
|
|
210
|
+
class: h(["section-container", { sticky: e.isSticky }])
|
|
209
211
|
}, [
|
|
210
|
-
n(
|
|
212
|
+
n(a.$slots, `section-${e.id}`, {}, () => [
|
|
211
213
|
m("div", {
|
|
212
|
-
style:
|
|
213
|
-
class:
|
|
214
|
+
style: g({ width: e.width + "px" }),
|
|
215
|
+
class: h({ section: !0 })
|
|
214
216
|
}, [
|
|
215
|
-
|
|
216
|
-
default:
|
|
217
|
-
|
|
217
|
+
k(t(V), { variant: "body2" }, {
|
|
218
|
+
default: y(() => [
|
|
219
|
+
L(O(e.title), 1)
|
|
218
220
|
]),
|
|
219
221
|
_: 2
|
|
220
222
|
}, 1024)
|
|
@@ -223,14 +225,14 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
223
225
|
], 2))), 128))
|
|
224
226
|
], 8, De),
|
|
225
227
|
m("tr", {
|
|
226
|
-
style:
|
|
228
|
+
style: g({ height: `${t(q)}px` })
|
|
227
229
|
}, [
|
|
228
|
-
t(M) ? (i(), d("th",
|
|
230
|
+
t(M) ? (i(), d("th", $({
|
|
229
231
|
key: 0,
|
|
230
232
|
class: "checkbox-cell"
|
|
231
233
|
}, t(N)), [
|
|
232
|
-
n(
|
|
233
|
-
|
|
234
|
+
n(a.$slots, "select-all-checkbox", {}, () => [
|
|
235
|
+
k(t(X), {
|
|
234
236
|
disabled: l.isLoading,
|
|
235
237
|
"is-checked": t(F),
|
|
236
238
|
"is-indeterminate": !t(F) && t(de) > 0,
|
|
@@ -238,36 +240,36 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
238
240
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
239
241
|
])
|
|
240
242
|
], 16)) : c("", !0),
|
|
241
|
-
t(
|
|
242
|
-
(i(!0), d(x, null,
|
|
243
|
+
t(B) ? (i(), d("th", Me)) : c("", !0),
|
|
244
|
+
(i(!0), d(x, null, R(l.columns, (e, f) => (i(), d("th", {
|
|
243
245
|
key: e.id,
|
|
244
|
-
class:
|
|
245
|
-
...t(Y)[
|
|
246
|
+
class: h({
|
|
247
|
+
...t(Y)[f],
|
|
246
248
|
isSortable: e.isSortable,
|
|
247
249
|
[`column-${e.id}`]: !0
|
|
248
250
|
}),
|
|
249
|
-
style:
|
|
250
|
-
e.isSticky ? t(
|
|
251
|
+
style: g(
|
|
252
|
+
e.isSticky ? t(E)[e.id] : null
|
|
251
253
|
),
|
|
252
254
|
onClick: (r) => e.isSortable ? t(_)(e) : null
|
|
253
255
|
}, [
|
|
254
256
|
m("div", Ne, [
|
|
255
|
-
n(
|
|
256
|
-
|
|
257
|
+
n(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
258
|
+
k(t(xe), {
|
|
257
259
|
text: e.helpText,
|
|
258
260
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
259
261
|
placement: e.helpTextPlacement || "top",
|
|
260
262
|
"test-id": `help-tooltip-underlined-${e.id}`
|
|
261
263
|
}, {
|
|
262
|
-
default:
|
|
263
|
-
|
|
264
|
+
default: y(() => [
|
|
265
|
+
k(t(V), {
|
|
264
266
|
variant: "tableLabel",
|
|
265
|
-
class:
|
|
267
|
+
class: h({
|
|
266
268
|
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
267
269
|
})
|
|
268
270
|
}, {
|
|
269
|
-
default:
|
|
270
|
-
|
|
271
|
+
default: y(() => [
|
|
272
|
+
L(O(e.title), 1)
|
|
271
273
|
]),
|
|
272
274
|
_: 2
|
|
273
275
|
}, 1032, ["class"])
|
|
@@ -281,36 +283,36 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
281
283
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
282
284
|
"test-id": `help-tooltip-${e.id}`
|
|
283
285
|
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
284
|
-
n(
|
|
285
|
-
e.isSortable && e.id === l.sort?.sortBy ? (i(), C(
|
|
286
|
+
n(a.$slots, `after-header-${e.id}`, { column: e }),
|
|
287
|
+
e.isSortable && e.id === l.sort?.sortBy ? (i(), C(we, {
|
|
286
288
|
key: 1,
|
|
287
289
|
"sort-order": l.sort.sortOrder
|
|
288
290
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
289
291
|
])
|
|
290
292
|
], 14, Fe))), 128))
|
|
291
293
|
], 4),
|
|
292
|
-
l.showTotalsRow && t(
|
|
293
|
-
t(M) ? (i(), d("td",
|
|
294
|
+
l.showTotalsRow && t(H).length > 0 ? (i(), d("tr", Oe, [
|
|
295
|
+
t(M) ? (i(), d("td", $({
|
|
294
296
|
key: 0,
|
|
295
297
|
class: "bg"
|
|
296
298
|
}, t(N)), null, 16)) : c("", !0),
|
|
297
|
-
(i(!0), d(x, null,
|
|
299
|
+
(i(!0), d(x, null, R(l.columns, (e, f) => (i(), d("td", {
|
|
298
300
|
key: e.id,
|
|
299
|
-
class:
|
|
300
|
-
...t(Y)[
|
|
301
|
+
class: h({
|
|
302
|
+
...t(Y)[f],
|
|
301
303
|
[`total-${e.id}`]: !0
|
|
302
304
|
}),
|
|
303
|
-
style:
|
|
304
|
-
e.isSticky ? t(
|
|
305
|
+
style: g(
|
|
306
|
+
e.isSticky ? t(E)[e.id] : null
|
|
305
307
|
)
|
|
306
308
|
}, [
|
|
307
|
-
n(
|
|
308
|
-
|
|
309
|
+
n(a.$slots, `total-${e.id}`, { column: e }, () => [
|
|
310
|
+
f === 0 ? (i(), C(t(V), {
|
|
309
311
|
key: 0,
|
|
310
312
|
variant: "h6"
|
|
311
313
|
}, {
|
|
312
|
-
default:
|
|
313
|
-
|
|
314
|
+
default: y(() => [
|
|
315
|
+
L("Totals")
|
|
314
316
|
]),
|
|
315
317
|
_: 1
|
|
316
318
|
})) : c("", !0)
|
|
@@ -319,89 +321,89 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
319
321
|
])) : c("", !0)
|
|
320
322
|
], 2),
|
|
321
323
|
m("tbody", null, [
|
|
322
|
-
t(
|
|
324
|
+
t(H).length > 0 ? (i(), d("div", $({
|
|
323
325
|
key: 0,
|
|
324
326
|
class: "table-body-wrapper",
|
|
325
|
-
"data-testid": `${l.testId}-${t(
|
|
327
|
+
"data-testid": `${l.testId}-${t(T).BODY_WRAPPER}`
|
|
326
328
|
}, t(Z)), [
|
|
327
|
-
(i(!0), d(x, null,
|
|
329
|
+
(i(!0), d(x, null, R(t(H), (e) => (i(), d("tr", {
|
|
328
330
|
key: l.getRowKey(e.data, e.index),
|
|
329
|
-
class:
|
|
331
|
+
class: h(["table-row", {
|
|
330
332
|
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
331
333
|
active: t(w) === e.index,
|
|
332
|
-
activeMenu: t(
|
|
333
|
-
expanded: t(
|
|
334
|
+
activeMenu: t(se) === e.index,
|
|
335
|
+
expanded: t(B) && t(D)(e.index),
|
|
334
336
|
[J(e.index)]: !0
|
|
335
337
|
}]),
|
|
336
|
-
style:
|
|
337
|
-
onMouseenter: (
|
|
338
|
-
onClick: (
|
|
338
|
+
style: g(t(P)[e.index]),
|
|
339
|
+
onMouseenter: (f) => w.value = e.index,
|
|
340
|
+
onClick: (f) => S("clickRow", e.index)
|
|
339
341
|
}, [
|
|
340
|
-
t(M) ? (i(), d("td",
|
|
342
|
+
t(M) ? (i(), d("td", $({
|
|
341
343
|
key: 0,
|
|
342
344
|
class: "checkbox-cell"
|
|
343
345
|
}, t(N), {
|
|
344
|
-
style: t(
|
|
346
|
+
style: t(P)[e.index]
|
|
345
347
|
}), [
|
|
346
|
-
|
|
347
|
-
"is-checked":
|
|
348
|
-
"onUpdate:isChecked": (
|
|
348
|
+
k(t(X), {
|
|
349
|
+
"is-checked": A(l.getRowId(e.data, e.index)),
|
|
350
|
+
"onUpdate:isChecked": (f) => ne(l.getRowId(e.data, e.index))
|
|
349
351
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
350
352
|
], 16)) : c("", !0),
|
|
351
|
-
t(
|
|
353
|
+
t(B) ? (i(), d("td", {
|
|
352
354
|
key: 1,
|
|
353
355
|
class: "expand-toggle-cell",
|
|
354
|
-
style:
|
|
356
|
+
style: g(t(P)[e.index])
|
|
355
357
|
}, [
|
|
356
|
-
|
|
358
|
+
k(Be, {
|
|
357
359
|
expanded: t(D)(e.index),
|
|
358
|
-
onClick: (
|
|
360
|
+
onClick: (f) => t(ae)(e.index, f)
|
|
359
361
|
}, null, 8, ["expanded", "onClick"])
|
|
360
362
|
], 4)) : c("", !0),
|
|
361
|
-
(i(!0), d(x, null,
|
|
363
|
+
(i(!0), d(x, null, R(l.columns, (f, r) => (i(), d("td", {
|
|
362
364
|
key: r,
|
|
363
|
-
class:
|
|
365
|
+
class: h({
|
|
364
366
|
sticky: l.columns[r].isSticky,
|
|
365
367
|
isStickyRight: l.columns[r].isStickyRight,
|
|
366
368
|
bordered: l.columns[r].isBordered,
|
|
367
369
|
isTextRight: l.columns[r].isTextRight,
|
|
368
370
|
[`column-${l.columns[r].id}`]: !0
|
|
369
371
|
}),
|
|
370
|
-
style:
|
|
371
|
-
l.columns[r].isSticky ? t(
|
|
372
|
-
t(
|
|
372
|
+
style: g([
|
|
373
|
+
l.columns[r].isSticky ? t(E)[l.columns[r].id] : null,
|
|
374
|
+
t(P)[e.index]
|
|
373
375
|
])
|
|
374
376
|
}, [
|
|
375
377
|
!l.isLoading || l.isLoading && e.data[r] ? (i(), d("div", {
|
|
376
378
|
key: 0,
|
|
377
|
-
class:
|
|
379
|
+
class: h(["table-cell", { last: r === e.data.length - 1 }])
|
|
378
380
|
}, [
|
|
379
|
-
n(
|
|
381
|
+
n(a.$slots, `cell-${l.columns[r].id}`, {
|
|
380
382
|
cell: e.data[r],
|
|
381
383
|
isLoading: t(U).includes(e.index),
|
|
382
384
|
cellIndex: r,
|
|
383
385
|
row: e,
|
|
384
386
|
rowIndex: e.index
|
|
385
387
|
}, () => [
|
|
386
|
-
|
|
387
|
-
default:
|
|
388
|
-
|
|
388
|
+
k(t(V), { variant: "body1" }, {
|
|
389
|
+
default: y(() => [
|
|
390
|
+
L(O(e.data[r]), 1)
|
|
389
391
|
]),
|
|
390
392
|
_: 2
|
|
391
393
|
}, 1024)
|
|
392
394
|
])
|
|
393
|
-
], 2)) : n(
|
|
394
|
-
|
|
395
|
+
], 2)) : n(a.$slots, "loader", { key: 1 }, () => [
|
|
396
|
+
k(t(Ce), { round: "" })
|
|
395
397
|
])
|
|
396
398
|
], 6))), 128)),
|
|
397
|
-
t(
|
|
398
|
-
n(
|
|
399
|
+
t(B) && t(D)(e.index) ? (i(), d("div", Ke, [
|
|
400
|
+
n(a.$slots, "expanded", {
|
|
399
401
|
row: e,
|
|
400
402
|
gridColumnTemplate: t(z)
|
|
401
403
|
})
|
|
402
404
|
])) : c("", !0),
|
|
403
405
|
ce(e.index) ? (i(), d("div", Ue, [
|
|
404
|
-
n(
|
|
406
|
+
n(a.$slots, "floating-row", {
|
|
405
407
|
row: e,
|
|
406
408
|
rowIndex: e.index
|
|
407
409
|
})
|
|
@@ -409,37 +411,38 @@ const Le = ["data-testid"], Ve = ["data-testid"], De = ["data-testid"], Me = {
|
|
|
409
411
|
], 46, ze))), 128))
|
|
410
412
|
], 16, Ge)) : (i(), d("div", {
|
|
411
413
|
key: 1,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
+
style: g(
|
|
415
|
+
l.useAvailableHeight ? { height: `${t(ke)}px` } : {}
|
|
416
|
+
)
|
|
414
417
|
}, [
|
|
415
|
-
n(
|
|
416
|
-
|
|
418
|
+
n(a.$slots, "empty-state", {}, () => [
|
|
419
|
+
k(t($e), {
|
|
417
420
|
class: "empty-state",
|
|
418
421
|
title: l.emptyStateTitle,
|
|
419
422
|
subtitle: t(he),
|
|
420
423
|
variant: t(ue),
|
|
421
424
|
"icon-name": "file-search",
|
|
422
|
-
"test-id": `${l.testId}-${t(
|
|
425
|
+
"test-id": `${l.testId}-${t(T).EMPTY_STATE}`
|
|
423
426
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
424
427
|
])
|
|
425
428
|
], 4))
|
|
426
429
|
])
|
|
427
430
|
], 46, Ve),
|
|
428
431
|
t(W) ? (i(), d("div", We, [
|
|
429
|
-
n(
|
|
432
|
+
n(a.$slots, "footer")
|
|
430
433
|
])) : c("", !0)
|
|
431
|
-
],
|
|
434
|
+
], 16, Le)
|
|
432
435
|
]),
|
|
433
436
|
_: 2
|
|
434
437
|
}, [
|
|
435
|
-
t(
|
|
438
|
+
t(v)["side-panel"] ? {
|
|
436
439
|
name: "side-panel",
|
|
437
|
-
fn:
|
|
438
|
-
n(
|
|
440
|
+
fn: y(() => [
|
|
441
|
+
n(a.$slots, "side-panel")
|
|
439
442
|
]),
|
|
440
443
|
key: "0"
|
|
441
444
|
} : void 0
|
|
442
|
-
]),
|
|
445
|
+
]), 1032, ["class"]));
|
|
443
446
|
}
|
|
444
447
|
});
|
|
445
448
|
export {
|
|
@@ -372,6 +372,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
372
372
|
rowCustomClassKey: string;
|
|
373
373
|
rowDataKey: string;
|
|
374
374
|
helpTooltipVariant: "icon" | "underline";
|
|
375
|
+
useAvailableHeight: boolean;
|
|
375
376
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
376
377
|
isSelectionSticky: boolean;
|
|
377
378
|
isSelectionBordered: boolean;
|
|
@@ -488,6 +489,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
488
489
|
type: import("vue").PropType<"icon" | "underline">;
|
|
489
490
|
default: string;
|
|
490
491
|
};
|
|
492
|
+
useAvailableHeight: {
|
|
493
|
+
type: import("vue").PropType<boolean>;
|
|
494
|
+
default: boolean;
|
|
495
|
+
};
|
|
491
496
|
selectedMatcher: {
|
|
492
497
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
493
498
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
@@ -514,7 +519,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
514
519
|
onOnClearSearch?: () => any;
|
|
515
520
|
onClickRow?: (rowIndex: number) => any;
|
|
516
521
|
onSelectRow?: (value: boolean) => any;
|
|
517
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
522
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
518
523
|
$attrs: {
|
|
519
524
|
[x: string]: unknown;
|
|
520
525
|
};
|
|
@@ -641,6 +646,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
641
646
|
type: import("vue").PropType<"icon" | "underline">;
|
|
642
647
|
default: string;
|
|
643
648
|
};
|
|
649
|
+
useAvailableHeight: {
|
|
650
|
+
type: import("vue").PropType<boolean>;
|
|
651
|
+
default: boolean;
|
|
652
|
+
};
|
|
644
653
|
selectedMatcher: {
|
|
645
654
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
646
655
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
@@ -707,6 +716,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
707
716
|
rowCustomClassKey: string;
|
|
708
717
|
rowDataKey: string;
|
|
709
718
|
helpTooltipVariant: "icon" | "underline";
|
|
719
|
+
useAvailableHeight: boolean;
|
|
710
720
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
711
721
|
isSelectionSticky: boolean;
|
|
712
722
|
isSelectionBordered: boolean;
|
|
@@ -843,6 +853,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
843
853
|
type: import("vue").PropType<"icon" | "underline">;
|
|
844
854
|
default: string;
|
|
845
855
|
};
|
|
856
|
+
useAvailableHeight: {
|
|
857
|
+
type: import("vue").PropType<boolean>;
|
|
858
|
+
default: boolean;
|
|
859
|
+
};
|
|
846
860
|
selectedMatcher: {
|
|
847
861
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
848
862
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
@@ -988,6 +1002,10 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
988
1002
|
type: import("vue").PropType<"icon" | "underline">;
|
|
989
1003
|
default: string;
|
|
990
1004
|
};
|
|
1005
|
+
useAvailableHeight: {
|
|
1006
|
+
type: import("vue").PropType<boolean>;
|
|
1007
|
+
default: boolean;
|
|
1008
|
+
};
|
|
991
1009
|
selectedMatcher: {
|
|
992
1010
|
type: import("vue").PropType<(rowId: unknown, selected: unknown) => boolean>;
|
|
993
1011
|
default: (rowId: any, selectedItem: any) => boolean;
|
|
@@ -1054,6 +1072,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1054
1072
|
rowCustomClassKey: string;
|
|
1055
1073
|
rowDataKey: string;
|
|
1056
1074
|
helpTooltipVariant: "icon" | "underline";
|
|
1075
|
+
useAvailableHeight: boolean;
|
|
1057
1076
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
1058
1077
|
isSelectionSticky: boolean;
|
|
1059
1078
|
isSelectionBordered: boolean;
|