@ironsource/shared-ui 2.1.6-test.13 → 2.1.6-test.15
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/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +1 -0
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +1 -0
- package/ChipV4.vue_vue_type_style_index_0_scoped_12c0f396_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_057abdf5_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css +1 -0
- package/FoldableSection.vue_vue_type_style_index_0_scoped_1a5f0e2e_lang.css +1 -0
- package/HelpIcon.vue_vue_type_style_index_0_scoped_06fce2e3_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_9db0f796_lang.css +1 -0
- package/README.md +35 -0
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_f3b2c01d_lang.css +1 -0
- package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +1 -0
- package/components/alert/Alert.vue.d.ts +28 -0
- package/components/alert/Alert.vue.js +4 -4
- package/components/alert/Alert.vue2.js +67 -46
- package/components/alert/index.d.ts +104 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +6 -5
- package/components/autocomplete/index.d.ts +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/Chip.types.d.ts +6 -0
- package/components/chip/v4/ChipV4.vue.d.ts +28 -35
- package/components/chip/v4/ChipV4.vue.js +3 -3
- package/components/chip/v4/ChipV4.vue2.js +28 -59
- package/components/chip/v4/index.d.ts +45 -148
- package/components/datePicker/common/DatePicker.common.js +14 -14
- package/components/datePicker/v4/DatePickerV4.vue2.js +3 -2
- package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
- package/components/dateRange/v4/DateRangeV4.vue2.js +4 -3
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +20 -20
- package/components/dropdown/common/Dropdown.common.js +80 -75
- package/components/dropdown/common/Option.common.d.ts +1 -1
- package/components/dropdown/common/Option.common.js +9 -9
- package/components/dropdown/composables/useChildOptions.d.ts +7 -0
- package/components/dropdown/composables/useChildOptions.js +14 -0
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +14 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/AppDropdownTrigger.vue2.js +102 -61
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +8 -3
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +22 -21
- package/components/dropdown/v4/DropdownV4.vue.d.ts +22 -6
- package/components/dropdown/v4/DropdownV4.vue.js +2 -2
- package/components/dropdown/v4/DropdownV4.vue2.js +81 -73
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -6
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +51 -45
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +112 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +7 -0
- package/components/dropdown/v4/TreeDropdown.vue2.js +122 -0
- package/components/dropdown/v4/dropdownStoryArgs.d.ts +1 -1
- package/components/dropdown/v4/index.d.ts +332 -49
- package/components/dropdown/v4/index.js +7 -4
- 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 +4 -4
- package/components/icon/v4/IconV4.vue2.js +36 -33
- package/components/icon/v4/index.d.ts +53 -15
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +1 -1
- package/components/layout/FoldableSection.vue.js +5 -5
- package/components/layout/FoldableSection.vue2.js +1 -1
- package/components/multibar/MultiBarMenu.vue2.js +12 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +20 -20
- package/components/table/common/Table.common.d.ts +1 -0
- package/components/table/common/Table.common.js +65 -61
- package/components/table/v4/DataGrid.vue.d.ts +5 -1
- package/components/table/v4/DataGrid.vue.js +3 -3
- package/components/table/v4/DataGrid.vue2.js +166 -162
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/components/table/v4/HelpIcon.vue.js +5 -5
- package/components/table/v4/HelpIcon.vue2.js +5 -5
- package/components/table/v4/index.d.ts +16 -4
- package/components/textArea/v4/TextAreaV4.vue.js +3 -3
- package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
- package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
- package/components/toggle/v4/ToggleV4.vue.js +3 -3
- package/components/toggle/v4/ToggleV4.vue2.js +12 -12
- package/components/toggle/v4/index.d.ts +20 -20
- package/composables/useFormValidation.js +19 -13
- package/design-foundation.stories/icons/iconsData.d.ts +5 -1
- package/index.d.ts +1091 -632
- package/mocks/apps.d.ts +1 -0
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/utils/text.d.ts +1 -0
- package/utils/text.js +9 -0
- package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +0 -1
- package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_39c47ad1_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_78d7c9c0_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_6df3b70f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_1cc45a5d_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_ad524750_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_0363db63_lang.css +0 -1
- package/FoldableSection.vue_vue_type_style_index_0_scoped_8d0fd203_lang.css +0 -1
- package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_a78f8a3e_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_e0c24b6a_lang.css +0 -1
- package/TextAreaV4.vue_vue_type_style_index_0_scoped_8199b662_lang.css +0 -1
- package/ToggleV4.vue_vue_type_style_index_0_scoped_ad231e8c_lang.css +0 -1
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import "../../../AppDropdownTrigger.
|
|
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
2
|
import r from "../../icon/v4/IconV4.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import { DropdownTestIdModifiers as
|
|
5
|
-
import { useTestIdAttrs as
|
|
6
|
-
import
|
|
7
|
-
import { useClipboard as
|
|
8
|
-
import { Snackbar as
|
|
9
|
-
|
|
3
|
+
import D from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import { DropdownTestIdModifiers as g } from "../../../testids/index.js";
|
|
5
|
+
import { useTestIdAttrs as R } from "../../../utils/testIds.js";
|
|
6
|
+
import b from "../../tooltip/v4/TooltipV4.vue.js";
|
|
7
|
+
import { useClipboard as P } from "@vueuse/core";
|
|
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 = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "end-icon"
|
|
22
|
+
}, X = { class: "app-trigger-key--content" }, se = /* @__PURE__ */ B({
|
|
19
23
|
__name: "AppDropdownTrigger",
|
|
20
24
|
props: {
|
|
21
25
|
placeholder: { default: "Select app" },
|
|
@@ -36,97 +40,134 @@ const S = { class: "app-trigger--content" }, D = {
|
|
|
36
40
|
optionNameKey: { default: null },
|
|
37
41
|
optionImageKey: { default: null },
|
|
38
42
|
optionIconKey: { default: null },
|
|
39
|
-
optionIconType: { default: null }
|
|
43
|
+
optionIconType: { default: null },
|
|
44
|
+
optionEndIconKey: { default: null },
|
|
45
|
+
optionEndIconType: { default: null }
|
|
40
46
|
},
|
|
41
47
|
emits: ["click", "copyToClipboard"],
|
|
42
|
-
setup(
|
|
43
|
-
const e =
|
|
48
|
+
setup(o, { emit: T }) {
|
|
49
|
+
const e = o, { copy: x, copied: K } = P({}), A = y(
|
|
44
50
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
45
|
-
),
|
|
46
|
-
|
|
47
|
-
},
|
|
51
|
+
), $ = () => {
|
|
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(() => {
|
|
48
54
|
if (!e.selectedOption)
|
|
49
55
|
return null;
|
|
50
56
|
if (!e.multi)
|
|
51
57
|
return e.selectedOption;
|
|
52
58
|
if (Array.isArray(e.selectedOption))
|
|
53
59
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
54
|
-
}),
|
|
55
|
-
await
|
|
60
|
+
}), E = async () => {
|
|
61
|
+
await x(e.valueToCopy), K.value && (U({
|
|
56
62
|
title: "Copied successfully",
|
|
57
63
|
type: "success",
|
|
58
64
|
duration: 2e3
|
|
59
|
-
}),
|
|
65
|
+
}), T("copyToClipboard"));
|
|
66
|
+
}, k = O(""), u = O(null);
|
|
67
|
+
w(
|
|
68
|
+
[p, () => e.open],
|
|
69
|
+
async () => {
|
|
70
|
+
await z(), V();
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
immediate: !0
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
const V = () => {
|
|
77
|
+
const l = u.value && L(u.value);
|
|
78
|
+
k.value = l && !e.open ? p.value : "";
|
|
60
79
|
};
|
|
61
|
-
return (
|
|
62
|
-
class:
|
|
80
|
+
return (l, I) => (a(), i("div", {
|
|
81
|
+
class: N(["app-trigger-wrapper", { "with-copy": !!o.valueToCopy }])
|
|
63
82
|
}, [
|
|
64
|
-
|
|
65
|
-
class: ["app-trigger", [
|
|
83
|
+
d("div", C({
|
|
84
|
+
class: ["app-trigger", [o.size, t(A), { open: o.open, disabled: o.disabled }]],
|
|
66
85
|
style: {
|
|
67
|
-
paddingLeft:
|
|
86
|
+
paddingLeft: l.$slots.image || t(n) && o.optionImageKey ? "8px" : "12px"
|
|
68
87
|
}
|
|
69
|
-
},
|
|
70
|
-
onClick:
|
|
88
|
+
}, t(v)[t(g).BUTTON_WRAPPER], {
|
|
89
|
+
onClick: I[0] || (I[0] = (Y) => $())
|
|
71
90
|
}), [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
91
|
+
d("div", M, [
|
|
92
|
+
l.$slots.image || t(n) && o.optionImageKey ? (a(), i("div", W, [
|
|
93
|
+
f(l.$slots, "image", {}, () => [
|
|
94
|
+
o.optionImageKey ? (a(), i("img", {
|
|
76
95
|
key: 0,
|
|
77
|
-
src:
|
|
78
|
-
}, null, 8,
|
|
96
|
+
src: t(n)[o.optionImageKey]
|
|
97
|
+
}, null, 8, j)) : c("", !0)
|
|
79
98
|
], !0)
|
|
80
|
-
])) :
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
s(
|
|
84
|
-
type:
|
|
85
|
-
name:
|
|
99
|
+
])) : c("", !0),
|
|
100
|
+
l.$slots["icon-start"] || t(n) && o.optionIconKey ? (a(), i("div", q, [
|
|
101
|
+
f(l.$slots, "icon-start", {}, () => [
|
|
102
|
+
s(t(r), {
|
|
103
|
+
type: o.optionIconType,
|
|
104
|
+
name: t(n)[o.optionIconKey],
|
|
86
105
|
size: "20px"
|
|
87
106
|
}, null, 8, ["type", "name"])
|
|
88
107
|
], !0)
|
|
89
|
-
])) :
|
|
90
|
-
s(
|
|
91
|
-
default:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
s(
|
|
108
|
+
])) : c("", !0),
|
|
109
|
+
s(t(D), C({ variant: "button" }, t(v)[t(g).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
110
|
+
default: m(() => [
|
|
111
|
+
d("div", F, [
|
|
112
|
+
t(p) === h ? (a(), i("span", G, [
|
|
113
|
+
s(t(r), {
|
|
95
114
|
name: "cube",
|
|
96
115
|
size: "20px",
|
|
97
116
|
type: "fill"
|
|
98
117
|
})
|
|
99
|
-
])) :
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
118
|
+
])) : c("", !0),
|
|
119
|
+
d("div", H, [
|
|
120
|
+
s(t(b), {
|
|
121
|
+
text: k.value,
|
|
122
|
+
placement: "bottom",
|
|
123
|
+
class: "value-tooltip"
|
|
124
|
+
}, {
|
|
125
|
+
default: m(() => [
|
|
126
|
+
d("div", {
|
|
127
|
+
ref_key: "textContainerRef",
|
|
128
|
+
ref: u,
|
|
129
|
+
class: "text-content-value"
|
|
130
|
+
}, S(t(p)), 513)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["text"]),
|
|
134
|
+
o.mandatory && (Array.isArray(o.selectedOption) ? !o.selectedOption.length : !o.selectedOption) ? (a(), i("span", J, "*")) : c("", !0)
|
|
103
135
|
])
|
|
104
136
|
])
|
|
105
137
|
]),
|
|
106
138
|
_: 1
|
|
107
|
-
}, 16)
|
|
139
|
+
}, 16),
|
|
140
|
+
l.$slots["icon-end"] || t(n) && o.optionEndIconKey && t(n)[o.optionEndIconKey] ? (a(), i("div", Q, [
|
|
141
|
+
f(l.$slots, "icon-end", {}, () => [
|
|
142
|
+
s(t(r), {
|
|
143
|
+
type: o.optionEndIconType,
|
|
144
|
+
name: t(n)[o.optionEndIconKey],
|
|
145
|
+
size: "24px"
|
|
146
|
+
}, null, 8, ["type", "name"])
|
|
147
|
+
], !0)
|
|
148
|
+
])) : c("", !0)
|
|
108
149
|
]),
|
|
109
|
-
|
|
110
|
-
s(
|
|
150
|
+
d("div", null, [
|
|
151
|
+
s(t(r), {
|
|
111
152
|
name: "caret-down",
|
|
112
153
|
size: "20px",
|
|
113
154
|
class: "app-trigger--icon"
|
|
114
155
|
})
|
|
115
156
|
])
|
|
116
157
|
], 16),
|
|
117
|
-
|
|
158
|
+
o.valueToCopy ? (a(), i("div", {
|
|
118
159
|
key: 0,
|
|
119
160
|
class: "app-trigger-key",
|
|
120
|
-
onClick:
|
|
161
|
+
onClick: E
|
|
121
162
|
}, [
|
|
122
|
-
s(
|
|
123
|
-
text:
|
|
163
|
+
s(t(b), {
|
|
164
|
+
text: o.valueToCopy,
|
|
124
165
|
header: "Copy app key",
|
|
125
166
|
placement: "bottom"
|
|
126
167
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
|
|
129
|
-
s(
|
|
168
|
+
default: m(() => [
|
|
169
|
+
d("div", X, [
|
|
170
|
+
s(t(r), {
|
|
130
171
|
name: "copy",
|
|
131
172
|
size: "20px"
|
|
132
173
|
})
|
|
@@ -134,10 +175,10 @@ const S = { class: "app-trigger--content" }, D = {
|
|
|
134
175
|
]),
|
|
135
176
|
_: 1
|
|
136
177
|
}, 8, ["text"])
|
|
137
|
-
])) :
|
|
178
|
+
])) : c("", !0)
|
|
138
179
|
], 2));
|
|
139
180
|
}
|
|
140
181
|
});
|
|
141
182
|
export {
|
|
142
|
-
|
|
183
|
+
se as default
|
|
143
184
|
};
|
|
@@ -21,7 +21,8 @@ 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
|
+
showAllSelectedText?: boolean;
|
|
25
26
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
26
27
|
}>, {
|
|
27
28
|
placeholder: string;
|
|
@@ -46,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
47
|
optionImageKey: any;
|
|
47
48
|
optionIconKey: any;
|
|
48
49
|
optionIconType: any;
|
|
50
|
+
showAllSelectedText: boolean;
|
|
49
51
|
statusDotType: any;
|
|
50
52
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
53
|
click: () => void;
|
|
@@ -72,7 +74,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
74
|
optionNameKey?: string;
|
|
73
75
|
optionImageKey?: string;
|
|
74
76
|
optionIconKey?: string;
|
|
75
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
77
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
78
|
+
showAllSelectedText?: boolean;
|
|
76
79
|
statusDotType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
77
80
|
}>, {
|
|
78
81
|
placeholder: string;
|
|
@@ -97,6 +100,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
97
100
|
optionImageKey: any;
|
|
98
101
|
optionIconKey: any;
|
|
99
102
|
optionIconType: any;
|
|
103
|
+
showAllSelectedText: boolean;
|
|
100
104
|
statusDotType: any;
|
|
101
105
|
}>>> & {
|
|
102
106
|
onClick?: () => any;
|
|
@@ -119,10 +123,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
119
123
|
optionNameKey: string;
|
|
120
124
|
optionIconKey: string;
|
|
121
125
|
optionImageKey: string;
|
|
122
|
-
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
126
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
123
127
|
selectedOption: any;
|
|
124
128
|
showFeedbackIcon: boolean;
|
|
125
129
|
brandIconType: "android" | "ios";
|
|
130
|
+
showAllSelectedText: boolean;
|
|
126
131
|
statusDotType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
127
132
|
}>, {
|
|
128
133
|
image?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DefaultDropdownTrigger.vue2.js";
|
|
2
2
|
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DefaultDropdownTrigger.
|
|
4
|
-
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0345d6b1"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
2
|
-
import
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css"; import { defineComponent as v, computed as r, openBlock as o, createElementBlock as a, createBlock as k, createCommentVNode as n, createElementVNode as c, mergeProps as y, unref as l, renderSlot as m, createVNode as i, withCtx as I, createTextVNode as x, toDisplayString as B } from "vue";
|
|
2
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { DropdownTestIdModifiers as u } from "../../../testids/index.js";
|
|
4
4
|
import h from "../../icon/v4/IconV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { useTestIdAttrs as
|
|
7
|
-
import
|
|
5
|
+
import V from "../../shared/FieldLabel.vue.js";
|
|
6
|
+
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
7
|
+
import D from "../../statusDot/StatusDot.vue.js";
|
|
8
8
|
const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "image"
|
|
11
|
-
}, C = ["src"],
|
|
11
|
+
}, C = ["src"], S = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "start-icon"
|
|
14
|
-
},
|
|
14
|
+
}, P = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "status-dot"
|
|
17
17
|
}, z = { class: "caret-down" }, j = /* @__PURE__ */ v({
|
|
@@ -40,15 +40,16 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
40
40
|
optionImageKey: { default: null },
|
|
41
41
|
optionIconKey: { default: null },
|
|
42
42
|
optionIconType: { default: null },
|
|
43
|
+
showAllSelectedText: { type: Boolean, default: !0 },
|
|
43
44
|
statusDotType: { default: null }
|
|
44
45
|
},
|
|
45
46
|
emits: ["click"],
|
|
46
|
-
setup(t, { emit:
|
|
47
|
-
const e = t,
|
|
47
|
+
setup(t, { emit: T }) {
|
|
48
|
+
const e = t, g = r(
|
|
48
49
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
49
50
|
), b = () => {
|
|
50
|
-
|
|
51
|
-
}, p =
|
|
51
|
+
T("click");
|
|
52
|
+
}, p = A(e.testId, u), O = r(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.options?.length === e.selectedOption.length ? `All selected (${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), d = r(() => {
|
|
52
53
|
if (!e.selectedOption)
|
|
53
54
|
return null;
|
|
54
55
|
if (!e.multi)
|
|
@@ -57,7 +58,7 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
57
58
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
58
59
|
});
|
|
59
60
|
return (s, f) => (o(), a("div", N, [
|
|
60
|
-
t.label ? (o(), k(
|
|
61
|
+
t.label ? (o(), k(V, {
|
|
61
62
|
key: 0,
|
|
62
63
|
label: t.label,
|
|
63
64
|
mandatory: t.mandatory,
|
|
@@ -67,22 +68,22 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
67
68
|
"test-id": t.testId,
|
|
68
69
|
class: "dropdown-field-label"
|
|
69
70
|
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
70
|
-
c("div",
|
|
71
|
-
class: ["dropdown-trigger", [t.size, l(
|
|
71
|
+
c("div", y({
|
|
72
|
+
class: ["dropdown-trigger", [t.size, l(g), { open: t.open, disabled: t.disabled }]]
|
|
72
73
|
}, l(p)[l(u).BUTTON_WRAPPER], {
|
|
73
74
|
onClick: f[0] || (f[0] = (E) => b())
|
|
74
75
|
}), [
|
|
75
76
|
c("div", K, [
|
|
76
77
|
s.$slots.image || l(d) && t.optionImageKey ? (o(), a("div", $, [
|
|
77
|
-
|
|
78
|
+
m(s.$slots, "image", {}, () => [
|
|
78
79
|
t.optionImageKey ? (o(), a("img", {
|
|
79
80
|
key: 0,
|
|
80
81
|
src: l(d)[t.optionImageKey]
|
|
81
82
|
}, null, 8, C)) : n("", !0)
|
|
82
83
|
], !0)
|
|
83
84
|
])) : n("", !0),
|
|
84
|
-
s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div",
|
|
85
|
-
|
|
85
|
+
s.$slots["icon-start"] || l(d) && t.optionIconKey ? (o(), a("div", S, [
|
|
86
|
+
m(s.$slots, "icon-start", {}, () => [
|
|
86
87
|
i(l(h), {
|
|
87
88
|
type: t.optionIconType,
|
|
88
89
|
name: l(d)[t.optionIconKey],
|
|
@@ -90,12 +91,12 @@ const N = { class: "default-dropdown-wrapper" }, K = { class: "content" }, $ = {
|
|
|
90
91
|
}, null, 8, ["type", "name"])
|
|
91
92
|
], !0)
|
|
92
93
|
])) : n("", !0),
|
|
93
|
-
t.statusDotType ? (o(), a("div",
|
|
94
|
-
i(l(
|
|
94
|
+
t.statusDotType ? (o(), a("div", P, [
|
|
95
|
+
i(l(D), { type: t.statusDotType }, null, 8, ["type"])
|
|
95
96
|
])) : n("", !0),
|
|
96
|
-
i(l(
|
|
97
|
+
i(l(w), y({ variant: "body1" }, l(p)[l(u).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
97
98
|
default: I(() => [
|
|
98
|
-
B(
|
|
99
|
+
x(B(l(O)), 1)
|
|
99
100
|
]),
|
|
100
101
|
_: 1
|
|
101
102
|
}, 16)
|
|
@@ -26,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
26
|
triggerFeedbackText?: string;
|
|
27
27
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
28
28
|
triggerFeedbackShowIcon?: boolean;
|
|
29
|
+
triggerShowAllSelectedText?: boolean;
|
|
29
30
|
size?: "small" | "medium" | "large";
|
|
30
31
|
mandatory?: boolean;
|
|
31
32
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -39,15 +40,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
40
|
optionNameKey?: string;
|
|
40
41
|
optionIconKey?: string;
|
|
41
42
|
optionImageKey?: string;
|
|
42
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
43
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
43
44
|
optionEndIconKey?: string;
|
|
44
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
45
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
45
46
|
valueToCopy?: string;
|
|
46
47
|
disabledOptionKey?: string;
|
|
47
48
|
theme?: string;
|
|
48
49
|
fullWidth?: boolean;
|
|
49
50
|
optionsListWidth?: string;
|
|
50
51
|
statusType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
52
|
+
disableVirtualScroll?: boolean;
|
|
53
|
+
overrideOptionCountCalculation?: (option: unknown) => number;
|
|
51
54
|
}>, {
|
|
52
55
|
multi: boolean;
|
|
53
56
|
inlineSearchPlaceholder: string;
|
|
@@ -81,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
81
84
|
triggerFeedbackText: string;
|
|
82
85
|
triggerFeedbackVariant: any;
|
|
83
86
|
triggerFeedbackShowIcon: boolean;
|
|
87
|
+
triggerShowAllSelectedText: boolean;
|
|
84
88
|
searchAutoFocus: boolean;
|
|
85
89
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
86
90
|
optionNameKey: string;
|
|
@@ -94,6 +98,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
94
98
|
fullWidth: boolean;
|
|
95
99
|
optionsListWidth: any;
|
|
96
100
|
statusType: any;
|
|
101
|
+
disableVirtualScroll: boolean;
|
|
102
|
+
overrideOptionCountCalculation: any;
|
|
97
103
|
}>, {
|
|
98
104
|
selectItem: (option: any, index?: number) => void;
|
|
99
105
|
scrollTo: (index: number) => void;
|
|
@@ -133,6 +139,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
133
139
|
triggerFeedbackText?: string;
|
|
134
140
|
triggerFeedbackVariant?: "success" | "warning" | "error";
|
|
135
141
|
triggerFeedbackShowIcon?: boolean;
|
|
142
|
+
triggerShowAllSelectedText?: boolean;
|
|
136
143
|
size?: "small" | "medium" | "large";
|
|
137
144
|
mandatory?: boolean;
|
|
138
145
|
predefinedTrigger?: "default" | "icon-button" | "chip" | "app";
|
|
@@ -146,15 +153,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
146
153
|
optionNameKey?: string;
|
|
147
154
|
optionIconKey?: string;
|
|
148
155
|
optionImageKey?: string;
|
|
149
|
-
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
156
|
+
optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
150
157
|
optionEndIconKey?: string;
|
|
151
|
-
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
158
|
+
optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
152
159
|
valueToCopy?: string;
|
|
153
160
|
disabledOptionKey?: string;
|
|
154
161
|
theme?: string;
|
|
155
162
|
fullWidth?: boolean;
|
|
156
163
|
optionsListWidth?: string;
|
|
157
164
|
statusType?: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
165
|
+
disableVirtualScroll?: boolean;
|
|
166
|
+
overrideOptionCountCalculation?: (option: unknown) => number;
|
|
158
167
|
}>, {
|
|
159
168
|
multi: boolean;
|
|
160
169
|
inlineSearchPlaceholder: string;
|
|
@@ -188,6 +197,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
188
197
|
triggerFeedbackText: string;
|
|
189
198
|
triggerFeedbackVariant: any;
|
|
190
199
|
triggerFeedbackShowIcon: boolean;
|
|
200
|
+
triggerShowAllSelectedText: boolean;
|
|
191
201
|
searchAutoFocus: boolean;
|
|
192
202
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
193
203
|
optionNameKey: string;
|
|
@@ -201,6 +211,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
201
211
|
fullWidth: boolean;
|
|
202
212
|
optionsListWidth: any;
|
|
203
213
|
statusType: any;
|
|
214
|
+
disableVirtualScroll: boolean;
|
|
215
|
+
overrideOptionCountCalculation: any;
|
|
204
216
|
}>>> & {
|
|
205
217
|
onCopyToClipboard?: () => any;
|
|
206
218
|
onClear?: () => any;
|
|
@@ -238,6 +250,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
238
250
|
triggerFeedbackText: string;
|
|
239
251
|
triggerFeedbackVariant: "success" | "warning" | "error";
|
|
240
252
|
triggerFeedbackShowIcon: boolean;
|
|
253
|
+
triggerShowAllSelectedText: boolean;
|
|
241
254
|
predefinedTrigger: "default" | "icon-button" | "chip" | "app";
|
|
242
255
|
inlineSearch: boolean;
|
|
243
256
|
inlineSearchPlaceholder: string;
|
|
@@ -247,14 +260,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
247
260
|
optionNameKey: string;
|
|
248
261
|
optionIconKey: string;
|
|
249
262
|
optionImageKey: string;
|
|
250
|
-
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
263
|
+
optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
251
264
|
optionEndIconKey: string;
|
|
252
|
-
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test";
|
|
265
|
+
optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat";
|
|
253
266
|
valueToCopy: string;
|
|
254
267
|
disabledOptionKey: string;
|
|
255
268
|
fullWidth: boolean;
|
|
256
269
|
optionsListWidth: string;
|
|
257
270
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
271
|
+
disableVirtualScroll: boolean;
|
|
272
|
+
overrideOptionCountCalculation: (option: unknown) => number;
|
|
258
273
|
}>, {
|
|
259
274
|
label?(_: {}): any;
|
|
260
275
|
"dropdown-trigger"?(_: {
|
|
@@ -270,6 +285,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
270
285
|
}): any;
|
|
271
286
|
default?(_: {
|
|
272
287
|
option: unknown;
|
|
288
|
+
index: number;
|
|
273
289
|
selected: boolean;
|
|
274
290
|
active: boolean;
|
|
275
291
|
disabled: any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./DropdownV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../DropdownV4.
|
|
3
|
+
// import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_7af4f288_lang.css"; //*');
|
|
4
4
|
// import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
5
|
+
const r = /* @__PURE__ */ _(o, [["__scopeId", "data-v-7af4f288"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|