@ironsource/shared-ui 2.1.11-test.52 → 2.1.11-test.55

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 (84) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  2. package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +1 -0
  3. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  4. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2a77c137_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  7. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  8. package/IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css +1 -0
  9. package/OptionV4.vue_vue_type_style_index_0_scoped_5ff4b654_lang.css +1 -0
  10. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  11. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  12. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  13. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  14. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  15. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  16. package/components/button/v3/Button.vue.d.ts +6 -6
  17. package/components/button/v3/index.d.ts +14 -14
  18. package/components/chart/Chart.vue.d.ts +1 -1
  19. package/components/chart/Chart.vue.js +4 -4
  20. package/components/chart/Chart.vue2.js +110 -105
  21. package/components/chart/ChartLegend.vue.js +2 -2
  22. package/components/chart/ChartLegend.vue2.js +60 -50
  23. package/components/chart/ChartLoader.vue.js +5 -23
  24. package/components/chart/ChartLoader.vue2.js +15 -0
  25. package/components/chart/index.d.ts +20 -20
  26. package/components/chart/mockData.d.ts +8 -0
  27. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  28. package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
  29. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +26 -3
  30. package/components/dropdown/v4/ConditionalDropdown.vue.js +2 -2
  31. package/components/dropdown/v4/ConditionalDropdown.vue2.js +131 -109
  32. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  33. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  34. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  35. package/components/dropdown/v4/OptionV4.vue2.js +97 -98
  36. package/components/dropdown/v4/index.d.ts +41 -3
  37. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  38. package/components/emptyState/v3/index.d.ts +7 -7
  39. package/components/icon/v4/IconFlag.vue.js +3 -3
  40. package/components/icon/v4/IconFlag.vue2.js +1 -1
  41. package/components/input/v4/TextField.vue.js +3 -3
  42. package/components/input/v4/TextField.vue2.js +184 -164
  43. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  44. package/components/sortableList/SortableItem.vue.js +3 -3
  45. package/components/sortableList/SortableItem.vue2.js +76 -61
  46. package/components/sortableList/SortableList.vue.d.ts +16 -0
  47. package/components/sortableList/SortableList.vue.js +3 -3
  48. package/components/sortableList/SortableList.vue2.js +100 -87
  49. package/components/sortableList/index.d.ts +59 -1
  50. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  51. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  52. package/components/table/v4/index.d.ts +59 -59
  53. package/components/table-cells/common/Editable.common.js +8 -7
  54. package/components/table-cells/common/EditableContext.d.ts +1 -0
  55. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  56. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  57. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  58. package/components/table-cells/v4/index.d.ts +20 -1
  59. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  60. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  61. package/components/typography/v4/Typography.vue.js +3 -3
  62. package/components/typography/v4/Typography.vue2.js +1 -1
  63. package/composables/useFormValidation.d.ts +1 -1
  64. package/index.d.ts +358 -128
  65. package/index.js +1 -1
  66. package/package.json +239 -2
  67. package/testids/index.d.ts +1 -0
  68. package/testids/index.js +13 -13
  69. package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +0 -1
  70. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +0 -1
  71. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  72. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css +0 -1
  73. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
  74. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  75. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  76. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  77. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
  78. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +0 -1
  79. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +0 -1
  80. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +0 -1
  81. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +0 -1
  82. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +0 -1
  83. package/consts/configs.js +0 -4
  84. package/tsconfig.json +0 -157
