@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.
Files changed (30) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  2. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_03022bc9_lang.css +1 -0
  3. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  4. 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
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_fffa19a4_lang.css +1 -0
  6. package/SortableList.vue_vue_type_style_index_0_scoped_f1f5f7e8_lang.css +1 -0
  7. package/components/chart/Chart.vue.js +4 -4
  8. package/components/chart/Chart.vue2.js +110 -105
  9. package/components/chart/mockData.d.ts +8 -0
  10. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +5 -0
  11. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  12. package/components/dropdown/v4/ConditionalDropdown.vue2.js +98 -91
  13. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  14. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  15. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  16. package/components/dropdown/v4/OptionV4.vue2.js +97 -98
  17. package/components/dropdown/v4/index.d.ts +9 -0
  18. package/components/icon/v4/IconFlag.vue.js +3 -3
  19. package/components/icon/v4/IconFlag.vue2.js +1 -1
  20. package/components/sortableList/SortableList.vue.js +4 -4
  21. package/components/sortableList/SortableList.vue2.js +2 -2
  22. package/index.d.ts +18 -0
  23. package/index.js +1 -1
  24. package/package.json +1 -1
  25. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  26. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css +0 -1
  27. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  28. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
  29. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +0 -1
  30. package/consts/configs.js +0 -4
