@ironsource/shared-ui 2.1.12-test.69 → 2.1.12-test.71

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