@ironsource/shared-ui 2.1.6-rc.32 → 2.1.6-rc.34
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_858cefbf_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_a9f31e34_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_69abfd4a_lang.css +1 -0
- package/components/button/v4/ButtonV4.vue.d.ts +7 -7
- package/components/button/v4/IconButtonV4.vue.d.ts +4 -4
- package/components/button/v4/index.d.ts +61 -61
- package/components/chip/v4/ChipV4.vue.d.ts +1 -1
- package/components/chip/v4/index.d.ts +9 -9
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +6 -6
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +41 -40
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +3 -3
- package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +42 -39
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +52 -52
- package/components/emptyState/v3/EmptyState.vue.d.ts +2 -2
- package/components/emptyState/v3/index.d.ts +47 -47
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +3 -3
- package/components/emptyState/v4/index.d.ts +7 -7
- package/components/icon/v4/Icon.types.d.ts +1 -1
- package/components/icon/v4/IconV4.vue.d.ts +16 -6
- package/components/icon/v4/IconV4.vue.js +3 -3
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/index.d.ts +20 -20
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +407 -331
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c700276e_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_1df23c31_lang.css +0 -1
|
@@ -17,9 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
optionNameKey?: string;
|
|
18
18
|
optionImageKey?: string;
|
|
19
19
|
optionIconKey?: string;
|
|
20
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
20
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
21
21
|
optionEndIconKey?: string;
|
|
22
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
22
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
23
23
|
}>, {
|
|
24
24
|
placeholder: string;
|
|
25
25
|
selectedOption: any;
|
|
@@ -67,9 +67,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
67
|
optionNameKey?: string;
|
|
68
68
|
optionImageKey?: string;
|
|
69
69
|
optionIconKey?: string;
|
|
70
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
70
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
71
71
|
optionEndIconKey?: string;
|
|
72
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
72
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
73
73
|
}>, {
|
|
74
74
|
placeholder: string;
|
|
75
75
|
selectedOption: any;
|
|
@@ -113,9 +113,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
113
113
|
optionNameKey: string;
|
|
114
114
|
optionIconKey: string;
|
|
115
115
|
optionImageKey: string;
|
|
116
|
-
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
116
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
117
117
|
optionEndIconKey: string;
|
|
118
|
-
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
118
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
119
119
|
valueToCopy: string;
|
|
120
120
|
selectedOption: any;
|
|
121
121
|
brandIconType: "android" | "ios";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../AppDropdownTrigger.
|
|
4
|
-
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-858cefbf"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import "../../../AppDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css"; import { defineComponent as B, computed as y, ref as O, watch as w, nextTick as z, openBlock as a, createElementBlock as i, normalizeClass as N, createElementVNode as d, mergeProps as C, unref as t, renderSlot as f, createCommentVNode as c, createVNode as s, withCtx as m, toDisplayString as S } from "vue";
|
|
2
|
+
import r from "../../icon/v4/IconV4.vue.js";
|
|
3
3
|
import D from "../../typography/v4/Typography.vue.js";
|
|
4
4
|
import { DropdownTestIdModifiers as g } from "../../../testids/index.js";
|
|
5
5
|
import { useTestIdAttrs as R } from "../../../utils/testIds.js";
|
|
6
6
|
import b from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
7
|
import { useClipboard as P } from "@vueuse/core";
|
|
8
|
-
import { Snackbar as
|
|
9
|
-
|
|
8
|
+
import { Snackbar as U } from "../../snackbar/v4/index.js";
|
|
9
|
+
import { isElementTruncated as L } from "../../../utils/text.js";
|
|
10
|
+
const M = { class: "app-trigger--content" }, W = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "image"
|
|
12
|
-
},
|
|
13
|
+
}, j = ["src"], q = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "start-icon"
|
|
15
|
-
},
|
|
16
|
+
}, F = { class: "label-text" }, G = { key: 0 }, H = { class: "text-content" }, J = {
|
|
16
17
|
key: 0,
|
|
17
18
|
class: "is-mandatory"
|
|
18
|
-
},
|
|
19
|
+
}, Q = {
|
|
19
20
|
key: 2,
|
|
20
21
|
class: "end-icon"
|
|
21
|
-
},
|
|
22
|
+
}, X = { class: "app-trigger-key--content" }, se = /* @__PURE__ */ B({
|
|
22
23
|
__name: "AppDropdownTrigger",
|
|
23
24
|
props: {
|
|
24
25
|
placeholder: { default: "Select app" },
|
|
@@ -44,37 +45,37 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
44
45
|
optionEndIconType: { default: null }
|
|
45
46
|
},
|
|
46
47
|
emits: ["click", "copyToClipboard"],
|
|
47
|
-
setup(o, { emit:
|
|
48
|
+
setup(o, { emit: T }) {
|
|
48
49
|
const e = o, { copy: x, copied: K } = P({}), A = y(
|
|
49
50
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
50
51
|
), $ = () => {
|
|
51
|
-
|
|
52
|
-
},
|
|
52
|
+
T("click");
|
|
53
|
+
}, v = R(e.testId, g), h = "All apps selected", p = y(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.options?.length === e.selectedOption.length ? `${h} (${e.selectedOption.length})` : e.selectedOption?.length === 1 && e.displayValue ? e.displayValue(e.selectedOption[0]) : `${e.selectedOption.length} selected` : e.selectedOption ? e.displayValue(e.selectedOption) : e.placeholder), n = y(() => {
|
|
53
54
|
if (!e.selectedOption)
|
|
54
55
|
return null;
|
|
55
56
|
if (!e.multi)
|
|
56
57
|
return e.selectedOption;
|
|
57
58
|
if (Array.isArray(e.selectedOption))
|
|
58
59
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
59
|
-
}),
|
|
60
|
-
await x(e.valueToCopy), K.value && (
|
|
60
|
+
}), E = async () => {
|
|
61
|
+
await x(e.valueToCopy), K.value && (U({
|
|
61
62
|
title: "Copied successfully",
|
|
62
63
|
type: "success",
|
|
63
64
|
duration: 2e3
|
|
64
|
-
}),
|
|
65
|
+
}), T("copyToClipboard"));
|
|
65
66
|
}, k = O(""), u = O(null);
|
|
66
67
|
w(
|
|
67
|
-
[
|
|
68
|
+
[p, () => e.open],
|
|
68
69
|
async () => {
|
|
69
|
-
await z(),
|
|
70
|
+
await z(), V();
|
|
70
71
|
},
|
|
71
72
|
{
|
|
72
73
|
immediate: !0
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
|
-
const
|
|
76
|
-
const l = u.value && u.value
|
|
77
|
-
k.value = l && !e.open ?
|
|
76
|
+
const V = () => {
|
|
77
|
+
const l = u.value && L(u.value);
|
|
78
|
+
k.value = l && !e.open ? p.value : "";
|
|
78
79
|
};
|
|
79
80
|
return (l, I) => (a(), i("div", {
|
|
80
81
|
class: N(["app-trigger-wrapper", { "with-copy": !!o.valueToCopy }])
|
|
@@ -84,38 +85,38 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
84
85
|
style: {
|
|
85
86
|
paddingLeft: l.$slots.image || t(n) && o.optionImageKey ? "8px" : "12px"
|
|
86
87
|
}
|
|
87
|
-
}, t(
|
|
88
|
-
onClick: I[0] || (I[0] = (
|
|
88
|
+
}, t(v)[t(g).BUTTON_WRAPPER], {
|
|
89
|
+
onClick: I[0] || (I[0] = (Y) => $())
|
|
89
90
|
}), [
|
|
90
|
-
d("div",
|
|
91
|
-
l.$slots.image || t(n) && o.optionImageKey ? (a(), i("div",
|
|
91
|
+
d("div", M, [
|
|
92
|
+
l.$slots.image || t(n) && o.optionImageKey ? (a(), i("div", W, [
|
|
92
93
|
f(l.$slots, "image", {}, () => [
|
|
93
94
|
o.optionImageKey ? (a(), i("img", {
|
|
94
95
|
key: 0,
|
|
95
96
|
src: t(n)[o.optionImageKey]
|
|
96
|
-
}, null, 8,
|
|
97
|
+
}, null, 8, j)) : c("", !0)
|
|
97
98
|
], !0)
|
|
98
99
|
])) : c("", !0),
|
|
99
|
-
l.$slots["icon-start"] || t(n) && o.optionIconKey ? (a(), i("div",
|
|
100
|
+
l.$slots["icon-start"] || t(n) && o.optionIconKey ? (a(), i("div", q, [
|
|
100
101
|
f(l.$slots, "icon-start", {}, () => [
|
|
101
|
-
s(t(
|
|
102
|
+
s(t(r), {
|
|
102
103
|
type: o.optionIconType,
|
|
103
104
|
name: t(n)[o.optionIconKey],
|
|
104
105
|
size: "20px"
|
|
105
106
|
}, null, 8, ["type", "name"])
|
|
106
107
|
], !0)
|
|
107
108
|
])) : c("", !0),
|
|
108
|
-
s(t(D), C({ variant: "button" }, t(
|
|
109
|
+
s(t(D), C({ variant: "button" }, t(v)[t(g).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
109
110
|
default: m(() => [
|
|
110
|
-
d("div",
|
|
111
|
-
t(
|
|
112
|
-
s(t(
|
|
111
|
+
d("div", F, [
|
|
112
|
+
t(p) === h ? (a(), i("span", G, [
|
|
113
|
+
s(t(r), {
|
|
113
114
|
name: "cube",
|
|
114
115
|
size: "20px",
|
|
115
116
|
type: "fill"
|
|
116
117
|
})
|
|
117
118
|
])) : c("", !0),
|
|
118
|
-
d("div",
|
|
119
|
+
d("div", H, [
|
|
119
120
|
s(t(b), {
|
|
120
121
|
text: k.value,
|
|
121
122
|
placement: "bottom",
|
|
@@ -126,19 +127,19 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
126
127
|
ref_key: "textContainerRef",
|
|
127
128
|
ref: u,
|
|
128
129
|
class: "text-content-value"
|
|
129
|
-
}, S(t(
|
|
130
|
+
}, S(t(p)), 513)
|
|
130
131
|
]),
|
|
131
132
|
_: 1
|
|
132
133
|
}, 8, ["text"]),
|
|
133
|
-
o.mandatory && (Array.isArray(o.selectedOption) ? !o.selectedOption.length : !o.selectedOption) ? (a(), i("span",
|
|
134
|
+
o.mandatory && (Array.isArray(o.selectedOption) ? !o.selectedOption.length : !o.selectedOption) ? (a(), i("span", J, "*")) : c("", !0)
|
|
134
135
|
])
|
|
135
136
|
])
|
|
136
137
|
]),
|
|
137
138
|
_: 1
|
|
138
139
|
}, 16),
|
|
139
|
-
l.$slots["icon-end"] || t(n) && o.optionEndIconKey && t(n)[o.optionEndIconKey] ? (a(), i("div",
|
|
140
|
+
l.$slots["icon-end"] || t(n) && o.optionEndIconKey && t(n)[o.optionEndIconKey] ? (a(), i("div", Q, [
|
|
140
141
|
f(l.$slots, "icon-end", {}, () => [
|
|
141
|
-
s(t(
|
|
142
|
+
s(t(r), {
|
|
142
143
|
type: o.optionEndIconType,
|
|
143
144
|
name: t(n)[o.optionEndIconKey],
|
|
144
145
|
size: "24px"
|
|
@@ -147,7 +148,7 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
147
148
|
])) : c("", !0)
|
|
148
149
|
]),
|
|
149
150
|
d("div", null, [
|
|
150
|
-
s(t(
|
|
151
|
+
s(t(r), {
|
|
151
152
|
name: "caret-down",
|
|
152
153
|
size: "20px",
|
|
153
154
|
class: "app-trigger--icon"
|
|
@@ -157,7 +158,7 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
157
158
|
o.valueToCopy ? (a(), i("div", {
|
|
158
159
|
key: 0,
|
|
159
160
|
class: "app-trigger-key",
|
|
160
|
-
onClick:
|
|
161
|
+
onClick: E
|
|
161
162
|
}, [
|
|
162
163
|
s(t(b), {
|
|
163
164
|
text: o.valueToCopy,
|
|
@@ -165,8 +166,8 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
165
166
|
placement: "bottom"
|
|
166
167
|
}, {
|
|
167
168
|
default: m(() => [
|
|
168
|
-
d("div",
|
|
169
|
-
s(t(
|
|
169
|
+
d("div", X, [
|
|
170
|
+
s(t(r), {
|
|
170
171
|
name: "copy",
|
|
171
172
|
size: "20px"
|
|
172
173
|
})
|
|
@@ -179,5 +180,5 @@ const U = { class: "app-trigger--content" }, L = {
|
|
|
179
180
|
}
|
|
180
181
|
});
|
|
181
182
|
export {
|
|
182
|
-
|
|
183
|
+
se as default
|
|
183
184
|
};
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
optionNameKey?: string;
|
|
22
22
|
optionImageKey?: string;
|
|
23
23
|
optionIconKey?: string;
|
|
24
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
24
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
25
25
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
26
26
|
}>, {
|
|
27
27
|
placeholder: string;
|
|
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
72
|
optionNameKey?: string;
|
|
73
73
|
optionImageKey?: string;
|
|
74
74
|
optionIconKey?: string;
|
|
75
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
75
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
76
76
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
77
77
|
}>, {
|
|
78
78
|
placeholder: string;
|
|
@@ -119,7 +119,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
119
119
|
optionNameKey: string;
|
|
120
120
|
optionIconKey: string;
|
|
121
121
|
optionImageKey: string;
|
|
122
|
-
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
122
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
123
123
|
selectedOption: any;
|
|
124
124
|
showFeedbackIcon: boolean;
|
|
125
125
|
brandIconType: "android" | "ios";
|
|
@@ -39,9 +39,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
39
|
optionNameKey?: string;
|
|
40
40
|
optionIconKey?: string;
|
|
41
41
|
optionImageKey?: string;
|
|
42
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
42
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
43
43
|
optionEndIconKey?: string;
|
|
44
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
44
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
45
45
|
valueToCopy?: string;
|
|
46
46
|
disabledOptionKey?: string;
|
|
47
47
|
theme?: string;
|
|
@@ -146,9 +146,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
146
146
|
optionNameKey?: string;
|
|
147
147
|
optionIconKey?: string;
|
|
148
148
|
optionImageKey?: string;
|
|
149
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
149
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
150
150
|
optionEndIconKey?: string;
|
|
151
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
151
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
152
152
|
valueToCopy?: string;
|
|
153
153
|
disabledOptionKey?: string;
|
|
154
154
|
theme?: string;
|
|
@@ -247,9 +247,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
247
247
|
optionNameKey: string;
|
|
248
248
|
optionIconKey: string;
|
|
249
249
|
optionImageKey: string;
|
|
250
|
-
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
250
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
251
251
|
optionEndIconKey: string;
|
|
252
|
-
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
252
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
253
253
|
valueToCopy: string;
|
|
254
254
|
disabledOptionKey: string;
|
|
255
255
|
fullWidth: boolean;
|
|
@@ -9,9 +9,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
nameKey?: string;
|
|
10
10
|
imageKey?: string;
|
|
11
11
|
iconKey?: string;
|
|
12
|
-
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
12
|
+
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
13
13
|
endIconKey?: string;
|
|
14
|
-
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
14
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
15
15
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
16
16
|
}>, {
|
|
17
17
|
subtitle: string;
|
|
@@ -38,9 +38,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
38
|
nameKey?: string;
|
|
39
39
|
imageKey?: string;
|
|
40
40
|
iconKey?: string;
|
|
41
|
-
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
41
|
+
iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
42
42
|
endIconKey?: string;
|
|
43
|
-
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
43
|
+
endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
44
44
|
toolTipPlacement?: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
45
45
|
}>, {
|
|
46
46
|
subtitle: string;
|
|
@@ -60,14 +60,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
60
60
|
option: any;
|
|
61
61
|
disabled: boolean;
|
|
62
62
|
active: boolean;
|
|
63
|
-
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
63
|
+
endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
64
64
|
isIndeterminate: boolean;
|
|
65
65
|
subtitle: string;
|
|
66
66
|
selectAllOption: boolean;
|
|
67
67
|
nameKey: string;
|
|
68
68
|
imageKey: string;
|
|
69
69
|
iconKey: string;
|
|
70
|
-
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
70
|
+
iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
71
71
|
endIconKey: string;
|
|
72
72
|
toolTipPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
73
73
|
}>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_69abfd4a_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-69abfd4a"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_69abfd4a_lang.css"; import { defineComponent as B, ref as z, computed as N, openBlock as n, createBlock as f, unref as i, withCtx as y, createElementVNode as s, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as c, createVNode as d, createTextVNode as K, toDisplayString as h, withModifiers as V } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import w from "../../typography/Text.vue.js";
|
|
4
4
|
import O from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
5
5
|
import T from "../../icon/v4/IconV4.vue.js";
|
|
6
6
|
import { NOOP as P } from "@vue/shared";
|
|
7
7
|
import { optionCommon as S } from "../common/Option.common.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
8
|
+
import E from "../../typography/v4/Typography.vue.js";
|
|
9
|
+
import j from "../../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
import { isElementTruncated as M } from "../../../utils/text.js";
|
|
11
|
+
const R = {
|
|
11
12
|
key: 1,
|
|
12
13
|
class: "image"
|
|
13
|
-
},
|
|
14
|
+
}, A = ["src"], D = {
|
|
14
15
|
key: 2,
|
|
15
16
|
class: "start-icon"
|
|
16
|
-
},
|
|
17
|
+
}, q = {
|
|
17
18
|
key: 3,
|
|
18
19
|
class: "end-icon"
|
|
19
|
-
},
|
|
20
|
+
}, F = { key: 0 }, _ = /* @__PURE__ */ B({
|
|
20
21
|
__name: "OptionV4",
|
|
21
22
|
props: {
|
|
22
23
|
option: { default: null },
|
|
@@ -35,68 +36,70 @@ const M = {
|
|
|
35
36
|
toolTipPlacement: { default: "right" }
|
|
36
37
|
},
|
|
37
38
|
setup(e) {
|
|
38
|
-
const g = e, { selected:
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const g = e, { selected: r, isMulti: u, id: I, onClick: x, api: b } = S(g), m = z(null), p = N(
|
|
40
|
+
() => m.value && M(m.value)
|
|
41
|
+
), C = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : p.value ? t[g.nameKey] : "", $ = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null;
|
|
42
|
+
return (t, a) => (n(), f(i(j), {
|
|
43
|
+
text: C(e.option),
|
|
41
44
|
"test-id": $(e.option),
|
|
42
45
|
placement: e.toolTipPlacement,
|
|
43
46
|
class: "tooltip-option"
|
|
44
47
|
}, {
|
|
45
48
|
default: y(() => [
|
|
46
|
-
|
|
49
|
+
s("div", {
|
|
47
50
|
ref: "el",
|
|
48
51
|
class: v(["item-container", {
|
|
49
52
|
"item-container--disabled": e.disabled,
|
|
50
53
|
"item-container--active": e.nameKey ? !1 : e.active,
|
|
51
|
-
"item-container--selected": i(
|
|
52
|
-
"item-container--multi": i(
|
|
54
|
+
"item-container--selected": i(r),
|
|
55
|
+
"item-container--multi": i(u)
|
|
53
56
|
}])
|
|
54
57
|
}, [
|
|
55
|
-
|
|
58
|
+
s("div", {
|
|
56
59
|
class: v(["item", {
|
|
57
|
-
"item--multi": i(
|
|
60
|
+
"item--multi": i(u),
|
|
58
61
|
"item--with-icon": t.$slots["icon-start"] || t.$slots.image
|
|
59
62
|
}])
|
|
60
63
|
}, [
|
|
61
|
-
i(
|
|
64
|
+
i(u) ? (n(), f(i(O), {
|
|
62
65
|
key: 0,
|
|
63
66
|
id: i(I).toString(),
|
|
64
67
|
tabindex: "-1",
|
|
65
68
|
class: "checkbox",
|
|
66
69
|
size: "sm",
|
|
67
|
-
"is-checked": i(
|
|
70
|
+
"is-checked": i(r),
|
|
68
71
|
"is-indeterminate": e.isIndeterminate && !e.option,
|
|
69
|
-
onClick:
|
|
72
|
+
onClick: a[0] || (a[0] = (k) => e.disabled ? i(P)() : i(x)(k))
|
|
70
73
|
}, null, 8, ["id", "is-checked", "is-indeterminate"])) : o("", !0),
|
|
71
|
-
t.$slots.image || e.imageKey ? (n(), l("div",
|
|
72
|
-
|
|
74
|
+
t.$slots.image || e.imageKey ? (n(), l("div", R, [
|
|
75
|
+
c(t.$slots, "image", {}, () => [
|
|
73
76
|
e.imageKey ? (n(), l("img", {
|
|
74
77
|
key: 0,
|
|
75
78
|
src: e.option[e.imageKey]
|
|
76
|
-
}, null, 8,
|
|
79
|
+
}, null, 8, A)) : o("", !0)
|
|
77
80
|
], !0)
|
|
78
81
|
])) : o("", !0),
|
|
79
|
-
t.$slots["icon-start"] || e.iconKey ? (n(), l("div",
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
t.$slots["icon-start"] || e.iconKey ? (n(), l("div", D, [
|
|
83
|
+
c(t.$slots, "icon-start", {}, () => [
|
|
84
|
+
d(i(T), {
|
|
82
85
|
type: e.iconType,
|
|
83
86
|
name: e.option[e.iconKey],
|
|
84
87
|
size: e.iconType === "regular" ? "20px" : "16px"
|
|
85
88
|
}, null, 8, ["type", "name", "size"])
|
|
86
89
|
], !0)
|
|
87
90
|
])) : o("", !0),
|
|
88
|
-
|
|
91
|
+
s("div", {
|
|
89
92
|
ref_key: "textContainerRef",
|
|
90
|
-
ref:
|
|
93
|
+
ref: m,
|
|
91
94
|
class: "text-container"
|
|
92
95
|
}, [
|
|
93
|
-
|
|
96
|
+
d(i(E), {
|
|
94
97
|
class: "option-text",
|
|
95
98
|
variant: "body2"
|
|
96
99
|
}, {
|
|
97
100
|
default: y(() => [
|
|
98
|
-
|
|
99
|
-
h(
|
|
101
|
+
c(t.$slots, "default", {}, () => [
|
|
102
|
+
K(h(e.option[e.nameKey]), 1)
|
|
100
103
|
], !0)
|
|
101
104
|
]),
|
|
102
105
|
_: 3
|
|
@@ -107,14 +110,14 @@ const M = {
|
|
|
107
110
|
size: "xs"
|
|
108
111
|
}, {
|
|
109
112
|
default: y(() => [
|
|
110
|
-
h(
|
|
113
|
+
K(h(e.subtitle), 1)
|
|
111
114
|
]),
|
|
112
115
|
_: 1
|
|
113
116
|
})) : o("", !0)
|
|
114
117
|
], 512),
|
|
115
|
-
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (n(), l("div",
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (n(), l("div", q, [
|
|
119
|
+
c(t.$slots, "icon-end", {}, () => [
|
|
120
|
+
d(i(T), {
|
|
118
121
|
type: e.endIconType,
|
|
119
122
|
name: e.option[e.endIconKey],
|
|
120
123
|
size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
|
|
@@ -122,15 +125,15 @@ const M = {
|
|
|
122
125
|
], !0)
|
|
123
126
|
])) : o("", !0)
|
|
124
127
|
], 2),
|
|
125
|
-
i(b).clearable && i(
|
|
126
|
-
|
|
128
|
+
i(b).clearable && i(r) ? (n(), l("div", F, [
|
|
129
|
+
s("button", {
|
|
127
130
|
class: "clear-button",
|
|
128
|
-
onClick:
|
|
131
|
+
onClick: a[1] || (a[1] = V((k) => i(b).clearSelection(), ["prevent", "stop"]))
|
|
129
132
|
}, [
|
|
130
|
-
|
|
133
|
+
d(i(T), {
|
|
131
134
|
name: "close",
|
|
132
135
|
width: "8",
|
|
133
|
-
height: 8
|
|
136
|
+
height: "8"
|
|
134
137
|
})
|
|
135
138
|
])
|
|
136
139
|
])) : o("", !0)
|
|
@@ -141,5 +144,5 @@ const M = {
|
|
|
141
144
|
}
|
|
142
145
|
});
|
|
143
146
|
export {
|
|
144
|
-
|
|
147
|
+
_ as default
|
|
145
148
|
};
|
|
@@ -220,7 +220,7 @@ export declare const dropDownStoryArgs: {
|
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
222
|
optionIconType: {
|
|
223
|
-
options: ("fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test")[];
|
|
223
|
+
options: ("fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat")[];
|
|
224
224
|
table: {
|
|
225
225
|
category: string;
|
|
226
226
|
};
|