@ironsource/shared-ui 2.1.11-test.26 → 2.1.11-test.41
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_604dfc6f_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_c65df8d7_lang.css +1 -0
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +11 -3
- package/components/chart/Chart.vue.js +2 -2
- package/components/chart/Chart.vue2.js +108 -96
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/index.d.ts +36 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/dialog/v4/DialogV4.vue.d.ts +10 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +64 -60
- package/components/dialog/v4/index.d.ts +39 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +5 -5
- package/index.d.ts +136 -3
- package/index.js +1 -1
- package/package.json +1 -1
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
|
@@ -8,6 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
9
9
|
hideEndIcon?: boolean;
|
|
10
10
|
testId?: string;
|
|
11
|
+
maxWidth?: number;
|
|
12
|
+
withTooltip?: boolean;
|
|
13
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
11
14
|
}>, {
|
|
12
15
|
variant: string;
|
|
13
16
|
size: string;
|
|
@@ -17,6 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
20
|
startIconType: string;
|
|
18
21
|
hideEndIcon: boolean;
|
|
19
22
|
testId: string;
|
|
23
|
+
maxWidth: number;
|
|
24
|
+
withTooltip: boolean;
|
|
25
|
+
tooltipPlacement: string;
|
|
20
26
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
27
|
click: () => void;
|
|
22
28
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -29,6 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
35
|
startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
30
36
|
hideEndIcon?: boolean;
|
|
31
37
|
testId?: string;
|
|
38
|
+
maxWidth?: number;
|
|
39
|
+
withTooltip?: boolean;
|
|
40
|
+
tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
32
41
|
}>, {
|
|
33
42
|
variant: string;
|
|
34
43
|
size: string;
|
|
@@ -38,13 +47,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
47
|
startIconType: string;
|
|
39
48
|
hideEndIcon: boolean;
|
|
40
49
|
testId: string;
|
|
50
|
+
maxWidth: number;
|
|
51
|
+
withTooltip: boolean;
|
|
52
|
+
tooltipPlacement: string;
|
|
41
53
|
}>>> & {
|
|
42
54
|
onClick?: () => any;
|
|
43
55
|
}, {
|
|
44
56
|
testId: string;
|
|
45
57
|
variant: "text" | "outlined";
|
|
58
|
+
withTooltip: boolean;
|
|
59
|
+
tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
|
|
46
60
|
disabled: boolean;
|
|
47
61
|
size: "small" | "medium";
|
|
62
|
+
maxWidth: number;
|
|
48
63
|
open: boolean;
|
|
49
64
|
startIconName: string;
|
|
50
65
|
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ButtonDropdownTrigger.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../ButtonDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604dfc6f"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "../../../ButtonDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; import { defineComponent as c, openBlock as s, createBlock as u, unref as o, normalizeClass as m, withCtx as n, renderSlot as f, createElementVNode as p, normalizeStyle as y, createVNode as h, createTextVNode as b, toDisplayString as x } from "vue";
|
|
2
|
+
import T from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
5
5
|
import "../../button/v4/ToggleButtonGroupAB.vue.js";
|
|
6
|
-
|
|
6
|
+
import B from "../../typography/v4/Typography.vue.js";
|
|
7
|
+
const W = /* @__PURE__ */ c({
|
|
7
8
|
__name: "ButtonDropdownTrigger",
|
|
8
9
|
props: {
|
|
9
10
|
label: null,
|
|
@@ -14,26 +15,47 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
|
|
|
14
15
|
startIconName: { default: null },
|
|
15
16
|
startIconType: { default: "regular" },
|
|
16
17
|
hideEndIcon: { type: Boolean, default: !1 },
|
|
17
|
-
testId: { default: "" }
|
|
18
|
+
testId: { default: "" },
|
|
19
|
+
maxWidth: { default: 0 },
|
|
20
|
+
withTooltip: { type: Boolean, default: !0 },
|
|
21
|
+
tooltipPlacement: { default: "top" }
|
|
18
22
|
},
|
|
19
23
|
emits: ["click"],
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
setup(t, { emit: i }) {
|
|
25
|
+
const e = t, a = 40, d = e.maxWidth > a ? { maxWidth: `${e.maxWidth - a}px` } : {};
|
|
26
|
+
return (r, l) => (s(), u(o(T), {
|
|
27
|
+
class: m(["button-trigger", { open: t.open }]),
|
|
28
|
+
disabled: t.disabled,
|
|
24
29
|
color: "default",
|
|
25
|
-
variant:
|
|
26
|
-
size:
|
|
27
|
-
"start-icon-name":
|
|
28
|
-
"start-icon-type":
|
|
29
|
-
"end-icon-name":
|
|
30
|
-
content:
|
|
31
|
-
"test-id":
|
|
32
|
-
onClick:
|
|
30
|
+
variant: t.variant,
|
|
31
|
+
size: t.size,
|
|
32
|
+
"start-icon-name": t.startIconName,
|
|
33
|
+
"start-icon-type": t.startIconType,
|
|
34
|
+
"end-icon-name": t.hideEndIcon ? null : "caret-down",
|
|
35
|
+
content: t.label,
|
|
36
|
+
"test-id": t.testId,
|
|
37
|
+
onClick: l[0] || (l[0] = (g) => i("click"))
|
|
33
38
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
default: n(() => [
|
|
40
|
+
f(r.$slots, "default", {}, () => [
|
|
41
|
+
p("div", {
|
|
42
|
+
style: y(o(d)),
|
|
43
|
+
class: "label-wrapper"
|
|
44
|
+
}, [
|
|
45
|
+
h(B, {
|
|
46
|
+
variant: "button",
|
|
47
|
+
class: "label-text",
|
|
48
|
+
"is-truncated": "",
|
|
49
|
+
"with-tooltip": t.withTooltip,
|
|
50
|
+
"tooltip-text": t.label,
|
|
51
|
+
"tooltip-placement": t.tooltipPlacement
|
|
52
|
+
}, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
b(x(t.label), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["with-tooltip", "tooltip-text", "tooltip-placement"])
|
|
58
|
+
], 4)
|
|
37
59
|
], !0)
|
|
38
60
|
]),
|
|
39
61
|
_: 3
|
|
@@ -41,5 +63,5 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
|
|
|
41
63
|
}
|
|
42
64
|
});
|
|
43
65
|
export {
|
|
44
|
-
|
|
66
|
+
W as default
|
|
45
67
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { Button } from '@/components/button/v4';
|
|
3
|
+
type ButtonProps = InstanceType<typeof Button>['$props'] & {
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
closeOnClick?: boolean;
|
|
6
|
+
};
|
|
2
7
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
8
|
customClass: string;
|
|
4
9
|
dangerouslyUseHTMLString: boolean;
|
|
@@ -15,64 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
20
|
showClose?: boolean;
|
|
16
21
|
title?: string;
|
|
17
22
|
zIndex?: number;
|
|
18
|
-
actionButtons:
|
|
19
|
-
testId: string;
|
|
20
|
-
variant: "text" | "contained" | "outlined";
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
23
|
-
size: "small" | "medium" | "large" | "extraLarge";
|
|
24
|
-
content: string;
|
|
25
|
-
loading: boolean;
|
|
26
|
-
startIconName: string;
|
|
27
|
-
endIconName: string;
|
|
28
|
-
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
29
|
-
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
30
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
-
testId: {
|
|
32
|
-
type: import("vue").PropType<string>;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
variant: {
|
|
36
|
-
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
|
-
disabled: {
|
|
40
|
-
type: import("vue").PropType<boolean>;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
color: {
|
|
44
|
-
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
content: {
|
|
52
|
-
type: import("vue").PropType<string>;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
loading: {
|
|
56
|
-
type: import("vue").PropType<boolean>;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
startIconName: {
|
|
60
|
-
type: import("vue").PropType<string>;
|
|
61
|
-
default: any;
|
|
62
|
-
};
|
|
63
|
-
endIconName: {
|
|
64
|
-
type: import("vue").PropType<string>;
|
|
65
|
-
default: any;
|
|
66
|
-
};
|
|
67
|
-
startIconType: {
|
|
68
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
endIconType: {
|
|
72
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "disabled" | "color" | "size" | "content" | "loading" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
23
|
+
actionButtons: ButtonProps[];
|
|
76
24
|
testId: string;
|
|
77
25
|
}>, {
|
|
78
26
|
type: string;
|
|
@@ -100,64 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
48
|
showClose?: boolean;
|
|
101
49
|
title?: string;
|
|
102
50
|
zIndex?: number;
|
|
103
|
-
actionButtons:
|
|
104
|
-
testId: string;
|
|
105
|
-
variant: "text" | "contained" | "outlined";
|
|
106
|
-
disabled: boolean;
|
|
107
|
-
color: "default" | "primary" | "danger" | "info" | "success" | "warning";
|
|
108
|
-
size: "small" | "medium" | "large" | "extraLarge";
|
|
109
|
-
content: string;
|
|
110
|
-
loading: boolean;
|
|
111
|
-
startIconName: string;
|
|
112
|
-
endIconName: string;
|
|
113
|
-
startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
114
|
-
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
115
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
116
|
-
testId: {
|
|
117
|
-
type: import("vue").PropType<string>;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
variant: {
|
|
121
|
-
type: import("vue").PropType<"text" | "contained" | "outlined">;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
disabled: {
|
|
125
|
-
type: import("vue").PropType<boolean>;
|
|
126
|
-
default: boolean;
|
|
127
|
-
};
|
|
128
|
-
color: {
|
|
129
|
-
type: import("vue").PropType<"default" | "primary" | "danger" | "info" | "success" | "warning">;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
size: {
|
|
133
|
-
type: import("vue").PropType<"small" | "medium" | "large" | "extraLarge">;
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
content: {
|
|
137
|
-
type: import("vue").PropType<string>;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
loading: {
|
|
141
|
-
type: import("vue").PropType<boolean>;
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
startIconName: {
|
|
145
|
-
type: import("vue").PropType<string>;
|
|
146
|
-
default: any;
|
|
147
|
-
};
|
|
148
|
-
endIconName: {
|
|
149
|
-
type: import("vue").PropType<string>;
|
|
150
|
-
default: any;
|
|
151
|
-
};
|
|
152
|
-
startIconType: {
|
|
153
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
154
|
-
default: string;
|
|
155
|
-
};
|
|
156
|
-
endIconType: {
|
|
157
|
-
type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "disabled" | "color" | "size" | "content" | "loading" | "startIconName" | "endIconName" | "startIconType" | "endIconType">)[];
|
|
51
|
+
actionButtons: ButtonProps[];
|
|
161
52
|
testId: string;
|
|
162
53
|
}>, {
|
|
163
54
|
type: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../SnackbarV4.
|
|
4
|
-
const
|
|
1
|
+
import o from "./SnackbarV4.vue2.js";
|
|
2
|
+
/* empty css */import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css"; //*');
|
|
4
|
+
const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-89fe8aa1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "../../../SnackbarV4.
|
|
2
|
-
import
|
|
1
|
+
import "../../../SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css"; import { defineComponent as $, computed as A, openBlock as n, createBlock as d, Transition as O, withCtx as f, withDirectives as I, createElementVNode as a, mergeProps as l, unref as t, createVNode as z, createTextVNode as T, toDisplayString as h, createCommentVNode as u, renderSlot as B, vShow as N, createElementBlock as S, Fragment as V, renderList as x, withModifiers as U } from "vue";
|
|
2
|
+
import D from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import "../../icon/v4/IconFlag.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import H from "../../button/v4/ButtonV4.vue.js";
|
|
5
|
+
import F 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 b from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import { snackbarCommon as G } from "../common/snackbar.common.js";
|
|
10
|
+
import { useTestIdAttrs as P } from "../../../utils/testIds.js";
|
|
11
11
|
import { SnackbarTestIdModifiers as i } from "../../../testids/index.js";
|
|
12
|
-
const
|
|
12
|
+
const R = ["id"], j = { class: "container" }, q = { class: "texts" }, J = { class: "message" }, K = { class: "action-wrapper" }, Q = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "actions"
|
|
15
|
-
},
|
|
15
|
+
}, W = { class: "close-button-wrapper" }, lt = /* @__PURE__ */ $({
|
|
16
16
|
__name: "SnackbarV4",
|
|
17
17
|
props: {
|
|
18
18
|
customClass: null,
|
|
@@ -32,15 +32,15 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
32
32
|
testId: { default: "" }
|
|
33
33
|
},
|
|
34
34
|
emits: ["destroy"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
visible:
|
|
38
|
-
horizontalClass:
|
|
39
|
-
positionStyle:
|
|
35
|
+
setup(e) {
|
|
36
|
+
const m = e, {
|
|
37
|
+
visible: p,
|
|
38
|
+
horizontalClass: w,
|
|
39
|
+
positionStyle: L,
|
|
40
40
|
clearTimer: k,
|
|
41
41
|
startTimer: C,
|
|
42
|
-
close:
|
|
43
|
-
} =
|
|
42
|
+
close: y
|
|
43
|
+
} = G(m), E = {
|
|
44
44
|
info: {
|
|
45
45
|
iconName: "info",
|
|
46
46
|
class: "snackbar-icon-info"
|
|
@@ -53,83 +53,85 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
53
53
|
iconName: "check-circle",
|
|
54
54
|
class: "snackbar-icon-success"
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
56
|
+
}, v = A(() => E[m.type]), r = P(m.testId, i), M = ({ closeOnClick: c, onClick: o }) => () => {
|
|
57
|
+
c && y(), o && o();
|
|
58
|
+
};
|
|
59
|
+
return (c, o) => (n(), d(O, {
|
|
58
60
|
name: "snackbar",
|
|
59
|
-
onBeforeLeave:
|
|
60
|
-
onAfterLeave: o[3] || (o[3] = (s) =>
|
|
61
|
+
onBeforeLeave: e.onClose,
|
|
62
|
+
onAfterLeave: o[3] || (o[3] = (s) => c.$emit("destroy"))
|
|
61
63
|
}, {
|
|
62
64
|
default: f(() => [
|
|
63
|
-
|
|
64
|
-
id:
|
|
65
|
-
class: ["snackbar light-theme-v4", [
|
|
66
|
-
style:
|
|
65
|
+
I(a("div", l({
|
|
66
|
+
id: e.id,
|
|
67
|
+
class: ["snackbar light-theme-v4", [e.customClass, t(w)]],
|
|
68
|
+
style: t(L),
|
|
67
69
|
role: "alert"
|
|
68
|
-
},
|
|
70
|
+
}, t(r)[t(i).CONTAINER], {
|
|
69
71
|
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
70
|
-
(...s) =>
|
|
72
|
+
(...s) => t(k) && t(k)(...s)),
|
|
71
73
|
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
72
|
-
(...s) =>
|
|
74
|
+
(...s) => t(C) && t(C)(...s)),
|
|
73
75
|
onClick: o[2] || (o[2] = //@ts-ignore
|
|
74
|
-
(...s) =>
|
|
76
|
+
(...s) => e.onClick && e.onClick(...s))
|
|
75
77
|
}), [
|
|
76
|
-
a("div",
|
|
77
|
-
a("div",
|
|
78
|
-
|
|
78
|
+
a("div", j, [
|
|
79
|
+
a("div", q, [
|
|
80
|
+
e.title ? (n(), d(t(b), l({
|
|
79
81
|
key: 0,
|
|
80
82
|
variant: "h4",
|
|
81
83
|
class: "title"
|
|
82
|
-
},
|
|
84
|
+
}, t(r)[t(i).TITLE]), {
|
|
83
85
|
default: f(() => [
|
|
84
|
-
z(
|
|
85
|
-
name:
|
|
86
|
+
z(t(D), l({
|
|
87
|
+
name: t(v).iconName,
|
|
86
88
|
type: "fill",
|
|
87
89
|
size: "20px",
|
|
88
|
-
class: [
|
|
89
|
-
},
|
|
90
|
-
|
|
90
|
+
class: [t(v).class, "icon-container"]
|
|
91
|
+
}, t(r)[t(i).ICON]), null, 16, ["name", "class"]),
|
|
92
|
+
T(" " + h(e.title), 1)
|
|
91
93
|
]),
|
|
92
94
|
_: 1
|
|
93
|
-
}, 16)) :
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
}, 16)) : u("", !0),
|
|
96
|
+
I(a("div", J, [
|
|
97
|
+
B(c.$slots, "default", {}, () => [
|
|
98
|
+
e.dangerouslyUseHTMLString ? u("", !0) : (n(), d(t(b), l({
|
|
97
99
|
key: 0,
|
|
98
100
|
variant: "body2"
|
|
99
|
-
},
|
|
101
|
+
}, t(r)[t(i).MESSAGE]), {
|
|
100
102
|
default: f(() => [
|
|
101
|
-
|
|
103
|
+
T(h(e.message), 1)
|
|
102
104
|
]),
|
|
103
105
|
_: 1
|
|
104
106
|
}, 16))
|
|
105
107
|
], !0)
|
|
106
108
|
], 512), [
|
|
107
|
-
[
|
|
109
|
+
[N, e.message]
|
|
108
110
|
]),
|
|
109
|
-
a("div",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
(n(!0),
|
|
113
|
-
key:
|
|
114
|
-
"data-testid":
|
|
111
|
+
a("div", K, [
|
|
112
|
+
B(c.$slots, "actions", {}, () => [
|
|
113
|
+
e.actionButtons ? (n(), S("div", Q, [
|
|
114
|
+
(n(!0), S(V, null, x(e.actionButtons, (s, g) => (n(), d(t(H), l({
|
|
115
|
+
key: g,
|
|
116
|
+
"data-testid": e.testId ? `${e.testId}-${t(i).ACTION_BUTTON}-${g}` : "",
|
|
115
117
|
size: "small"
|
|
116
|
-
}, { ...s }), null, 16, ["data-testid"]))), 128))
|
|
117
|
-
])) :
|
|
118
|
+
}, { ...s, onClick: M(s) }), null, 16, ["data-testid"]))), 128))
|
|
119
|
+
])) : u("", !0)
|
|
118
120
|
], !0)
|
|
119
121
|
])
|
|
120
122
|
]),
|
|
121
|
-
a("div",
|
|
122
|
-
|
|
123
|
+
a("div", W, [
|
|
124
|
+
e.showClose ? (n(), d(t(F), l({
|
|
123
125
|
key: 0,
|
|
124
126
|
"icon-name": "x",
|
|
125
127
|
size: "small"
|
|
126
|
-
},
|
|
127
|
-
onClick:
|
|
128
|
-
}), null, 16, ["onClick"])) :
|
|
128
|
+
}, t(r)[t(i).CLOSE], {
|
|
129
|
+
onClick: U(t(y), ["stop"])
|
|
130
|
+
}), null, 16, ["onClick"])) : u("", !0)
|
|
129
131
|
])
|
|
130
132
|
])
|
|
131
|
-
], 16,
|
|
132
|
-
[
|
|
133
|
+
], 16, R), [
|
|
134
|
+
[N, t(p)]
|
|
133
135
|
])
|
|
134
136
|
]),
|
|
135
137
|
_: 3
|
|
@@ -137,5 +139,5 @@ const P = ["id"], R = { class: "container" }, j = { class: "texts" }, q = { clas
|
|
|
137
139
|
}
|
|
138
140
|
});
|
|
139
141
|
export {
|
|
140
|
-
|
|
142
|
+
lt as default
|
|
141
143
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DataGrid.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../DataGrid.
|
|
4
|
-
const a = /* @__PURE__ */
|
|
2
|
+
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../DataGrid.vue_vue_type_style_index_0_scoped_2406226b_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2406226b"]]);
|
|
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_2406226b_lang.css"; import { defineComponent as de, useCssVars as oe, unref as t, useSlots as ne, computed as v, openBlock as a, createElementBlock as d, createElementVNode as h, normalizeStyle as T, normalizeClass as u, renderSlot as c, createVNode as y, withCtx as w, createTextVNode as E, toDisplayString as B, isRef as ce, createCommentVNode as r, Fragment as I, renderList as A, createBlock as K, mergeProps as re } from "vue";
|
|
2
2
|
import V from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import ue from "../../skeleton/v4/SkeletonV4.vue.js";
|
|
4
4
|
import he from "../../emptyState/v4/EmptyStateV4.vue.js";
|
|
@@ -62,10 +62,10 @@ const ve = ["data-testid"], be = ["data-testid"], $e = ["data-testid"], Re = ["d
|
|
|
62
62
|
setup(s, { expose: k, emit: f }) {
|
|
63
63
|
const i = s;
|
|
64
64
|
oe((l) => ({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
65
|
+
e46a2c5a: s.zIndexBase,
|
|
66
|
+
"3c10b207": t(X),
|
|
67
|
+
"42785f40": t(H),
|
|
68
|
+
"403d20c8": t(J)
|
|
69
69
|
}));
|
|
70
70
|
const b = ne(), U = (l) => i.rowCustomClassKey && i.rows[l] ? i.rows[l][i.rowCustomClassKey] : "", {
|
|
71
71
|
list: P,
|