@ironsource/shared-ui 2.1.12-test.71 → 2.1.12-test.73
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/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ebc0c582_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_92ead583_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_3dc741c1_lang.css +1 -0
- package/SwitchV4.vue_vue_type_style_index_0_scoped_fa120cf6_lang.css +1 -0
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +34 -33
- package/components/chart/ChartStoryArgs.d.ts +1 -1
- package/components/dateRange/common/DateServices.common.d.ts +6 -0
- package/components/dateRange/common/DateServices.common.js +87 -92
- package/components/dateRange/common/consts.common.d.ts +5 -0
- package/components/dateRange/common/consts.common.js +9 -3
- package/components/dateRange/v3/DateRange.vue.d.ts +3 -3
- package/components/dateRange/v3/DateRangePicker.vue.d.ts +3 -3
- package/components/dateRange/v3/index.d.ts +7 -7
- package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +3 -3
- package/components/dateRange/v4/DateRangeV4.vue.d.ts +3 -3
- package/components/dateRange/v4/index.d.ts +7 -7
- package/components/dropdown/common/Dropdown.common.d.ts +1 -0
- package/components/dropdown/common/Dropdown.common.js +44 -43
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +64 -54
- package/components/dropdown/v4/DropdownV4.vue.d.ts +15 -0
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +226 -195
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +71 -68
- package/components/dropdown/v4/index.d.ts +67 -1
- package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
- package/components/switch/v4/SwitchV4.vue.js +3 -3
- package/components/switch/v4/SwitchV4.vue2.js +25 -23
- package/components/switch/v4/index.d.ts +11 -0
- package/components/table/common/Table.types.d.ts +2 -0
- package/components/table/v4/DataGrid.vue.d.ts +6 -1
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +192 -174
- package/components/table/v4/index.d.ts +20 -1
- package/index.d.ts +210 -18
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_c2e356f5_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Column, Row, SaveRowEvent, Section, Sort } from '../common/Table.types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
title?: string;
|
|
4
4
|
columns: Column[];
|
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
rowHeight?: number | ((index: number) => number);
|
|
22
22
|
loadingRowCount?: number;
|
|
23
23
|
defaultScrollPosition?: number;
|
|
24
|
+
helpTooltipVariant?: "icon" | "underline";
|
|
24
25
|
testId?: string;
|
|
25
26
|
search?: string;
|
|
26
27
|
showSearch?: boolean;
|
|
@@ -46,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
47
|
rowHeight: number;
|
|
47
48
|
loadingRowCount: number;
|
|
48
49
|
defaultScrollPosition: any;
|
|
50
|
+
helpTooltipVariant: string;
|
|
49
51
|
testId: string;
|
|
50
52
|
selection: any;
|
|
51
53
|
getRowId: (row: any, index: any) => any;
|
|
@@ -95,6 +97,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
95
97
|
rowHeight?: number | ((index: number) => number);
|
|
96
98
|
loadingRowCount?: number;
|
|
97
99
|
defaultScrollPosition?: number;
|
|
100
|
+
helpTooltipVariant?: "icon" | "underline";
|
|
98
101
|
testId?: string;
|
|
99
102
|
search?: string;
|
|
100
103
|
showSearch?: boolean;
|
|
@@ -120,6 +123,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
120
123
|
rowHeight: number;
|
|
121
124
|
loadingRowCount: number;
|
|
122
125
|
defaultScrollPosition: any;
|
|
126
|
+
helpTooltipVariant: string;
|
|
123
127
|
testId: string;
|
|
124
128
|
selection: any;
|
|
125
129
|
getRowId: (row: any, index: any) => any;
|
|
@@ -170,6 +174,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
170
174
|
getRowKey: (row: Row, index: number) => string | number;
|
|
171
175
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
172
176
|
emptyStateVariant: "error" | "settings" | "no-access" | "no-results" | "no-data" | "files";
|
|
177
|
+
helpTooltipVariant: "icon" | "underline";
|
|
173
178
|
rowCustomClassKey: string;
|
|
174
179
|
rowDataKey: string;
|
|
175
180
|
isSelectionSticky: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-086c5b0d"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_086c5b0d_lang.css"; import { defineComponent as he, useCssVars as ye, unref as t, useSlots as fe, computed as g, openBlock as i, createElementBlock as o, 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
|
+
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";
|
|
5
5
|
import Y from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
6
|
+
import me from "../../tooltip/v4/TooltipV4.vue.js";
|
|
6
7
|
import { TableTestIdModifiers as S } from "../../../testids/index.js";
|
|
7
|
-
import { tableCommon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import { tableCommon as ve } from "../common/Table.common.js";
|
|
9
|
+
import be from "./SortIcon.vue.js";
|
|
10
|
+
import $e from "./HelpIcon.vue.js";
|
|
10
11
|
import Ce from "./ExpandRowToggle.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import { useVModel as
|
|
13
|
-
import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as
|
|
14
|
-
const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"],
|
|
12
|
+
import Re from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import { useVModel as Te } from "@vueuse/core";
|
|
14
|
+
import { DEFAULT_ROW_HEIGHT as xe, CHECKBOX_COLUMN_ID as pe } from "../common/consts.js";
|
|
15
|
+
const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["data-testid"], Ie = ["data-testid"], Ve = ["data-testid"], Ae = { class: "search-wrapper" }, Pe = ["data-testid"], Le = ["data-testid"], Me = {
|
|
15
16
|
key: 1,
|
|
16
17
|
class: "expand-toggle-cell"
|
|
17
|
-
},
|
|
18
|
+
}, Fe = ["onClick"], Ne = { class: "table-head-container" }, Oe = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "totals-row"
|
|
20
|
-
},
|
|
21
|
+
}, De = ["data-testid"], Ke = ["onMouseenter", "onClick"], Ue = {
|
|
21
22
|
key: 2,
|
|
22
23
|
class: "expanded-row"
|
|
23
|
-
},
|
|
24
|
+
}, ze = {
|
|
24
25
|
key: 3,
|
|
25
26
|
class: "floating-row"
|
|
26
|
-
},
|
|
27
|
+
}, Ge = { key: 1 }, We = {
|
|
27
28
|
key: 0,
|
|
28
29
|
class: "table-footer"
|
|
29
|
-
},
|
|
30
|
+
}, ot = /* @__PURE__ */ he({
|
|
30
31
|
__name: "DataGrid",
|
|
31
32
|
props: {
|
|
32
33
|
title: { default: "" },
|
|
@@ -35,9 +36,9 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
35
36
|
sections: { default: null },
|
|
36
37
|
sort: { default: null },
|
|
37
38
|
selection: { default: null },
|
|
38
|
-
getRowId: { type: Function, default: (
|
|
39
|
-
getRowKey: { type: Function, default: (
|
|
40
|
-
selectedMatcher: { type: Function, default: (
|
|
39
|
+
getRowId: { type: Function, default: (l, m) => m },
|
|
40
|
+
getRowKey: { type: Function, default: (l, m) => m },
|
|
41
|
+
selectedMatcher: { type: Function, default: (l, m) => l === m },
|
|
41
42
|
isSticky: { type: Boolean, default: !0 },
|
|
42
43
|
isStickyHeader: { type: Boolean, default: !1 },
|
|
43
44
|
isLoading: { type: Boolean, default: !1 },
|
|
@@ -50,6 +51,7 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
50
51
|
rowHeight: { type: [Number, Function], default: xe },
|
|
51
52
|
loadingRowCount: { default: 3 },
|
|
52
53
|
defaultScrollPosition: { default: null },
|
|
54
|
+
helpTooltipVariant: { default: "icon" },
|
|
53
55
|
testId: { default: "" },
|
|
54
56
|
search: { default: null },
|
|
55
57
|
showSearch: { type: Boolean, default: !1 },
|
|
@@ -62,53 +64,53 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
62
64
|
isSelectionBordered: { type: Boolean, default: !1 }
|
|
63
65
|
},
|
|
64
66
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
65
|
-
setup(
|
|
66
|
-
const a =
|
|
67
|
-
ye((
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
67
|
+
setup(l, { expose: m, emit: k }) {
|
|
68
|
+
const a = l;
|
|
69
|
+
ye((s) => ({
|
|
70
|
+
"93d4ced6": l.zIndexBase,
|
|
71
|
+
"1799c749": t(ee),
|
|
72
|
+
"60112c02": t(K)
|
|
71
73
|
}));
|
|
72
|
-
const b = fe(), Q = (
|
|
73
|
-
list:
|
|
74
|
+
const b = fe(), Q = (s) => a.rowCustomClassKey && a.rows[s] ? a.rows[s][a.rowCustomClassKey] : "", {
|
|
75
|
+
list: w,
|
|
74
76
|
containerProps: X,
|
|
75
77
|
wrapperProps: j,
|
|
76
|
-
activeRow:
|
|
78
|
+
activeRow: E,
|
|
77
79
|
gridColumnTemplate: K,
|
|
78
80
|
toggleSortOrder: q,
|
|
79
|
-
columnsStickyPositions:
|
|
81
|
+
columnsStickyPositions: H,
|
|
80
82
|
hasSearchSlot: J,
|
|
81
83
|
containerStyle: Z,
|
|
82
84
|
onScroll: U,
|
|
83
85
|
savingRows: z,
|
|
84
|
-
hasExpandSlot:
|
|
86
|
+
hasExpandSlot: B,
|
|
85
87
|
toggleExpandRow: _,
|
|
86
88
|
cssExpandGridCol: ee,
|
|
87
|
-
isRowExpanded:
|
|
89
|
+
isRowExpanded: M,
|
|
88
90
|
hasCheckboxes: F,
|
|
89
91
|
activeMenuRow: te,
|
|
90
|
-
scrollTo:
|
|
91
|
-
} =
|
|
92
|
+
scrollTo: le
|
|
93
|
+
} = ve(a, k), G = g(() => !!b.footer), se = g(
|
|
92
94
|
() => a.title || b.title || J.value || b["table-header-actions"] || b["table-header-pre-search"]
|
|
93
|
-
), C =
|
|
94
|
-
const
|
|
95
|
-
return !!
|
|
96
|
-
}), I = (
|
|
97
|
-
I(
|
|
95
|
+
), C = Te(a, "search", k), ae = g(() => a.selection.length || 0), N = g(() => {
|
|
96
|
+
const s = a.rows.map((d, e) => a.getRowId(d, e));
|
|
97
|
+
return !!s.length && s.every((d) => I(d));
|
|
98
|
+
}), I = (s) => a.selection.findIndex((d) => a.selectedMatcher(s, d)) !== -1, ie = (s) => {
|
|
99
|
+
I(s) ? (V(
|
|
98
100
|
a.selection.filter(
|
|
99
|
-
(d) => !a.selectedMatcher(
|
|
101
|
+
(d) => !a.selectedMatcher(s, d)
|
|
100
102
|
)
|
|
101
|
-
), k("selectRow", !1)) : (
|
|
103
|
+
), k("selectRow", !1)) : (V([...a.selection, s]), k("selectRow", !0));
|
|
102
104
|
}, oe = () => {
|
|
103
105
|
if (N.value)
|
|
104
|
-
|
|
106
|
+
V([]), k("selectAll", !1);
|
|
105
107
|
else {
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
+
const s = a.rows.map((d, e) => a.getRowId(d, e)).filter((d) => !I(d));
|
|
109
|
+
V([...a.selection, ...s]), k("selectAll", !0);
|
|
108
110
|
}
|
|
109
|
-
},
|
|
110
|
-
k("update:selection",
|
|
111
|
-
}, de = (
|
|
111
|
+
}, V = (s) => {
|
|
112
|
+
k("update:selection", s);
|
|
113
|
+
}, de = (s) => !a.isLoading && E.value === s, ne = g(
|
|
112
114
|
() => a.emptyStateVariant ?? (C.value ? "no-results" : "no-data")
|
|
113
115
|
), re = g(
|
|
114
116
|
() => a.emptyStateSubtitle ? a.emptyStateSubtitle : C.value ? "Search again with different filters" : void 0
|
|
@@ -117,47 +119,47 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
117
119
|
sticky: a.isSelectionSticky,
|
|
118
120
|
bordered: a.isSelectionBordered
|
|
119
121
|
},
|
|
120
|
-
style: a.isSelectionSticky ?
|
|
121
|
-
})), ce = (
|
|
122
|
-
sticky:
|
|
123
|
-
isStickyRight:
|
|
124
|
-
bordered:
|
|
125
|
-
isTextRight:
|
|
122
|
+
style: a.isSelectionSticky ? H.value[pe] : null
|
|
123
|
+
})), ce = (s) => ({
|
|
124
|
+
sticky: s.isSticky,
|
|
125
|
+
isStickyRight: s.isStickyRight,
|
|
126
|
+
bordered: s.isBordered,
|
|
127
|
+
isTextRight: s.isTextRight
|
|
126
128
|
}), W = g(
|
|
127
|
-
() => a.columns.map((
|
|
128
|
-
), ue = (
|
|
129
|
-
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(
|
|
130
|
-
}),
|
|
129
|
+
() => a.columns.map((s) => ce(s))
|
|
130
|
+
), ue = (s) => ({
|
|
131
|
+
minHeight: (typeof a.rowHeight == "function" ? a.rowHeight(s) : a.rowHeight) + "px"
|
|
132
|
+
}), A = g(() => w.value.reduce((s, d) => (s[d.index] = ue(d.index), s), {}));
|
|
131
133
|
return m({
|
|
132
|
-
scrollTo:
|
|
133
|
-
}), (
|
|
134
|
+
scrollTo: le
|
|
135
|
+
}), (s, d) => (i(), o("div", {
|
|
134
136
|
class: "table-container",
|
|
135
|
-
"data-testid": `${
|
|
136
|
-
onMouseleave: d[3] || (d[3] = (e) =>
|
|
137
|
+
"data-testid": `${l.testId}-${t(S).CONTAINER}`,
|
|
138
|
+
onMouseleave: d[3] || (d[3] = (e) => E.value = null)
|
|
137
139
|
}, [
|
|
138
|
-
|
|
140
|
+
f("table", {
|
|
139
141
|
ref: t(X).ref,
|
|
140
142
|
style: v(t(Z)),
|
|
141
|
-
class:
|
|
143
|
+
class: u({
|
|
142
144
|
hasFooter: t(G)
|
|
143
145
|
}),
|
|
144
|
-
"data-testid": `${
|
|
146
|
+
"data-testid": `${l.testId}-${t(S).TABLE}`,
|
|
145
147
|
onScrollPassive: d[2] || (d[2] = //@ts-ignore
|
|
146
148
|
(...e) => t(U) && t(U)(...e))
|
|
147
149
|
}, [
|
|
148
|
-
t(
|
|
150
|
+
t(se) ? (i(), o("div", {
|
|
149
151
|
key: 0,
|
|
150
|
-
class:
|
|
151
|
-
"data-testid": `${
|
|
152
|
+
class: u(["table-header", { isStickyHeader: l.isStickyHeader }]),
|
|
153
|
+
"data-testid": `${l.testId}-${t(S).HEADER}`
|
|
152
154
|
}, [
|
|
153
|
-
|
|
155
|
+
f("div", {
|
|
154
156
|
class: "table-title",
|
|
155
|
-
"data-testid": `${
|
|
157
|
+
"data-testid": `${l.testId}-${t(S).TITLE}`
|
|
156
158
|
}, [
|
|
157
|
-
c(
|
|
158
|
-
|
|
159
|
+
c(s.$slots, "title", {}, () => [
|
|
160
|
+
h(t(p), { variant: "h3" }, {
|
|
159
161
|
default: $(() => [
|
|
160
|
-
R(P(
|
|
162
|
+
R(P(l.title), 1)
|
|
161
163
|
]),
|
|
162
164
|
_: 1
|
|
163
165
|
})
|
|
@@ -166,52 +168,52 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
166
168
|
t(b)["table-header-pre-search"] ? (i(), o("div", {
|
|
167
169
|
key: 0,
|
|
168
170
|
class: "table-header-pre-search-content",
|
|
169
|
-
"data-testid": `${
|
|
171
|
+
"data-testid": `${l.testId}-${t(S).PRE_SEARCH_HEADER}`
|
|
170
172
|
}, [
|
|
171
|
-
c(
|
|
172
|
-
], 8,
|
|
173
|
-
|
|
173
|
+
c(s.$slots, "table-header-pre-search")
|
|
174
|
+
], 8, Ie)) : n("", !0),
|
|
175
|
+
f("div", {
|
|
174
176
|
class: "table-header-right",
|
|
175
|
-
"data-testid": `${
|
|
177
|
+
"data-testid": `${l.testId}-${t(S).HEADER_RIGHT}`
|
|
176
178
|
}, [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
l.showSearch ? c(s.$slots, "search", { key: 0 }, () => [
|
|
180
|
+
f("div", Ae, [
|
|
181
|
+
h(t(Re), {
|
|
180
182
|
modelValue: t(C),
|
|
181
183
|
"onUpdate:modelValue": d[0] || (d[0] = (e) => Se(C) ? C.value = e : null),
|
|
182
|
-
placeholder:
|
|
183
|
-
"auto-focus":
|
|
184
|
-
"test-id":
|
|
184
|
+
placeholder: l.searchPlaceholder,
|
|
185
|
+
"auto-focus": l.searchAutoFocus,
|
|
186
|
+
"test-id": l.testId,
|
|
185
187
|
onOnClear: d[1] || (d[1] = (e) => k("onClearSearch"))
|
|
186
188
|
}, null, 8, ["modelValue", "placeholder", "auto-focus", "test-id"])
|
|
187
189
|
])
|
|
188
190
|
]) : n("", !0)
|
|
189
|
-
], 8,
|
|
191
|
+
], 8, Ve),
|
|
190
192
|
t(b)["table-header-actions"] ? (i(), o("div", {
|
|
191
193
|
key: 1,
|
|
192
194
|
class: "table-header-actions",
|
|
193
|
-
"data-testid": `${
|
|
195
|
+
"data-testid": `${l.testId}-${t(S).ACTIONS}`
|
|
194
196
|
}, [
|
|
195
|
-
c(
|
|
196
|
-
], 8,
|
|
197
|
+
c(s.$slots, "table-header-actions")
|
|
198
|
+
], 8, Pe)) : n("", !0)
|
|
197
199
|
], 10, He)) : n("", !0),
|
|
198
|
-
|
|
199
|
-
class:
|
|
200
|
+
f("thead", {
|
|
201
|
+
class: u({ sticky: l.isSticky, isStickyHeader: l.isStickyHeader })
|
|
200
202
|
}, [
|
|
201
|
-
|
|
203
|
+
f("div", {
|
|
202
204
|
class: "sections",
|
|
203
|
-
"data-testid": `${
|
|
205
|
+
"data-testid": `${l.testId}-${t(S).SECTIONS}`
|
|
204
206
|
}, [
|
|
205
|
-
(i(!0), o(
|
|
207
|
+
(i(!0), o(T, null, x(l.sections, (e) => (i(), o("div", {
|
|
206
208
|
key: e.id,
|
|
207
|
-
class:
|
|
209
|
+
class: u(["section-container", { sticky: e.isSticky }])
|
|
208
210
|
}, [
|
|
209
|
-
c(
|
|
210
|
-
|
|
211
|
+
c(s.$slots, `section-${e.id}`, {}, () => [
|
|
212
|
+
f("div", {
|
|
211
213
|
style: v({ width: e.width + "px" }),
|
|
212
|
-
class:
|
|
214
|
+
class: u({ section: !0 })
|
|
213
215
|
}, [
|
|
214
|
-
|
|
216
|
+
h(t(p), { variant: "body2" }, {
|
|
215
217
|
default: $(() => [
|
|
216
218
|
R(P(e.title), 1)
|
|
217
219
|
]),
|
|
@@ -220,68 +222,84 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
220
222
|
], 4)
|
|
221
223
|
])
|
|
222
224
|
], 2))), 128))
|
|
223
|
-
], 8,
|
|
224
|
-
|
|
225
|
-
t(F) ? (i(), o("th",
|
|
225
|
+
], 8, Le),
|
|
226
|
+
f("tr", null, [
|
|
227
|
+
t(F) ? (i(), o("th", L({
|
|
226
228
|
key: 0,
|
|
227
229
|
class: "checkbox-cell"
|
|
228
230
|
}, t(O)), [
|
|
229
|
-
c(
|
|
230
|
-
|
|
231
|
-
disabled:
|
|
231
|
+
c(s.$slots, "select-all-checkbox", {}, () => [
|
|
232
|
+
h(t(Y), {
|
|
233
|
+
disabled: l.isLoading,
|
|
232
234
|
"is-checked": t(N),
|
|
233
235
|
"is-indeterminate": !t(N) && t(ae) > 0,
|
|
234
236
|
"onUpdate:isChecked": oe
|
|
235
237
|
}, null, 8, ["disabled", "is-checked", "is-indeterminate"])
|
|
236
238
|
])
|
|
237
239
|
], 16)) : n("", !0),
|
|
238
|
-
t(
|
|
239
|
-
(i(!0), o(
|
|
240
|
+
t(B) ? (i(), o("th", Me)) : n("", !0),
|
|
241
|
+
(i(!0), o(T, null, x(l.columns, (e, y) => (i(), o("th", {
|
|
240
242
|
key: e.id,
|
|
241
|
-
class:
|
|
242
|
-
...t(W)[
|
|
243
|
+
class: u({
|
|
244
|
+
...t(W)[y],
|
|
243
245
|
isSortable: e.isSortable,
|
|
244
246
|
[`column-${e.id}`]: !0
|
|
245
247
|
}),
|
|
246
|
-
style: v(e.isSticky ? t(
|
|
248
|
+
style: v(e.isSticky ? t(H)[e.id] : null),
|
|
247
249
|
onClick: (r) => e.isSortable ? t(q)(e) : null
|
|
248
250
|
}, [
|
|
249
|
-
|
|
250
|
-
c(
|
|
251
|
-
|
|
251
|
+
f("div", Ne, [
|
|
252
|
+
c(s.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
|
+
h(t(me), {
|
|
254
|
+
text: e.helpText,
|
|
255
|
+
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
256
|
+
placement: e.helpTextPlacement || "top",
|
|
257
|
+
"test-id": `help-tooltip-${e.id}`
|
|
258
|
+
}, {
|
|
252
259
|
default: $(() => [
|
|
253
|
-
|
|
260
|
+
h(t(p), {
|
|
261
|
+
variant: "tableLabel",
|
|
262
|
+
class: u({
|
|
263
|
+
underlined: e.helpText && l.helpTooltipVariant === "underline"
|
|
264
|
+
})
|
|
265
|
+
}, {
|
|
266
|
+
default: $(() => [
|
|
267
|
+
R(P(e.title), 1)
|
|
268
|
+
]),
|
|
269
|
+
_: 2
|
|
270
|
+
}, 1032, ["class"])
|
|
254
271
|
]),
|
|
255
272
|
_: 2
|
|
256
|
-
},
|
|
273
|
+
}, 1032, ["text", "disabled", "placement", "test-id"])
|
|
257
274
|
]),
|
|
258
|
-
e.helpText ? (i(), D(
|
|
275
|
+
e.helpText && l.helpTooltipVariant === "icon" ? (i(), D($e, {
|
|
259
276
|
key: 0,
|
|
260
277
|
"hover-help-text": e.helpText,
|
|
261
|
-
"hover-help-text-placement": e.helpTextPlacement
|
|
262
|
-
|
|
263
|
-
|
|
278
|
+
"hover-help-text-placement": e.helpTextPlacement,
|
|
279
|
+
"test-id": `help-tooltip-${e.id}`
|
|
280
|
+
}, null, 8, ["hover-help-text", "hover-help-text-placement", "test-id"])) : n("", !0),
|
|
281
|
+
e.isSortable && e.id === l.sort?.sortBy ? (i(), D(be, {
|
|
264
282
|
key: 1,
|
|
265
|
-
"sort-order":
|
|
283
|
+
"sort-order": l.sort.sortOrder
|
|
266
284
|
}, null, 8, ["sort-order"])) : n("", !0)
|
|
267
285
|
])
|
|
268
|
-
], 14,
|
|
286
|
+
], 14, Fe))), 128))
|
|
269
287
|
]),
|
|
270
|
-
|
|
271
|
-
t(F) ? (i(), o("td",
|
|
288
|
+
l.showTotalsRow && t(w).length > 0 ? (i(), o("tr", Oe, [
|
|
289
|
+
t(F) ? (i(), o("td", L({
|
|
272
290
|
key: 0,
|
|
273
291
|
class: "bg"
|
|
274
292
|
}, t(O)), null, 16)) : n("", !0),
|
|
275
|
-
(i(!0), o(
|
|
293
|
+
(i(!0), o(T, null, x(l.columns, (e, y) => (i(), o("td", {
|
|
276
294
|
key: e.id,
|
|
277
|
-
class:
|
|
278
|
-
...t(W)[
|
|
295
|
+
class: u({
|
|
296
|
+
...t(W)[y],
|
|
279
297
|
[`total-${e.id}`]: !0
|
|
280
298
|
}),
|
|
281
|
-
style: v(e.isSticky ? t(
|
|
299
|
+
style: v(e.isSticky ? t(H)[e.id] : null)
|
|
282
300
|
}, [
|
|
283
|
-
c(
|
|
284
|
-
|
|
301
|
+
c(s.$slots, `total-${e.id}`, { column: e }, () => [
|
|
302
|
+
y === 0 ? (i(), D(t(p), {
|
|
285
303
|
key: 0,
|
|
286
304
|
variant: "h6"
|
|
287
305
|
}, {
|
|
@@ -294,115 +312,115 @@ const we = ["data-testid"], Ee = ["data-testid"], He = ["data-testid"], Be = ["d
|
|
|
294
312
|
], 6))), 128))
|
|
295
313
|
])) : n("", !0)
|
|
296
314
|
], 2),
|
|
297
|
-
|
|
298
|
-
t(
|
|
315
|
+
f("tbody", null, [
|
|
316
|
+
t(w).length > 0 ? (i(), o("div", L({
|
|
299
317
|
key: 0,
|
|
300
318
|
class: "table-body-wrapper",
|
|
301
|
-
"data-testid": `${
|
|
319
|
+
"data-testid": `${l.testId}-${t(S).BODY_WRAPPER}`
|
|
302
320
|
}, t(j)), [
|
|
303
|
-
(i(!0), o(
|
|
304
|
-
key:
|
|
305
|
-
class:
|
|
306
|
-
loading:
|
|
307
|
-
active: t(
|
|
321
|
+
(i(!0), o(T, null, x(t(w), (e) => (i(), o("tr", {
|
|
322
|
+
key: l.getRowKey(e.data, e.index),
|
|
323
|
+
class: u(["table-row", {
|
|
324
|
+
loading: l.isLoading || l.isLoading && !e.data || t(z).includes(e.index),
|
|
325
|
+
active: t(E) === e.index,
|
|
308
326
|
activeMenu: t(te) === e.index,
|
|
309
|
-
expanded: t(
|
|
327
|
+
expanded: t(B) && t(M)(e.index),
|
|
310
328
|
[Q(e.index)]: !0
|
|
311
329
|
}]),
|
|
312
|
-
style: v(t(
|
|
313
|
-
onMouseenter: (
|
|
314
|
-
onClick: (
|
|
330
|
+
style: v(t(A)[e.index]),
|
|
331
|
+
onMouseenter: (y) => E.value = e.index,
|
|
332
|
+
onClick: (y) => k("clickRow", e.index)
|
|
315
333
|
}, [
|
|
316
|
-
t(F) ? (i(), o("td",
|
|
334
|
+
t(F) ? (i(), o("td", L({
|
|
317
335
|
key: 0,
|
|
318
336
|
class: "checkbox-cell"
|
|
319
337
|
}, t(O), {
|
|
320
|
-
style: t(
|
|
338
|
+
style: t(A)[e.index]
|
|
321
339
|
}), [
|
|
322
|
-
|
|
323
|
-
"is-checked": I(
|
|
324
|
-
"onUpdate:isChecked": (
|
|
340
|
+
h(t(Y), {
|
|
341
|
+
"is-checked": I(l.getRowId(e.data, e.index)),
|
|
342
|
+
"onUpdate:isChecked": (y) => ie(l.getRowId(e.data, e.index))
|
|
325
343
|
}, null, 8, ["is-checked", "onUpdate:isChecked"])
|
|
326
344
|
], 16)) : n("", !0),
|
|
327
|
-
t(
|
|
345
|
+
t(B) ? (i(), o("td", {
|
|
328
346
|
key: 1,
|
|
329
347
|
class: "expand-toggle-cell",
|
|
330
|
-
style: v(t(
|
|
348
|
+
style: v(t(A)[e.index])
|
|
331
349
|
}, [
|
|
332
|
-
|
|
333
|
-
expanded: t(
|
|
334
|
-
onClick: (
|
|
350
|
+
h(Ce, {
|
|
351
|
+
expanded: t(M)(e.index),
|
|
352
|
+
onClick: (y) => t(_)(e.index, y)
|
|
335
353
|
}, null, 8, ["expanded", "onClick"])
|
|
336
354
|
], 4)) : n("", !0),
|
|
337
|
-
(i(!0), o(
|
|
355
|
+
(i(!0), o(T, null, x(l.columns, (y, r) => (i(), o("td", {
|
|
338
356
|
key: r,
|
|
339
|
-
class:
|
|
340
|
-
sticky:
|
|
341
|
-
isStickyRight:
|
|
342
|
-
bordered:
|
|
343
|
-
isTextRight:
|
|
344
|
-
[`column-${
|
|
357
|
+
class: u({
|
|
358
|
+
sticky: l.columns[r].isSticky,
|
|
359
|
+
isStickyRight: l.columns[r].isStickyRight,
|
|
360
|
+
bordered: l.columns[r].isBordered,
|
|
361
|
+
isTextRight: l.columns[r].isTextRight,
|
|
362
|
+
[`column-${l.columns[r].id}`]: !0
|
|
345
363
|
}),
|
|
346
364
|
style: v([
|
|
347
|
-
|
|
348
|
-
t(
|
|
365
|
+
l.columns[r].isSticky ? t(H)[l.columns[r].id] : null,
|
|
366
|
+
t(A)[e.index]
|
|
349
367
|
])
|
|
350
368
|
}, [
|
|
351
|
-
!
|
|
369
|
+
!l.isLoading || l.isLoading && e.data[r] ? (i(), o("div", {
|
|
352
370
|
key: 0,
|
|
353
|
-
class:
|
|
371
|
+
class: u(["table-cell", { last: r === e.data.length - 1 }])
|
|
354
372
|
}, [
|
|
355
|
-
c(
|
|
373
|
+
c(s.$slots, `cell-${l.columns[r].id}`, {
|
|
356
374
|
cell: e.data[r],
|
|
357
375
|
isLoading: t(z).includes(e.index),
|
|
358
376
|
cellIndex: r,
|
|
359
377
|
row: e,
|
|
360
378
|
rowIndex: e.index
|
|
361
379
|
}, () => [
|
|
362
|
-
|
|
380
|
+
h(t(p), { variant: "body1" }, {
|
|
363
381
|
default: $(() => [
|
|
364
382
|
R(P(e.data[r]), 1)
|
|
365
383
|
]),
|
|
366
384
|
_: 2
|
|
367
385
|
}, 1024)
|
|
368
386
|
])
|
|
369
|
-
], 2)) : c(
|
|
370
|
-
|
|
387
|
+
], 2)) : c(s.$slots, "loader", { key: 1 }, () => [
|
|
388
|
+
h(t(ke), { round: "" })
|
|
371
389
|
])
|
|
372
390
|
], 6))), 128)),
|
|
373
|
-
t(
|
|
374
|
-
c(
|
|
391
|
+
t(B) && t(M)(e.index) ? (i(), o("div", Ue, [
|
|
392
|
+
c(s.$slots, "expanded", {
|
|
375
393
|
row: e,
|
|
376
394
|
gridColumnTemplate: t(K)
|
|
377
395
|
})
|
|
378
396
|
])) : n("", !0),
|
|
379
|
-
de(e.index) ? (i(), o("div",
|
|
380
|
-
c(
|
|
397
|
+
de(e.index) ? (i(), o("div", ze, [
|
|
398
|
+
c(s.$slots, "floating-row", {
|
|
381
399
|
row: e,
|
|
382
400
|
rowIndex: e.index
|
|
383
401
|
})
|
|
384
402
|
])) : n("", !0)
|
|
385
|
-
], 46,
|
|
386
|
-
], 16,
|
|
387
|
-
c(
|
|
388
|
-
|
|
403
|
+
], 46, Ke))), 128))
|
|
404
|
+
], 16, De)) : (i(), o("div", Ge, [
|
|
405
|
+
c(s.$slots, "empty-state", {}, () => [
|
|
406
|
+
h(t(ge), {
|
|
389
407
|
class: "empty-state",
|
|
390
|
-
title:
|
|
408
|
+
title: l.emptyStateTitle,
|
|
391
409
|
subtitle: t(re),
|
|
392
410
|
variant: t(ne),
|
|
393
411
|
"icon-name": "file-search",
|
|
394
|
-
"test-id": `${
|
|
412
|
+
"test-id": `${l.testId}-${t(S).EMPTY_STATE}`
|
|
395
413
|
}, null, 8, ["title", "subtitle", "variant", "test-id"])
|
|
396
414
|
])
|
|
397
415
|
]))
|
|
398
416
|
])
|
|
399
417
|
], 46, Ee),
|
|
400
|
-
t(G) ? (i(), o("div",
|
|
401
|
-
c(
|
|
418
|
+
t(G) ? (i(), o("div", We, [
|
|
419
|
+
c(s.$slots, "footer")
|
|
402
420
|
])) : n("", !0)
|
|
403
421
|
], 40, we));
|
|
404
422
|
}
|
|
405
423
|
});
|
|
406
424
|
export {
|
|
407
|
-
|
|
425
|
+
ot as default
|
|
408
426
|
};
|