@@ -1,21 +1,21 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css"; import { defineComponent as j, computed as k, ref as s, watch as O, onMounted as W, openBlock as D, createBlock as q, unref as d, withCtx as f, createVNode as g, mergeProps as G, createElementVNode as H, isRef as J, normalizeProps as X, guardReactiveProps as Y, createElementBlock as Z, createTextVNode as _, toDisplayString as ee, createCommentVNode as le } from "vue";
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 oe from "./ChipDropdownTrigger.vue.js";
5
+ import ae from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
- import ae from "./ButtonDropdownTrigger.vue.js";
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 te from "../../search/v4/SearchV4.vue.js";
13
- import ne from "../../typography/v4/Typography.vue.js";
14
- import { useDebounceFn as ie } from "@vueuse/core";
15
- const ue = { class: "conditional-container" }, re = {
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
- }, we = /* @__PURE__ */ j({
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(r, { emit: h }) {
44
- const e = r, S = k({
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 = k({
50
+ }), n = O({
50
51
  get: () => e.selectedCondition || e.conditionalOptions[0],
51
52
  set: (l) => {
52
53
  h("update:selectedCondition", l);
53
54
  }
54
- }), w = s(null), c = s(!0), a = s([]), u = s(
55
- Array.isArray(e.appliedSelections) ? e.appliedSelections : [e.appliedSelections]
56
- ), K = s(!0), p = s(!1), b = s(!1), i = s(e.searchQuery), L = s(""), m = s(e.label), T = s([]), F = k(() => (!i.value || i.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), U = k(() => {
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((y) => {
61
- y.options && (o = o + y.options.length);
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
- }), B = (l, t) => {
66
- if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l && t.length) {
67
- const o = [], y = u.value.filter(
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
- y.find(
72
- ($) => $[e.comparingKey] === v[e.comparingKey]
73
+ g.find(
74
+ (j) => j[e.comparingKey] === v[e.comparingKey]
73
75
  ) && o.push(v[e.comparingKey]);
74
- }), y.filter(
76
+ }), g.filter(
75
77
  (v) => !o.includes(v[e.comparingKey])
76
78
  );
77
79
  }
78
80
  return [];
79
- }, I = async (l) => {
81
+ }, A = async (l) => {
80
82
  try {
81
83
  p.value = !0;
82
- const t = await e.fetchFnCallback(l), o = B(
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
- }, M = async () => {
92
+ }, E = async () => {
91
93
  if (e.infiniteLoading)
92
94
  try {
93
- b.value = !0;
95
+ C.value = !0;
94
96
  const l = await e.loadMoreFn();
95
- b.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
97
+ C.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
96
98
  } catch (l) {
97
- b.value = !1, console.error("Error fetching data:", l);
99
+ C.value = !1, console.error("Error fetching data:", l);
98
100
  }
99
- }, E = ie(
100
- I,
101
+ }, V = ue(
102
+ A,
101
103
  e.fetchDataDebounceTime
102
- ), C = (l) => {
103
- l.length >= e.minCharsToStart ? (E(l), w.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
104
- }, V = () => {
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
- }, A = () => {
120
- c.value && u.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
121
+ }, D = () => {
122
+ c.value && r.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
121
123
  };
122
- O(i, () => {
123
- C(i.value);
124
- }), O([n, a], () => {
125
- V();
126
- });
127
- const x = () => {
128
- c.value && u.value.length === 0 ? (n.value = null, S.value = [], n.value = null) : (L.value = i.value, S.value = c.value ? [...u.value] : { ...u.value }, K.value = c.value), A();
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
- O(n, (l, t) => {
131
- n.value.multi ? (p.value = !0, !t.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
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 P = (l) => {
144
+ const Q = (l) => {
138
145
  T.value = l;
139
- }, Q = () => {
140
- u.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
141
- }, R = (l) => {
142
- l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && C(i.value));
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
- W(() => {
145
- (e.searchQuery || !e.infiniteLoading) && C(e.searchQuery), A();
151
+ q(() => {
152
+ (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), D();
146
153
  });
147
- const z = () => {
154
+ const $ = () => {
148
155
  h("closed");
149
156
  };
150
- return (l, t) => (D(), q(d(N), {
157
+ return (l, t) => (L(), G(d(N), {
151
158
  ref_key: "dropdownRef",
152
159
  ref: w,
153
- selected: u.value,
154
- "onUpdate:selected": t[2] || (t[2] = (o) => u.value = 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?.[r.optionNameKey],
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": r.optionNameKey,
168
+ "option-name-key": u.optionNameKey,
162
169
  "with-conditions": "",
163
170
  "inline-search": "",
164
- "custom-number-of-displayed-options": d(U),
171
+ "custom-number-of-displayed-options": d(I),
165
172
  "options-list-width": "330px",
166
- loading: p.value,
167
- "load-more-loading": b.value,
168
- "comparing-key": r.comparingKey,
169
- "is-open": r.isOpen,
170
- "infinite-loading": r.infiniteLoading,
171
- "show-select-all": !r.infiniteLoading && !i.value,
172
- "grouped-options": r.groupedOptions,
173
- "option-flag-key": r.optionFlagKey,
174
- "option-image-key": r.optionImageKey,
175
- "option-icon-key": r.optionIconKey,
176
- "option-icon-type": r.optionIconType,
177
- "onUpdate:isOpen": R,
178
- onOnsearch: C,
179
- onApply: x,
180
- onLoadMore: M,
181
- onUnsavedSelectionUpdate: P,
182
- onClosed: z
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
- g(d(oe), G(o, {
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(u.value) && u.value.conditionalOptions,
191
- onClear: Q
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
- H("div", ue, [
196
- g(d(N), {
202
+ J("div", re, [
203
+ y(d(N), {
197
204
  selected: d(n),
198
- "onUpdate:selected": t[0] || (t[0] = (o) => J(n) ? n.value = o : null),
199
- options: r.conditionalOptions,
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
- g(d(ae), X(Y(o)), null, 16)
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
- g(d(te), {
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": r.autoFocusSearch
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 ? (D(), Z("div", re, [
225
- g(ne, { variant: "body1" }, {
231
+ !a.value.length && !p.value ? (L(), _("div", se, [
232
+ y(ie, { variant: "body1" }, {
226
233
  default: f(() => [
227
- _(ee(d(F)), 1)
234
+ ee(le(d(U)), 1)
228
235
  ]),
229
236
  _: 1
230
237
  })
231
- ])) : le("", !0)
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
- we as default
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.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9fa84b26"]]);
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.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css"; import { defineComponent as I, computed as r, openBlock as a, createElementBlock as n, createBlock as O, createCommentVNode as s, createElementVNode as c, mergeProps as h, unref as l, renderSlot as i, createVNode as u, withCtx as $, createTextVNode as A, toDisplayString as B } from "vue";
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 D from "../../shared/FieldLabel.vue.js";
7
- import { useTestIdAttrs as S } from "../../../utils/testIds.js";
8
- import K from "../../statusDot/StatusDot.vue.js";
9
- import { SHARED_ASSETS_CDN_DOMAIN as V } from "../../../consts/configs.js";
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
- }, E = ["src"], F = {
12
+ }, C = ["src"], F = {
14
13
  key: 1,
15
14
  class: "flag"
16
- }, H = ["src"], P = {
15
+ }, P = {
17
16
  key: 2,
18
17
  class: "start-icon"
19
18
  }, z = {
20
19
  key: 3,
21
20
  class: "status-dot"
22
- }, R = { key: 0 }, U = { class: "caret-down" }, Z = /* @__PURE__ */ I({
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: v }) {
55
- const e = t, T = r(
53
+ setup(t, { emit: T }) {
54
+ const e = t, v = u(
56
55
  () => e.feedbackVariant ? `state-${e.feedbackVariant}` : ""
57
56
  ), b = () => {
58
- v("click");
59
- }, p = S(e.testId, f), k = r(() => 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), d = r(() => {
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
- }), y = r(() => e.optionFlagKey && d.value ? `${V}/assets/flags/v4/${d.value[e.optionFlagKey]?.toLowerCase()}.svg` : null);
67
- return (o, m) => (a(), n("div", N, [
68
- t.label ? (a(), O(D, {
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"])) : s("", !0),
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(T), { open: t.open, disabled: t.disabled }]]
78
+ class: ["dropdown-trigger", [t.size, l(v), { open: t.open, disabled: t.disabled }]]
80
79
  }, l(p)[l(f).BUTTON_WRAPPER], {
81
- onClick: m[0] || (m[0] = (L) => b())
80
+ onClick: y[0] || (y[0] = (R) => b())
82
81
  }), [
83
- c("div", C, [
84
- o.$slots.image || l(d) && t.optionImageKey ? (a(), n("div", x, [
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(), n("img", {
85
+ t.optionImageKey ? (a(), d("img", {
87
86
  key: 0,
88
- src: l(d)[t.optionImageKey]
89
- }, null, 8, E)) : s("", !0)
87
+ src: l(s)[t.optionImageKey]
88
+ }, null, 8, C)) : n("", !0)
90
89
  ], !0)
91
- ])) : s("", !0),
92
- o.$slots.flag || l(d) && t.optionFlagKey ? (a(), n("div", F, [
90
+ ])) : n("", !0),
91
+ o.$slots.flag || l(s) && t.optionFlagKey ? (a(), d("div", F, [
93
92
  i(o.$slots, "flag", {}, () => [
94
- l(y) ? (a(), n("img", {
93
+ t.optionFlagKey ? (a(), m(l(K), {
95
94
  key: 0,
96
- src: l(y)
97
- }, null, 8, H)) : s("", !0)
95
+ src: l(s)[t.optionFlagKey]
96
+ }, null, 8, ["src"])) : n("", !0)
98
97
  ], !0)
99
- ])) : s("", !0),
100
- o.$slots["icon-start"] || l(d) && t.optionIconKey ? (a(), n("div", P, [
98
+ ])) : n("", !0),
99
+ o.$slots["icon-start"] || l(s) && t.optionIconKey ? (a(), d("div", P, [
101
100
  i(o.$slots, "icon-start", {}, () => [
102
- u(l(g), {
101
+ r(l(g), {
103
102
  type: t.optionIconType,
104
- name: l(d)[t.optionIconKey],
103
+ name: l(s)[t.optionIconKey],
105
104
  size: "20px"
106
105
  }, null, 8, ["type", "name"])
107
106
  ], !0)
108
- ])) : s("", !0),
109
- t.statusDotType ? (a(), n("div", z, [
110
- u(l(K), { type: t.statusDotType }, null, 8, ["type"])
111
- ])) : s("", !0),
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
- u(l(w), h({ variant: "body1" }, l(p)[l(f).BUTTON_CONTENT], { class: "displayed-value" }), {
114
- default: $(() => [
115
- A(B(l(k)), 1)
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(), n("div", R, [
120
+ o.$slots["end-icon"] ? (a(), d("div", E, [
122
121
  i(o.$slots, "end-icon", {}, void 0, !0)
123
- ])) : s("", !0),
124
- c("div", U, [
125
- u(l(g), {
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
- Z as default
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.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2c2947b3"]]);
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
- s as default
6
+ f as default
7
7
  };