@ironsource/shared-ui 2.1.7-rc.10 → 2.1.7-rc.11
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/DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_402063dc_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
- package/components/ThemeWrapper/ThemeWrapper.vue2.js +8 -8
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +20 -20
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +20 -20
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +16 -16
- package/components/sortableList/SortableList.vue.d.ts +17 -0
- package/components/sortableList/SortableList.vue.js +3 -3
- package/components/sortableList/SortableList.vue2.js +122 -86
- package/components/sortableList/index.d.ts +60 -1
- package/components/table/v3/Table.vue.d.ts +2 -2
- package/components/table/v3/index.d.ts +39 -39
- package/components/table/v4/DataGrid.vue.d.ts +2 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +44 -43
- package/components/table/v4/MultipleDataGrid.vue.d.ts +5 -3
- package/components/table/v4/MultipleDataGrid.vue.js +3 -3
- package/components/table/v4/MultipleDataGrid.vue2.js +83 -67
- package/components/table/v4/index.d.ts +77 -75
- package/components/table/v4/utils/utils.d.ts +3 -0
- package/components/table/v4/utils/utils.js +5 -0
- package/components/tooltip/v4/TooltipV4.vue.d.ts +1 -1
- package/components/tooltip/v4/index.d.ts +20 -20
- package/index.d.ts +432 -310
- package/package.json +1 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_1cff50cb_lang.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-ff47417d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_ff47417d_lang.css"; import { defineComponent as le, useCssVars as ie, unref as t, useSlots as de, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as C, normalizeClass as f, renderSlot as c, createVNode as h, withCtx as T, createTextVNode as E, toDisplayString as w, isRef as oe, createCommentVNode as r, Fragment as B, renderList as I, createBlock as z, mergeProps as ne } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ce from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import re from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -10,25 +10,26 @@ import ye from "./HelpIcon.vue.js";
|
|
|
10
10
|
import fe from "./ExpandRowToggle.vue.js";
|
|
11
11
|
import Se from "../../search/v4/SearchV4.vue.js";
|
|
12
12
|
import { useVModel as ke } from "@vueuse/core";
|
|
13
|
-
|
|
13
|
+
import { getEmptyVariant as me, getEmptySubtitle as ge } from "./utils/utils.js";
|
|
14
|
+
const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], xe = ["data-testid"], Ce = { class: "search-wrapper" }, Te = ["data-testid"], Ee = ["data-testid"], we = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "checkbox-cell"
|
|
16
|
-
},
|
|
17
|
+
}, Be = {
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
20
|
+
}, Ie = ["onClick"], pe = { class: "table-head-container" }, Ae = ["data-testid"], Ve = ["onMouseenter", "onClick"], Me = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "checkbox-cell"
|
|
22
|
-
},
|
|
23
|
+
}, Pe = {
|
|
23
24
|
key: 1,
|
|
24
25
|
class: "expand-toggle-cell"
|
|
25
|
-
},
|
|
26
|
+
}, He = {
|
|
26
27
|
key: 2,
|
|
27
28
|
class: "expanded-row"
|
|
28
|
-
},
|
|
29
|
+
}, Le = { key: 1 }, Ne = {
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "table-footer"
|
|
31
|
-
},
|
|
32
|
+
}, Xe = /* @__PURE__ */ le({
|
|
32
33
|
__name: "DataGrid",
|
|
33
34
|
props: {
|
|
34
35
|
title: { default: "" },
|
|
@@ -61,13 +62,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
61
62
|
setup(s, { expose: m, emit: y }) {
|
|
62
63
|
const o = s;
|
|
63
64
|
ie((a) => ({
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
65
|
+
"2370adac": s.zIndexBase,
|
|
66
|
+
"78406f20": t(K),
|
|
67
|
+
"31ad3a19": t(H),
|
|
68
|
+
"03815261": t(J)
|
|
68
69
|
}));
|
|
69
70
|
const b = de(), {
|
|
70
|
-
list:
|
|
71
|
+
list: P,
|
|
71
72
|
containerProps: G,
|
|
72
73
|
wrapperProps: Y,
|
|
73
74
|
activeRow: A,
|
|
@@ -82,11 +83,11 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
82
83
|
toggleExpandRow: q,
|
|
83
84
|
cssRowHeight: J,
|
|
84
85
|
cssExpandGridCol: K,
|
|
85
|
-
isRowExpanded:
|
|
86
|
+
isRowExpanded: V,
|
|
86
87
|
hasCheckboxes: O,
|
|
87
88
|
activeMenuRow: X,
|
|
88
89
|
scrollTo: Z
|
|
89
|
-
} = ue(o, y), D = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0),
|
|
90
|
+
} = ue(o, y), D = v(() => !!b.footer), g = ke(o, "search", y), _ = v(() => o.selection.length || 0), M = v(() => {
|
|
90
91
|
const a = o.rows.map((i, e) => o.getRowId(i, e));
|
|
91
92
|
return a.length && a.every((i) => R(i));
|
|
92
93
|
}), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, ee = (a) => {
|
|
@@ -96,7 +97,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
96
97
|
)
|
|
97
98
|
), y("selectRow", !1)) : (x([...o.selection, a]), y("selectRow", !0));
|
|
98
99
|
}, te = () => {
|
|
99
|
-
if (
|
|
100
|
+
if (M.value)
|
|
100
101
|
x([]), y("selectAll", !1);
|
|
101
102
|
else {
|
|
102
103
|
const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
|
|
@@ -105,9 +106,9 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
105
106
|
}, x = (a) => {
|
|
106
107
|
y("update:selection", a);
|
|
107
108
|
}, se = v(
|
|
108
|
-
() => o.emptyStateVariant
|
|
109
|
+
() => me(o.emptyStateVariant, g.value)
|
|
109
110
|
), ae = v(
|
|
110
|
-
() => o.emptyStateSubtitle
|
|
111
|
+
() => ge(o.emptyStateSubtitle, g.value)
|
|
111
112
|
);
|
|
112
113
|
return m({
|
|
113
114
|
scrollTo: Z
|
|
@@ -143,13 +144,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
143
144
|
_: 1
|
|
144
145
|
})
|
|
145
146
|
], !0)
|
|
146
|
-
], 8,
|
|
147
|
+
], 8, Re),
|
|
147
148
|
u("div", {
|
|
148
149
|
class: "table-header-right",
|
|
149
150
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
150
151
|
}, [
|
|
151
152
|
s.showSearch ? c(a.$slots, "search", { key: 0 }, () => [
|
|
152
|
-
u("div",
|
|
153
|
+
u("div", Ce, [
|
|
153
154
|
h(t(Se), {
|
|
154
155
|
modelValue: t(g),
|
|
155
156
|
"onUpdate:modelValue": i[0] || (i[0] = (e) => oe(g) ? g.value = e : null),
|
|
@@ -160,15 +161,15 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
160
161
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
161
162
|
])
|
|
162
163
|
], !0) : r("", !0)
|
|
163
|
-
], 8,
|
|
164
|
+
], 8, xe),
|
|
164
165
|
t(b)["table-header-actions"] ? (l(), d("div", {
|
|
165
166
|
key: 0,
|
|
166
167
|
class: "table-header-actions",
|
|
167
168
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
168
169
|
}, [
|
|
169
170
|
c(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
170
|
-
], 8,
|
|
171
|
-
], 10,
|
|
171
|
+
], 8, Te)) : r("", !0)
|
|
172
|
+
], 10, $e)) : r("", !0),
|
|
172
173
|
u("thead", {
|
|
173
174
|
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
174
175
|
}, [
|
|
@@ -194,19 +195,19 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
194
195
|
], 4)
|
|
195
196
|
], !0)
|
|
196
197
|
], 2))), 128))
|
|
197
|
-
], 8,
|
|
198
|
+
], 8, Ee),
|
|
198
199
|
u("tr", null, [
|
|
199
|
-
t(O) ? (l(), d("th",
|
|
200
|
+
t(O) ? (l(), d("th", we, [
|
|
200
201
|
c(a.$slots, "select-all-checkbox", {}, () => [
|
|
201
202
|
h(t(U), {
|
|
202
203
|
disabled: s.isLoading,
|
|
203
|
-
"is-checked": t(
|
|
204
|
-
"is-indeterminate": !t(
|
|
204
|
+
"is-checked": t(M),
|
|
205
|
+
"is-indeterminate": !t(M) && t(_) > 0,
|
|
205
206
|
"onUpdate:isChecked": te
|
|
206
207
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
207
208
|
], !0)
|
|
208
209
|
])) : r("", !0),
|
|
209
|
-
t($) ? (l(), d("th",
|
|
210
|
+
t($) ? (l(), d("th", Be)) : r("", !0),
|
|
210
211
|
(l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
|
|
211
212
|
key: e.id,
|
|
212
213
|
class: f({
|
|
@@ -220,7 +221,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
220
221
|
style: C(e.isSticky ? t(L)[e.id] : null),
|
|
221
222
|
onClick: (k) => e.isSortable ? t(Q)(e) : null
|
|
222
223
|
}, [
|
|
223
|
-
u("div",
|
|
224
|
+
u("div", pe, [
|
|
224
225
|
c(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
225
226
|
h(t(p), { variant: "tableLabel" }, {
|
|
226
227
|
default: T(() => [
|
|
@@ -239,35 +240,35 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
239
240
|
"sort-order": s.sort.sortOrder
|
|
240
241
|
}, null, 8, ["sort-order"])) : r("", !0)
|
|
241
242
|
])
|
|
242
|
-
], 14,
|
|
243
|
+
], 14, Ie))), 128))
|
|
243
244
|
])
|
|
244
245
|
], 2),
|
|
245
246
|
u("tbody", null, [
|
|
246
|
-
t(
|
|
247
|
+
t(P).length > 0 ? (l(), d("div", ne({
|
|
247
248
|
key: 0,
|
|
248
249
|
class: "table-body-wrapper",
|
|
249
250
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
250
251
|
}, t(Y)), [
|
|
251
|
-
(l(!0), d(B, null, I(t(
|
|
252
|
+
(l(!0), d(B, null, I(t(P), (e) => (l(), d("tr", {
|
|
252
253
|
key: e.index,
|
|
253
254
|
class: f(["table-row", {
|
|
254
255
|
loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
|
|
255
256
|
active: t(A) === e.index,
|
|
256
257
|
activeMenu: t(X) === e.index,
|
|
257
|
-
expanded: t($) && t(
|
|
258
|
+
expanded: t($) && t(V)(e.index)
|
|
258
259
|
}]),
|
|
259
260
|
onMouseenter: (k) => A.value = e.index,
|
|
260
261
|
onClick: (k) => y("clickRow", e.index)
|
|
261
262
|
}, [
|
|
262
|
-
t(O) ? (l(), d("td",
|
|
263
|
+
t(O) ? (l(), d("td", Me, [
|
|
263
264
|
h(t(U), {
|
|
264
265
|
"is-checked": R(s.getRowId(e.data, e.index)),
|
|
265
266
|
"onUpdate:isChecked": (k) => ee(s.getRowId(e.data, e.index))
|
|
266
267
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
267
268
|
])) : r("", !0),
|
|
268
|
-
t($) ? (l(), d("td",
|
|
269
|
+
t($) ? (l(), d("td", Pe, [
|
|
269
270
|
h(fe, {
|
|
270
|
-
expanded: t(
|
|
271
|
+
expanded: t(V)(e.index),
|
|
271
272
|
onClick: (k) => t(q)(e.index, k)
|
|
272
273
|
}, null, 8, ["expanded", "onClick"])
|
|
273
274
|
])) : r("", !0),
|
|
@@ -306,14 +307,14 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
306
307
|
h(t(ce), { round: "" })
|
|
307
308
|
], !0)
|
|
308
309
|
], 6))), 128)),
|
|
309
|
-
t($) && t(
|
|
310
|
+
t($) && t(V)(e.index) ? (l(), d("div", He, [
|
|
310
311
|
c(a.$slots, "expanded", {
|
|
311
312
|
row: e,
|
|
312
313
|
gridColumnTemplate: t(H)
|
|
313
314
|
}, void 0, !0)
|
|
314
315
|
])) : r("", !0)
|
|
315
|
-
], 42,
|
|
316
|
-
], 16,
|
|
316
|
+
], 42, Ve))), 128))
|
|
317
|
+
], 16, Ae)) : (l(), d("div", Le, [
|
|
317
318
|
c(a.$slots, "empty-state", {}, () => [
|
|
318
319
|
h(t(re), {
|
|
319
320
|
class: "empty-state",
|
|
@@ -325,13 +326,13 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
325
326
|
], !0)
|
|
326
327
|
]))
|
|
327
328
|
])
|
|
328
|
-
], 46,
|
|
329
|
-
t(D) ? (l(), d("div",
|
|
329
|
+
], 46, be),
|
|
330
|
+
t(D) ? (l(), d("div", Ne, [
|
|
330
331
|
c(a.$slots, "footer", {}, void 0, !0)
|
|
331
332
|
])) : r("", !0)
|
|
332
|
-
], 40,
|
|
333
|
+
], 40, ve));
|
|
333
334
|
}
|
|
334
335
|
});
|
|
335
336
|
export {
|
|
336
|
-
|
|
337
|
+
Xe as default
|
|
337
338
|
};
|
|
@@ -93,10 +93,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
93
93
|
searchPlaceholder: string;
|
|
94
94
|
count: number;
|
|
95
95
|
showSearch: boolean;
|
|
96
|
-
|
|
96
|
+
loadingRowCount: number;
|
|
97
97
|
emptyStateTitle: string;
|
|
98
|
+
isSticky: boolean;
|
|
98
99
|
emptyStateSubtitle: string;
|
|
99
|
-
loadingRowCount: number;
|
|
100
100
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
101
101
|
zIndexBase: number;
|
|
102
102
|
totalCount: number;
|
|
@@ -111,7 +111,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
111
111
|
cellIndex: any;
|
|
112
112
|
row: any;
|
|
113
113
|
rowIndex: any;
|
|
114
|
-
}) => any
|
|
114
|
+
}) => any>> & {
|
|
115
|
+
"empty-state"?(_: {}): any;
|
|
116
|
+
}>;
|
|
115
117
|
export default _default;
|
|
116
118
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
117
119
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MultipleDataGrid.vue2.js";
|
|
2
2
|
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../MultipleDataGrid.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29f00d79"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import "../../../MultipleDataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_29f00d79_lang.css"; import { defineComponent as z, useCssVars as D, computed as m, openBlock as l, createElementBlock as c, createElementVNode as g, normalizeClass as M, unref as e, createBlock as u, createCommentVNode as f, isRef as N, Fragment as A, renderList as h, createSlots as O, withCtx as w, renderSlot as k, createVNode as P } from "vue";
|
|
2
|
+
import x from "./DataGrid.vue.js";
|
|
3
3
|
import "./DataGridMenu.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import G from "./DataGridRowsCounter.vue.js";
|
|
5
5
|
import "./MultipleDataGrid.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useVModel as
|
|
8
|
-
import
|
|
9
|
-
|
|
6
|
+
import H from "../../search/v4/SearchV4.vue.js";
|
|
7
|
+
import { useVModel as F } from "@vueuse/core";
|
|
8
|
+
import Q from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
9
|
+
import { TableTestIdModifiers as y } from "../../../testids/index.js";
|
|
10
|
+
import { getEmptyVariant as U, getEmptySubtitle as Y } from "./utils/utils.js";
|
|
11
|
+
const j = ["data-testid"], q = ["data-testid"], J = {
|
|
10
12
|
key: 0,
|
|
11
13
|
class: "tables-container"
|
|
12
|
-
},
|
|
14
|
+
}, st = /* @__PURE__ */ z({
|
|
13
15
|
__name: "MultipleDataGrid",
|
|
14
16
|
props: {
|
|
15
17
|
tablesSettings: { default: () => [] },
|
|
@@ -32,29 +34,33 @@ const p = ["data-testid"], H = ["data-testid"], F = {
|
|
|
32
34
|
testId: { default: "" }
|
|
33
35
|
},
|
|
34
36
|
emits: ["update:search", "onScroll", "onClearSearch", "clickRow"],
|
|
35
|
-
setup(t, { emit:
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
setup(t, { emit: i }) {
|
|
38
|
+
const s = t;
|
|
39
|
+
D((a) => ({
|
|
40
|
+
c8ad7474: t.zIndexBase
|
|
39
41
|
}));
|
|
40
|
-
const
|
|
41
|
-
() =>
|
|
42
|
-
),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
const C = m(
|
|
43
|
+
() => s.isLoading || !s.tablesSettings.flatMap((a) => a.rows).length
|
|
44
|
+
), n = F(s, "search", i), b = m(
|
|
45
|
+
() => U(s.emptyStateVariant, n.value)
|
|
46
|
+
), T = m(
|
|
47
|
+
() => Y(s.emptyStateSubtitle, n.value)
|
|
48
|
+
), S = (a) => `cell-${a.id}`, I = (a) => {
|
|
49
|
+
i("onScroll", a.target.scrollTop);
|
|
50
|
+
}, E = () => i("onClearSearch"), v = (a, d) => i("clickRow", a, d);
|
|
51
|
+
return (a, d) => (l(), c("div", {
|
|
46
52
|
class: "multi-table-container",
|
|
47
|
-
onScrollPassive:
|
|
53
|
+
onScrollPassive: I
|
|
48
54
|
}, [
|
|
49
|
-
|
|
50
|
-
class:
|
|
51
|
-
"data-testid": `${t.testId}-${
|
|
55
|
+
g("div", {
|
|
56
|
+
class: M(["table-header-container", { sticky: t.isSticky }]),
|
|
57
|
+
"data-testid": `${t.testId}-${e(y).HEADER}`
|
|
52
58
|
}, [
|
|
53
|
-
|
|
59
|
+
g("div", {
|
|
54
60
|
class: "rows-counter-container",
|
|
55
|
-
"data-testid": `${t.testId}-${
|
|
61
|
+
"data-testid": `${t.testId}-${e(y).TITLE}`
|
|
56
62
|
}, [
|
|
57
|
-
t.isLoading ?
|
|
63
|
+
t.isLoading ? f("", !0) : (l(), u(e(G), {
|
|
58
64
|
key: 0,
|
|
59
65
|
count: t.count,
|
|
60
66
|
"total-count": t.totalCount,
|
|
@@ -63,66 +69,76 @@ const p = ["data-testid"], H = ["data-testid"], F = {
|
|
|
63
69
|
"out-of-text": t.outOfText,
|
|
64
70
|
"test-id": t.testId
|
|
65
71
|
}, null, 8, ["count", "total-count", "total-text", "displaying-text", "out-of-text", "test-id"]))
|
|
66
|
-
], 8,
|
|
67
|
-
t.showSearch ? (l(),
|
|
72
|
+
], 8, q),
|
|
73
|
+
t.showSearch ? (l(), u(e(H), {
|
|
68
74
|
key: 0,
|
|
69
|
-
modelValue:
|
|
70
|
-
"onUpdate:modelValue":
|
|
75
|
+
modelValue: e(n),
|
|
76
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => N(n) ? n.value = o : null),
|
|
71
77
|
placeholder: t.searchPlaceholder,
|
|
72
78
|
"test-id": t.testId,
|
|
73
|
-
onOnClear:
|
|
74
|
-
}, null, 8, ["modelValue", "placeholder", "test-id"])) :
|
|
75
|
-
], 10,
|
|
76
|
-
|
|
79
|
+
onOnClear: E
|
|
80
|
+
}, null, 8, ["modelValue", "placeholder", "test-id"])) : f("", !0)
|
|
81
|
+
], 10, j),
|
|
82
|
+
e(C) ? (l(), u(e(x), {
|
|
77
83
|
key: 1,
|
|
78
|
-
"is-loading": t.isLoading,
|
|
79
|
-
columns: t.loadingAndEmptyStatesColumns,
|
|
80
84
|
rows: [],
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
columns: t.loadingAndEmptyStatesColumns,
|
|
86
|
+
"is-loading": t.isLoading,
|
|
87
|
+
"loading-row-count": t.loadingRowCount,
|
|
88
|
+
"test-id": t.testId
|
|
89
|
+
}, {
|
|
90
|
+
"empty-state": w(() => [
|
|
91
|
+
k(a.$slots, "empty-state", {}, () => [
|
|
92
|
+
P(e(Q), {
|
|
93
|
+
class: "empty-state",
|
|
94
|
+
title: t.emptyStateTitle,
|
|
95
|
+
subtitle: e(T),
|
|
96
|
+
variant: e(b),
|
|
97
|
+
"test-id": `${t.testId}-${e(y).EMPTY_STATE}`
|
|
98
|
+
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
99
|
+
], !0)
|
|
100
|
+
]),
|
|
101
|
+
_: 3
|
|
102
|
+
}, 8, ["columns", "is-loading", "loading-row-count", "test-id"])) : (l(), c("div", J, [
|
|
103
|
+
(l(!0), c(A, null, h(t.tablesSettings, (o, V) => (l(), c("div", {
|
|
104
|
+
key: o.testId,
|
|
89
105
|
class: "table-wrapper"
|
|
90
106
|
}, [
|
|
91
|
-
|
|
107
|
+
o.rows.length ? (l(), u(e(x), {
|
|
92
108
|
key: 0,
|
|
93
|
-
sections:
|
|
94
|
-
columns:
|
|
95
|
-
rows:
|
|
96
|
-
"row-height":
|
|
109
|
+
sections: o.sections,
|
|
110
|
+
columns: o.columns,
|
|
111
|
+
rows: o.rows,
|
|
112
|
+
"row-height": o.rowHeight,
|
|
97
113
|
"is-sticky": t.isSticky,
|
|
98
114
|
"z-index-base": t.zIndexBase,
|
|
99
|
-
"test-id":
|
|
100
|
-
onClickRow: (
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
name:
|
|
104
|
-
fn:
|
|
105
|
-
cell:
|
|
106
|
-
rowIndex:
|
|
107
|
-
isLoading:
|
|
108
|
-
cellIndex:
|
|
109
|
-
row:
|
|
115
|
+
"test-id": o.testId,
|
|
116
|
+
onClickRow: (r) => v(r, V)
|
|
117
|
+
}, O({ _: 2 }, [
|
|
118
|
+
h(o.columns, (r) => ({
|
|
119
|
+
name: S(r),
|
|
120
|
+
fn: w(({
|
|
121
|
+
cell: R,
|
|
122
|
+
rowIndex: $,
|
|
123
|
+
isLoading: B,
|
|
124
|
+
cellIndex: L,
|
|
125
|
+
row: p
|
|
110
126
|
}) => [
|
|
111
|
-
|
|
112
|
-
cell:
|
|
113
|
-
isLoading:
|
|
114
|
-
cellIndex:
|
|
115
|
-
row:
|
|
116
|
-
rowIndex:
|
|
127
|
+
k(a.$slots, `${S(r)}`, {
|
|
128
|
+
cell: R,
|
|
129
|
+
isLoading: B,
|
|
130
|
+
cellIndex: L,
|
|
131
|
+
row: p,
|
|
132
|
+
rowIndex: $
|
|
117
133
|
}, void 0, !0)
|
|
118
134
|
])
|
|
119
135
|
}))
|
|
120
|
-
]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) :
|
|
136
|
+
]), 1032, ["sections", "columns", "rows", "row-height", "is-sticky", "z-index-base", "test-id", "onClickRow"])) : f("", !0)
|
|
121
137
|
]))), 128))
|
|
122
138
|
]))
|
|
123
139
|
], 32));
|
|
124
140
|
}
|
|
125
141
|
});
|
|
126
142
|
export {
|
|
127
|
-
|
|
143
|
+
st as default
|
|
128
144
|
};
|