@@ -1,21 +1,21 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css"; import { defineComponent as $, computed as C, ref as s, watch as w, onMounted as I, openBlock as T, createBlock as j, unref as d, withCtx as f, createVNode as y, mergeProps as q, createElementVNode as G, isRef as H, normalizeProps as J, guardReactiveProps as W, createElementBlock as X, createTextVNode as Y, toDisplayString as Z, createCommentVNode as _ } from "vue";
2
- import A from "./DropdownV4.vue.js";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2a77c137_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
+ import N from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
- import ee from "./ChipDropdownTrigger.vue.js";
5
+ import ae from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
- import le 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 ae from "../../search/v4/SearchV4.vue.js";
13
- import te from "../../typography/v4/Typography.vue.js";
14
- import { useDebounceFn as oe } from "@vueuse/core";
15
- const ne = { class: "conditional-container" }, ie = {
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
- }, Oe = /* @__PURE__ */ $({
18
+ }, we = /* @__PURE__ */ W({
19
19
  __name: "ConditionalDropdown",
20
20
  props: {
21
21
  selectedCondition: null,
@@ -34,191 +34,213 @@ const ne = { class: "conditional-container" }, ie = {
34
34
  fetchDataDebounceTime: { default: 400 },
35
35
  autoFocusSearch: { type: Boolean, default: !0 },
36
36
  groupedOptions: { type: Boolean, default: !1 },
37
- optionFlagKey: { default: "" }
37
+ optionFlagKey: { default: "" },
38
+ optionIconKey: { default: "" },
39
+ optionImageKey: { default: "" },
40
+ optionIconType: { default: null },
41
+ loadingOverride: { type: Boolean, default: !1 }
38
42
  },
39
- emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
40
- setup(r, { emit: O }) {
41
- const e = r, h = C({
43
+ emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
44
+ setup(u, { emit: h }) {
45
+ const e = u, S = O({
42
46
  get: () => e.appliedSelections,
43
47
  set: (l) => {
44
- O("update:appliedSelections", l);
48
+ h("update:appliedSelections", l);
45
49
  }
46
- }), n = C({
50
+ }), n = O({
47
51
  get: () => e.selectedCondition || e.conditionalOptions[0],
48
52
  set: (l) => {
49
- O("update:selectedCondition", l);
53
+ h("update:selectedCondition", l);
50
54
  }
51
- }), k = s(null), p = s(!0), t = s([]), u = s([]), K = s(!0), c = s(!1), S = s(!1), i = s(e.searchQuery), N = s(""), m = s(e.label), D = s([]), L = C(() => (!i.value || i.value?.length < e.minCharsToStart) && !t.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), F = C(() => {
52
- const l = p.value ? 4 : 4.5, o = t.value.length > 4 ? t.value.length : l;
55
+ }), F = () => {
56
+ const { appliedSelections: l } = e;
57
+ return l ? Array.isArray(l) ? l : [l] : [];
58
+ }, K = s(null), c = s(!0), a = s([]), r = s(F()), w = 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} characters to begin` : "No results found"), I = O(() => {
59
+ const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
53
60
  if (e.groupedOptions) {
54
- let a = 0;
55
- return t.value.forEach((g) => {
56
- g.options && (a = a + g.options.length);
57
- }), a > 4 ? a : l;
61
+ let o = 0;
62
+ return a.value.forEach((g) => {
63
+ g.options && (o = o + g.options.length);
64
+ }), o > 4 ? o : l;
58
65
  }
59
- return o > l ? o : l;
60
- }), U = (l, o) => {
61
- if (e.infiniteLoading && n.value.multi && Array.isArray(u.value) && u.value.length && l && o.length) {
62
- const a = [], g = u.value.filter(
66
+ return t > l ? t : l;
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(
63
70
  (v) => v[e.optionNameKey].includes(l)
64
71
  );
65
- return o.forEach((v) => {
72
+ return t.forEach((v) => {
66
73
  g.find(
67
- (z) => z[e.comparingKey] === v[e.comparingKey]
68
- ) && a.push(v[e.comparingKey]);
74
+ (j) => j[e.comparingKey] === v[e.comparingKey]
75
+ ) && o.push(v[e.comparingKey]);
69
76
  }), g.filter(
70
- (v) => !a.includes(v[e.comparingKey])
77
+ (v) => !o.includes(v[e.comparingKey])
71
78
  );
72
79
  }
73
80
  return [];
74
- }, B = async (l) => {
81
+ }, A = async (l) => {
75
82
  try {
76
- c.value = !0;
77
- const o = await e.fetchFnCallback(l), a = U(
83
+ p.value = !0;
84
+ const t = await e.fetchFnCallback(l), o = M(
78
85
  l,
79
- o
86
+ t
80
87
  );
81
- t.value = [...a, ...o], c.value = !1;
82
- } catch (o) {
83
- c.value = !1, console.error("Error fetching data:", o);
88
+ a.value = [...o, ...t], p.value = !1;
89
+ } catch (t) {
90
+ p.value = !1, console.error("Error fetching data:", t);
84
91
  }
85
- }, M = async () => {
92
+ }, E = async () => {
86
93
  if (e.infiniteLoading)
87
94
  try {
88
- S.value = !0;
95
+ C.value = !0;
89
96
  const l = await e.loadMoreFn();
90
- S.value = !1, Array.isArray(l) && (t.value = [...t.value, ...l]);
97
+ C.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
91
98
  } catch (l) {
92
- S.value = !1, console.error("Error fetching data:", l);
99
+ C.value = !1, console.error("Error fetching data:", l);
93
100
  }
94
- }, E = oe(
95
- B,
101
+ }, V = ue(
102
+ A,
96
103
  e.fetchDataDebounceTime
97
104
  ), b = (l) => {
98
- l.length >= e.minCharsToStart ? (E(l), k.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? t.value = D.value || [] : t.value = [];
99
- }, V = () => {
100
- i.value && t.value.length && !c.value && !n.value.multi ? t.value[0].conditionalOptions ? t.value[0] = {
105
+ l.length >= e.minCharsToStart ? (V(l), K.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = T.value || [] : a.value = [];
106
+ }, x = () => {
107
+ i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
101
108
  name: i.value,
102
109
  conditionalOptions: !0,
103
110
  conditionalName: n.value.label,
104
111
  [e.comparingKey]: i.value
105
- } : t.value = [
112
+ } : a.value = [
106
113
  {
107
114
  name: i.value,
108
115
  conditionalOptions: !0,
109
116
  conditionalName: n.value.label,
110
117
  [e.comparingKey]: i.value
111
118
  },
112
- ...t.value
113
- ] : t.value.length && t.value[0].conditionalOptions && t.value.shift();
119
+ ...a.value
120
+ ] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
121
+ }, D = () => {
122
+ c.value && r.value.length === 0 ? m.value = e.label : m.value = `${e.label} ${n.value.label.toLowerCase()}`;
114
123
  };
115
- w(i, () => {
124
+ k(i, () => {
116
125
  b(i.value);
117
- }), w([n, t], () => {
118
- V();
119
- });
120
- const x = () => {
121
- p.value && u.value.length === 0 ? (n.value = null, h.value = [], n.value = null, m.value = e.label) : (N.value = i.value, m.value = `${e.label} ${n.value.label.toLowerCase()}`, h.value = p.value ? [...u.value] : { ...u.value }, K.value = p.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 }, w.value = c.value), D();
122
136
  };
123
- w(n, (l, o) => {
124
- n.value.multi ? (c.value = !0, !o.multi && l.multi && Array.isArray(e.appliedSelections) && (u.value = e.appliedSelections), setTimeout(() => {
125
- c.value = !1, p.value = !0;
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(() => {
139
+ p.value = !1, c.value = !0;
126
140
  }, 100)) : setTimeout(() => {
127
- p.value = !1;
141
+ c.value = !1;
128
142
  }, 100);
129
143
  });
130
144
  const Q = (l) => {
131
- D.value = l;
132
- }, P = () => {
133
- u.value = [], h.value = [], n.value = null, m.value = e.label, i.value = "", O("clear");
134
- }, R = (l) => {
135
- l && n.value.multi && e.infiniteLoading && u.value && (t.value = u.value, i.value && b(i.value));
145
+ T.value = l;
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));
150
+ };
151
+ q(() => {
152
+ (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), D();
153
+ });
154
+ const $ = () => {
155
+ h("closed");
136
156
  };
137
- return I(() => {
138
- (e.searchQuery || !e.infiniteLoading) && b(e.searchQuery);
139
- }), (l, o) => (T(), j(d(A), {
157
+ return (l, t) => (L(), G(d(N), {
140
158
  ref_key: "dropdownRef",
141
- ref: k,
142
- selected: u.value,
143
- "onUpdate:selected": o[2] || (o[2] = (a) => u.value = a),
159
+ ref: K,
160
+ selected: r.value,
161
+ "onUpdate:selected": t[2] || (t[2] = (o) => r.value = o),
144
162
  "predefined-trigger": "chip",
145
- "display-value": (a) => a?.[r.optionNameKey],
146
- multi: p.value,
147
- options: t.value,
163
+ "display-value": (o) => o?.[u.optionNameKey],
164
+ multi: c.value,
165
+ options: a.value,
148
166
  placeholder: m.value,
149
167
  "search-placeholder": "Search",
150
- "option-name-key": r.optionNameKey,
168
+ "option-name-key": u.optionNameKey,
151
169
  "with-conditions": "",
152
170
  "inline-search": "",
153
- "custom-number-of-displayed-options": d(F),
171
+ "custom-number-of-displayed-options": d(I),
154
172
  "options-list-width": "330px",
155
- loading: c.value,
156
- "load-more-loading": S.value,
157
- "comparing-key": r.comparingKey,
158
- "is-open": r.isOpen,
159
- "infinite-loading": r.infiniteLoading,
160
- "show-select-all": !r.infiniteLoading && !i.value,
161
- "grouped-options": r.groupedOptions,
162
- "option-flag-key": r.optionFlagKey,
163
- "onUpdate:isOpen": R,
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,
164
185
  onOnsearch: b,
165
- onApply: x,
166
- onLoadMore: M,
167
- onUnsavedSelectionUpdate: Q
186
+ onApply: P,
187
+ onLoadMore: E,
188
+ onUnsavedSelectionUpdate: Q,
189
+ onClosed: $
168
190
  }, {
169
- "dropdown-trigger": f(({ defaultTriggerProps: a }) => [
170
- y(d(ee), q(a, {
191
+ "dropdown-trigger": f(({ defaultTriggerProps: o }) => [
192
+ y(d(ae), H(o, {
171
193
  label: m.value,
172
- "selected-option": d(h),
173
- multi: K.value,
194
+ "selected-option": d(S),
195
+ multi: w.value,
174
196
  "cancel-all-selected-display": "",
175
- "display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
176
- onClear: P
197
+ "display-value-in-quotes": !Array.isArray(r.value) && r.value.conditionalOptions,
198
+ onClear: R
177
199
  }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
178
200
  ]),
179
201
  "dropdown-conditions": f(() => [
180
- G("div", ne, [
181
- y(d(A), {
202
+ J("div", re, [
203
+ y(d(N), {
182
204
  selected: d(n),
183
- "onUpdate:selected": o[0] || (o[0] = (a) => H(n) ? n.value = a : null),
184
- options: r.conditionalOptions,
205
+ "onUpdate:selected": t[0] || (t[0] = (o) => X(n) ? n.value = o : null),
206
+ options: u.conditionalOptions,
185
207
  "option-name-key": "label",
186
- "display-value": (a) => a?.label,
208
+ "display-value": (o) => o?.label,
187
209
  container: ".conditional-container",
188
210
  size: "small"
189
211
  }, {
190
- "dropdown-trigger": f(({ buttonTriggerProps: a }) => [
191
- y(d(le), J(W(a)), null, 16)
212
+ "dropdown-trigger": f(({ buttonTriggerProps: o }) => [
213
+ y(d(te), Y(Z(o)), null, 16)
192
214
  ]),
193
215
  _: 1
194
216
  }, 8, ["selected", "options", "display-value"])
195
217
  ])
196
218
  ]),
197
219
  "inline-search": f(() => [
198
- y(d(ae), {
220
+ y(d(ne), {
199
221
  modelValue: i.value,
200
- "onUpdate:modelValue": o[1] || (o[1] = (a) => i.value = a),
222
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
201
223
  class: "inline-search",
202
224
  placeholder: "Search",
203
225
  variant: "transparent",
204
226
  size: "md",
205
- "auto-focus": r.autoFocusSearch
227
+ "auto-focus": u.autoFocusSearch
206
228
  }, null, 8, ["modelValue", "auto-focus"])
207
229
  ]),
208
230
  "custom-list-area": f(() => [
209
- !t.value.length && !c.value ? (T(), X("div", ie, [
210
- y(te, { variant: "body1" }, {
231
+ !a.value.length && !p.value ? (L(), _("div", se, [
232
+ y(ie, { variant: "body1" }, {
211
233
  default: f(() => [
212
- Y(Z(d(L)), 1)
234
+ ee(le(d(U)), 1)
213
235
  ]),
214
236
  _: 1
215
237
  })
216
- ])) : _("", !0)
238
+ ])) : oe("", !0)
217
239
  ]),
218
240
  _: 1
219
- }, 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"]));
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"]));
220
242
  }
221
243
  });
222
244
  export {
223
- Oe as default
245
+ we as default
224
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_5ff4b654_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-5ff4b654"]]);
5
5
  export {
6
6
  s as default
7
7
  };