@ironsource/shared-ui 2.1.12-test.70 → 2.1.12-test.72

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