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