@ironsource/shared-ui 2.2.0-test.3 → 2.2.0-test.4
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/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/IconButtonV4.vue2.js +1 -46
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +10 -8
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +73 -49
- package/components/chart/ChartPlane.vue.d.ts +5 -0
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +33 -31
- package/components/chart/ChartStoryArgs.d.ts +6 -0
- package/components/chart/index.d.ts +20 -1
- package/components/chip/v4/ChipV4.vue2.js +1 -1
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/includeExclude/index.d.ts +16 -16
- package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +80 -51
- package/components/inlineCopy/index.d.ts +27 -0
- package/components/popover/v3/Popover.vue2.js +1 -38
- package/components/radioButton/v3/RadioButton.vue2.js +1 -82
- package/components/radioButton/v3/RadioGroup.vue2.js +1 -29
- package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -80
- package/components/radioButton/v4/RadioGroupV4.vue2.js +1 -29
- package/components/snackbar/common/notify.js +25 -25
- package/components/snackbar/common/snackbar.common.js +19 -19
- package/components/snackbar/common/snackbar.types.d.ts +2 -1
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
- package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
- package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +59 -59
- package/components/table-cells/v3/Editable.vue.d.ts +1 -1
- package/components/table-cells/v3/index.d.ts +20 -20
- package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
- package/components/table-cells/v4/EditableV4.vue2.js +1 -57
- package/components/table-cells/v4/index.d.ts +20 -20
- package/index.d.ts +94 -40
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
|
@@ -22,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
22
|
zIndex?: number;
|
|
23
23
|
actionButtons: ButtonProps[];
|
|
24
24
|
testId: string;
|
|
25
|
+
isLoading: boolean;
|
|
25
26
|
}>, {
|
|
26
27
|
type: string;
|
|
27
28
|
zIndex: number;
|
|
@@ -30,7 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
31
|
title: string;
|
|
31
32
|
position: string;
|
|
32
33
|
testId: string;
|
|
33
|
-
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
}>, {
|
|
36
|
+
close: () => void;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
38
|
destroy: (...args: any[]) => void;
|
|
35
39
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
36
40
|
customClass: string;
|
|
@@ -50,6 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
54
|
zIndex?: number;
|
|
51
55
|
actionButtons: ButtonProps[];
|
|
52
56
|
testId: string;
|
|
57
|
+
isLoading: boolean;
|
|
53
58
|
}>, {
|
|
54
59
|
type: string;
|
|
55
60
|
zIndex: number;
|
|
@@ -58,6 +63,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
58
63
|
title: string;
|
|
59
64
|
position: string;
|
|
60
65
|
testId: string;
|
|
66
|
+
isLoading: boolean;
|
|
61
67
|
}>>> & {
|
|
62
68
|
onDestroy?: (...args: any[]) => any;
|
|
63
69
|
}, {
|
|
@@ -68,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
68
74
|
zIndex: number;
|
|
69
75
|
duration: number;
|
|
70
76
|
showClose: boolean;
|
|
77
|
+
isLoading: boolean;
|
|
71
78
|
}>, {
|
|
72
79
|
default?(_: {}): any;
|
|
73
80
|
actions?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SnackbarV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../SnackbarV4.
|
|
4
|
-
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-35c79635"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css"; import { defineComponent as $, computed as O, onMounted as x, nextTick as z, openBlock as s, createBlock as l, Transition as V, withCtx as y, withDirectives as I, createElementVNode as r, mergeProps as c, unref as e, createElementBlock as g, createVNode as U, createTextVNode as b, toDisplayString as B, createCommentVNode as u, renderSlot as N, vShow as S, Fragment as D, renderList as H, withModifiers as q } from "vue";
|
|
2
|
+
import F from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import G from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import P from "../../button/v4/IconButtonV4.vue.js";
|
|
6
6
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
7
7
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { snackbarCommon as
|
|
10
|
-
import { useTestIdAttrs as
|
|
8
|
+
import p from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import { snackbarCommon as R } from "../common/snackbar.common.js";
|
|
10
|
+
import { useTestIdAttrs as j } from "../../../utils/testIds.js";
|
|
11
11
|
import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
|
|
12
|
-
|
|
12
|
+
import J from "../../loader/v4/Loader.vue.js";
|
|
13
|
+
const K = ["id"], Q = { class: "container" }, W = { class: "texts" }, X = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "snackbar-icon-loading"
|
|
16
|
+
}, Y = { class: "message" }, Z = { class: "action-wrapper" }, _ = {
|
|
13
17
|
key: 0,
|
|
14
18
|
class: "actions"
|
|
15
|
-
},
|
|
19
|
+
}, ee = { class: "close-button-wrapper" }, fe = /* @__PURE__ */ $({
|
|
16
20
|
__name: "SnackbarV4",
|
|
17
21
|
props: {
|
|
18
22
|
customClass: null,
|
|
@@ -29,18 +33,19 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
29
33
|
title: { default: "" },
|
|
30
34
|
zIndex: { default: 0 },
|
|
31
35
|
actionButtons: null,
|
|
32
|
-
testId: { default: "" }
|
|
36
|
+
testId: { default: "" },
|
|
37
|
+
isLoading: { type: Boolean, default: !1 }
|
|
33
38
|
},
|
|
34
39
|
emits: ["destroy"],
|
|
35
|
-
setup(
|
|
36
|
-
const m =
|
|
37
|
-
visible:
|
|
38
|
-
horizontalClass:
|
|
39
|
-
positionStyle:
|
|
40
|
-
clearTimer:
|
|
41
|
-
startTimer:
|
|
42
|
-
close:
|
|
43
|
-
} =
|
|
40
|
+
setup(t, { expose: w }) {
|
|
41
|
+
const m = t, {
|
|
42
|
+
visible: L,
|
|
43
|
+
horizontalClass: A,
|
|
44
|
+
positionStyle: E,
|
|
45
|
+
clearTimer: C,
|
|
46
|
+
startTimer: v,
|
|
47
|
+
close: f
|
|
48
|
+
} = R(m), h = {
|
|
44
49
|
info: {
|
|
45
50
|
iconName: "info",
|
|
46
51
|
class: "snackbar-icon-info"
|
|
@@ -52,86 +57,102 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
52
57
|
success: {
|
|
53
58
|
iconName: "check-circle",
|
|
54
59
|
class: "snackbar-icon-success"
|
|
60
|
+
},
|
|
61
|
+
loading: {
|
|
62
|
+
iconName: "circle-notch"
|
|
55
63
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
64
|
+
}, k = O(() => h[m.type]), d = j(m.testId, i);
|
|
65
|
+
x(() => {
|
|
66
|
+
z(() => {
|
|
67
|
+
document.querySelectorAll(".snackbar-icon-loading circle").forEach((o) => {
|
|
68
|
+
o.setAttribute("r", "45%");
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
const M = ({ closeOnClick: a, onClick: o }) => () => {
|
|
73
|
+
a && f(), o && o();
|
|
58
74
|
};
|
|
59
|
-
return (
|
|
75
|
+
return w({
|
|
76
|
+
close: f
|
|
77
|
+
}), (a, o) => (s(), l(V, {
|
|
60
78
|
name: "snackbar",
|
|
61
|
-
onBeforeLeave:
|
|
62
|
-
onAfterLeave: o[3] || (o[3] = (
|
|
79
|
+
onBeforeLeave: t.onClose,
|
|
80
|
+
onAfterLeave: o[3] || (o[3] = (n) => a.$emit("destroy"))
|
|
63
81
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
I(
|
|
66
|
-
id:
|
|
67
|
-
class: ["snackbar light-theme-v4", [
|
|
68
|
-
style:
|
|
82
|
+
default: y(() => [
|
|
83
|
+
I(r("div", c({
|
|
84
|
+
id: t.id,
|
|
85
|
+
class: ["snackbar light-theme-v4", [t.customClass, e(A)]],
|
|
86
|
+
style: e(E),
|
|
69
87
|
role: "alert"
|
|
70
|
-
},
|
|
88
|
+
}, e(d)[e(i).CONTAINER], {
|
|
71
89
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
72
|
-
(...
|
|
90
|
+
(...n) => e(C) && e(C)(...n)),
|
|
73
91
|
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
74
|
-
(...
|
|
92
|
+
(...n) => e(v) && e(v)(...n)),
|
|
75
93
|
onClick: o[2] || (o[2] = //@ts-ignore
|
|
76
|
-
(...
|
|
94
|
+
(...n) => t.onClick && t.onClick(...n))
|
|
77
95
|
}), [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
96
|
+
r("div", Q, [
|
|
97
|
+
r("div", W, [
|
|
98
|
+
t.title ? (s(), l(e(p), c({
|
|
81
99
|
key: 0,
|
|
82
100
|
variant: "h4",
|
|
83
101
|
class: "title"
|
|
84
|
-
},
|
|
85
|
-
default:
|
|
86
|
-
|
|
87
|
-
|
|
102
|
+
}, e(d)[e(i).TITLE]), {
|
|
103
|
+
default: y(() => [
|
|
104
|
+
e(k) === h.loading ? (s(), g("div", X, [
|
|
105
|
+
U(J, { "stroke-width": 1 })
|
|
106
|
+
])) : (s(), l(e(F), c({
|
|
107
|
+
key: 1,
|
|
108
|
+
name: e(k).iconName,
|
|
88
109
|
type: "fill",
|
|
89
110
|
size: "20px",
|
|
90
|
-
class: [
|
|
91
|
-
},
|
|
92
|
-
|
|
111
|
+
class: [e(k).class, "icon-container"]
|
|
112
|
+
}, e(d)[e(i).ICON]), null, 16, ["name", "class"])),
|
|
113
|
+
b(" " + B(t.title), 1)
|
|
93
114
|
]),
|
|
94
115
|
_: 1
|
|
95
116
|
}, 16)) : u("", !0),
|
|
96
|
-
I(
|
|
97
|
-
|
|
98
|
-
|
|
117
|
+
I(r("div", Y, [
|
|
118
|
+
N(a.$slots, "default", {}, () => [
|
|
119
|
+
t.dangerouslyUseHTMLString ? u("", !0) : (s(), l(e(p), c({
|
|
99
120
|
key: 0,
|
|
100
121
|
variant: "body2"
|
|
101
|
-
},
|
|
102
|
-
default:
|
|
103
|
-
|
|
122
|
+
}, e(d)[e(i).MESSAGE]), {
|
|
123
|
+
default: y(() => [
|
|
124
|
+
b(B(t.message), 1)
|
|
104
125
|
]),
|
|
105
126
|
_: 1
|
|
106
127
|
}, 16))
|
|
107
128
|
], !0)
|
|
108
129
|
], 512), [
|
|
109
|
-
[
|
|
130
|
+
[S, t.message]
|
|
110
131
|
]),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
(
|
|
115
|
-
key:
|
|
116
|
-
"data-testid":
|
|
132
|
+
r("div", Z, [
|
|
133
|
+
N(a.$slots, "actions", {}, () => [
|
|
134
|
+
t.actionButtons ? (s(), g("div", _, [
|
|
135
|
+
(s(!0), g(D, null, H(t.actionButtons, (n, T) => (s(), l(e(G), c({
|
|
136
|
+
key: T,
|
|
137
|
+
"data-testid": t.testId ? `${t.testId}-${e(i).ACTION_BUTTON}-${T}` : "",
|
|
117
138
|
size: "small"
|
|
118
|
-
}, { ...
|
|
139
|
+
}, { ...n, onClick: M(n) }), null, 16, ["data-testid"]))), 128))
|
|
119
140
|
])) : u("", !0)
|
|
120
141
|
], !0)
|
|
121
142
|
])
|
|
122
143
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
r("div", ee, [
|
|
145
|
+
t.showClose ? (s(), l(e(P), c({
|
|
125
146
|
key: 0,
|
|
126
147
|
"icon-name": "x",
|
|
127
148
|
size: "small"
|
|
128
|
-
},
|
|
129
|
-
onClick:
|
|
149
|
+
}, e(d)[e(i).CLOSE], {
|
|
150
|
+
onClick: q(e(f), ["stop"])
|
|
130
151
|
}), null, 16, ["onClick"])) : u("", !0)
|
|
131
152
|
])
|
|
132
153
|
])
|
|
133
|
-
], 16,
|
|
134
|
-
[
|
|
154
|
+
], 16, K), [
|
|
155
|
+
[S, e(L)]
|
|
135
156
|
])
|
|
136
157
|
]),
|
|
137
158
|
_: 3
|
|
@@ -139,5 +160,5 @@ const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { clas
|
|
|
139
160
|
}
|
|
140
161
|
});
|
|
141
162
|
export {
|
|
142
|
-
|
|
163
|
+
fe as default
|
|
143
164
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_3673e156_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3673e156"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DataGrid.
|
|
1
|
+
import "../../../DataGrid.vue_vue_type_style_index_0_scoped_3673e156_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 y, createBlock as I, isRef as pe, createSlots as ve, withCtx as g, renderSlot as r, createCommentVNode as c, Fragment as x, renderList as C, createVNode as k, createTextVNode as P, toDisplayString as O, mergeProps as L } from "vue";
|
|
2
2
|
import V 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";
|
|
@@ -71,14 +71,14 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
71
71
|
},
|
|
72
72
|
emits: ["update:sort", "update:search", "update:selection", "onScroll", "onClearSearch", "saveRow", "loadMore", "selectAll", "selectRow", "clickRow"],
|
|
73
73
|
setup(l, { expose: m, emit: f }) {
|
|
74
|
-
const
|
|
75
|
-
me((
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
74
|
+
const s = l;
|
|
75
|
+
me((a) => ({
|
|
76
|
+
fa71c02a: l.zIndexBase,
|
|
77
|
+
"0a21f61f": t(le),
|
|
78
|
+
"5d6e0550": t(G),
|
|
79
|
+
"43e43a46": t(fe)
|
|
80
80
|
}));
|
|
81
|
-
const p = be(), q = (
|
|
81
|
+
const p = be(), q = (a) => s.rowCustomClassKey && s.rows[a] ? s.rows[a][s.rowCustomClassKey] : "", {
|
|
82
82
|
list: $,
|
|
83
83
|
containerProps: z,
|
|
84
84
|
wrapperProps: J,
|
|
@@ -95,56 +95,56 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
95
95
|
cssExpandGridCol: le,
|
|
96
96
|
isRowExpanded: M,
|
|
97
97
|
hasCheckboxes: D,
|
|
98
|
-
activeMenuRow:
|
|
99
|
-
scrollTo:
|
|
100
|
-
} = Te(
|
|
101
|
-
() =>
|
|
98
|
+
activeMenuRow: ae,
|
|
99
|
+
scrollTo: se
|
|
100
|
+
} = Te(s, f), W = u(() => !!p.footer), ie = u(
|
|
101
|
+
() => s.title || p.title || _.value || p["table-header-actions"] || p["table-header-pre-search"]
|
|
102
102
|
), v = u({
|
|
103
|
-
get: () =>
|
|
104
|
-
set: (
|
|
105
|
-
}), oe = u(() =>
|
|
106
|
-
const
|
|
107
|
-
return !!
|
|
108
|
-
}), E = (
|
|
109
|
-
E(
|
|
110
|
-
|
|
111
|
-
(o) => !
|
|
103
|
+
get: () => s.search,
|
|
104
|
+
set: (a) => f("update:search", a)
|
|
105
|
+
}), oe = u(() => s.selection.length || 0), F = u(() => {
|
|
106
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e));
|
|
107
|
+
return !!a.length && a.every((o) => E(o));
|
|
108
|
+
}), E = (a) => s.selection.findIndex((o) => s.selectedMatcher(a, o)) !== -1, de = (a) => {
|
|
109
|
+
E(a) ? (B(
|
|
110
|
+
s.selection.filter(
|
|
111
|
+
(o) => !s.selectedMatcher(a, o)
|
|
112
112
|
)
|
|
113
|
-
), f("selectRow", !1)) : (B([...
|
|
113
|
+
), f("selectRow", !1)) : (B([...s.selection, a]), f("selectRow", !0));
|
|
114
114
|
}, ne = () => {
|
|
115
115
|
if (F.value)
|
|
116
116
|
B([]), f("selectAll", !1);
|
|
117
117
|
else {
|
|
118
|
-
const
|
|
119
|
-
B([...
|
|
118
|
+
const a = s.rows.map((o, e) => s.getRowId(o, e)).filter((o) => !E(o));
|
|
119
|
+
B([...s.selection, ...a]), f("selectAll", !0);
|
|
120
120
|
}
|
|
121
|
-
}, B = (
|
|
122
|
-
f("update:selection",
|
|
123
|
-
}, re = (
|
|
124
|
-
() =>
|
|
121
|
+
}, B = (a) => {
|
|
122
|
+
f("update:selection", a);
|
|
123
|
+
}, re = (a) => !s.isLoading && T.value === a, ce = u(
|
|
124
|
+
() => s.emptyStateVariant ?? (v.value ? "no-results" : "no-data")
|
|
125
125
|
), ue = u(
|
|
126
|
-
() =>
|
|
126
|
+
() => s.emptyStateSubtitle ? s.emptyStateSubtitle : v.value ? "Search again with different filters" : void 0
|
|
127
127
|
), N = u(() => ({
|
|
128
128
|
class: {
|
|
129
|
-
sticky:
|
|
130
|
-
bordered:
|
|
129
|
+
sticky: s.isSelectionSticky,
|
|
130
|
+
bordered: s.isSelectionBordered
|
|
131
131
|
},
|
|
132
|
-
style:
|
|
133
|
-
})), he = (
|
|
134
|
-
sticky:
|
|
135
|
-
isStickyRight:
|
|
136
|
-
bordered:
|
|
137
|
-
isTextRight:
|
|
132
|
+
style: s.isSelectionSticky ? H.value[Ae] : null
|
|
133
|
+
})), he = (a) => ({
|
|
134
|
+
sticky: a.isSticky,
|
|
135
|
+
isStickyRight: a.isStickyRight,
|
|
136
|
+
bordered: a.isBordered,
|
|
137
|
+
isTextRight: a.isTextRight
|
|
138
138
|
}), Y = u(
|
|
139
|
-
() =>
|
|
140
|
-
), ye = (
|
|
141
|
-
minHeight: (typeof
|
|
142
|
-
}), A = u(() => $.value.reduce((
|
|
139
|
+
() => s.columns.map((a) => he(a))
|
|
140
|
+
), ye = (a) => ({
|
|
141
|
+
minHeight: (typeof s.rowHeight == "function" ? s.rowHeight(a) : s.rowHeight) + "px"
|
|
142
|
+
}), A = u(() => $.value.reduce((a, o) => (a[o.index] = ye(o.index), a), {})), 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: se
|
|
147
|
+
}), (a, o) => (i(), d("div", {
|
|
148
148
|
class: "table-container",
|
|
149
149
|
"data-testid": `${l.testId}-${t(R).CONTAINER}`,
|
|
150
150
|
onMouseleave: o[3] || (o[3] = (e) => T.value = null)
|
|
@@ -173,24 +173,24 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
173
173
|
onOnClearSearch: o[1] || (o[1] = (e) => f("onClearSearch"))
|
|
174
174
|
}, ve({
|
|
175
175
|
title: g(() => [
|
|
176
|
-
r(
|
|
176
|
+
r(a.$slots, "title")
|
|
177
177
|
]),
|
|
178
178
|
search: g(() => [
|
|
179
|
-
r(
|
|
179
|
+
r(a.$slots, "search")
|
|
180
180
|
]),
|
|
181
181
|
_: 2
|
|
182
182
|
}, [
|
|
183
183
|
t(p)["table-header-pre-search"] ? {
|
|
184
184
|
name: "table-header-pre-search",
|
|
185
185
|
fn: g(() => [
|
|
186
|
-
r(
|
|
186
|
+
r(a.$slots, "table-header-pre-search")
|
|
187
187
|
]),
|
|
188
188
|
key: "0"
|
|
189
189
|
} : void 0,
|
|
190
190
|
t(p)["table-header-actions"] ? {
|
|
191
191
|
name: "table-header-actions",
|
|
192
192
|
fn: g(() => [
|
|
193
|
-
r(
|
|
193
|
+
r(a.$slots, "table-header-actions")
|
|
194
194
|
]),
|
|
195
195
|
key: "1"
|
|
196
196
|
} : void 0
|
|
@@ -206,7 +206,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
206
206
|
key: e.id,
|
|
207
207
|
class: y(["section-container", { sticky: e.isSticky }])
|
|
208
208
|
}, [
|
|
209
|
-
r(
|
|
209
|
+
r(a.$slots, `section-${e.id}`, {}, () => [
|
|
210
210
|
b("div", {
|
|
211
211
|
style: S({ width: e.width + "px" }),
|
|
212
212
|
class: y({ section: !0 })
|
|
@@ -228,7 +228,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
228
228
|
key: 0,
|
|
229
229
|
class: "checkbox-cell"
|
|
230
230
|
}, t(N)), [
|
|
231
|
-
r(
|
|
231
|
+
r(a.$slots, "select-all-checkbox", {}, () => [
|
|
232
232
|
k(t(Q), {
|
|
233
233
|
disabled: l.isLoading,
|
|
234
234
|
"is-checked": t(F),
|
|
@@ -249,7 +249,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
249
249
|
onClick: (n) => e.isSortable ? t(Z)(e) : null
|
|
250
250
|
}, [
|
|
251
251
|
b("div", Fe, [
|
|
252
|
-
r(
|
|
252
|
+
r(a.$slots, `header-${e.id}`, { column: e }, () => [
|
|
253
253
|
k(t(Re), {
|
|
254
254
|
text: e.helpText,
|
|
255
255
|
disabled: !e.helpText || l.helpTooltipVariant === "icon",
|
|
@@ -278,7 +278,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
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"])) : c("", !0),
|
|
281
|
-
r(
|
|
281
|
+
r(a.$slots, `after-header-${e.id}`, { column: e }),
|
|
282
282
|
e.isSortable && e.id === l.sort?.sortBy ? (i(), I(He, {
|
|
283
283
|
key: 1,
|
|
284
284
|
"sort-order": l.sort.sortOrder
|
|
@@ -299,7 +299,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
299
299
|
}),
|
|
300
300
|
style: S(e.isSticky ? t(H)[e.id] : null)
|
|
301
301
|
}, [
|
|
302
|
-
r(
|
|
302
|
+
r(a.$slots, `total-${e.id}`, { column: e }, () => [
|
|
303
303
|
h === 0 ? (i(), I(t(V), {
|
|
304
304
|
key: 0,
|
|
305
305
|
variant: "h6"
|
|
@@ -324,7 +324,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
324
324
|
class: y(["table-row", {
|
|
325
325
|
loading: l.isLoading || l.isLoading && !e.data || t(U).includes(e.index),
|
|
326
326
|
active: t(T) === e.index,
|
|
327
|
-
activeMenu: t(
|
|
327
|
+
activeMenu: t(ae) === e.index,
|
|
328
328
|
expanded: t(w) && t(M)(e.index),
|
|
329
329
|
[q(e.index)]: !0
|
|
330
330
|
}]),
|
|
@@ -371,7 +371,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
371
371
|
key: 0,
|
|
372
372
|
class: y(["table-cell", { last: n === e.data.length - 1 }])
|
|
373
373
|
}, [
|
|
374
|
-
r(
|
|
374
|
+
r(a.$slots, `cell-${l.columns[n].id}`, {
|
|
375
375
|
cell: e.data[n],
|
|
376
376
|
isLoading: t(U).includes(e.index),
|
|
377
377
|
cellIndex: n,
|
|
@@ -385,18 +385,18 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
385
385
|
_: 2
|
|
386
386
|
}, 1024)
|
|
387
387
|
])
|
|
388
|
-
], 2)) : r(
|
|
388
|
+
], 2)) : r(a.$slots, "loader", { key: 1 }, () => [
|
|
389
389
|
k(t(xe), { round: "" })
|
|
390
390
|
])
|
|
391
391
|
], 6))), 128)),
|
|
392
392
|
t(w) && t(M)(e.index) ? (i(), d("div", Ge, [
|
|
393
|
-
r(
|
|
393
|
+
r(a.$slots, "expanded", {
|
|
394
394
|
row: e,
|
|
395
395
|
gridColumnTemplate: t(G)
|
|
396
396
|
})
|
|
397
397
|
])) : c("", !0),
|
|
398
398
|
re(e.index) ? (i(), d("div", Ke, [
|
|
399
|
-
r(
|
|
399
|
+
r(a.$slots, "floating-row", {
|
|
400
400
|
row: e,
|
|
401
401
|
rowIndex: e.index
|
|
402
402
|
})
|
|
@@ -408,7 +408,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
408
408
|
l.useAvailableHeight ? { height: `${t(ge)}px` } : {}
|
|
409
409
|
)
|
|
410
410
|
}, [
|
|
411
|
-
r(
|
|
411
|
+
r(a.$slots, "empty-state", {}, () => [
|
|
412
412
|
k(t(Ce), {
|
|
413
413
|
class: "empty-state",
|
|
414
414
|
title: l.emptyStateTitle,
|
|
@@ -422,7 +422,7 @@ const Pe = ["data-testid"], Le = ["data-testid"], Ve = ["data-testid"], Me = {
|
|
|
422
422
|
])
|
|
423
423
|
], 46, Le),
|
|
424
424
|
t(W) ? (i(), d("div", Ue, [
|
|
425
|
-
r(
|
|
425
|
+
r(a.$slots, "footer")
|
|
426
426
|
])) : c("", !0)
|
|
427
427
|
], 40, Pe));
|
|
428
428
|
}
|
|
@@ -24,9 +24,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
validateFunction: () => false;
|
|
25
25
|
}>>>, {
|
|
26
26
|
cell: string;
|
|
27
|
+
isLoading: boolean;
|
|
27
28
|
isEditing: boolean;
|
|
28
29
|
validateFunction: (value: unknown) => string | boolean;
|
|
29
|
-
isLoading: boolean;
|
|
30
30
|
}>, {
|
|
31
31
|
input?(_: {}): any;
|
|
32
32
|
content?(_: {}): any;
|