@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.
@@ -1,18 +1,18 @@
1
- import "../../../DataGrid.vue_vue_type_style_index_0_scoped_6db25923_lang.css"; import { defineComponent as me, useCssVars as pe, unref as t, useSlots as be, computed as u, openBlock as i, createBlock as C, createSlots as Q, withCtx as h, createElementVNode as m, normalizeStyle as k, normalizeClass as f, isRef as ve, renderSlot as n, createCommentVNode as c, createElementBlock as d, Fragment as x, renderList as $, createVNode as g, createTextVNode as P, toDisplayString as O, mergeProps as L } from "vue";
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 xe from "../../emptyState/v4/EmptyStateV4.vue.js";
4
+ import $e from "../../emptyState/v4/EmptyStateV4.vue.js";
5
5
  import X from "../../checkbox/v4/CheckboxV4.vue.js";
6
- import $e from "../../tooltip/v4/TooltipV4.vue.js";
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 R } from "../../../testids/index.js";
14
- import { tableCommon as we } from "../common/Table.common.js";
15
- import He from "./SortIcon.vue.js";
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, p) => p },
45
- getRowKey: { type: Function, default: (l, p) => p },
46
- selectedMatcher: { type: Function, default: (l, p) => l === p },
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: p, emit: S }) {
73
- const a = l;
74
- pe((s) => ({
75
- "1d66e282": l.zIndexBase,
76
- c395a914: t(le),
77
- a5378e22: t(z),
78
- f3c227c6: t(ke)
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 b = be(), J = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
81
- list: T,
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: H,
88
+ columnsStickyPositions: E,
88
89
  hasSearchSlot: ee,
89
90
  containerStyle: te,
90
91
  onScroll: K,
91
92
  savingRows: U,
92
- hasExpandSlot: E,
93
- toggleExpandRow: se,
93
+ hasExpandSlot: B,
94
+ toggleExpandRow: ae,
94
95
  cssExpandGridCol: le,
95
96
  isRowExpanded: D,
96
97
  hasCheckboxes: M,
97
- activeMenuRow: ae,
98
+ activeMenuRow: se,
98
99
  scrollTo: ie
99
- } = we(a, S), W = u(() => !!b.footer), oe = u(
100
- () => a.title || b.title || ee.value || b["table-header-actions"] || b["table-header-pre-search"]
101
- ), v = u({
102
- get: () => a.search,
103
- set: (s) => S("update:search", s)
104
- }), de = u(() => a.selection.length || 0), F = u(() => {
105
- const s = a.rows.map((o, e) => a.getRowId(o, e));
106
- return !!s.length && s.every((o) => B(o));
107
- }), B = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, ne = (s) => {
108
- B(s) ? (A(
109
- a.selection.filter(
110
- (o) => !a.selectedMatcher(s, 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)) : (A([...a.selection, s]), S("selectRow", !0));
113
+ ), S("selectRow", !1)) : (I([...s.selection, a]), S("selectRow", !0));
113
114
  }, re = () => {
114
115
  if (F.value)
115
- A([]), S("selectAll", !1);
116
+ I([]), S("selectAll", !1);
116
117
  else {
117
- const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !B(o));
118
- A([...a.selection, ...s]), S("selectAll", !0);
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
- }, A = (s) => {
121
- S("update:selection", s);
122
- }, ce = (s) => !a.isLoading && w.value === s, ue = u(
123
- () => a.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
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
- () => a.emptyStateSubtitle ? a.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
126
+ () => s.emptyStateSubtitle ? s.emptyStateSubtitle : p.value ? "Search again with different filters" : void 0
126
127
  ), N = u(() => ({
127
128
  class: {
128
- sticky: a.isSelectionSticky,
129
- bordered: a.isSelectionBordered
129
+ sticky: s.isSelectionSticky,
130
+ bordered: s.isSelectionBordered
130
131
  },
131
- style: a.isSelectionSticky ? H.value[Ie] : null
132
- })), ye = (s) => ({
133
- sticky: s.isSticky,
134
- isStickyRight: s.isStickyRight,
135
- bordered: s.isBordered,
136
- isTextRight: s.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
- () => a.columns.map((s) => ye(s))
139
- ), fe = (s) => ({
140
- minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
141
- }), I = u(() => T.value.reduce((s, o) => (s[o.index] = fe(o.index), s), {})), { height: Se } = Pe(G.ref), ke = u(() => `${j}px`), ge = u(
142
- () => Se.value - q - j
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 p({
145
+ return b({
145
146
  scrollTo: ie
146
- }), (s, o) => (i(), C(Te, null, Q({
147
- default: h(() => [
148
- m("div", {
149
- class: "table-container",
150
- "data-testid": `${l.testId}-${t(R).CONTAINER}`,
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: k(t(te)),
156
- class: f({
157
+ style: g(t(te)),
158
+ class: h({
157
159
  hasFooter: t(W)
158
160
  }),
159
- "data-testid": `${l.testId}-${t(R).TABLE}`,
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(v),
166
- "onUpdate:search": o[0] || (o[0] = (e) => ve(v) ? v.value = e : null),
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: h(() => [
177
- n(s.$slots, "title")
178
+ title: y(() => [
179
+ n(a.$slots, "title")
178
180
  ]),
179
- search: h(() => [
180
- n(s.$slots, "search")
181
+ search: y(() => [
182
+ n(a.$slots, "search")
181
183
  ]),
182
184
  _: 2
183
185
  }, [
184
- t(b)["table-header-pre-search"] ? {
186
+ t(v)["table-header-pre-search"] ? {
185
187
  name: "table-header-pre-search",
186
- fn: h(() => [
187
- n(s.$slots, "table-header-pre-search")
188
+ fn: y(() => [
189
+ n(a.$slots, "table-header-pre-search")
188
190
  ]),
189
191
  key: "0"
190
192
  } : void 0,
191
- t(b)["table-header-actions"] ? {
193
+ t(v)["table-header-actions"] ? {
192
194
  name: "table-header-actions",
193
- fn: h(() => [
194
- n(s.$slots, "table-header-actions")
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: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
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(R).SECTIONS}`
206
+ "data-testid": `${l.testId}-${t(T).SECTIONS}`
205
207
  }, [
206
- (i(!0), d(x, null, $(l.sections, (e) => (i(), d("div", {
208
+ (i(!0), d(x, null, R(l.sections, (e) => (i(), d("div", {
207
209
  key: e.id,
208
- class: f(["section-container", { sticky: e.isSticky }])
210
+ class: h(["section-container", { sticky: e.isSticky }])
209
211
  }, [
210
- n(s.$slots, `section-${e.id}`, {}, () => [
212
+ n(a.$slots, `section-${e.id}`, {}, () => [
211
213
  m("div", {
212
- style: k({ width: e.width + "px" }),
213
- class: f({ section: !0 })
214
+ style: g({ width: e.width + "px" }),
215
+ class: h({ section: !0 })
214
216
  }, [
215
- g(t(V), { variant: "body2" }, {
216
- default: h(() => [
217
- P(O(e.title), 1)
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: k({ height: `${t(q)}px` })
228
+ style: g({ height: `${t(q)}px` })
227
229
  }, [
228
- t(M) ? (i(), d("th", L({
230
+ t(M) ? (i(), d("th", $({
229
231
  key: 0,
230
232
  class: "checkbox-cell"
231
233
  }, t(N)), [
232
- n(s.$slots, "select-all-checkbox", {}, () => [
233
- g(t(X), {
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(E) ? (i(), d("th", Me)) : c("", !0),
242
- (i(!0), d(x, null, $(l.columns, (e, y) => (i(), d("th", {
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: f({
245
- ...t(Y)[y],
246
+ class: h({
247
+ ...t(Y)[f],
246
248
  isSortable: e.isSortable,
247
249
  [`column-${e.id}`]: !0
248
250
  }),
249
- style: k(
250
- e.isSticky ? t(H)[e.id] : null
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(s.$slots, `header-${e.id}`, { column: e }, () => [
256
- g(t($e), {
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: h(() => [
263
- g(t(V), {
264
+ default: y(() => [
265
+ k(t(V), {
264
266
  variant: "tableLabel",
265
- class: f({
267
+ class: h({
266
268
  underlined: e.helpText && l.helpTooltipVariant === "underline"
267
269
  })
268
270
  }, {
269
- default: h(() => [
270
- P(O(e.title), 1)
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(s.$slots, `after-header-${e.id}`, { column: e }),
285
- e.isSortable && e.id === l.sort?.sortBy ? (i(), C(He, {
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(T).length > 0 ? (i(), d("tr", Oe, [
293
- t(M) ? (i(), d("td", L({
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, $(l.columns, (e, y) => (i(), d("td", {
299
+ (i(!0), d(x, null, R(l.columns, (e, f) => (i(), d("td", {
298
300
  key: e.id,
299
- class: f({
300
- ...t(Y)[y],
301
+ class: h({
302
+ ...t(Y)[f],
301
303
  [`total-${e.id}`]: !0
302
304
  }),
303
- style: k(
304
- e.isSticky ? t(H)[e.id] : null
305
+ style: g(
306
+ e.isSticky ? t(E)[e.id] : null
305
307
  )
306
308
  }, [
307
- n(s.$slots, `total-${e.id}`, { column: e }, () => [
308
- y === 0 ? (i(), C(t(V), {
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: h(() => [
313
- P("Totals")
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(T).length > 0 ? (i(), d("div", L({
324
+ t(H).length > 0 ? (i(), d("div", $({
323
325
  key: 0,
324
326
  class: "table-body-wrapper",
325
- "data-testid": `${l.testId}-${t(R).BODY_WRAPPER}`
327
+ "data-testid": `${l.testId}-${t(T).BODY_WRAPPER}`
326
328
  }, t(Z)), [
327
- (i(!0), d(x, null, $(t(T), (e) => (i(), d("tr", {
329
+ (i(!0), d(x, null, R(t(H), (e) => (i(), d("tr", {
328
330
  key: l.getRowKey(e.data, e.index),
329
- class: f(["table-row", {
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(ae) === e.index,
333
- expanded: t(E) && t(D)(e.index),
334
+ activeMenu: t(se) === e.index,
335
+ expanded: t(B) && t(D)(e.index),
334
336
  [J(e.index)]: !0
335
337
  }]),
336
- style: k(t(I)[e.index]),
337
- onMouseenter: (y) => w.value = e.index,
338
- onClick: (y) => S("clickRow", e.index)
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", L({
342
+ t(M) ? (i(), d("td", $({
341
343
  key: 0,
342
344
  class: "checkbox-cell"
343
345
  }, t(N), {
344
- style: t(I)[e.index]
346
+ style: t(P)[e.index]
345
347
  }), [
346
- g(t(X), {
347
- "is-checked": B(l.getRowId(e.data, e.index)),
348
- "onUpdate:isChecked": (y) => ne(l.getRowId(e.data, e.index))
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(E) ? (i(), d("td", {
353
+ t(B) ? (i(), d("td", {
352
354
  key: 1,
353
355
  class: "expand-toggle-cell",
354
- style: k(t(I)[e.index])
356
+ style: g(t(P)[e.index])
355
357
  }, [
356
- g(Be, {
358
+ k(Be, {
357
359
  expanded: t(D)(e.index),
358
- onClick: (y) => t(se)(e.index, y)
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, $(l.columns, (y, r) => (i(), d("td", {
363
+ (i(!0), d(x, null, R(l.columns, (f, r) => (i(), d("td", {
362
364
  key: r,
363
- class: f({
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: k([
371
- l.columns[r].isSticky ? t(H)[l.columns[r].id] : null,
372
- t(I)[e.index]
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: f(["table-cell", { last: r === e.data.length - 1 }])
379
+ class: h(["table-cell", { last: r === e.data.length - 1 }])
378
380
  }, [
379
- n(s.$slots, `cell-${l.columns[r].id}`, {
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
- g(t(V), { variant: "body1" }, {
387
- default: h(() => [
388
- P(O(e.data[r]), 1)
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(s.$slots, "loader", { key: 1 }, () => [
394
- g(t(Ce), { round: "" })
395
+ ], 2)) : n(a.$slots, "loader", { key: 1 }, () => [
396
+ k(t(Ce), { round: "" })
395
397
  ])
396
398
  ], 6))), 128)),
397
- t(E) && t(D)(e.index) ? (i(), d("div", Ke, [
398
- n(s.$slots, "expanded", {
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(s.$slots, "floating-row", {
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
- class: "empty-state-container",
413
- style: k({ height: `${t(ge)}px` })
414
+ style: g(
415
+ l.useAvailableHeight ? { height: `${t(ke)}px` } : {}
416
+ )
414
417
  }, [
415
- n(s.$slots, "empty-state", {}, () => [
416
- g(t(xe), {
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(R).EMPTY_STATE}`
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(s.$slots, "footer")
432
+ n(a.$slots, "footer")
430
433
  ])) : c("", !0)
431
- ], 40, Le)
434
+ ], 16, Le)
432
435
  ]),
433
436
  _: 2
434
437
  }, [
435
- t(b)["side-panel"] ? {
438
+ t(v)["side-panel"] ? {
436
439
  name: "side-panel",
437
- fn: h(() => [
438
- n(s.$slots, "side-panel")
440
+ fn: y(() => [
441
+ n(a.$slots, "side-panel")
439
442
  ]),
440
443
  key: "0"
441
444
  } : void 0
442
- ]), 1024));
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;