@ironsource/shared-ui 2.1.6-rc.2 → 2.1.6-rc.21
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/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +1 -0
- package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +1 -0
- package/Autocomplete.vue_vue_type_style_index_0_scoped_a7bfd237_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +1 -0
- package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +1 -0
- package/{FormCard.vue_vue_type_style_index_0_scoped_ef8b4e81_lang.css → FormCard.vue_vue_type_style_index_0_scoped_52ade67c_lang.css} +1 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +1 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +6 -2
- package/components/appHeader/AppHeader.vue.js +2 -2
- package/components/appHeader/AppHeader.vue2.js +30 -28
- package/components/appHeader/index.d.ts +6 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +5 -0
- package/components/autocomplete/Autocomplete.vue.js +3 -3
- package/components/autocomplete/Autocomplete.vue2.js +82 -61
- package/components/autocomplete/index.d.ts +20 -1
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +67 -62
- package/components/dropdown/common/Dropdown.common.js +21 -21
- package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
- package/components/dropdown/v3/Dropdown.vue.js +4 -4
- package/components/dropdown/v3/Dropdown.vue2.js +32 -32
- package/components/dropdown/v3/index.d.ts +13 -1
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +2 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +16 -16
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +1 -1
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +40 -49
- package/components/dropdown/v4/DropdownV4.vue.d.ts +16 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +140 -128
- package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +61 -44
- package/components/dropdown/v4/index.d.ts +105 -4
- package/components/forms/FormCard.vue.js +2 -2
- package/components/forms/FormCard.vue2.js +9 -9
- package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
- package/components/inlineCopy/InlineCopy.vue.js +3 -3
- package/components/inlineCopy/InlineCopy.vue2.js +23 -22
- package/components/inlineCopy/index.d.ts +6 -2
- package/components/input/v4/TextField.vue.d.ts +5 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +24 -21
- package/components/input/v4/index.d.ts +20 -1
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +9 -9
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +147 -147
- package/components/table/v4/index.d.ts +14 -2
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
- package/components/tooltip/v4/index.d.ts +17 -5
- package/index.d.ts +336 -32
- package/package.json +1 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
- package/AppHeader.vue_vue_type_style_index_0_scoped_c148fc7a_lang.css +0 -1
- package/Autocomplete.vue_vue_type_style_index_0_scoped_d2d1dc1d_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_889042cf_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_c96fba2c_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_c3004ba3_lang.css +0 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_bf8e7ff5_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_72ab1f25_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_0336a92f_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_b5b2e8fd_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../ToggleV4.
|
|
1
|
+
import "../../../ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css"; import { defineComponent as k, computed as h, openBlock as i, createElementBlock as m, normalizeClass as f, createElementVNode as r, mergeProps as d, unref as t, createCommentVNode as l, renderSlot as g, createBlock as u, withCtx as v, createTextVNode as b, toDisplayString as y, createVNode as V } from "vue";
|
|
2
2
|
import E from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { ToggleTestIdModifiers as a } from "../../../testids/index.js";
|
|
4
4
|
import B from "../../shared/FieldHelpText.vue.js";
|
|
@@ -25,29 +25,29 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
25
25
|
emits: ["update:modelValue"],
|
|
26
26
|
setup(e, { emit: x }) {
|
|
27
27
|
const c = e, T = () => {
|
|
28
|
-
|
|
29
|
-
}, o = H(c.testId, a),
|
|
28
|
+
s.value || x("update:modelValue", !c.modelValue);
|
|
29
|
+
}, o = H(c.testId, a), s = h(() => c.isDisabled || c.isLoading);
|
|
30
30
|
return (n, $) => (i(), m("div", {
|
|
31
31
|
class: f(["toggle", [`toggle--color-${e.color}`, `toggle--size-${e.size}`]])
|
|
32
32
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
r("div", d({ class: "toggle-wrap" }, t(o)[t(a).WRAPPER]), [
|
|
34
|
+
r("div", d({
|
|
35
35
|
class: ["toggle-body", {
|
|
36
36
|
"toggle-active": e.modelValue,
|
|
37
|
-
"toggle-disabled": t(
|
|
37
|
+
"toggle-disabled": t(s)
|
|
38
38
|
}]
|
|
39
39
|
}, t(o)[t(a).BODY], { onClick: T }), [
|
|
40
|
-
|
|
40
|
+
r("div", L, [
|
|
41
41
|
e.isLoading ? (i(), m("span", {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: f(["loader", { "loader-active": e.modelValue }])
|
|
44
44
|
}, null, 2)) : l("", !0)
|
|
45
45
|
])
|
|
46
46
|
], 16),
|
|
47
|
-
|
|
47
|
+
r("input", d({
|
|
48
48
|
type: "checkbox",
|
|
49
49
|
class: "toggle-checkbox",
|
|
50
|
-
disabled: t(
|
|
50
|
+
disabled: t(s),
|
|
51
51
|
checked: e.modelValue
|
|
52
52
|
}, t(o)[t(a).FIELD]), null, 16, P),
|
|
53
53
|
n.$slots["icon-left"] ? g(n.$slots, "icon-left", { key: 0 }, void 0, !0) : l("", !0),
|
|
@@ -55,13 +55,13 @@ const L = { class: "toggle-head" }, P = ["disabled", "checked"], F = /* @__PURE_
|
|
|
55
55
|
key: 1,
|
|
56
56
|
variant: "body1",
|
|
57
57
|
"is-truncated": "",
|
|
58
|
-
class: "toggle-text"
|
|
58
|
+
class: ["toggle-text", { "toggle-disabled-text": t(s) }]
|
|
59
59
|
}, t(o)[t(a).TEXT]), {
|
|
60
60
|
default: v(() => [
|
|
61
|
-
y(
|
|
61
|
+
b(y(e.text ?? (e.modelValue ? e.activeText : e.inactiveText)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
|
-
}, 16)) : l("", !0),
|
|
64
|
+
}, 16, ["class"])) : l("", !0),
|
|
65
65
|
n.$slots["icon-right"] ? g(n.$slots, "icon-right", { key: 2 }, void 0, !0) : l("", !0),
|
|
66
66
|
e.hoverHelpText ? (i(), u(t(D), {
|
|
67
67
|
key: 3,
|
|
@@ -23,7 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
testId: string;
|
|
24
24
|
distance: string;
|
|
25
25
|
container: string;
|
|
26
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
show: () => void;
|
|
28
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
27
29
|
text?: string;
|
|
28
30
|
header?: string;
|
|
29
31
|
delay?: number;
|
|
@@ -47,7 +49,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
49
|
testId: string;
|
|
48
50
|
distance: string;
|
|
49
51
|
container: string;
|
|
50
|
-
}
|
|
52
|
+
}>>> & {
|
|
53
|
+
onShow?: () => any;
|
|
54
|
+
}, {
|
|
51
55
|
header: string;
|
|
52
56
|
text: string;
|
|
53
57
|
theme: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../TooltipV4.
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
5
|
+
const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fcdb9d02"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
2
|
-
import
|
|
3
|
-
import { Tooltip as
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as h, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as r, renderSlot as u, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
|
|
2
|
+
import g from "./TextWithTitleContent.vue.js";
|
|
3
|
+
import { Tooltip as x } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { tooltipCommon as
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
const
|
|
5
|
+
import v from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { tooltipCommon as b } from "../common/Tooltip.common.js";
|
|
7
|
+
import { useTestIdAttrs as w } from "../../../utils/testIds.js";
|
|
8
|
+
const I = {
|
|
9
9
|
ref: "container",
|
|
10
10
|
class: "container"
|
|
11
|
-
},
|
|
11
|
+
}, D = /* @__PURE__ */ h({
|
|
12
12
|
__name: "TooltipV4",
|
|
13
13
|
props: {
|
|
14
14
|
text: { default: null },
|
|
@@ -23,9 +23,10 @@ const b = {
|
|
|
23
23
|
distance: { default: "10" },
|
|
24
24
|
container: { default: "body" }
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
emits: ["show"],
|
|
27
|
+
setup(e, { emit: c }) {
|
|
28
|
+
const n = e, { textForDisplay: o } = b(n), s = w(n.testId, i);
|
|
29
|
+
return (a, m) => (l(), d(t(x), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
|
|
29
30
|
theme: e.theme,
|
|
30
31
|
"no-auto-focus": "",
|
|
31
32
|
triggers: e.triggers,
|
|
@@ -35,28 +36,29 @@ const b = {
|
|
|
35
36
|
"popper-class": [e.theme, e.placement, "v4-tooltip"],
|
|
36
37
|
class: ["v4-tooltip"],
|
|
37
38
|
distance: e.distance,
|
|
38
|
-
"auto-hide": ""
|
|
39
|
+
"auto-hide": "",
|
|
40
|
+
onApplyShow: m[0] || (m[0] = (k) => c("show"))
|
|
39
41
|
}), {
|
|
40
42
|
popper: r(() => [
|
|
41
|
-
|
|
42
|
-
e.header ? (l(), d(
|
|
43
|
+
u(a.$slots, "tooltip", { text: t(o) }, () => [
|
|
44
|
+
e.header ? (l(), d(g, {
|
|
43
45
|
key: 1,
|
|
44
46
|
text: e.text,
|
|
45
47
|
header: e.header
|
|
46
|
-
}, null, 8, ["text", "header"])) : (l(), d(t(
|
|
48
|
+
}, null, 8, ["text", "header"])) : (l(), d(t(v), f({
|
|
47
49
|
key: 0,
|
|
48
50
|
variant: "body2"
|
|
49
51
|
}, t(s)[t(i).TEXT]), {
|
|
50
52
|
default: r(() => [
|
|
51
|
-
|
|
53
|
+
p(y(t(o)), 1)
|
|
52
54
|
]),
|
|
53
55
|
_: 1
|
|
54
56
|
}, 16))
|
|
55
57
|
], !0)
|
|
56
58
|
]),
|
|
57
59
|
default: r(() => [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
T("div", I, [
|
|
61
|
+
u(a.$slots, "default", {}, void 0, !0)
|
|
60
62
|
], 512)
|
|
61
63
|
]),
|
|
62
64
|
_: 3
|
|
@@ -64,5 +66,5 @@ const b = {
|
|
|
64
66
|
}
|
|
65
67
|
});
|
|
66
68
|
export {
|
|
67
|
-
|
|
69
|
+
D as default
|
|
68
70
|
};
|
|
@@ -60,7 +60,9 @@ declare const TooltipTypes: () => ({
|
|
|
60
60
|
type: import("vue").PropType<string | number>;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
-
}>> &
|
|
63
|
+
}>> & {
|
|
64
|
+
onShow?: () => any;
|
|
65
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "disabled" | "testId" | "container" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "distance">;
|
|
64
66
|
$attrs: {
|
|
65
67
|
[x: string]: unknown;
|
|
66
68
|
};
|
|
@@ -72,7 +74,7 @@ declare const TooltipTypes: () => ({
|
|
|
72
74
|
}>;
|
|
73
75
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
74
76
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
75
|
-
$emit: (event:
|
|
77
|
+
$emit: (event: "show") => void;
|
|
76
78
|
$el: any;
|
|
77
79
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
78
80
|
header: {
|
|
@@ -119,7 +121,11 @@ declare const TooltipTypes: () => ({
|
|
|
119
121
|
type: import("vue").PropType<string | number>;
|
|
120
122
|
default: string;
|
|
121
123
|
};
|
|
122
|
-
}
|
|
124
|
+
}>> & {
|
|
125
|
+
onShow?: () => any;
|
|
126
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
127
|
+
show: () => void;
|
|
128
|
+
}, string, {
|
|
123
129
|
header: string;
|
|
124
130
|
text: string;
|
|
125
131
|
theme: string;
|
|
@@ -196,7 +202,9 @@ declare const TooltipTypes: () => ({
|
|
|
196
202
|
type: import("vue").PropType<string | number>;
|
|
197
203
|
default: string;
|
|
198
204
|
};
|
|
199
|
-
}>> &
|
|
205
|
+
}>> & {
|
|
206
|
+
onShow?: () => any;
|
|
207
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
200
208
|
__isFragment?: never;
|
|
201
209
|
__isTeleport?: never;
|
|
202
210
|
__isSuspense?: never;
|
|
@@ -245,7 +253,11 @@ declare const TooltipTypes: () => ({
|
|
|
245
253
|
type: import("vue").PropType<string | number>;
|
|
246
254
|
default: string;
|
|
247
255
|
};
|
|
248
|
-
}
|
|
256
|
+
}>> & {
|
|
257
|
+
onShow?: () => any;
|
|
258
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
259
|
+
show: () => void;
|
|
260
|
+
}, string, {
|
|
249
261
|
header: string;
|
|
250
262
|
text: string;
|
|
251
263
|
theme: string;
|