@ironsource/shared-ui 2.1.12-rc.25 → 2.1.12-rc.27
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_adb49e50_lang.css +1 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_e8f25a03_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3315b68f_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +1 -0
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +28 -27
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +6 -4
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +43 -35
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +17 -17
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +1 -1
- package/components/chart/ChartPlane.vue.d.ts +6 -1
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +140 -138
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +5 -5
- package/components/chart/index.d.ts +43 -24
- package/components/chart/utils/utils.d.ts +1 -2
- package/components/chart/utils/utils.js +13 -19
- package/components/dateRange/common/DateRange.common.js +81 -75
- package/components/dateRange/common/DateServices.common.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.js +1 -0
- package/components/dropdown/common/Dropdown.common.js +82 -78
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +16 -13
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +17 -9
- package/components/dropdown/v4/ConditionalDropdown.vue.js +4 -4
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +142 -123
- package/components/dropdown/v4/DropdownV4.vue.d.ts +10 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +174 -163
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -5
- package/components/dropdown/v4/OptionV4.vue.js +4 -4
- package/components/dropdown/v4/OptionV4.vue2.js +106 -99
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +8 -0
- package/components/dropdown/v4/index.d.ts +510 -127
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/index.d.ts +40 -40
- package/components/link/Link.vue.d.ts +70 -0
- package/components/link/Link.vue.js +7 -0
- package/components/link/Link.vue2.js +43 -0
- package/components/link/index.d.ts +201 -0
- package/components/link/index.js +6 -0
- package/components/switch/v4/SwitchV4.vue.d.ts +11 -0
- package/components/switch/v4/SwitchV4.vue.js +2 -2
- package/components/switch/v4/SwitchV4.vue2.js +39 -26
- package/components/switch/v4/index.d.ts +18 -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 +111 -110
- package/components/table/v4/index.d.ts +2 -0
- package/composables/useDateService.d.ts +7 -0
- package/composables/useDateService.js +10 -0
- package/index.d.ts +1120 -310
- package/index.js +111 -105
- package/mocks/apps.d.ts +1 -0
- package/mocks/optionsWithIcons.d.ts +2 -0
- package/package.json +9 -1
- package/testids/index.d.ts +4 -0
- package/testids/index.js +31 -30
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_0123c361_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_fd9e4ea2_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_cce87267_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_5b72e35a_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +0 -1
- package/components/chart/composables/useChartValues.d.ts +0 -12
- package/components/chart/composables/useChartValues.js +0 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_b21a79b1_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as d, createElementVNode as f, normalizeStyle as v, normalizeClass as u, renderSlot as c, createVNode as h, withCtx as $, createTextVNode as R, toDisplayString as P, createCommentVNode as n, isRef as Se, Fragment as T, renderList as x, mergeProps as L, createBlock as D } from "vue";
|
|
2
2
|
import p from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ke from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import ge from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -27,7 +27,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
27
27
|
}, Ge = { key: 1 }, We = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "table-footer"
|
|
30
|
-
},
|
|
30
|
+
}, dt = /* @__PURE__ */ he({
|
|
31
31
|
__name: "DataGrid",
|
|
32
32
|
props: {
|
|
33
33
|
title: { default: "" },
|
|
@@ -36,9 +36,9 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
36
36
|
sections: { default: null },
|
|
37
37
|
sort: { default: null },
|
|
38
38
|
selection: { default: null },
|
|
39
|
-
getRowId: { type: Function, default: (
|
|
40
|
-
getRowKey: { type: Function, default: (
|
|
41
|
-
selectedMatcher: { type: Function, default: (
|
|
39
|
+
getRowId: { type: Function, default: (s, m) => m },
|
|
40
|
+
getRowKey: { type: Function, default: (s, m) => m },
|
|
41
|
+
selectedMatcher: { type: Function, default: (s, m) => s === m },
|
|
42
42
|
isSticky: { type: Boolean, default: !0 },
|
|
43
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
44
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -64,14 +64,14 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
64
64
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
65
65
|
},
|
|
66
66
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
67
|
-
setup(
|
|
68
|
-
const a =
|
|
69
|
-
ye((
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
67
|
+
setup(s, { expose: m, emit: k }) {
|
|
68
|
+
const a = s;
|
|
69
|
+
ye((l) => ({
|
|
70
|
+
fa2ac520: s.zIndexBase,
|
|
71
|
+
"0a907be4": t(ee),
|
|
72
|
+
"702d25dd": t(K)
|
|
73
73
|
}));
|
|
74
|
-
const b = fe(), Q = (
|
|
74
|
+
const b = fe(), Q = (l) => a.rowCustomClassKey && a.rows[l] ? a.rows[l][a.rowCustomClassKey] : "", {
|
|
75
75
|
list: w,
|
|
76
76
|
containerProps: X,
|
|
77
77
|
wrapperProps: j,
|
|
@@ -89,28 +89,28 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
89
89
|
isRowExpanded: M,
|
|
90
90
|
hasCheckboxes: F,
|
|
91
91
|
activeMenuRow: te,
|
|
92
|
-
scrollTo:
|
|
93
|
-
} = ve(a, k), G = g(() => !!b.footer),
|
|
92
|
+
scrollTo: se
|
|
93
|
+
} = ve(a, k), G = g(() => !!b.footer), le = g(
|
|
94
94
|
() => a.title || b.title || J.value || b["table-header-actions"] || b["table-header-pre-search"]
|
|
95
95
|
), C = Te(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
|
|
96
|
-
const
|
|
97
|
-
return !!
|
|
98
|
-
}), I = (
|
|
99
|
-
I(
|
|
96
|
+
const l = a.rows.map((o, e) => a.getRowId(o, e));
|
|
97
|
+
return !!l.length && l.every((o) => I(o));
|
|
98
|
+
}), I = (l) => a.selection.findIndex((o) => a.selectedMatcher(l, o)) !== -1, ie = (l) => {
|
|
99
|
+
I(l) ? (V(
|
|
100
100
|
a.selection.filter(
|
|
101
|
-
(
|
|
101
|
+
(o) => !a.selectedMatcher(l, o)
|
|
102
102
|
)
|
|
103
|
-
), k("selectRow", !1)) : (V([...a.selection,
|
|
104
|
-
},
|
|
103
|
+
), k("selectRow", !1)) : (V([...a.selection, l]), k("selectRow", !0));
|
|
104
|
+
}, de = () => {
|
|
105
105
|
if (N.value)
|
|
106
106
|
V([]), k("selectAll", !1);
|
|
107
107
|
else {
|
|
108
|
-
const
|
|
109
|
-
V([...a.selection, ...
|
|
108
|
+
const l = a.rows.map((o, e) => a.getRowId(o, e)).filter((o) => !I(o));
|
|
109
|
+
V([...a.selection, ...l]), k("selectAll", !0);
|
|
110
110
|
}
|
|
111
|
-
}, V = (
|
|
112
|
-
k("update:selection",
|
|
113
|
-
},
|
|
111
|
+
}, V = (l) => {
|
|
112
|
+
k("update:selection", l);
|
|
113
|
+
}, oe = (l) => !a.isLoading && E.value === l, ne = g(
|
|
114
114
|
() => a.emptyStateVariant ?? (C.value ? "no-results" : "no-data")
|
|
115
115
|
), re = g(
|
|
116
116
|
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : C.value ? "Search again with different filters" : void 0
|
|
@@ -120,22 +120,22 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
120
120
|
bordered: a.isSelectionBordered
|
|
121
121
|
},
|
|
122
122
|
style: a.isSelectionSticky ? H.value[pe] : null
|
|
123
|
-
})), ce = (
|
|
124
|
-
sticky:
|
|
125
|
-
isStickyRight:
|
|
126
|
-
bordered:
|
|
127
|
-
isTextRight:
|
|
123
|
+
})), ce = (l) => ({
|
|
124
|
+
sticky: l.isSticky,
|
|
125
|
+
isStickyRight: l.isStickyRight,
|
|
126
|
+
bordered: l.isBordered,
|
|
127
|
+
isTextRight: l.isTextRight
|
|
128
128
|
}), W = g(
|
|
129
|
-
() => a.columns.map((
|
|
130
|
-
), ue = (
|
|
131
|
-
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(
|
|
132
|
-
}), A = g(() => w.value.reduce((
|
|
129
|
+
() => a.columns.map((l) => ce(l))
|
|
130
|
+
), ue = (l) => ({
|
|
131
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(l) : a.rowHeight) + "px"
|
|
132
|
+
}), A = g(() => w.value.reduce((l, o) => (l[o.index] = ue(o.index), l), {}));
|
|
133
133
|
return m({
|
|
134
|
-
scrollTo:
|
|
135
|
-
}), (
|
|
134
|
+
scrollTo: se
|
|
135
|
+
}), (l, o) => (i(), d("div", {
|
|
136
136
|
class: "table-container",
|
|
137
|
-
"data-testid": `${
|
|
138
|
-
onMouseleave:
|
|
137
|
+
"data-testid": `${s.testId}-${t(S).CONTAINER}`,
|
|
138
|
+
onMouseleave: o[3] || (o[3] = (e) => E.value = null)
|
|
139
139
|
}, [
|
|
140
140
|
f("table", {
|
|
141
141
|
ref: t(X).ref,
|
|
@@ -143,72 +143,72 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
143
143
|
class: u({
|
|
144
144
|
hasFooter: t(G)
|
|
145
145
|
}),
|
|
146
|
-
"data-testid": `${
|
|
147
|
-
onScrollPassive:
|
|
146
|
+
"data-testid": `${s.testId}-${t(S).TABLE}`,
|
|
147
|
+
onScrollPassive: o[2] || (o[2] = //@ts-ignore
|
|
148
148
|
(...e) => t(U) && t(U)(...e))
|
|
149
149
|
}, [
|
|
150
|
-
t(
|
|
150
|
+
t(le) ? (i(), d("div", {
|
|
151
151
|
key: 0,
|
|
152
|
-
class: u(["table-header", { isStickyHeader:
|
|
153
|
-
"data-testid": `${
|
|
152
|
+
class: u(["table-header", { isStickyHeader: s.isStickyHeader }]),
|
|
153
|
+
"data-testid": `${s.testId}-${t(S).HEADER}`
|
|
154
154
|
}, [
|
|
155
155
|
f("div", {
|
|
156
156
|
class: "table-title",
|
|
157
|
-
"data-testid": `${
|
|
157
|
+
"data-testid": `${s.testId}-${t(S).TITLE}`
|
|
158
158
|
}, [
|
|
159
|
-
c(
|
|
159
|
+
c(l.$slots, "title", {}, () => [
|
|
160
160
|
h(t(p), { variant: "h3" }, {
|
|
161
161
|
default: $(() => [
|
|
162
|
-
R(P(
|
|
162
|
+
R(P(s.title), 1)
|
|
163
163
|
]),
|
|
164
164
|
_: 1
|
|
165
165
|
})
|
|
166
166
|
])
|
|
167
167
|
], 8, Be),
|
|
168
|
-
t(b)["table-header-pre-search"] ? (i(),
|
|
168
|
+
t(b)["table-header-pre-search"] ? (i(), d("div", {
|
|
169
169
|
key: 0,
|
|
170
170
|
class: "table-header-pre-search-content",
|
|
171
|
-
"data-testid": `${
|
|
171
|
+
"data-testid": `${s.testId}-${t(S).PRE_SEARCH_HEADER}`
|
|
172
172
|
}, [
|
|
173
|
-
c(
|
|
173
|
+
c(l.$slots, "table-header-pre-search")
|
|
174
174
|
], 8, Ie)) : n("", !0),
|
|
175
175
|
f("div", {
|
|
176
176
|
class: "table-header-right",
|
|
177
|
-
"data-testid": `${
|
|
177
|
+
"data-testid": `${s.testId}-${t(S).HEADER_RIGHT}`
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
s.showSearch ? c(l.$slots, "search", { key: 0 }, () => [
|
|
180
180
|
f("div", Ae, [
|
|
181
181
|
h(t(Re), {
|
|
182
182
|
modelValue: t(C),
|
|
183
|
-
"onUpdate:modelValue":
|
|
184
|
-
placeholder:
|
|
185
|
-
"auto-focus":
|
|
186
|
-
"test-id":
|
|
187
|
-
onOnClear:
|
|
183
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => Se(C) ? C.value = e : null),
|
|
184
|
+
placeholder: s.searchPlaceholder,
|
|
185
|
+
"auto-focus": s.searchAutoFocus,
|
|
186
|
+
"test-id": s.testId,
|
|
187
|
+
onOnClear: o[1] || (o[1] = (e) => k("onClearSearch"))
|
|
188
188
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
189
189
|
])
|
|
190
190
|
]) : n("", !0)
|
|
191
191
|
], 8, Ve),
|
|
192
|
-
t(b)["table-header-actions"] ? (i(),
|
|
192
|
+
t(b)["table-header-actions"] ? (i(), d("div", {
|
|
193
193
|
key: 1,
|
|
194
194
|
class: "table-header-actions",
|
|
195
|
-
"data-testid": `${
|
|
195
|
+
"data-testid": `${s.testId}-${t(S).ACTIONS}`
|
|
196
196
|
}, [
|
|
197
|
-
c(
|
|
197
|
+
c(l.$slots, "table-header-actions")
|
|
198
198
|
], 8, Pe)) : n("", !0)
|
|
199
199
|
], 10, He)) : n("", !0),
|
|
200
200
|
f("thead", {
|
|
201
|
-
class: u({ sticky:
|
|
201
|
+
class: u({ sticky: s.isSticky, isStickyHeader: s.isStickyHeader })
|
|
202
202
|
}, [
|
|
203
203
|
f("div", {
|
|
204
204
|
class: "sections",
|
|
205
|
-
"data-testid": `${
|
|
205
|
+
"data-testid": `${s.testId}-${t(S).SECTIONS}`
|
|
206
206
|
}, [
|
|
207
|
-
(i(!0),
|
|
207
|
+
(i(!0), d(T, null, x(s.sections, (e) => (i(), d("div", {
|
|
208
208
|
key: e.id,
|
|
209
209
|
class: u(["section-container", { sticky: e.isSticky }])
|
|
210
210
|
}, [
|
|
211
|
-
c(
|
|
211
|
+
c(l.$slots, `section-${e.id}`, {}, () => [
|
|
212
212
|
f("div", {
|
|
213
213
|
style: v({ width: e.width + "px" }),
|
|
214
214
|
class: u({ section: !0 })
|
|
@@ -224,21 +224,21 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
224
224
|
], 2))), 128))
|
|
225
225
|
], 8, Le),
|
|
226
226
|
f("tr", null, [
|
|
227
|
-
t(F) ? (i(),
|
|
227
|
+
t(F) ? (i(), d("th", L({
|
|
228
228
|
key: 0,
|
|
229
229
|
class: "checkbox-cell"
|
|
230
230
|
}, t(O)), [
|
|
231
|
-
c(
|
|
231
|
+
c(l.$slots, "select-all-checkbox", {}, () => [
|
|
232
232
|
h(t(Y), {
|
|
233
|
-
disabled:
|
|
233
|
+
disabled: s.isLoading,
|
|
234
234
|
"is-checked": t(N),
|
|
235
235
|
"is-indeterminate": !t(N) && t(ae) > 0,
|
|
236
|
-
"onUpdate:isChecked":
|
|
236
|
+
"onUpdate:isChecked": de
|
|
237
237
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
238
238
|
])
|
|
239
239
|
], 16)) : n("", !0),
|
|
240
|
-
t(B) ? (i(),
|
|
241
|
-
(i(!0),
|
|
240
|
+
t(B) ? (i(), d("th", Me)) : n("", !0),
|
|
241
|
+
(i(!0), d(T, null, x(s.columns, (e, y) => (i(), d("th", {
|
|
242
242
|
key: e.id,
|
|
243
243
|
class: u({
|
|
244
244
|
...t(W)[y],
|
|
@@ -249,10 +249,10 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
249
249
|
onClick: (r) => e.isSortable ? t(q)(e) : null
|
|
250
250
|
}, [
|
|
251
251
|
f("div", Ne, [
|
|
252
|
-
c(
|
|
252
|
+
c(l.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
253
|
h(t(me), {
|
|
254
254
|
text: e.helpText,
|
|
255
|
-
disabled: !e.helpText ||
|
|
255
|
+
disabled: !e.helpText || s.helpTooltipVariant === "icon",
|
|
256
256
|
placement: e.helpTextPlacement || "top",
|
|
257
257
|
"test-id": `help-tooltip-underlined-${e.id}`
|
|
258
258
|
}, {
|
|
@@ -260,7 +260,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
260
260
|
h(t(p), {
|
|
261
261
|
variant: "tableLabel",
|
|
262
262
|
class: u({
|
|
263
|
-
underlined: e.helpText &&
|
|
263
|
+
underlined: e.helpText && s.helpTooltipVariant === "underline"
|
|
264
264
|
})
|
|
265
265
|
}, {
|
|
266
266
|
default: $(() => [
|
|
@@ -272,25 +272,26 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
272
272
|
_: 2
|
|
273
273
|
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
274
274
|
]),
|
|
275
|
-
e.helpText &&
|
|
275
|
+
e.helpText && s.helpTooltipVariant === "icon" ? (i(), D($e, {
|
|
276
276
|
key: 0,
|
|
277
277
|
"hover-help-text": e.helpText,
|
|
278
278
|
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
279
|
"test-id": `help-tooltip-${e.id}`
|
|
280
280
|
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : n("", !0),
|
|
281
|
-
|
|
281
|
+
c(l.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
|
+
e.isSortable && e.id === s.sort?.sortBy ? (i(), D(be, {
|
|
282
283
|
key: 1,
|
|
283
|
-
"sort-order":
|
|
284
|
+
"sort-order": s.sort.sortOrder
|
|
284
285
|
}, null, 8, ["sort-order"])) : n("", !0)
|
|
285
286
|
])
|
|
286
287
|
], 14, Fe))), 128))
|
|
287
288
|
]),
|
|
288
|
-
|
|
289
|
-
t(F) ? (i(),
|
|
289
|
+
s.showTotalsRow && t(w).length > 0 ? (i(), d("tr", Oe, [
|
|
290
|
+
t(F) ? (i(), d("td", L({
|
|
290
291
|
key: 0,
|
|
291
292
|
class: "bg"
|
|
292
293
|
}, t(O)), null, 16)) : n("", !0),
|
|
293
|
-
(i(!0),
|
|
294
|
+
(i(!0), d(T, null, x(s.columns, (e, y) => (i(), d("td", {
|
|
294
295
|
key: e.id,
|
|
295
296
|
class: u({
|
|
296
297
|
...t(W)[y],
|
|
@@ -298,7 +299,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
298
299
|
}),
|
|
299
300
|
style: v(e.isSticky ? t(H)[e.id] : null)
|
|
300
301
|
}, [
|
|
301
|
-
c(
|
|
302
|
+
c(l.$slots, `total-${e.id}`, { column: e }, () => [
|
|
302
303
|
y === 0 ? (i(), D(t(p), {
|
|
303
304
|
key: 0,
|
|
304
305
|
variant: "h6"
|
|
@@ -313,15 +314,15 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
313
314
|
])) : n("", !0)
|
|
314
315
|
], 2),
|
|
315
316
|
f("tbody", null, [
|
|
316
|
-
t(w).length > 0 ? (i(),
|
|
317
|
+
t(w).length > 0 ? (i(), d("div", L({
|
|
317
318
|
key: 0,
|
|
318
319
|
class: "table-body-wrapper",
|
|
319
|
-
"data-testid": `${
|
|
320
|
+
"data-testid": `${s.testId}-${t(S).BODY_WRAPPER}`
|
|
320
321
|
}, t(j)), [
|
|
321
|
-
(i(!0),
|
|
322
|
-
key:
|
|
322
|
+
(i(!0), d(T, null, x(t(w), (e) => (i(), d("tr", {
|
|
323
|
+
key: s.getRowKey(e.data, e.index),
|
|
323
324
|
class: u(["table-row", {
|
|
324
|
-
loading:
|
|
325
|
+
loading: s.isLoading || s.isLoading && !e.data || t(z).includes(e.index),
|
|
325
326
|
active: t(E) === e.index,
|
|
326
327
|
activeMenu: t(te) === e.index,
|
|
327
328
|
expanded: t(B) && t(M)(e.index),
|
|
@@ -331,18 +332,18 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
331
332
|
onMouseenter: (y) => E.value = e.index,
|
|
332
333
|
onClick: (y) => k("clickRow", e.index)
|
|
333
334
|
}, [
|
|
334
|
-
t(F) ? (i(),
|
|
335
|
+
t(F) ? (i(), d("td", L({
|
|
335
336
|
key: 0,
|
|
336
337
|
class: "checkbox-cell"
|
|
337
338
|
}, t(O), {
|
|
338
339
|
style: t(A)[e.index]
|
|
339
340
|
}), [
|
|
340
341
|
h(t(Y), {
|
|
341
|
-
"is-checked": I(
|
|
342
|
-
"onUpdate:isChecked": (y) => ie(
|
|
342
|
+
"is-checked": I(s.getRowId(e.data, e.index)),
|
|
343
|
+
"onUpdate:isChecked": (y) => ie(s.getRowId(e.data, e.index))
|
|
343
344
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
344
345
|
], 16)) : n("", !0),
|
|
345
|
-
t(B) ? (i(),
|
|
346
|
+
t(B) ? (i(), d("td", {
|
|
346
347
|
key: 1,
|
|
347
348
|
class: "expand-toggle-cell",
|
|
348
349
|
style: v(t(A)[e.index])
|
|
@@ -352,25 +353,25 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
352
353
|
onClick: (y) => t(_)(e.index, y)
|
|
353
354
|
}, null, 8, ["expanded", "onClick"])
|
|
354
355
|
], 4)) : n("", !0),
|
|
355
|
-
(i(!0),
|
|
356
|
+
(i(!0), d(T, null, x(s.columns, (y, r) => (i(), d("td", {
|
|
356
357
|
key: r,
|
|
357
358
|
class: u({
|
|
358
|
-
sticky:
|
|
359
|
-
isStickyRight:
|
|
360
|
-
bordered:
|
|
361
|
-
isTextRight:
|
|
362
|
-
[`column-${
|
|
359
|
+
sticky: s.columns[r].isSticky,
|
|
360
|
+
isStickyRight: s.columns[r].isStickyRight,
|
|
361
|
+
bordered: s.columns[r].isBordered,
|
|
362
|
+
isTextRight: s.columns[r].isTextRight,
|
|
363
|
+
[`column-${s.columns[r].id}`]: !0
|
|
363
364
|
}),
|
|
364
365
|
style: v([
|
|
365
|
-
|
|
366
|
+
s.columns[r].isSticky ? t(H)[s.columns[r].id] : null,
|
|
366
367
|
t(A)[e.index]
|
|
367
368
|
])
|
|
368
369
|
}, [
|
|
369
|
-
!
|
|
370
|
+
!s.isLoading || s.isLoading && e.data[r] ? (i(), d("div", {
|
|
370
371
|
key: 0,
|
|
371
372
|
class: u(["table-cell", { last: r === e.data.length - 1 }])
|
|
372
373
|
}, [
|
|
373
|
-
c(
|
|
374
|
+
c(l.$slots, `cell-${s.columns[r].id}`, {
|
|
374
375
|
cell: e.data[r],
|
|
375
376
|
isLoading: t(z).includes(e.index),
|
|
376
377
|
cellIndex: r,
|
|
@@ -384,43 +385,43 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
384
385
|
_: 2
|
|
385
386
|
}, 1024)
|
|
386
387
|
])
|
|
387
|
-
], 2)) : c(
|
|
388
|
+
], 2)) : c(l.$slots, "loader", { key: 1 }, () => [
|
|
388
389
|
h(t(ke), { round: "" })
|
|
389
390
|
])
|
|
390
391
|
], 6))), 128)),
|
|
391
|
-
t(B) && t(M)(e.index) ? (i(),
|
|
392
|
-
c(
|
|
392
|
+
t(B) && t(M)(e.index) ? (i(), d("div", Ue, [
|
|
393
|
+
c(l.$slots, "expanded", {
|
|
393
394
|
row: e,
|
|
394
395
|
gridColumnTemplate: t(K)
|
|
395
396
|
})
|
|
396
397
|
])) : n("", !0),
|
|
397
|
-
|
|
398
|
-
c(
|
|
398
|
+
oe(e.index) ? (i(), d("div", ze, [
|
|
399
|
+
c(l.$slots, "floating-row", {
|
|
399
400
|
row: e,
|
|
400
401
|
rowIndex: e.index
|
|
401
402
|
})
|
|
402
403
|
])) : n("", !0)
|
|
403
404
|
], 46, Ke))), 128))
|
|
404
|
-
], 16, De)) : (i(),
|
|
405
|
-
c(
|
|
405
|
+
], 16, De)) : (i(), d("div", Ge, [
|
|
406
|
+
c(l.$slots, "empty-state", {}, () => [
|
|
406
407
|
h(t(ge), {
|
|
407
408
|
class: "empty-state",
|
|
408
|
-
title:
|
|
409
|
+
title: s.emptyStateTitle,
|
|
409
410
|
subtitle: t(re),
|
|
410
411
|
variant: t(ne),
|
|
411
412
|
"icon-name": "file-search",
|
|
412
|
-
"test-id": `${
|
|
413
|
+
"test-id": `${s.testId}-${t(S).EMPTY_STATE}`
|
|
413
414
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
414
415
|
])
|
|
415
416
|
]))
|
|
416
417
|
])
|
|
417
418
|
], 46, Ee),
|
|
418
|
-
t(G) ? (i(),
|
|
419
|
-
c(
|
|
419
|
+
t(G) ? (i(), d("div", We, [
|
|
420
|
+
c(l.$slots, "footer")
|
|
420
421
|
])) : n("", !0)
|
|
421
422
|
], 40, we));
|
|
422
423
|
}
|
|
423
424
|
});
|
|
424
425
|
export {
|
|
425
|
-
|
|
426
|
+
dt as default
|
|
426
427
|
};
|
|
@@ -721,6 +721,8 @@ declare const DataGridTypes: () => (({
|
|
|
721
721
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
722
722
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
723
723
|
column: import("../common/Table.types").Column;
|
|
724
|
+
}) => any>> & Partial<Record<`after-header-${string}`, (_: {
|
|
725
|
+
column: import("../common/Table.types").Column;
|
|
724
726
|
}) => any>> & Partial<Record<`total-${string}`, (_: {
|
|
725
727
|
column: import("../common/Table.types").Column;
|
|
726
728
|
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|