@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.
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +26 -1
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +68 -56
- package/components/chart/ChartPlane.vue.d.ts +21 -1
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +152 -141
- package/components/chart/ChartStoryArgs.d.ts +20 -1
- package/components/chart/ChartTooltip.vue.d.ts +16 -1
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +33 -29
- package/components/chart/TooltipHeader.vue.d.ts +6 -1
- package/components/chart/TooltipHeader.vue.js +2 -2
- package/components/chart/TooltipHeader.vue2.js +37 -27
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -14
- package/components/chart/consts.d.ts +3 -2
- package/components/chart/consts.js +13 -12
- package/components/chart/index.d.ts +96 -1
- package/components/chart/mockData.d.ts +8 -0
- package/components/chart/types.d.ts +6 -0
- package/components/chart/types.js +4 -3
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +10 -10
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +268 -229
- package/components/table/v4/index.d.ts +14 -0
- package/components/table/v4/storyUtils.d.ts +2 -0
- package/index.d.ts +28 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_82f5b24e_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_5c80d8cd_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9e521454_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_9f6cf389_lang.css +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { TableTestIdModifiers as
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useVModel as
|
|
13
|
-
import { CHECKBOX_COLUMN_ID as
|
|
14
|
-
const
|
|
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
|
-
},
|
|
18
|
-
key:
|
|
19
|
-
class: "
|
|
20
|
-
},
|
|
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
|
-
},
|
|
23
|
+
}, Ue = {
|
|
24
24
|
key: 3,
|
|
25
25
|
class: "floating-row"
|
|
26
|
-
},
|
|
26
|
+
}, ze = { key: 1 }, Ge = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "table-footer"
|
|
29
|
-
},
|
|
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,
|
|
39
|
-
getRowKey: { type: Function, default: (s,
|
|
40
|
-
selectedMatcher: { type: Function, default: (s,
|
|
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:
|
|
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:
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
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
|
|
73
|
-
list:
|
|
74
|
-
containerProps:
|
|
75
|
-
wrapperProps:
|
|
76
|
-
activeRow:
|
|
77
|
-
gridColumnTemplate:
|
|
78
|
-
toggleSortOrder:
|
|
79
|
-
columnsStickyPositions:
|
|
80
|
-
hasSearchSlot:
|
|
81
|
-
containerStyle:
|
|
82
|
-
onScroll:
|
|
83
|
-
savingRows:
|
|
84
|
-
hasExpandSlot:
|
|
85
|
-
toggleExpandRow:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
),
|
|
103
|
-
},
|
|
104
|
-
if (
|
|
105
|
-
|
|
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
|
|
108
|
-
|
|
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
|
-
},
|
|
111
|
-
|
|
112
|
-
}, de = (
|
|
113
|
-
() =>
|
|
114
|
-
),
|
|
115
|
-
() =>
|
|
116
|
-
),
|
|
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:
|
|
119
|
-
bordered:
|
|
117
|
+
sticky: a.isSelectionSticky,
|
|
118
|
+
bordered: a.isSelectionBordered
|
|
120
119
|
},
|
|
121
|
-
style:
|
|
122
|
-
}))
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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(
|
|
128
|
-
onMouseleave:
|
|
135
|
+
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
136
|
+
onMouseleave: d[3] || (d[3] = (e) => H.value = null)
|
|
129
137
|
}, [
|
|
130
|
-
|
|
131
|
-
ref: t(
|
|
132
|
-
style:
|
|
133
|
-
class:
|
|
134
|
-
hasFooter: t(
|
|
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(
|
|
137
|
-
onScrollPassive:
|
|
138
|
-
(...e) => t(
|
|
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(
|
|
148
|
+
t(le) ? (i(), o("div", {
|
|
141
149
|
key: 0,
|
|
142
|
-
class:
|
|
143
|
-
"data-testid": `${s.testId}-${t(
|
|
150
|
+
class: y(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
151
|
+
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
144
152
|
}, [
|
|
145
|
-
|
|
153
|
+
h("div", {
|
|
146
154
|
class: "table-title",
|
|
147
|
-
"data-testid": `${s.testId}-${t(
|
|
155
|
+
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
148
156
|
}, [
|
|
149
|
-
c(
|
|
150
|
-
|
|
151
|
-
default:
|
|
152
|
-
|
|
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,
|
|
158
|
-
t(
|
|
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(
|
|
169
|
+
"data-testid": `${s.testId}-${t(S).PRE_SEARCH_HEADER}`
|
|
162
170
|
}, [
|
|
163
|
-
c(
|
|
164
|
-
], 8,
|
|
165
|
-
|
|
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(
|
|
175
|
+
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
168
176
|
}, [
|
|
169
|
-
s.showSearch ? c(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
modelValue: t(
|
|
173
|
-
"onUpdate:modelValue":
|
|
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:
|
|
185
|
+
onOnClear: d[1] || (d[1] = (e) => k("onClearSearch"))
|
|
178
186
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
179
187
|
])
|
|
180
|
-
]) :
|
|
181
|
-
], 8,
|
|
182
|
-
t(
|
|
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(
|
|
193
|
+
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
186
194
|
}, [
|
|
187
|
-
c(
|
|
188
|
-
], 8,
|
|
189
|
-
], 10,
|
|
190
|
-
|
|
191
|
-
class:
|
|
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
|
-
|
|
201
|
+
h("div", {
|
|
194
202
|
class: "sections",
|
|
195
|
-
"data-testid": `${s.testId}-${t(
|
|
203
|
+
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
196
204
|
}, [
|
|
197
|
-
(i(!0),
|
|
205
|
+
(i(!0), o(x, null, T(s.sections, (e) => (i(), o("div", {
|
|
198
206
|
key: e.id,
|
|
199
|
-
class:
|
|
207
|
+
class: y(["section-container", { sticky: e.isSticky }])
|
|
200
208
|
}, [
|
|
201
|
-
c(
|
|
202
|
-
|
|
203
|
-
style:
|
|
204
|
-
class:
|
|
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
|
-
|
|
207
|
-
default:
|
|
208
|
-
|
|
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,
|
|
216
|
-
|
|
217
|
-
t(
|
|
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(
|
|
221
|
-
c(
|
|
222
|
-
|
|
228
|
+
}, t(O)), [
|
|
229
|
+
c(l.$slots, "select-all-checkbox", {}, () => [
|
|
230
|
+
f(t(Y), {
|
|
223
231
|
disabled: s.isLoading,
|
|
224
|
-
"is-checked": t(
|
|
225
|
-
"is-indeterminate": !t(
|
|
226
|
-
"onUpdate:isChecked":
|
|
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)) :
|
|
230
|
-
t(
|
|
231
|
-
(i(!0),
|
|
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:
|
|
234
|
-
|
|
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:
|
|
242
|
-
onClick: (
|
|
246
|
+
style: v(e.isSticky ? t(B)[e.id] : null),
|
|
247
|
+
onClick: (r) => e.isSortable ? t(q)(e) : null
|
|
243
248
|
}, [
|
|
244
|
-
|
|
245
|
-
c(
|
|
246
|
-
|
|
247
|
-
default:
|
|
248
|
-
|
|
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(),
|
|
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"])) :
|
|
258
|
-
e.isSortable && e.id === s.sort?.sortBy ? (i(),
|
|
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"])) :
|
|
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
|
-
],
|
|
264
|
-
])
|
|
294
|
+
], 6))), 128))
|
|
295
|
+
])) : n("", !0)
|
|
265
296
|
], 2),
|
|
266
|
-
|
|
267
|
-
t(
|
|
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(
|
|
271
|
-
}, t(
|
|
272
|
-
(i(!0),
|
|
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:
|
|
275
|
-
loading: s.isLoading || s.isLoading && !e.data || t(
|
|
276
|
-
active: t(
|
|
277
|
-
activeMenu: t(
|
|
278
|
-
expanded: t(
|
|
279
|
-
[
|
|
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
|
-
|
|
282
|
-
|
|
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(
|
|
316
|
+
t(F) ? (i(), o("td", M({
|
|
285
317
|
key: 0,
|
|
286
318
|
class: "checkbox-cell"
|
|
287
|
-
}, t(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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)) :
|
|
293
|
-
t(
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
])) :
|
|
299
|
-
(i(!0),
|
|
300
|
-
key:
|
|
301
|
-
class:
|
|
302
|
-
sticky: s.columns[
|
|
303
|
-
isStickyRight: s.columns[
|
|
304
|
-
bordered: s.columns[
|
|
305
|
-
isTextRight: s.columns[
|
|
306
|
-
[`column-${s.columns[
|
|
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:
|
|
309
|
-
s.columns[
|
|
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[
|
|
351
|
+
!s.isLoading || s.isLoading && e.data[r] ? (i(), o("div", {
|
|
313
352
|
key: 0,
|
|
314
|
-
class:
|
|
353
|
+
class: y(["table-cell", { last: r === e.data.length - 1 }])
|
|
315
354
|
}, [
|
|
316
|
-
c(
|
|
317
|
-
cell: e.data[
|
|
318
|
-
isLoading: t(
|
|
319
|
-
cellIndex:
|
|
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
|
-
|
|
324
|
-
default:
|
|
325
|
-
|
|
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(
|
|
331
|
-
|
|
369
|
+
], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
|
|
370
|
+
f(t(ke), { round: "" })
|
|
332
371
|
])
|
|
333
372
|
], 6))), 128)),
|
|
334
|
-
t(
|
|
335
|
-
c(
|
|
373
|
+
t(p) && t(V)(e.index) ? (i(), o("div", Ke, [
|
|
374
|
+
c(l.$slots, "expanded", {
|
|
336
375
|
row: e,
|
|
337
|
-
gridColumnTemplate: t(
|
|
376
|
+
gridColumnTemplate: t(K)
|
|
338
377
|
})
|
|
339
|
-
])) :
|
|
340
|
-
de(e.index) ? (i(),
|
|
341
|
-
c(
|
|
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
|
-
])) :
|
|
346
|
-
],
|
|
347
|
-
], 16,
|
|
348
|
-
c(
|
|
349
|
-
|
|
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(
|
|
353
|
-
variant: t(
|
|
391
|
+
subtitle: t(re),
|
|
392
|
+
variant: t(ne),
|
|
354
393
|
"icon-name": "file-search",
|
|
355
|
-
"test-id": `${s.testId}-${t(
|
|
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,
|
|
361
|
-
t(
|
|
362
|
-
c(
|
|
363
|
-
])) :
|
|
364
|
-
], 40,
|
|
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
|
-
|
|
407
|
+
at as default
|
|
369
408
|
};
|