@ironsource/shared-ui 2.1.11-rc.52 → 2.1.11-rc.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
- package/{IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css → IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css} +1 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_fffa19a4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_f1f5f7e8_lang.css +1 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +110 -105
- package/components/chart/mockData.d.ts +8 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +5 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +98 -91
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +97 -98
- package/components/dropdown/v4/index.d.ts +9 -0
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +2 -2
- package/index.d.ts +18 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
- package/consts/configs.js +0 -4
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "../../../ConditionalDropdown.
|
|
1
|
+
import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css"; import { defineComponent as W, computed as O, ref as s, watch as k, onMounted as q, openBlock as L, createBlock as G, unref as d, withCtx as f, createVNode as y, mergeProps as H, createElementVNode as J, isRef as X, normalizeProps as Y, guardReactiveProps as Z, createElementBlock as _, createTextVNode as ee, toDisplayString as le, createCommentVNode as oe } from "vue";
|
|
2
2
|
import N from "./DropdownV4.vue.js";
|
|
3
3
|
import "./DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "./IconButtonDropdownTrigger.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import ae from "./ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "./AppDropdownTrigger.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import te from "./ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "./ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "./TreeDropdown.vue.js";
|
|
10
10
|
import "./OptionV4.vue.js";
|
|
11
11
|
import "./ConditionalDropdown.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useDebounceFn as
|
|
15
|
-
const
|
|
12
|
+
import ne from "../../search/v4/SearchV4.vue.js";
|
|
13
|
+
import ie from "../../typography/v4/Typography.vue.js";
|
|
14
|
+
import { useDebounceFn as ue } from "@vueuse/core";
|
|
15
|
+
const re = { class: "conditional-container" }, se = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "custom-list-area"
|
|
18
|
-
},
|
|
18
|
+
}, Ke = /* @__PURE__ */ W({
|
|
19
19
|
__name: "ConditionalDropdown",
|
|
20
20
|
props: {
|
|
21
21
|
selectedCondition: null,
|
|
@@ -37,49 +37,51 @@ const ue = { class: "conditional-container" }, re = {
|
|
|
37
37
|
optionFlagKey: { default: "" },
|
|
38
38
|
optionIconKey: { default: "" },
|
|
39
39
|
optionImageKey: { default: "" },
|
|
40
|
-
optionIconType: { default: null }
|
|
40
|
+
optionIconType: { default: null },
|
|
41
|
+
loadingOverride: { type: Boolean, default: !1 }
|
|
41
42
|
},
|
|
42
43
|
emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
|
|
43
|
-
setup(
|
|
44
|
-
const e =
|
|
44
|
+
setup(u, { emit: h }) {
|
|
45
|
+
const e = u, S = O({
|
|
45
46
|
get: () => e.appliedSelections,
|
|
46
47
|
set: (l) => {
|
|
47
48
|
h("update:appliedSelections", l);
|
|
48
49
|
}
|
|
49
|
-
}), n =
|
|
50
|
+
}), n = O({
|
|
50
51
|
get: () => e.selectedCondition || e.conditionalOptions[0],
|
|
51
52
|
set: (l) => {
|
|
52
53
|
h("update:selectedCondition", l);
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
}), F = () => {
|
|
56
|
+
const { appliedSelections: l } = e;
|
|
57
|
+
return l ? Array.isArray(l) ? l : [l] : [];
|
|
58
|
+
}, w = s(null), c = s(!0), a = s([]), r = s(F()), K = s(!0), p = s(!1), C = s(!1), i = s(e.searchQuery), B = s(""), m = s(e.label), T = s([]), U = O(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), I = O(() => {
|
|
57
59
|
const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
|
|
58
60
|
if (e.groupedOptions) {
|
|
59
61
|
let o = 0;
|
|
60
|
-
return a.value.forEach((
|
|
61
|
-
|
|
62
|
+
return a.value.forEach((g) => {
|
|
63
|
+
g.options && (o = o + g.options.length);
|
|
62
64
|
}), o > 4 ? o : l;
|
|
63
65
|
}
|
|
64
66
|
return t > l ? t : l;
|
|
65
|
-
}),
|
|
66
|
-
if (e.infiniteLoading && n.value.multi && Array.isArray(
|
|
67
|
-
const o = [],
|
|
67
|
+
}), M = (l, t) => {
|
|
68
|
+
if (e.infiniteLoading && n.value.multi && Array.isArray(r.value) && r.value.length && l && t.length) {
|
|
69
|
+
const o = [], g = r.value.filter(
|
|
68
70
|
(v) => v[e.optionNameKey].includes(l)
|
|
69
71
|
);
|
|
70
72
|
return t.forEach((v) => {
|
|
71
|
-
|
|
72
|
-
(
|
|
73
|
+
g.find(
|
|
74
|
+
(j) => j[e.comparingKey] === v[e.comparingKey]
|
|
73
75
|
) && o.push(v[e.comparingKey]);
|
|
74
|
-
}),
|
|
76
|
+
}), g.filter(
|
|
75
77
|
(v) => !o.includes(v[e.comparingKey])
|
|
76
78
|
);
|
|
77
79
|
}
|
|
78
80
|
return [];
|
|
79
|
-
},
|
|
81
|
+
}, A = async (l) => {
|
|
80
82
|
try {
|
|
81
83
|
p.value = !0;
|
|
82
|
-
const t = await e.fetchFnCallback(l), o =
|
|
84
|
+
const t = await e.fetchFnCallback(l), o = M(
|
|
83
85
|
l,
|
|
84
86
|
t
|
|
85
87
|
);
|
|
@@ -87,21 +89,21 @@ const ue = { class: "conditional-container" }, re = {
|
|
|
87
89
|
} catch (t) {
|
|
88
90
|
p.value = !1, console.error("Error fetching data:", t);
|
|
89
91
|
}
|
|
90
|
-
},
|
|
92
|
+
}, E = async () => {
|
|
91
93
|
if (e.infiniteLoading)
|
|
92
94
|
try {
|
|
93
|
-
|
|
95
|
+
C.value = !0;
|
|
94
96
|
const l = await e.loadMoreFn();
|
|
95
|
-
|
|
97
|
+
C.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
|
|
96
98
|
} catch (l) {
|
|
97
|
-
|
|
99
|
+
C.value = !1, console.error("Error fetching data:", l);
|
|
98
100
|
}
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
+
}, V = ue(
|
|
102
|
+
A,
|
|
101
103
|
e.fetchDataDebounceTime
|
|
102
|
-
),
|
|
103
|
-
l.length >= e.minCharsToStart ? (
|
|
104
|
-
},
|
|
104
|
+
), b = (l) => {
|
|
105
|
+
l.length >= e.minCharsToStart ? (V(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
|
|
106
|
+
}, x = () => {
|
|
105
107
|
i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
|
|
106
108
|
name: i.value,
|
|
107
109
|
conditionalOptions: !0,
|
|
@@ -116,124 +118,129 @@ const ue = { class: "conditional-container" }, re = {
|
|
|
116
118
|
},
|
|
117
119
|
...a.value
|
|
118
120
|
] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
|
|
119
|
-
},
|
|
120
|
-
c.value &&
|
|
121
|
+
}, D = () => {
|
|
122
|
+
c.value && r.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
|
|
121
123
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}),
|
|
125
|
-
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
k(i, () => {
|
|
125
|
+
b(i.value);
|
|
126
|
+
}), k([n, a], () => {
|
|
127
|
+
x();
|
|
128
|
+
}), k(
|
|
129
|
+
() => e.loadingOverride,
|
|
130
|
+
(l, t) => {
|
|
131
|
+
!l && t && !e.infiniteLoading && A(e.searchQuery);
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
const P = () => {
|
|
135
|
+
c.value && r.value.length === 0 ? (n.value = null, S.value = [], n.value = null) : (B.value = i.value, S.value = c.value ? [...r.value] : { ...r.value }, K.value = c.value), D();
|
|
129
136
|
};
|
|
130
|
-
|
|
131
|
-
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (
|
|
137
|
+
k(n, (l, t) => {
|
|
138
|
+
n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (r.value = e.appliedSelections), setTimeout(() => {
|
|
132
139
|
p.value = !1, c.value = !0;
|
|
133
140
|
}, 100)) : setTimeout(() => {
|
|
134
141
|
c.value = !1;
|
|
135
142
|
}, 100);
|
|
136
143
|
});
|
|
137
|
-
const
|
|
144
|
+
const Q = (l) => {
|
|
138
145
|
T.value = l;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
l && n.value.multi && e.infiniteLoading &&
|
|
146
|
+
}, R = () => {
|
|
147
|
+
r.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
|
|
148
|
+
}, z = (l) => {
|
|
149
|
+
l && n.value.multi && e.infiniteLoading && r.value && (a.value = r.value, i.value && b(i.value));
|
|
143
150
|
};
|
|
144
|
-
|
|
145
|
-
(e.searchQuery || !e.infiniteLoading) &&
|
|
151
|
+
q(() => {
|
|
152
|
+
(e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), D();
|
|
146
153
|
});
|
|
147
|
-
const
|
|
154
|
+
const $ = () => {
|
|
148
155
|
h("closed");
|
|
149
156
|
};
|
|
150
|
-
return (l, t) => (
|
|
157
|
+
return (l, t) => (L(), G(d(N), {
|
|
151
158
|
ref_key: "dropdownRef",
|
|
152
159
|
ref: w,
|
|
153
|
-
selected:
|
|
154
|
-
"onUpdate:selected": t[2] || (t[2] = (o) =>
|
|
160
|
+
selected: r.value,
|
|
161
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => r.value = o),
|
|
155
162
|
"predefined-trigger": "chip",
|
|
156
|
-
"display-value": (o) => o?.[
|
|
163
|
+
"display-value": (o) => o?.[u.optionNameKey],
|
|
157
164
|
multi: c.value,
|
|
158
165
|
options: a.value,
|
|
159
166
|
placeholder: m.value,
|
|
160
167
|
"search-placeholder": "Search",
|
|
161
|
-
"option-name-key":
|
|
168
|
+
"option-name-key": u.optionNameKey,
|
|
162
169
|
"with-conditions": "",
|
|
163
170
|
"inline-search": "",
|
|
164
|
-
"custom-number-of-displayed-options": d(
|
|
171
|
+
"custom-number-of-displayed-options": d(I),
|
|
165
172
|
"options-list-width": "330px",
|
|
166
|
-
loading: p.value,
|
|
167
|
-
"load-more-loading":
|
|
168
|
-
"comparing-key":
|
|
169
|
-
"is-open":
|
|
170
|
-
"infinite-loading":
|
|
171
|
-
"show-select-all": !
|
|
172
|
-
"grouped-options":
|
|
173
|
-
"option-flag-key":
|
|
174
|
-
"option-image-key":
|
|
175
|
-
"option-icon-key":
|
|
176
|
-
"option-icon-type":
|
|
177
|
-
"onUpdate:isOpen":
|
|
178
|
-
onOnsearch:
|
|
179
|
-
onApply:
|
|
180
|
-
onLoadMore:
|
|
181
|
-
onUnsavedSelectionUpdate:
|
|
182
|
-
onClosed:
|
|
173
|
+
loading: p.value || u.loadingOverride,
|
|
174
|
+
"load-more-loading": C.value,
|
|
175
|
+
"comparing-key": u.comparingKey,
|
|
176
|
+
"is-open": u.isOpen,
|
|
177
|
+
"infinite-loading": u.infiniteLoading,
|
|
178
|
+
"show-select-all": !u.infiniteLoading && !i.value,
|
|
179
|
+
"grouped-options": u.groupedOptions,
|
|
180
|
+
"option-flag-key": u.optionFlagKey,
|
|
181
|
+
"option-image-key": u.optionImageKey,
|
|
182
|
+
"option-icon-key": u.optionIconKey,
|
|
183
|
+
"option-icon-type": u.optionIconType,
|
|
184
|
+
"onUpdate:isOpen": z,
|
|
185
|
+
onOnsearch: b,
|
|
186
|
+
onApply: P,
|
|
187
|
+
onLoadMore: E,
|
|
188
|
+
onUnsavedSelectionUpdate: Q,
|
|
189
|
+
onClosed: $
|
|
183
190
|
}, {
|
|
184
191
|
"dropdown-trigger": f(({ defaultTriggerProps: o }) => [
|
|
185
|
-
|
|
192
|
+
y(d(ae), H(o, {
|
|
186
193
|
label: m.value,
|
|
187
194
|
"selected-option": d(S),
|
|
188
195
|
multi: K.value,
|
|
189
196
|
"cancel-all-selected-display": "",
|
|
190
|
-
"display-value-in-quotes": !Array.isArray(
|
|
191
|
-
onClear:
|
|
197
|
+
"display-value-in-quotes": !Array.isArray(r.value) && r.value.conditionalOptions,
|
|
198
|
+
onClear: R
|
|
192
199
|
}), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
|
|
193
200
|
]),
|
|
194
201
|
"dropdown-conditions": f(() => [
|
|
195
|
-
|
|
196
|
-
|
|
202
|
+
J("div", re, [
|
|
203
|
+
y(d(N), {
|
|
197
204
|
selected: d(n),
|
|
198
|
-
"onUpdate:selected": t[0] || (t[0] = (o) =>
|
|
199
|
-
options:
|
|
205
|
+
"onUpdate:selected": t[0] || (t[0] = (o) => X(n) ? n.value = o : null),
|
|
206
|
+
options: u.conditionalOptions,
|
|
200
207
|
"option-name-key": "label",
|
|
201
208
|
"display-value": (o) => o?.label,
|
|
202
209
|
container: ".conditional-container",
|
|
203
210
|
size: "small"
|
|
204
211
|
}, {
|
|
205
212
|
"dropdown-trigger": f(({ buttonTriggerProps: o }) => [
|
|
206
|
-
|
|
213
|
+
y(d(te), Y(Z(o)), null, 16)
|
|
207
214
|
]),
|
|
208
215
|
_: 1
|
|
209
216
|
}, 8, ["selected", "options", "display-value"])
|
|
210
217
|
])
|
|
211
218
|
]),
|
|
212
219
|
"inline-search": f(() => [
|
|
213
|
-
|
|
220
|
+
y(d(ne), {
|
|
214
221
|
modelValue: i.value,
|
|
215
222
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
|
|
216
223
|
class: "inline-search",
|
|
217
224
|
placeholder: "Search",
|
|
218
225
|
variant: "transparent",
|
|
219
226
|
size: "md",
|
|
220
|
-
"auto-focus":
|
|
227
|
+
"auto-focus": u.autoFocusSearch
|
|
221
228
|
}, null, 8, ["modelValue", "auto-focus"])
|
|
222
229
|
]),
|
|
223
230
|
"custom-list-area": f(() => [
|
|
224
|
-
!a.value.length && !p.value ? (
|
|
225
|
-
|
|
231
|
+
!a.value.length && !p.value ? (L(), _("div", se, [
|
|
232
|
+
y(ie, { variant: "body1" }, {
|
|
226
233
|
default: f(() => [
|
|
227
|
-
|
|
234
|
+
ee(le(d(U)), 1)
|
|
228
235
|
]),
|
|
229
236
|
_: 1
|
|
230
237
|
})
|
|
231
|
-
])) :
|
|
238
|
+
])) : oe("", !0)
|
|
232
239
|
]),
|
|
233
240
|
_: 1
|
|
234
241
|
}, 8, ["selected", "display-value", "multi", "options", "placeholder", "option-name-key", "custom-number-of-displayed-options", "loading", "load-more-loading", "comparing-key", "is-open", "infinite-loading", "show-select-all", "grouped-options", "option-flag-key", "option-image-key", "option-icon-key", "option-icon-type"]));
|
|
235
242
|
}
|
|
236
243
|
});
|
|
237
244
|
export {
|
|
238
|
-
|
|
245
|
+
Ke as default
|
|
239
246
|
};
|
|
@@ -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_73bf9b5b_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-73bf9b5b"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import "../../../DefaultDropdownTrigger.
|
|
1
|
+
import "../../../DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css"; import { defineComponent as I, computed as u, openBlock as a, createElementBlock as d, createBlock as m, createCommentVNode as n, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as r, withCtx as O, createTextVNode as B, toDisplayString as $ } from "vue";
|
|
2
2
|
import w from "../../typography/v4/Typography.vue.js";
|
|
3
3
|
import { DropdownTestIdModifiers as f } from "../../../testids/index.js";
|
|
4
4
|
import g from "../../icon/v4/IconV4.vue.js";
|
|
5
|
-
import "../../icon/v4/IconFlag.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
const N = { class: "default-dropdown-wrapper" }, C = { class: "content" }, x = {
|
|
5
|
+
import K from "../../icon/v4/IconFlag.vue.js";
|
|
6
|
+
import V from "../../shared/FieldLabel.vue.js";
|
|
7
|
+
import { useTestIdAttrs as A } from "../../../utils/testIds.js";
|
|
8
|
+
import D from "../../statusDot/StatusDot.vue.js";
|
|
9
|
+
const N = { class: "default-dropdown-wrapper" }, S = { class: "content" }, x = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "image"
|
|
13
|
-
},
|
|
12
|
+
}, C = ["src"], F = {
|
|
14
13
|
key: 1,
|
|
15
14
|
class: "flag"
|
|
16
|
-
},
|
|
15
|
+
}, P = {
|
|
17
16
|
key: 2,
|
|
18
17
|
class: "start-icon"
|
|
19
18
|
}, z = {
|
|
20
19
|
key: 3,
|
|
21
20
|
class: "status-dot"
|
|
22
|
-
},
|
|
21
|
+
}, E = { key: 0 }, H = { class: "caret-down" }, Q = /* @__PURE__ */ I({
|
|
23
22
|
__name: "DefaultDropdownTrigger",
|
|
24
23
|
props: {
|
|
25
24
|
placeholder: { default: "Select" },
|
|
@@ -51,21 +50,21 @@ const N = { class: "default-dropdown-wrapper" }, C = { class: "content" }, x = {
|
|
|
51
50
|
statusDotType: { default: null }
|
|
52
51
|
},
|
|
53
52
|
emits: ["click"],
|
|
54
|
-
setup(t, { emit:
|
|
55
|
-
const e = t,
|
|
53
|
+
setup(t, { emit: T }) {
|
|
54
|
+
const e = t, v = u(
|
|
56
55
|
() => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
|
|
57
56
|
), b = () => {
|
|
58
|
-
|
|
59
|
-
}, p =
|
|
57
|
+
T("click");
|
|
58
|
+
}, p = A(e.testId, f), k = u(() => e.multi ? !Array.isArray(e.selectedOption) || !e.selectedOption?.length ? e.placeholder : e.showAllSelectedText && e.allSelected ? `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), s = u(() => {
|
|
60
59
|
if (!e.selectedOption)
|
|
61
60
|
return null;
|
|
62
61
|
if (!e.multi)
|
|
63
62
|
return e.selectedOption;
|
|
64
63
|
if (Array.isArray(e.selectedOption))
|
|
65
64
|
return e.selectedOption.length === 1 ? e.selectedOption[0] : null;
|
|
66
|
-
})
|
|
67
|
-
return (o,
|
|
68
|
-
t.label ? (a(),
|
|
65
|
+
});
|
|
66
|
+
return (o, y) => (a(), d("div", N, [
|
|
67
|
+
t.label ? (a(), m(V, {
|
|
69
68
|
key: 0,
|
|
70
69
|
label: t.label,
|
|
71
70
|
mandatory: t.mandatory,
|
|
@@ -74,55 +73,55 @@ const N = { class: "default-dropdown-wrapper" }, C = { class: "content" }, x = {
|
|
|
74
73
|
disabled: t.disabled,
|
|
75
74
|
"test-id": t.testId,
|
|
76
75
|
class: "dropdown-field-label"
|
|
77
|
-
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) :
|
|
76
|
+
}, null, 8, ["label", "mandatory", "hover-help-text", "hover-help-text-placement", "disabled", "test-id"])) : n("", !0),
|
|
78
77
|
c("div", h({
|
|
79
|
-
class: ["dropdown-trigger", [t.size, l(
|
|
78
|
+
class: ["dropdown-trigger", [t.size, l(v), { open: t.open, disabled: t.disabled }]]
|
|
80
79
|
}, l(p)[l(f).BUTTON_WRAPPER], {
|
|
81
|
-
onClick:
|
|
80
|
+
onClick: y[0] || (y[0] = (R) => b())
|
|
82
81
|
}), [
|
|
83
|
-
c("div",
|
|
84
|
-
o.$slots.image || l(
|
|
82
|
+
c("div", S, [
|
|
83
|
+
o.$slots.image || l(s) && t.optionImageKey ? (a(), d("div", x, [
|
|
85
84
|
i(o.$slots, "image", {}, () => [
|
|
86
|
-
t.optionImageKey ? (a(),
|
|
85
|
+
t.optionImageKey ? (a(), d("img", {
|
|
87
86
|
key: 0,
|
|
88
|
-
src: l(
|
|
89
|
-
}, null, 8,
|
|
87
|
+
src: l(s)[t.optionImageKey]
|
|
88
|
+
}, null, 8, C)) : n("", !0)
|
|
90
89
|
], !0)
|
|
91
|
-
])) :
|
|
92
|
-
o.$slots.flag || l(
|
|
90
|
+
])) : n("", !0),
|
|
91
|
+
o.$slots.flag || l(s) && t.optionFlagKey ? (a(), d("div", F, [
|
|
93
92
|
i(o.$slots, "flag", {}, () => [
|
|
94
|
-
|
|
93
|
+
t.optionFlagKey ? (a(), m(l(K), {
|
|
95
94
|
key: 0,
|
|
96
|
-
src: l(
|
|
97
|
-
}, null, 8,
|
|
95
|
+
src: l(s)[t.optionFlagKey]
|
|
96
|
+
}, null, 8, ["src"])) : n("", !0)
|
|
98
97
|
], !0)
|
|
99
|
-
])) :
|
|
100
|
-
o.$slots["icon-start"] || l(
|
|
98
|
+
])) : n("", !0),
|
|
99
|
+
o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
|
|
101
100
|
i(o.$slots, "icon-start", {}, () => [
|
|
102
|
-
|
|
101
|
+
r(l(g), {
|
|
103
102
|
type: t.optionIconType,
|
|
104
|
-
name: l(
|
|
103
|
+
name: l(s)[t.optionIconKey],
|
|
105
104
|
size: "20px"
|
|
106
105
|
}, null, 8, ["type", "name"])
|
|
107
106
|
], !0)
|
|
108
|
-
])) :
|
|
109
|
-
t.statusDotType ? (a(),
|
|
110
|
-
|
|
111
|
-
])) :
|
|
107
|
+
])) : n("", !0),
|
|
108
|
+
t.statusDotType ? (a(), d("div", z, [
|
|
109
|
+
r(l(D), { type: t.statusDotType }, null, 8, ["type"])
|
|
110
|
+
])) : n("", !0),
|
|
112
111
|
i(o.$slots, "displayed-value", {}, () => [
|
|
113
|
-
|
|
114
|
-
default:
|
|
115
|
-
|
|
112
|
+
r(l(w), h({ variant: "body1" }, l(p)[l(f).BUTTON_CONTENT], { class: "displayed-value" }), {
|
|
113
|
+
default: O(() => [
|
|
114
|
+
B($(l(k)), 1)
|
|
116
115
|
]),
|
|
117
116
|
_: 1
|
|
118
117
|
}, 16)
|
|
119
118
|
], !0)
|
|
120
119
|
]),
|
|
121
|
-
o.$slots["end-icon"] ? (a(),
|
|
120
|
+
o.$slots["end-icon"] ? (a(), d("div", E, [
|
|
122
121
|
i(o.$slots, "end-icon", {}, void 0, !0)
|
|
123
|
-
])) :
|
|
124
|
-
c("div",
|
|
125
|
-
|
|
122
|
+
])) : n("", !0),
|
|
123
|
+
c("div", H, [
|
|
124
|
+
r(l(g), {
|
|
126
125
|
name: "caret-down",
|
|
127
126
|
size: "20px"
|
|
128
127
|
})
|
|
@@ -132,5 +131,5 @@ const N = { class: "default-dropdown-wrapper" }, C = { class: "content" }, x = {
|
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
133
|
export {
|
|
135
|
-
|
|
134
|
+
Q as default
|
|
136
135
|
};
|
|
@@ -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
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_fffa19a4_lang.css"; //*');
|
|
4
|
+
const f = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fffa19a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|