@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.5
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_5273976b_lang.css +1 -0
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +1 -0
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
- package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_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 +5 -5
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/icon/v4/IconV4.vue.d.ts +0 -5
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +26 -29
- package/components/icon/v4/index.d.ts +1 -20
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.d.ts +25 -0
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +129 -89
- package/components/sortableList/index.d.ts +88 -2
- package/components/table/common/Table.common.js +71 -68
- 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 +12 -2
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +103 -100
- package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
- package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
- package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
- package/components/table/v4/index.d.ts +126 -75
- package/components/table/v4/storyUtils.d.ts +4 -0
- package/components/table-cells/common/Editable.common.js +37 -26
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +5 -5
- package/components/table-cells/v4/EditableV4.vue2.js +18 -17
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tabs/v4/TabsV4.vue.js +4 -4
- package/components/tabs/v4/TabsV4.vue2.js +37 -40
- package/design-foundation.stories/icons/iconsData.d.ts +2 -6
- package/index.d.ts +566 -292
- package/package.json +1 -1
- package/utils/formatNumbers.d.ts +4 -0
- package/utils/formatNumbers.js +11 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
- package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_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/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
- package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css"; import { defineComponent as ie, useCssVars as de, unref as t, useSlots as oe, computed as v, openBlock as l, createElementBlock as d, createElementVNode as u, normalizeStyle as x, normalizeClass as f, renderSlot as r, createVNode as h, withCtx as T, createTextVNode as w, toDisplayString as E, isRef as ne, createCommentVNode as c, Fragment as B, renderList as I, createBlock as z, mergeProps as re } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ce from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import ue from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
|
+
import K 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
|
-
const
|
|
7
|
+
import { tableCommon as he } from "../common/Table.common.js";
|
|
8
|
+
import ye from "./SortIcon.vue.js";
|
|
9
|
+
import fe from "./HelpIcon.vue.js";
|
|
10
|
+
import Se from "./ExpandRowToggle.vue.js";
|
|
11
|
+
import ke from "../../search/v4/SearchV4.vue.js";
|
|
12
|
+
import { useVModel as me } from "@vueuse/core";
|
|
13
|
+
const ge = ["data-testid"], ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["data-testid"], Ce = { class: "search-wrapper" }, xe = ["data-testid"], Te = ["data-testid"], we = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox-cell"
|
|
16
16
|
}, Ee = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "expand-toggle-cell"
|
|
19
|
-
},
|
|
19
|
+
}, Be = ["onClick"], Ie = { class: "table-head-container" }, pe = ["data-testid"], Ae = ["onMouseenter", "onClick"], Ve = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "checkbox-cell"
|
|
22
22
|
}, Me = {
|
|
@@ -25,10 +25,10 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
25
25
|
}, Pe = {
|
|
26
26
|
key: 2,
|
|
27
27
|
class: "expanded-row"
|
|
28
|
-
},
|
|
28
|
+
}, He = { key: 1 }, Le = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "table-footer"
|
|
31
|
-
}, qe = /* @__PURE__ */
|
|
31
|
+
}, qe = /* @__PURE__ */ ie({
|
|
32
32
|
__name: "DataGrid",
|
|
33
33
|
props: {
|
|
34
34
|
title: { default: "" },
|
|
@@ -55,19 +55,21 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
55
55
|
showSearch: { type: Boolean, default: !1 },
|
|
56
56
|
searchPlaceholder: { default: "Search" },
|
|
57
57
|
searchAutoFocus: { type: Boolean, default: !1 },
|
|
58
|
-
zIndexBase: { default: 100 }
|
|
58
|
+
zIndexBase: { default: 100 },
|
|
59
|
+
rowCustomClassKey: { default: "" },
|
|
60
|
+
rowDataKey: { default: "" }
|
|
59
61
|
},
|
|
60
62
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
61
63
|
setup(s, { expose: m, emit: y }) {
|
|
62
64
|
const o = s;
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
65
|
+
de((a) => ({
|
|
66
|
+
"2d374a62": s.zIndexBase,
|
|
67
|
+
"7d502b56": t(X),
|
|
68
|
+
"31bec0cf": t(H),
|
|
69
|
+
"93d8ccd2": t(J)
|
|
68
70
|
}));
|
|
69
|
-
const b =
|
|
70
|
-
list:
|
|
71
|
+
const b = oe(), U = (a) => o.rowCustomClassKey ? o.rows[a][o.rowCustomClassKey] : "", {
|
|
72
|
+
list: P,
|
|
71
73
|
containerProps: G,
|
|
72
74
|
wrapperProps: Y,
|
|
73
75
|
activeRow: A,
|
|
@@ -81,36 +83,36 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
81
83
|
hasExpandSlot: $,
|
|
82
84
|
toggleExpandRow: q,
|
|
83
85
|
cssRowHeight: J,
|
|
84
|
-
cssExpandGridCol:
|
|
85
|
-
isRowExpanded:
|
|
86
|
+
cssExpandGridCol: X,
|
|
87
|
+
isRowExpanded: V,
|
|
86
88
|
hasCheckboxes: O,
|
|
87
|
-
activeMenuRow:
|
|
88
|
-
scrollTo:
|
|
89
|
-
} =
|
|
89
|
+
activeMenuRow: Z,
|
|
90
|
+
scrollTo: _
|
|
91
|
+
} = he(o, y), D = v(() => !!b.footer), g = me(o, "search", y), ee = v(() => o.selection.length || 0), M = v(() => {
|
|
90
92
|
const a = o.rows.map((i, e) => o.getRowId(i, e));
|
|
91
93
|
return a.length && a.every((i) => R(i));
|
|
92
|
-
}), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1,
|
|
93
|
-
R(a) ? (
|
|
94
|
+
}), R = (a) => o.selection.findIndex((i) => o.selectedMatcher(a, i)) !== -1, te = (a) => {
|
|
95
|
+
R(a) ? (C(
|
|
94
96
|
o.selection.filter(
|
|
95
97
|
(i) => !o.selectedMatcher(a, i)
|
|
96
98
|
)
|
|
97
|
-
), y("selectRow", !1)) : (
|
|
98
|
-
},
|
|
99
|
-
if (
|
|
100
|
-
|
|
99
|
+
), y("selectRow", !1)) : (C([...o.selection, a]), y("selectRow", !0));
|
|
100
|
+
}, se = () => {
|
|
101
|
+
if (M.value)
|
|
102
|
+
C([]), y("selectAll", !1);
|
|
101
103
|
else {
|
|
102
104
|
const a = o.rows.map((i, e) => o.getRowId(i, e)).filter((i) => !R(i));
|
|
103
|
-
|
|
105
|
+
C([...o.selection, ...a]), y("selectAll", !0);
|
|
104
106
|
}
|
|
105
|
-
},
|
|
107
|
+
}, C = (a) => {
|
|
106
108
|
y("update:selection", a);
|
|
107
|
-
},
|
|
109
|
+
}, ae = v(
|
|
108
110
|
() => o.emptyStateVariant ?? (g.value ? "no-results" : "no-data")
|
|
109
|
-
),
|
|
111
|
+
), le = v(
|
|
110
112
|
() => o.emptyStateSubtitle ? o.emptyStateSubtitle : g.value ? "Search again with different filters" : void 0
|
|
111
113
|
);
|
|
112
114
|
return m({
|
|
113
|
-
scrollTo:
|
|
115
|
+
scrollTo: _
|
|
114
116
|
}), (a, i) => (l(), d("div", {
|
|
115
117
|
class: "table-container",
|
|
116
118
|
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
@@ -118,7 +120,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
118
120
|
}, [
|
|
119
121
|
u("table", {
|
|
120
122
|
ref: t(G).ref,
|
|
121
|
-
style:
|
|
123
|
+
style: x(t(j)),
|
|
122
124
|
class: f({
|
|
123
125
|
hasFooter: t(D)
|
|
124
126
|
}),
|
|
@@ -135,40 +137,40 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
135
137
|
class: "table-title",
|
|
136
138
|
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
137
139
|
}, [
|
|
138
|
-
|
|
140
|
+
r(a.$slots, "title", {}, () => [
|
|
139
141
|
h(t(p), { variant: "h3" }, {
|
|
140
142
|
default: T(() => [
|
|
141
|
-
E(
|
|
143
|
+
w(E(s.title), 1)
|
|
142
144
|
]),
|
|
143
145
|
_: 1
|
|
144
146
|
})
|
|
145
147
|
], !0)
|
|
146
|
-
], 8,
|
|
148
|
+
], 8, $e),
|
|
147
149
|
u("div", {
|
|
148
150
|
class: "table-header-right",
|
|
149
151
|
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
150
152
|
}, [
|
|
151
|
-
s.showSearch ?
|
|
152
|
-
u("div",
|
|
153
|
-
h(t(
|
|
153
|
+
s.showSearch ? r(a.$slots, "search", { key: 0 }, () => [
|
|
154
|
+
u("div", Ce, [
|
|
155
|
+
h(t(ke), {
|
|
154
156
|
modelValue: t(g),
|
|
155
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
157
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => ne(g) ? g.value = e : null),
|
|
156
158
|
placeholder: s.searchPlaceholder,
|
|
157
159
|
"auto-focus": s.searchAutoFocus,
|
|
158
160
|
"test-id": s.testId,
|
|
159
161
|
onOnClear: i[1] || (i[1] = (e) => y("onClearSearch"))
|
|
160
162
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
161
163
|
])
|
|
162
|
-
], !0) :
|
|
163
|
-
], 8,
|
|
164
|
+
], !0) : c("", !0)
|
|
165
|
+
], 8, Re),
|
|
164
166
|
t(b)["table-header-actions"] ? (l(), d("div", {
|
|
165
167
|
key: 0,
|
|
166
168
|
class: "table-header-actions",
|
|
167
169
|
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
168
170
|
}, [
|
|
169
|
-
|
|
170
|
-
], 8, xe)) :
|
|
171
|
-
], 10,
|
|
171
|
+
r(a.$slots, "table-header-actions", {}, void 0, !0)
|
|
172
|
+
], 8, xe)) : c("", !0)
|
|
173
|
+
], 10, be)) : c("", !0),
|
|
172
174
|
u("thead", {
|
|
173
175
|
class: f({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
174
176
|
}, [
|
|
@@ -180,33 +182,33 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
180
182
|
key: e.id,
|
|
181
183
|
class: f(["section-container", { sticky: e.isSticky }])
|
|
182
184
|
}, [
|
|
183
|
-
|
|
185
|
+
r(a.$slots, `section-${e.id}`, {}, () => [
|
|
184
186
|
u("div", {
|
|
185
|
-
style:
|
|
187
|
+
style: x({ width: e.width + "px" }),
|
|
186
188
|
class: f({ section: !0 })
|
|
187
189
|
}, [
|
|
188
190
|
h(t(p), { variant: "body2" }, {
|
|
189
191
|
default: T(() => [
|
|
190
|
-
E(
|
|
192
|
+
w(E(e.title), 1)
|
|
191
193
|
]),
|
|
192
194
|
_: 2
|
|
193
195
|
}, 1024)
|
|
194
196
|
], 4)
|
|
195
197
|
], !0)
|
|
196
198
|
], 2))), 128))
|
|
197
|
-
], 8,
|
|
199
|
+
], 8, Te),
|
|
198
200
|
u("tr", null, [
|
|
199
|
-
t(O) ? (l(), d("th",
|
|
200
|
-
|
|
201
|
-
h(t(
|
|
201
|
+
t(O) ? (l(), d("th", we, [
|
|
202
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
203
|
+
h(t(K), {
|
|
202
204
|
disabled: s.isLoading,
|
|
203
|
-
"is-checked": t(
|
|
204
|
-
"is-indeterminate": !t(
|
|
205
|
-
"onUpdate:isChecked":
|
|
205
|
+
"is-checked": t(M),
|
|
206
|
+
"is-indeterminate": !t(M) && t(ee) > 0,
|
|
207
|
+
"onUpdate:isChecked": se
|
|
206
208
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
207
209
|
], !0)
|
|
208
|
-
])) :
|
|
209
|
-
t($) ? (l(), d("th", Ee)) :
|
|
210
|
+
])) : c("", !0),
|
|
211
|
+
t($) ? (l(), d("th", Ee)) : c("", !0),
|
|
210
212
|
(l(!0), d(B, null, I(s.columns, (e) => (l(), d("th", {
|
|
211
213
|
key: e.id,
|
|
212
214
|
class: f({
|
|
@@ -217,60 +219,61 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
217
219
|
isSortable: e.isSortable,
|
|
218
220
|
[`column-${e.id}`]: !0
|
|
219
221
|
}),
|
|
220
|
-
style:
|
|
222
|
+
style: x(e.isSticky ? t(L)[e.id] : null),
|
|
221
223
|
onClick: (k) => e.isSortable ? t(Q)(e) : null
|
|
222
224
|
}, [
|
|
223
|
-
u("div",
|
|
224
|
-
|
|
225
|
+
u("div", Ie, [
|
|
226
|
+
r(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
225
227
|
h(t(p), { variant: "tableLabel" }, {
|
|
226
228
|
default: T(() => [
|
|
227
|
-
E(
|
|
229
|
+
w(E(e.title), 1)
|
|
228
230
|
]),
|
|
229
231
|
_: 2
|
|
230
232
|
}, 1024)
|
|
231
233
|
], !0),
|
|
232
|
-
e.helpText ? (l(), z(
|
|
234
|
+
e.helpText ? (l(), z(fe, {
|
|
233
235
|
key: 0,
|
|
234
236
|
"hover-help-text": e.helpText,
|
|
235
237
|
"hover-help-text-placement": e.helpTextPlacement
|
|
236
|
-
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) :
|
|
237
|
-
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(
|
|
238
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement"])) : c("", !0),
|
|
239
|
+
e.isSortable && e.id === s.sort?.sortBy ? (l(), z(ye, {
|
|
238
240
|
key: 1,
|
|
239
241
|
"sort-order": s.sort.sortOrder
|
|
240
|
-
}, null, 8, ["sort-order"])) :
|
|
242
|
+
}, null, 8, ["sort-order"])) : c("", !0)
|
|
241
243
|
])
|
|
242
|
-
], 14,
|
|
244
|
+
], 14, Be))), 128))
|
|
243
245
|
])
|
|
244
246
|
], 2),
|
|
245
247
|
u("tbody", null, [
|
|
246
|
-
t(
|
|
248
|
+
t(P).length > 0 ? (l(), d("div", re({
|
|
247
249
|
key: 0,
|
|
248
250
|
class: "table-body-wrapper",
|
|
249
251
|
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
250
252
|
}, t(Y)), [
|
|
251
|
-
(l(!0), d(B, null, I(t(
|
|
253
|
+
(l(!0), d(B, null, I(t(P), (e) => (l(), d("tr", {
|
|
252
254
|
key: e.index,
|
|
253
255
|
class: f(["table-row", {
|
|
254
256
|
loading: s.isLoading || s.isLoading && !e.data || t(F).includes(e.index),
|
|
255
257
|
active: t(A) === e.index,
|
|
256
|
-
activeMenu: t(
|
|
257
|
-
expanded: t($) && t(
|
|
258
|
+
activeMenu: t(Z) === e.index,
|
|
259
|
+
expanded: t($) && t(V)(e.index),
|
|
260
|
+
[U(e.index)]: !0
|
|
258
261
|
}]),
|
|
259
262
|
onMouseenter: (k) => A.value = e.index,
|
|
260
263
|
onClick: (k) => y("clickRow", e.index)
|
|
261
264
|
}, [
|
|
262
|
-
t(O) ? (l(), d("td",
|
|
263
|
-
h(t(
|
|
265
|
+
t(O) ? (l(), d("td", Ve, [
|
|
266
|
+
h(t(K), {
|
|
264
267
|
"is-checked": R(s.getRowId(e.data, e.index)),
|
|
265
|
-
"onUpdate:isChecked": (k) =>
|
|
268
|
+
"onUpdate:isChecked": (k) => te(s.getRowId(e.data, e.index))
|
|
266
269
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
267
|
-
])) :
|
|
270
|
+
])) : c("", !0),
|
|
268
271
|
t($) ? (l(), d("td", Me, [
|
|
269
|
-
h(
|
|
270
|
-
expanded: t(
|
|
272
|
+
h(Se, {
|
|
273
|
+
expanded: t(V)(e.index),
|
|
271
274
|
onClick: (k) => t(q)(e.index, k)
|
|
272
275
|
}, null, 8, ["expanded", "onClick"])
|
|
273
|
-
])) :
|
|
276
|
+
])) : c("", !0),
|
|
274
277
|
(l(!0), d(B, null, I(s.columns, (k, n) => (l(), d("td", {
|
|
275
278
|
key: n,
|
|
276
279
|
class: f({
|
|
@@ -280,7 +283,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
280
283
|
isTextRight: s.columns[n].isTextRight,
|
|
281
284
|
[`column-${s.columns[n].id}`]: !0
|
|
282
285
|
}),
|
|
283
|
-
style:
|
|
286
|
+
style: x(
|
|
284
287
|
s.columns[n].isSticky ? t(L)[s.columns[n].id] : null
|
|
285
288
|
)
|
|
286
289
|
}, [
|
|
@@ -288,7 +291,7 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
288
291
|
key: 0,
|
|
289
292
|
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
290
293
|
}, [
|
|
291
|
-
|
|
294
|
+
r(a.$slots, `cell-${s.columns[n].id}`, {
|
|
292
295
|
cell: e.data[n],
|
|
293
296
|
isLoading: t(F).includes(e.index),
|
|
294
297
|
cellIndex: n,
|
|
@@ -297,39 +300,39 @@ const me = ["data-testid"], ge = ["data-testid"], ve = ["data-testid"], be = ["d
|
|
|
297
300
|
}, () => [
|
|
298
301
|
h(t(p), { variant: "body1" }, {
|
|
299
302
|
default: T(() => [
|
|
300
|
-
E(
|
|
303
|
+
w(E(e.data[n]), 1)
|
|
301
304
|
]),
|
|
302
305
|
_: 2
|
|
303
306
|
}, 1024)
|
|
304
307
|
], !0)
|
|
305
|
-
], 2)) :
|
|
308
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
306
309
|
h(t(ce), { round: "" })
|
|
307
310
|
], !0)
|
|
308
311
|
], 6))), 128)),
|
|
309
|
-
t($) && t(
|
|
310
|
-
|
|
312
|
+
t($) && t(V)(e.index) ? (l(), d("div", Pe, [
|
|
313
|
+
r(a.$slots, "expanded", {
|
|
311
314
|
row: e,
|
|
312
315
|
gridColumnTemplate: t(H)
|
|
313
316
|
}, void 0, !0)
|
|
314
|
-
])) :
|
|
315
|
-
], 42,
|
|
316
|
-
], 16,
|
|
317
|
-
|
|
318
|
-
h(t(
|
|
317
|
+
])) : c("", !0)
|
|
318
|
+
], 42, Ae))), 128))
|
|
319
|
+
], 16, pe)) : (l(), d("div", He, [
|
|
320
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
321
|
+
h(t(ue), {
|
|
319
322
|
class: "empty-state",
|
|
320
323
|
title: s.emptyStateTitle,
|
|
321
|
-
subtitle: t(
|
|
322
|
-
variant: t(
|
|
324
|
+
subtitle: t(le),
|
|
325
|
+
variant: t(ae),
|
|
323
326
|
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
324
327
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
325
328
|
], !0)
|
|
326
329
|
]))
|
|
327
330
|
])
|
|
328
|
-
], 46,
|
|
329
|
-
t(D) ? (l(), d("div",
|
|
330
|
-
|
|
331
|
-
])) :
|
|
332
|
-
], 40,
|
|
331
|
+
], 46, ve),
|
|
332
|
+
t(D) ? (l(), d("div", Le, [
|
|
333
|
+
r(a.$slots, "footer", {}, void 0, !0)
|
|
334
|
+
])) : c("", !0)
|
|
335
|
+
], 40, ge));
|
|
333
336
|
}
|
|
334
337
|
});
|
|
335
338
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGridRowsCounter.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGridRowsCounter.
|
|
4
|
-
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ef699ec5"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "../../../DataGridRowsCounter.
|
|
1
|
+
import "../../../DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css"; import { defineComponent as l, openBlock as u, createElementBlock as f, unref as e, createVNode as d, withCtx as i, createTextVNode as a, toDisplayString as o } from "vue";
|
|
2
2
|
import s from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { RowsCounterTestIdModifiers as n } from "../../../testids/index.js";
|
|
4
|
-
|
|
4
|
+
import { nFormatter as r } from "../../../utils/formatNumbers.js";
|
|
5
|
+
const c = ["data-testid"], I = /* @__PURE__ */ l({
|
|
5
6
|
__name: "DataGridRowsCounter",
|
|
6
7
|
props: {
|
|
7
8
|
count: { default: 0 },
|
|
@@ -12,41 +13,41 @@ const f = ["data-testid"], C = /* @__PURE__ */ l({
|
|
|
12
13
|
testId: { default: "" }
|
|
13
14
|
},
|
|
14
15
|
setup(t) {
|
|
15
|
-
return (
|
|
16
|
+
return (m, T) => (u(), f("div", {
|
|
16
17
|
class: "data-grid-rows-counter",
|
|
17
18
|
"data-testid": `${t.testId}-${e(n).CONTAINER}`
|
|
18
19
|
}, [
|
|
19
|
-
|
|
20
|
+
d(e(s), { variant: "body1" }, {
|
|
20
21
|
default: i(() => [
|
|
21
|
-
a(
|
|
22
|
-
|
|
22
|
+
a(o(t.displayingText) + " ", 1),
|
|
23
|
+
d(e(s), {
|
|
23
24
|
class: "text-strong",
|
|
24
25
|
variant: "subtitle1",
|
|
25
26
|
"data-testid": `${t.testId}-${e(n).COUNT}`
|
|
26
27
|
}, {
|
|
27
28
|
default: i(() => [
|
|
28
|
-
a(
|
|
29
|
+
a(o(e(r)(t.count)), 1)
|
|
29
30
|
]),
|
|
30
31
|
_: 1
|
|
31
32
|
}, 8, ["data-testid"]),
|
|
32
|
-
a(" " +
|
|
33
|
-
|
|
33
|
+
a(" " + o(t.outOfText) + " ", 1),
|
|
34
|
+
d(e(s), {
|
|
34
35
|
class: "text-strong",
|
|
35
36
|
variant: "subtitle1",
|
|
36
37
|
"data-testid": `${t.testId}-${e(n).TOTAL}`
|
|
37
38
|
}, {
|
|
38
39
|
default: i(() => [
|
|
39
|
-
a(
|
|
40
|
+
a(o(e(r)(t.totalCount)), 1)
|
|
40
41
|
]),
|
|
41
42
|
_: 1
|
|
42
43
|
}, 8, ["data-testid"]),
|
|
43
|
-
a(" " +
|
|
44
|
+
a(" " + o(t.totalText), 1)
|
|
44
45
|
]),
|
|
45
46
|
_: 1
|
|
46
47
|
})
|
|
47
|
-
], 8,
|
|
48
|
+
], 8, c));
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
I as default
|
|
52
53
|
};
|
|
@@ -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;
|
|
@@ -106,12 +106,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
106
|
tablesSettings: TableSettings[];
|
|
107
107
|
loadingAndEmptyStatesColumns: Column[];
|
|
108
108
|
}>, Partial<Record<string, (_: {
|
|
109
|
+
column: Column;
|
|
110
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
109
111
|
cell: any;
|
|
110
112
|
isLoading: any;
|
|
111
113
|
cellIndex: any;
|
|
112
114
|
row: any;
|
|
113
115
|
rowIndex: any;
|
|
114
|
-
}) => any
|
|
116
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
117
|
+
column: Column;
|
|
118
|
+
}) => any>> & {
|
|
119
|
+
title?(_: {}): any;
|
|
120
|
+
search?(_: {}): any;
|
|
121
|
+
"table-header-actions"?(_: {}): any;
|
|
122
|
+
"floating-row"?(_: {
|
|
123
|
+
row: any;
|
|
124
|
+
rowIndex: any;
|
|
125
|
+
}): any;
|
|
126
|
+
"empty-state"?(_: {}): any;
|
|
127
|
+
}>;
|
|
115
128
|
export default _default;
|
|
116
129
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
117
130
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../MultipleDataGrid.
|
|
4
|
-
const
|
|
1
|
+
import e from "./MultipleDataGrid.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-82ba0e12"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|