@ironsource/shared-ui 2.2.0-test.5 → 2.2.0-test.6
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/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_a44769fd_lang.css +1 -0
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_3a061c08_lang.css +1 -0
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_d59af062_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_25d03907_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f8826716_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_65877e48_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_b71a806e_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.js +3 -3
- package/components/appHeader/AppHeader.vue2.js +43 -44
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +2 -2
- package/components/columnConfigurator/SectionDropdown.vue.js +3 -3
- package/components/columnConfigurator/SectionDropdown.vue2.js +6 -7
- package/components/columnPicker/ColumnPicker.vue.d.ts +2 -0
- package/components/columnPicker/ColumnPicker.vue.js +3 -3
- package/components/columnPicker/ColumnPicker.vue2.js +173 -153
- package/components/columnPicker/index.d.ts +7 -1
- package/components/dateRange/common/CalendarMonth.common.js +46 -41
- package/components/dateRange/common/DateRange.common.d.ts +1 -0
- package/components/dateRange/common/DateRange.common.js +39 -38
- package/components/dateRange/v3/CalendarMonth.vue.d.ts +5 -0
- package/components/dateRange/v3/CalendarMonth.vue.js +3 -3
- package/components/dateRange/v3/CalendarMonth.vue2.js +6 -5
- package/components/dateRange/v3/DateRange.vue.d.ts +5 -0
- package/components/dateRange/v3/DateRange.vue.js +2 -2
- package/components/dateRange/v3/DateRange.vue2.js +2 -1
- package/components/dateRange/v3/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue.d.ts +5 -0
- package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +12 -11
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +5 -0
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +104 -101
- package/components/dateRange/v4/index.d.ts +20 -1
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +2 -2
- package/components/icon/v4/IconV4.vue2.js +27 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +4 -4
- package/components/switch/v4/SwitchV4.vue2.js +14 -13
- package/components/switch/v4/index.d.ts +9 -0
- package/components/table/v4/DataGrid.vue.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +126 -124
- package/components/table/v4/index.d.ts +7 -1
- package/index.d.ts +112 -6
- package/index.js +1 -1
- package/package.json +1 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_4c813f30_lang.css +0 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_acd3440c_lang.css +0 -1
- package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_b0d3ea50_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +0 -1
- package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +0 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_70e316e9_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_a849128a_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_0a80c49f_lang.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_0967498f_lang.css"; import { defineComponent as ke, useCssVars as me, unref as t, useSlots as be, computed as u, openBlock as i, createElementBlock as d, createElementVNode as b, normalizeStyle as S, normalizeClass as f, createBlock as I, isRef as ve, createSlots as pe, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as C, renderList as R, createVNode as k, createTextVNode as M, toDisplayString as O, mergeProps as P } from "vue";
|
|
2
|
+
import L from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import xe from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import Ce from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
5
5
|
import Q from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -10,17 +10,17 @@ import "./DataGridRowsCounter.vue.js";
|
|
|
10
10
|
import $e from "./DataGridHeader.vue.js";
|
|
11
11
|
import "./DataGridContainer.vue.js";
|
|
12
12
|
import "./MultipleDataGrid.vue.js";
|
|
13
|
-
import { TableTestIdModifiers as
|
|
13
|
+
import { TableTestIdModifiers as $ } from "../../../testids/index.js";
|
|
14
14
|
import { tableCommon as Te } from "../common/Table.common.js";
|
|
15
15
|
import He from "./SortIcon.vue.js";
|
|
16
16
|
import we from "./HelpIcon.vue.js";
|
|
17
17
|
import Ee from "./ExpandRowToggle.vue.js";
|
|
18
18
|
import { DEFAULT_ROW_HEIGHT as Be, CHECKBOX_COLUMN_ID as Ae, DATA_GRID_HEADER_HEIGHT as X, HEADER_ROW_HEIGHT as j } from "../common/consts.js";
|
|
19
19
|
import { useElementSize as Ie } from "@vueuse/core";
|
|
20
|
-
const
|
|
20
|
+
const Me = ["data-testid"], Pe = ["data-testid"], Le = ["data-testid"], Ve = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "expand-toggle-cell"
|
|
23
|
-
}, De = ["onClick"], Fe = { class: "table-head-container" }, Ne = {
|
|
23
|
+
}, De = ["onClick", "onMouseenter"], Fe = { class: "table-head-container" }, Ne = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "totals-row"
|
|
26
26
|
}, Oe = ["data-testid"], ze = ["onMouseenter", "onClick"], Ge = {
|
|
@@ -69,17 +69,17 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
69
69
|
isSelectionSticky: { type: Boolean, default: !1 },
|
|
70
70
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
71
71
|
},
|
|
72
|
-
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
73
|
-
setup(l, { expose: m, emit:
|
|
74
|
-
const
|
|
75
|
-
me((
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
72
|
+
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow", "columnHover"],
|
|
73
|
+
setup(l, { expose: m, emit: h }) {
|
|
74
|
+
const a = l;
|
|
75
|
+
me((s) => ({
|
|
76
|
+
"30f420c8": l.zIndexBase,
|
|
77
|
+
"25787d10": t(le),
|
|
78
|
+
"71198c09": t(G),
|
|
79
|
+
"31cbe0b7": t(fe)
|
|
80
80
|
}));
|
|
81
|
-
const
|
|
82
|
-
list:
|
|
81
|
+
const v = be(), q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
82
|
+
list: p,
|
|
83
83
|
containerProps: z,
|
|
84
84
|
wrapperProps: J,
|
|
85
85
|
activeRow: T,
|
|
@@ -93,76 +93,77 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
93
93
|
hasExpandSlot: w,
|
|
94
94
|
toggleExpandRow: te,
|
|
95
95
|
cssExpandGridCol: le,
|
|
96
|
-
isRowExpanded:
|
|
96
|
+
isRowExpanded: V,
|
|
97
97
|
hasCheckboxes: D,
|
|
98
|
-
activeMenuRow:
|
|
99
|
-
scrollTo:
|
|
100
|
-
} = Te(
|
|
101
|
-
() =>
|
|
102
|
-
),
|
|
103
|
-
get: () =>
|
|
104
|
-
set: (
|
|
105
|
-
}), oe = u(() =>
|
|
106
|
-
const
|
|
107
|
-
return !!
|
|
108
|
-
}), E = (
|
|
109
|
-
E(
|
|
110
|
-
|
|
111
|
-
(o) => !
|
|
98
|
+
activeMenuRow: se,
|
|
99
|
+
scrollTo: ae
|
|
100
|
+
} = Te(a, h), W = u(() => !!v.footer), ie = u(
|
|
101
|
+
() => a.title || v.title || _.value || v["table-header-actions"] || v["table-header-pre-search"]
|
|
102
|
+
), x = u({
|
|
103
|
+
get: () => a.search,
|
|
104
|
+
set: (s) => h("update:search", s)
|
|
105
|
+
}), oe = u(() => a.selection.length || 0), F = u(() => {
|
|
106
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e));
|
|
107
|
+
return !!s.length && s.every((o) => E(o));
|
|
108
|
+
}), E = (s) => a.selection.findIndex((o) => a.selectedMatcher(s, o)) !== -1, de = (s) => {
|
|
109
|
+
E(s) ? (B(
|
|
110
|
+
a.selection.filter(
|
|
111
|
+
(o) => !a.selectedMatcher(s, o)
|
|
112
112
|
)
|
|
113
|
-
),
|
|
113
|
+
), h("selectRow", !1)) : (B([...a.selection, s]), h("selectRow", !0));
|
|
114
114
|
}, ne = () => {
|
|
115
115
|
if (F.value)
|
|
116
|
-
B([]),
|
|
116
|
+
B([]), h("selectAll", !1);
|
|
117
117
|
else {
|
|
118
|
-
const
|
|
119
|
-
B([...
|
|
118
|
+
const s = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...a.selection, ...s]), h("selectAll", !0);
|
|
120
120
|
}
|
|
121
|
-
}, B = (
|
|
122
|
-
|
|
123
|
-
}, re = (
|
|
124
|
-
() =>
|
|
121
|
+
}, B = (s) => {
|
|
122
|
+
h("update:selection", s);
|
|
123
|
+
}, re = (s) => !a.isLoading && T.value === s, ce = u(
|
|
124
|
+
() => a.emptyStateVariant ?? (x.value ? "no-results" : "no-data")
|
|
125
125
|
), ue = u(
|
|
126
|
-
() =>
|
|
126
|
+
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : x.value ? "Search again with different filters" : void 0
|
|
127
127
|
), N = u(() => ({
|
|
128
128
|
class: {
|
|
129
|
-
sticky:
|
|
130
|
-
bordered:
|
|
129
|
+
sticky: a.isSelectionSticky,
|
|
130
|
+
bordered: a.isSelectionBordered
|
|
131
131
|
},
|
|
132
|
-
style:
|
|
133
|
-
})), he = (
|
|
134
|
-
sticky:
|
|
135
|
-
isStickyRight:
|
|
136
|
-
bordered:
|
|
137
|
-
isTextRight:
|
|
132
|
+
style: a.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (s) => ({
|
|
134
|
+
sticky: s.isSticky,
|
|
135
|
+
isStickyRight: s.isStickyRight,
|
|
136
|
+
bordered: s.isBordered,
|
|
137
|
+
isTextRight: s.isTextRight
|
|
138
138
|
}), Y = u(
|
|
139
|
-
() =>
|
|
140
|
-
), ye = (
|
|
141
|
-
minHeight: (typeof
|
|
142
|
-
}), A = u(() =>
|
|
139
|
+
() => a.columns.map((s) => he(s))
|
|
140
|
+
), ye = (s) => ({
|
|
141
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
|
|
142
|
+
}), A = u(() => p.value.reduce((s, o) => (s[o.index] = ye(o.index), s), {})), fe = u(() => `${X}px`), { height: Se } = Ie(z.ref), ge = u(
|
|
143
143
|
() => Se.value - j - X
|
|
144
144
|
);
|
|
145
145
|
return m({
|
|
146
|
-
scrollTo:
|
|
147
|
-
}), (
|
|
146
|
+
scrollTo: ae
|
|
147
|
+
}), (s, o) => (i(), d("div", {
|
|
148
148
|
class: "table-container",
|
|
149
|
-
"data-testid": `${l.testId}-${t(
|
|
149
|
+
"data-testid": `${l.testId}-${t($).CONTAINER}`,
|
|
150
150
|
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
151
151
|
}, [
|
|
152
152
|
b("table", {
|
|
153
153
|
ref: t(z).ref,
|
|
154
154
|
style: S(t(ee)),
|
|
155
|
-
class:
|
|
156
|
-
hasFooter: t(W)
|
|
155
|
+
class: f({
|
|
156
|
+
hasFooter: t(W),
|
|
157
|
+
"disabled-scrolling": t(p).length === 0
|
|
157
158
|
}),
|
|
158
|
-
"data-testid": `${l.testId}-${t(
|
|
159
|
+
"data-testid": `${l.testId}-${t($).TABLE}`,
|
|
159
160
|
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
160
161
|
(...e) => t(K) && t(K)(...e))
|
|
161
162
|
}, [
|
|
162
163
|
t(ie) ? (i(), I(t($e), {
|
|
163
164
|
key: 0,
|
|
164
|
-
search: t(
|
|
165
|
-
"onUpdate:search": o[0] || (o[0] = (e) =>
|
|
165
|
+
search: t(x),
|
|
166
|
+
"onUpdate:search": o[0] || (o[0] = (e) => ve(x) ? x.value = e : null),
|
|
166
167
|
title: l.title,
|
|
167
168
|
"is-sticky": l.isStickyHeader,
|
|
168
169
|
"show-search": l.showSearch,
|
|
@@ -170,65 +171,65 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
170
171
|
"search-auto-focus": l.searchAutoFocus,
|
|
171
172
|
"z-index-base": l.zIndexBase,
|
|
172
173
|
"test-id": l.testId,
|
|
173
|
-
onOnClearSearch: o[1] || (o[1] = (e) =>
|
|
174
|
-
},
|
|
174
|
+
onOnClearSearch: o[1] || (o[1] = (e) => h("onClearSearch"))
|
|
175
|
+
}, pe({
|
|
175
176
|
title: g(() => [
|
|
176
|
-
r(
|
|
177
|
+
r(s.$slots, "title")
|
|
177
178
|
]),
|
|
178
179
|
search: g(() => [
|
|
179
|
-
r(
|
|
180
|
+
r(s.$slots, "search")
|
|
180
181
|
]),
|
|
181
182
|
_: 2
|
|
182
183
|
}, [
|
|
183
|
-
t(
|
|
184
|
+
t(v)["table-header-pre-search"] ? {
|
|
184
185
|
name: "table-header-pre-search",
|
|
185
186
|
fn: g(() => [
|
|
186
|
-
r(
|
|
187
|
+
r(s.$slots, "table-header-pre-search")
|
|
187
188
|
]),
|
|
188
189
|
key: "0"
|
|
189
190
|
} : void 0,
|
|
190
|
-
t(
|
|
191
|
+
t(v)["table-header-actions"] ? {
|
|
191
192
|
name: "table-header-actions",
|
|
192
193
|
fn: g(() => [
|
|
193
|
-
r(
|
|
194
|
+
r(s.$slots, "table-header-actions")
|
|
194
195
|
]),
|
|
195
196
|
key: "1"
|
|
196
197
|
} : void 0
|
|
197
198
|
]), 1032, ["search", "title", "is-sticky", "show-search", "search-placeholder", "search-auto-focus", "z-index-base", "test-id"])) : c("", !0),
|
|
198
199
|
b("thead", {
|
|
199
|
-
class:
|
|
200
|
+
class: f({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
200
201
|
}, [
|
|
201
202
|
b("div", {
|
|
202
203
|
class: "sections",
|
|
203
|
-
"data-testid": `${l.testId}-${t(
|
|
204
|
+
"data-testid": `${l.testId}-${t($).SECTIONS}`
|
|
204
205
|
}, [
|
|
205
|
-
(i(!0), d(
|
|
206
|
+
(i(!0), d(C, null, R(l.sections, (e) => (i(), d("div", {
|
|
206
207
|
key: e.id,
|
|
207
|
-
class:
|
|
208
|
+
class: f(["section-container", { sticky: e.isSticky }])
|
|
208
209
|
}, [
|
|
209
|
-
r(
|
|
210
|
+
r(s.$slots, `section-${e.id}`, {}, () => [
|
|
210
211
|
b("div", {
|
|
211
212
|
style: S({ width: e.width + "px" }),
|
|
212
|
-
class:
|
|
213
|
+
class: f({ section: !0 })
|
|
213
214
|
}, [
|
|
214
|
-
k(t(
|
|
215
|
+
k(t(L), { variant: "body2" }, {
|
|
215
216
|
default: g(() => [
|
|
216
|
-
|
|
217
|
+
M(O(e.title), 1)
|
|
217
218
|
]),
|
|
218
219
|
_: 2
|
|
219
220
|
}, 1024)
|
|
220
221
|
], 4)
|
|
221
222
|
])
|
|
222
223
|
], 2))), 128))
|
|
223
|
-
], 8,
|
|
224
|
+
], 8, Le),
|
|
224
225
|
b("tr", {
|
|
225
226
|
style: S({ height: `${t(j)}px` })
|
|
226
227
|
}, [
|
|
227
|
-
t(D) ? (i(), d("th",
|
|
228
|
+
t(D) ? (i(), d("th", P({
|
|
228
229
|
key: 0,
|
|
229
230
|
class: "checkbox-cell"
|
|
230
231
|
}, t(N)), [
|
|
231
|
-
r(
|
|
232
|
+
r(s.$slots, "select-all-checkbox", {}, () => [
|
|
232
233
|
k(t(Q), {
|
|
233
234
|
disabled: l.isLoading,
|
|
234
235
|
"is-checked": t(F),
|
|
@@ -237,19 +238,20 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
237
238
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
238
239
|
])
|
|
239
240
|
], 16)) : c("", !0),
|
|
240
|
-
t(w) ? (i(), d("th",
|
|
241
|
-
(i(!0), d(
|
|
241
|
+
t(w) ? (i(), d("th", Ve)) : c("", !0),
|
|
242
|
+
(i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("th", {
|
|
242
243
|
key: e.id,
|
|
243
|
-
class:
|
|
244
|
-
...t(Y)[
|
|
244
|
+
class: f({
|
|
245
|
+
...t(Y)[y],
|
|
245
246
|
isSortable: e.isSortable,
|
|
246
247
|
[`column-${e.id}`]: !0
|
|
247
248
|
}),
|
|
248
249
|
style: S(e.isSticky ? t(H)[e.id] : null),
|
|
249
|
-
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
250
|
+
onClick: (n) => e.isSortable ? t(Z)(e) : null,
|
|
251
|
+
onMouseenter: () => h("columnHover", e)
|
|
250
252
|
}, [
|
|
251
253
|
b("div", Fe, [
|
|
252
|
-
r(
|
|
254
|
+
r(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
255
|
k(t(Re), {
|
|
254
256
|
text: e.helpText,
|
|
255
257
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
@@ -257,14 +259,14 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
257
259
|
"test-id": `help-tooltip-underlined-${e.id}`
|
|
258
260
|
}, {
|
|
259
261
|
default: g(() => [
|
|
260
|
-
k(t(
|
|
262
|
+
k(t(L), {
|
|
261
263
|
variant: "tableLabel",
|
|
262
|
-
class:
|
|
264
|
+
class: f({
|
|
263
265
|
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
264
266
|
})
|
|
265
267
|
}, {
|
|
266
268
|
default: g(() => [
|
|
267
|
-
|
|
269
|
+
M(O(e.title), 1)
|
|
268
270
|
]),
|
|
269
271
|
_: 2
|
|
270
272
|
}, 1032, ["class"])
|
|
@@ -278,34 +280,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
278
280
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
281
|
"test-id": `help-tooltip-${e.id}`
|
|
280
282
|
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : c("", !0),
|
|
281
|
-
r(
|
|
283
|
+
r(s.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
284
|
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
283
285
|
key: 1,
|
|
284
286
|
"sort-order": l.sort.sortOrder
|
|
285
287
|
}, null, 8, ["sort-order"])) : c("", !0)
|
|
286
288
|
])
|
|
287
|
-
],
|
|
289
|
+
], 46, De))), 128))
|
|
288
290
|
], 4),
|
|
289
|
-
l.showTotalsRow && t(
|
|
290
|
-
t(D) ? (i(), d("td",
|
|
291
|
+
l.showTotalsRow && t(p).length > 0 ? (i(), d("tr", Ne, [
|
|
292
|
+
t(D) ? (i(), d("td", P({
|
|
291
293
|
key: 0,
|
|
292
294
|
class: "bg"
|
|
293
295
|
}, t(N)), null, 16)) : c("", !0),
|
|
294
|
-
(i(!0), d(
|
|
296
|
+
(i(!0), d(C, null, R(l.columns, (e, y) => (i(), d("td", {
|
|
295
297
|
key: e.id,
|
|
296
|
-
class:
|
|
297
|
-
...t(Y)[
|
|
298
|
+
class: f({
|
|
299
|
+
...t(Y)[y],
|
|
298
300
|
[`total-${e.id}`]: !0
|
|
299
301
|
}),
|
|
300
302
|
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
301
303
|
}, [
|
|
302
|
-
r(
|
|
303
|
-
|
|
304
|
+
r(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
305
|
+
y === 0 ? (i(), I(t(L), {
|
|
304
306
|
key: 0,
|
|
305
307
|
variant: "h6"
|
|
306
308
|
}, {
|
|
307
309
|
default: g(() => [
|
|
308
|
-
|
|
310
|
+
M("Totals")
|
|
309
311
|
]),
|
|
310
312
|
_: 1
|
|
311
313
|
})) : c("", !0)
|
|
@@ -314,25 +316,25 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
314
316
|
])) : c("", !0)
|
|
315
317
|
], 2),
|
|
316
318
|
b("tbody", null, [
|
|
317
|
-
t(
|
|
319
|
+
t(p).length > 0 ? (i(), d("div", P({
|
|
318
320
|
key: 0,
|
|
319
321
|
class: "table-body-wrapper",
|
|
320
|
-
"data-testid": `${l.testId}-${t(
|
|
322
|
+
"data-testid": `${l.testId}-${t($).BODY_WRAPPER}`
|
|
321
323
|
}, t(J)), [
|
|
322
|
-
(i(!0), d(
|
|
324
|
+
(i(!0), d(C, null, R(t(p), (e) => (i(), d("tr", {
|
|
323
325
|
key: l.getRowKey(e.data, e.index),
|
|
324
|
-
class:
|
|
326
|
+
class: f(["table-row", {
|
|
325
327
|
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
326
328
|
active: t(T) === e.index,
|
|
327
|
-
activeMenu: t(
|
|
328
|
-
expanded: t(w) && t(
|
|
329
|
+
activeMenu: t(se) === e.index,
|
|
330
|
+
expanded: t(w) && t(V)(e.index),
|
|
329
331
|
[q(e.index)]: !0
|
|
330
332
|
}]),
|
|
331
333
|
style: S(t(A)[e.index]),
|
|
332
|
-
onMouseenter: (
|
|
333
|
-
onClick: (
|
|
334
|
+
onMouseenter: (y) => T.value = e.index,
|
|
335
|
+
onClick: (y) => h("clickRow", e.index)
|
|
334
336
|
}, [
|
|
335
|
-
t(D) ? (i(), d("td",
|
|
337
|
+
t(D) ? (i(), d("td", P({
|
|
336
338
|
key: 0,
|
|
337
339
|
class: "checkbox-cell"
|
|
338
340
|
}, t(N), {
|
|
@@ -340,7 +342,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
340
342
|
}), [
|
|
341
343
|
k(t(Q), {
|
|
342
344
|
"is-checked": E(l.getRowId(e.data, e.index)),
|
|
343
|
-
"onUpdate:isChecked": (
|
|
345
|
+
"onUpdate:isChecked": (y) => de(l.getRowId(e.data, e.index))
|
|
344
346
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
345
347
|
], 16)) : c("", !0),
|
|
346
348
|
t(w) ? (i(), d("td", {
|
|
@@ -349,13 +351,13 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
349
351
|
style: S(t(A)[e.index])
|
|
350
352
|
}, [
|
|
351
353
|
k(Ee, {
|
|
352
|
-
expanded: t(
|
|
353
|
-
onClick: (
|
|
354
|
+
expanded: t(V)(e.index),
|
|
355
|
+
onClick: (y) => t(te)(e.index, y)
|
|
354
356
|
}, null, 8, ["expanded", "onClick"])
|
|
355
357
|
], 4)) : c("", !0),
|
|
356
|
-
(i(!0), d(
|
|
358
|
+
(i(!0), d(C, null, R(l.columns, (y, n) => (i(), d("td", {
|
|
357
359
|
key: n,
|
|
358
|
-
class:
|
|
360
|
+
class: f({
|
|
359
361
|
sticky: l.columns[n].isSticky,
|
|
360
362
|
isStickyRight: l.columns[n].isStickyRight,
|
|
361
363
|
bordered: l.columns[n].isBordered,
|
|
@@ -369,34 +371,34 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
369
371
|
}, [
|
|
370
372
|
!l.isLoading || l.isLoading && e.data[n] ? (i(), d("div", {
|
|
371
373
|
key: 0,
|
|
372
|
-
class:
|
|
374
|
+
class: f(["table-cell", { last: n === e.data.length - 1 }])
|
|
373
375
|
}, [
|
|
374
|
-
r(
|
|
376
|
+
r(s.$slots, `cell-${l.columns[n].id}`, {
|
|
375
377
|
cell: e.data[n],
|
|
376
378
|
isLoading: t(U).includes(e.index),
|
|
377
379
|
cellIndex: n,
|
|
378
380
|
row: e,
|
|
379
381
|
rowIndex: e.index
|
|
380
382
|
}, () => [
|
|
381
|
-
k(t(
|
|
383
|
+
k(t(L), { variant: "body1" }, {
|
|
382
384
|
default: g(() => [
|
|
383
|
-
|
|
385
|
+
M(O(e.data[n]), 1)
|
|
384
386
|
]),
|
|
385
387
|
_: 2
|
|
386
388
|
}, 1024)
|
|
387
389
|
])
|
|
388
|
-
], 2)) : r(
|
|
390
|
+
], 2)) : r(s.$slots, "loader", { key: 1 }, () => [
|
|
389
391
|
k(t(xe), { round: "" })
|
|
390
392
|
])
|
|
391
393
|
], 6))), 128)),
|
|
392
|
-
t(w) && t(
|
|
393
|
-
r(
|
|
394
|
+
t(w) && t(V)(e.index) ? (i(), d("div", Ge, [
|
|
395
|
+
r(s.$slots, "expanded", {
|
|
394
396
|
row: e,
|
|
395
397
|
gridColumnTemplate: t(G)
|
|
396
398
|
})
|
|
397
399
|
])) : c("", !0),
|
|
398
400
|
re(e.index) ? (i(), d("div", Ke, [
|
|
399
|
-
r(
|
|
401
|
+
r(s.$slots, "floating-row", {
|
|
400
402
|
row: e,
|
|
401
403
|
rowIndex: e.index
|
|
402
404
|
})
|
|
@@ -408,23 +410,23 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
408
410
|
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
409
411
|
)
|
|
410
412
|
}, [
|
|
411
|
-
r(
|
|
413
|
+
r(s.$slots, "empty-state", {}, () => [
|
|
412
414
|
k(t(Ce), {
|
|
413
415
|
class: "empty-state",
|
|
414
416
|
title: l.emptyStateTitle,
|
|
415
417
|
subtitle: t(ue),
|
|
416
418
|
variant: t(ce),
|
|
417
419
|
"icon-name": "file-search",
|
|
418
|
-
"test-id": `${l.testId}-${t(
|
|
420
|
+
"test-id": `${l.testId}-${t($).EMPTY_STATE}`
|
|
419
421
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
420
422
|
])
|
|
421
423
|
], 4))
|
|
422
424
|
])
|
|
423
|
-
], 46,
|
|
425
|
+
], 46, Pe),
|
|
424
426
|
t(W) ? (i(), d("div", Ue, [
|
|
425
|
-
r(
|
|
427
|
+
r(s.$slots, "footer")
|
|
426
428
|
])) : c("", !0)
|
|
427
|
-
], 40,
|
|
429
|
+
], 40, Me));
|
|
428
430
|
}
|
|
429
431
|
});
|
|
430
432
|
export {
|
|
@@ -567,6 +567,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
567
567
|
onOnClearSearch?: () => any;
|
|
568
568
|
onClickRow?: (rowIndex: number) => any;
|
|
569
569
|
onSelectRow?: (value: boolean) => any;
|
|
570
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
570
571
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "loadingRowCount" | "zIndexBase" | "showSearch" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "helpTooltipVariant" | "useAvailableHeight" | "selectedMatcher" | "isSelectionSticky" | "isSelectionBordered">;
|
|
571
572
|
$attrs: {
|
|
572
573
|
[x: string]: unknown;
|
|
@@ -579,7 +580,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
579
580
|
}>;
|
|
580
581
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
581
582
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
582
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void);
|
|
583
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "clickRow", rowIndex: number) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "columnHover", column: import("../common/Table.types").Column) => void);
|
|
583
584
|
$el: any;
|
|
584
585
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
585
586
|
sort: {
|
|
@@ -724,6 +725,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
724
725
|
onOnClearSearch?: () => any;
|
|
725
726
|
onClickRow?: (rowIndex: number) => any;
|
|
726
727
|
onSelectRow?: (value: boolean) => any;
|
|
728
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
727
729
|
}, {
|
|
728
730
|
scrollTo: (index: number) => void;
|
|
729
731
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -737,6 +739,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
737
739
|
selectAll: (value: boolean) => void;
|
|
738
740
|
selectRow: (value: boolean) => void;
|
|
739
741
|
clickRow: (rowIndex: number) => void;
|
|
742
|
+
columnHover: (column: import("../common/Table.types").Column) => void;
|
|
740
743
|
}, string, {
|
|
741
744
|
sort: import("../common/Table.types").Sort;
|
|
742
745
|
title: string;
|
|
@@ -931,6 +934,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
931
934
|
onOnClearSearch?: () => any;
|
|
932
935
|
onClickRow?: (rowIndex: number) => any;
|
|
933
936
|
onSelectRow?: (value: boolean) => any;
|
|
937
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
934
938
|
} & import("vue").ShallowUnwrapRef<{
|
|
935
939
|
scrollTo: (index: number) => void;
|
|
936
940
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -1080,6 +1084,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1080
1084
|
onOnClearSearch?: () => any;
|
|
1081
1085
|
onClickRow?: (rowIndex: number) => any;
|
|
1082
1086
|
onSelectRow?: (value: boolean) => any;
|
|
1087
|
+
onColumnHover?: (column: import("../common/Table.types").Column) => any;
|
|
1083
1088
|
}, {
|
|
1084
1089
|
scrollTo: (index: number) => void;
|
|
1085
1090
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1093,6 +1098,7 @@ declare const DataGridTypes: () => (import("vue").DefineComponent<{
|
|
|
1093
1098
|
selectAll: (value: boolean) => void;
|
|
1094
1099
|
selectRow: (value: boolean) => void;
|
|
1095
1100
|
clickRow: (rowIndex: number) => void;
|
|
1101
|
+
columnHover: (column: import("../common/Table.types").Column) => void;
|
|
1096
1102
|
}, string, {
|
|
1097
1103
|
sort: import("../common/Table.types").Sort;
|
|
1098
1104
|
title: string;
|