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