@ironsource/shared-ui 2.1.11-rc.50 → 2.1.11-rc.52

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.
@@ -0,0 +1 @@
1
+ .custom-list-area[data-v-2ba23450]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-2ba23450]{width:100%}.contain-accept[data-v-2ba23450]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-2ba23450]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-2ba23450]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -1,3 +1,4 @@
1
+ import { IconTypes } from '@is-ssp/icon/v4/Icon.types';
1
2
  type SelectedCondition = {
2
3
  label: string;
3
4
  value: string;
@@ -15,12 +16,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
16
  minCharsToStart?: number;
16
17
  isOpen?: boolean;
17
18
  searchQuery?: string;
18
- loadMoreFn?: () => Promise<void>;
19
+ loadMoreFn?: () => Promise<any[]>;
19
20
  infiniteLoading?: boolean;
20
21
  fetchDataDebounceTime?: number;
21
22
  autoFocusSearch?: boolean;
22
23
  groupedOptions?: boolean;
23
24
  optionFlagKey?: string;
25
+ optionIconKey?: string;
26
+ optionImageKey?: string;
27
+ optionIconType?: IconTypes;
24
28
  }>, {
25
29
  label: string;
26
30
  testId: string;
@@ -35,10 +39,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
35
39
  autoFocusSearch: boolean;
36
40
  groupedOptions: boolean;
37
41
  optionFlagKey: string;
42
+ optionIconKey: string;
43
+ optionImageKey: string;
44
+ optionIconType: any;
38
45
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
46
  "update:selectedCondition": (value: SelectedCondition) => void;
40
47
  "update:appliedSelections": (value: unknown) => void;
41
48
  clear: () => void;
49
+ closed: () => void;
42
50
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
43
51
  selectedCondition: SelectedCondition | null;
44
52
  appliedSelections: unknown | unknown[];
@@ -51,12 +59,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
51
59
  minCharsToStart?: number;
52
60
  isOpen?: boolean;
53
61
  searchQuery?: string;
54
- loadMoreFn?: () => Promise<void>;
62
+ loadMoreFn?: () => Promise<any[]>;
55
63
  infiniteLoading?: boolean;
56
64
  fetchDataDebounceTime?: number;
57
65
  autoFocusSearch?: boolean;
58
66
  groupedOptions?: boolean;
59
67
  optionFlagKey?: string;
68
+ optionIconKey?: string;
69
+ optionImageKey?: string;
70
+ optionIconType?: IconTypes;
60
71
  }>, {
61
72
  label: string;
62
73
  testId: string;
@@ -71,8 +82,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
71
82
  autoFocusSearch: boolean;
72
83
  groupedOptions: boolean;
73
84
  optionFlagKey: string;
85
+ optionIconKey: string;
86
+ optionImageKey: string;
87
+ optionIconType: any;
74
88
  }>>> & {
75
89
  onClear?: () => any;
90
+ onClosed?: () => any;
76
91
  "onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
77
92
  "onUpdate:appliedSelections"?: (value: unknown) => any;
78
93
  }, {
@@ -81,12 +96,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
81
96
  isOpen: boolean;
82
97
  infiniteLoading: boolean;
83
98
  optionNameKey: string;
99
+ optionIconKey: string;
100
+ optionImageKey: string;
101
+ optionIconType: IconTypes;
84
102
  optionFlagKey: string;
85
103
  groupedOptions: boolean;
86
104
  comparingKey: string;
87
105
  minCharsToStart: number;
88
106
  searchQuery: string;
89
- loadMoreFn: () => Promise<void>;
107
+ loadMoreFn: () => Promise<any[]>;
90
108
  fetchDataDebounceTime: number;
91
109
  autoFocusSearch: boolean;
92
110
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
2
  /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_8f96cf5a_lang.css"; //*');
4
- const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-8f96cf5a"]]);
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_2ba23450_lang.css"; //*');
4
+ const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2ba23450"]]);
5
5
  export {
6
6
  n as default
7
7
  };
@@ -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_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";
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 oe from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
- import le from "./ButtonDropdownTrigger.vue.js";
7
+ import ae 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 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 = {
16
16
  key: 0,
17
17
  class: "custom-list-area"
18
- }, Oe = /* @__PURE__ */ $({
18
+ }, we = /* @__PURE__ */ j({
19
19
  __name: "ConditionalDropdown",
20
20
  props: {
21
21
  selectedCondition: null,
@@ -34,170 +34,185 @@ 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 }
38
41
  },
39
- emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
40
- setup(r, { emit: O }) {
41
- const e = r, h = C({
42
+ emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
43
+ setup(r, { emit: h }) {
44
+ const e = r, S = k({
42
45
  get: () => e.appliedSelections,
43
46
  set: (l) => {
44
- O("update:appliedSelections", l);
47
+ h("update:appliedSelections", l);
45
48
  }
46
- }), n = C({
49
+ }), n = k({
47
50
  get: () => e.selectedCondition || e.conditionalOptions[0],
48
51
  set: (l) => {
49
- O("update:selectedCondition", l);
52
+ h("update:selectedCondition", l);
50
53
  }
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;
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(() => {
57
+ const l = c.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
53
58
  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;
59
+ let o = 0;
60
+ return a.value.forEach((y) => {
61
+ y.options && (o = o + y.options.length);
62
+ }), o > 4 ? o : l;
58
63
  }
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(
64
+ 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(
63
68
  (v) => v[e.optionNameKey].includes(l)
64
69
  );
65
- return o.forEach((v) => {
66
- g.find(
67
- (z) => z[e.comparingKey] === v[e.comparingKey]
68
- ) && a.push(v[e.comparingKey]);
69
- }), g.filter(
70
- (v) => !a.includes(v[e.comparingKey])
70
+ return t.forEach((v) => {
71
+ y.find(
72
+ ($) => $[e.comparingKey] === v[e.comparingKey]
73
+ ) && o.push(v[e.comparingKey]);
74
+ }), y.filter(
75
+ (v) => !o.includes(v[e.comparingKey])
71
76
  );
72
77
  }
73
78
  return [];
74
- }, B = async (l) => {
79
+ }, I = async (l) => {
75
80
  try {
76
- c.value = !0;
77
- const o = await e.fetchFnCallback(l), a = U(
81
+ p.value = !0;
82
+ const t = await e.fetchFnCallback(l), o = B(
78
83
  l,
79
- o
84
+ t
80
85
  );
81
- t.value = [...a, ...o], c.value = !1;
82
- } catch (o) {
83
- c.value = !1, console.error("Error fetching data:", o);
86
+ a.value = [...o, ...t], p.value = !1;
87
+ } catch (t) {
88
+ p.value = !1, console.error("Error fetching data:", t);
84
89
  }
85
90
  }, M = async () => {
86
91
  if (e.infiniteLoading)
87
92
  try {
88
- S.value = !0;
93
+ b.value = !0;
89
94
  const l = await e.loadMoreFn();
90
- S.value = !1, Array.isArray(l) && (t.value = [...t.value, ...l]);
95
+ b.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
91
96
  } catch (l) {
92
- S.value = !1, console.error("Error fetching data:", l);
97
+ b.value = !1, console.error("Error fetching data:", l);
93
98
  }
94
- }, E = oe(
95
- B,
99
+ }, E = ie(
100
+ I,
96
101
  e.fetchDataDebounceTime
97
- ), b = (l) => {
98
- l.length >= e.minCharsToStart ? (E(l), k.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? t.value = D.value || [] : t.value = [];
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 = [];
99
104
  }, V = () => {
100
- i.value && t.value.length && !c.value && !n.value.multi ? t.value[0].conditionalOptions ? t.value[0] = {
105
+ i.value && a.value.length && !p.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
101
106
  name: i.value,
102
107
  conditionalOptions: !0,
103
108
  conditionalName: n.value.label,
104
109
  [e.comparingKey]: i.value
105
- } : t.value = [
110
+ } : a.value = [
106
111
  {
107
112
  name: i.value,
108
113
  conditionalOptions: !0,
109
114
  conditionalName: n.value.label,
110
115
  [e.comparingKey]: i.value
111
116
  },
112
- ...t.value
113
- ] : t.value.length && t.value[0].conditionalOptions && t.value.shift();
117
+ ...a.value
118
+ ] : 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()}`;
114
121
  };
115
- w(i, () => {
116
- b(i.value);
117
- }), w([n, t], () => {
122
+ O(i, () => {
123
+ C(i.value);
124
+ }), O([n, a], () => {
118
125
  V();
119
126
  });
120
127
  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);
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();
122
129
  };
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;
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(() => {
132
+ p.value = !1, c.value = !0;
126
133
  }, 100)) : setTimeout(() => {
127
- p.value = !1;
134
+ c.value = !1;
128
135
  }, 100);
129
136
  });
130
- 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");
137
+ const P = (l) => {
138
+ T.value = l;
139
+ }, Q = () => {
140
+ u.value = [], S.value = [], n.value = null, m.value = e.label, i.value = "", h("clear");
134
141
  }, R = (l) => {
135
- l && n.value.multi && e.infiniteLoading && u.value && (t.value = u.value, i.value && b(i.value));
142
+ l && n.value.multi && e.infiniteLoading && u.value && (a.value = u.value, i.value && C(i.value));
136
143
  };
137
- return I(() => {
138
- (e.searchQuery || !e.infiniteLoading) && b(e.searchQuery);
139
- }), (l, o) => (T(), j(d(A), {
144
+ W(() => {
145
+ (e.searchQuery || !e.infiniteLoading) && C(e.searchQuery), A();
146
+ });
147
+ const z = () => {
148
+ h("closed");
149
+ };
150
+ return (l, t) => (D(), q(d(N), {
140
151
  ref_key: "dropdownRef",
141
- ref: k,
152
+ ref: w,
142
153
  selected: u.value,
143
- "onUpdate:selected": o[2] || (o[2] = (a) => u.value = a),
154
+ "onUpdate:selected": t[2] || (t[2] = (o) => u.value = o),
144
155
  "predefined-trigger": "chip",
145
- "display-value": (a) => a?.[r.optionNameKey],
146
- multi: p.value,
147
- options: t.value,
156
+ "display-value": (o) => o?.[r.optionNameKey],
157
+ multi: c.value,
158
+ options: a.value,
148
159
  placeholder: m.value,
149
160
  "search-placeholder": "Search",
150
161
  "option-name-key": r.optionNameKey,
151
162
  "with-conditions": "",
152
163
  "inline-search": "",
153
- "custom-number-of-displayed-options": d(F),
164
+ "custom-number-of-displayed-options": d(U),
154
165
  "options-list-width": "330px",
155
- loading: c.value,
156
- "load-more-loading": S.value,
166
+ loading: p.value,
167
+ "load-more-loading": b.value,
157
168
  "comparing-key": r.comparingKey,
158
169
  "is-open": r.isOpen,
159
170
  "infinite-loading": r.infiniteLoading,
160
171
  "show-select-all": !r.infiniteLoading && !i.value,
161
172
  "grouped-options": r.groupedOptions,
162
173
  "option-flag-key": r.optionFlagKey,
174
+ "option-image-key": r.optionImageKey,
175
+ "option-icon-key": r.optionIconKey,
176
+ "option-icon-type": r.optionIconType,
163
177
  "onUpdate:isOpen": R,
164
- onOnsearch: b,
178
+ onOnsearch: C,
165
179
  onApply: x,
166
180
  onLoadMore: M,
167
- onUnsavedSelectionUpdate: Q
181
+ onUnsavedSelectionUpdate: P,
182
+ onClosed: z
168
183
  }, {
169
- "dropdown-trigger": f(({ defaultTriggerProps: a }) => [
170
- y(d(ee), q(a, {
184
+ "dropdown-trigger": f(({ defaultTriggerProps: o }) => [
185
+ g(d(oe), G(o, {
171
186
  label: m.value,
172
- "selected-option": d(h),
187
+ "selected-option": d(S),
173
188
  multi: K.value,
174
189
  "cancel-all-selected-display": "",
175
190
  "display-value-in-quotes": !Array.isArray(u.value) && u.value.conditionalOptions,
176
- onClear: P
191
+ onClear: Q
177
192
  }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes"])
178
193
  ]),
179
194
  "dropdown-conditions": f(() => [
180
- G("div", ne, [
181
- y(d(A), {
195
+ H("div", ue, [
196
+ g(d(N), {
182
197
  selected: d(n),
183
- "onUpdate:selected": o[0] || (o[0] = (a) => H(n) ? n.value = a : null),
198
+ "onUpdate:selected": t[0] || (t[0] = (o) => J(n) ? n.value = o : null),
184
199
  options: r.conditionalOptions,
185
200
  "option-name-key": "label",
186
- "display-value": (a) => a?.label,
201
+ "display-value": (o) => o?.label,
187
202
  container: ".conditional-container",
188
203
  size: "small"
189
204
  }, {
190
- "dropdown-trigger": f(({ buttonTriggerProps: a }) => [
191
- y(d(le), J(W(a)), null, 16)
205
+ "dropdown-trigger": f(({ buttonTriggerProps: o }) => [
206
+ g(d(ae), X(Y(o)), null, 16)
192
207
  ]),
193
208
  _: 1
194
209
  }, 8, ["selected", "options", "display-value"])
195
210
  ])
196
211
  ]),
197
212
  "inline-search": f(() => [
198
- y(d(ae), {
213
+ g(d(te), {
199
214
  modelValue: i.value,
200
- "onUpdate:modelValue": o[1] || (o[1] = (a) => i.value = a),
215
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => i.value = o),
201
216
  class: "inline-search",
202
217
  placeholder: "Search",
203
218
  variant: "transparent",
@@ -206,19 +221,19 @@ const ne = { class: "conditional-container" }, ie = {
206
221
  }, null, 8, ["modelValue", "auto-focus"])
207
222
  ]),
208
223
  "custom-list-area": f(() => [
209
- !t.value.length && !c.value ? (T(), X("div", ie, [
210
- y(te, { variant: "body1" }, {
224
+ !a.value.length && !p.value ? (D(), Z("div", re, [
225
+ g(ne, { variant: "body1" }, {
211
226
  default: f(() => [
212
- Y(Z(d(L)), 1)
227
+ _(ee(d(F)), 1)
213
228
  ]),
214
229
  _: 1
215
230
  })
216
- ])) : _("", !0)
231
+ ])) : le("", !0)
217
232
  ]),
218
233
  _: 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"]));
234
+ }, 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
235
  }
221
236
  });
222
237
  export {
223
- Oe as default
238
+ we as default
224
239
  };
@@ -3582,6 +3582,18 @@ declare const DropdownTypes: () => (({
3582
3582
  required: true;
3583
3583
  default: string;
3584
3584
  };
3585
+ optionIconKey: {
3586
+ type: import("vue").PropType<string>;
3587
+ default: string;
3588
+ };
3589
+ optionImageKey: {
3590
+ type: import("vue").PropType<string>;
3591
+ default: string;
3592
+ };
3593
+ optionIconType: {
3594
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
3595
+ default: any;
3596
+ };
3585
3597
  optionFlagKey: {
3586
3598
  type: import("vue").PropType<string>;
3587
3599
  default: string;
@@ -3628,7 +3640,7 @@ declare const DropdownTypes: () => (({
3628
3640
  default: string;
3629
3641
  };
3630
3642
  loadMoreFn: {
3631
- type: import("vue").PropType<() => Promise<void>>;
3643
+ type: import("vue").PropType<() => Promise<any[]>>;
3632
3644
  default: any;
3633
3645
  };
3634
3646
  fetchDataDebounceTime: {
@@ -3647,6 +3659,7 @@ declare const DropdownTypes: () => (({
3647
3659
  }) => void;
3648
3660
  "update:appliedSelections": (value: unknown) => void;
3649
3661
  clear: () => void;
3662
+ closed: () => void;
3650
3663
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
3651
3664
  label: {
3652
3665
  type: import("vue").PropType<string>;
@@ -3670,6 +3683,18 @@ declare const DropdownTypes: () => (({
3670
3683
  required: true;
3671
3684
  default: string;
3672
3685
  };
3686
+ optionIconKey: {
3687
+ type: import("vue").PropType<string>;
3688
+ default: string;
3689
+ };
3690
+ optionImageKey: {
3691
+ type: import("vue").PropType<string>;
3692
+ default: string;
3693
+ };
3694
+ optionIconType: {
3695
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
3696
+ default: any;
3697
+ };
3673
3698
  optionFlagKey: {
3674
3699
  type: import("vue").PropType<string>;
3675
3700
  default: string;
@@ -3716,7 +3741,7 @@ declare const DropdownTypes: () => (({
3716
3741
  default: string;
3717
3742
  };
3718
3743
  loadMoreFn: {
3719
- type: import("vue").PropType<() => Promise<void>>;
3744
+ type: import("vue").PropType<() => Promise<any[]>>;
3720
3745
  default: any;
3721
3746
  };
3722
3747
  fetchDataDebounceTime: {
@@ -3729,6 +3754,7 @@ declare const DropdownTypes: () => (({
3729
3754
  };
3730
3755
  }>> & {
3731
3756
  onClear?: () => any;
3757
+ onClosed?: () => any;
3732
3758
  "onUpdate:selectedCondition"?: (value: {
3733
3759
  label: string;
3734
3760
  value: string;
@@ -3741,12 +3767,15 @@ declare const DropdownTypes: () => (({
3741
3767
  isOpen: boolean;
3742
3768
  infiniteLoading: boolean;
3743
3769
  optionNameKey: string;
3770
+ optionIconKey: string;
3771
+ optionImageKey: string;
3772
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
3744
3773
  optionFlagKey: string;
3745
3774
  groupedOptions: boolean;
3746
3775
  comparingKey: string;
3747
3776
  minCharsToStart: number;
3748
3777
  searchQuery: string;
3749
- loadMoreFn: () => Promise<void>;
3778
+ loadMoreFn: () => Promise<any[]>;
3750
3779
  fetchDataDebounceTime: number;
3751
3780
  autoFocusSearch: boolean;
3752
3781
  }>)[];
package/index.d.ts CHANGED
@@ -22748,6 +22748,18 @@ declare const _default: {
22748
22748
  required: true;
22749
22749
  default: string;
22750
22750
  };
22751
+ optionIconKey: {
22752
+ type: import("vue").PropType<string>;
22753
+ default: string;
22754
+ };
22755
+ optionImageKey: {
22756
+ type: import("vue").PropType<string>;
22757
+ default: string;
22758
+ };
22759
+ optionIconType: {
22760
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
22761
+ default: any;
22762
+ };
22751
22763
  optionFlagKey: {
22752
22764
  type: import("vue").PropType<string>;
22753
22765
  default: string;
@@ -22794,7 +22806,7 @@ declare const _default: {
22794
22806
  default: string;
22795
22807
  };
22796
22808
  loadMoreFn: {
22797
- type: import("vue").PropType<() => Promise<void>>;
22809
+ type: import("vue").PropType<() => Promise<any[]>>;
22798
22810
  default: any;
22799
22811
  };
22800
22812
  fetchDataDebounceTime: {
@@ -22813,6 +22825,7 @@ declare const _default: {
22813
22825
  }) => void;
22814
22826
  "update:appliedSelections": (value: unknown) => void;
22815
22827
  clear: () => void;
22828
+ closed: () => void;
22816
22829
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22817
22830
  label: {
22818
22831
  type: import("vue").PropType<string>;
@@ -22836,6 +22849,18 @@ declare const _default: {
22836
22849
  required: true;
22837
22850
  default: string;
22838
22851
  };
22852
+ optionIconKey: {
22853
+ type: import("vue").PropType<string>;
22854
+ default: string;
22855
+ };
22856
+ optionImageKey: {
22857
+ type: import("vue").PropType<string>;
22858
+ default: string;
22859
+ };
22860
+ optionIconType: {
22861
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
22862
+ default: any;
22863
+ };
22839
22864
  optionFlagKey: {
22840
22865
  type: import("vue").PropType<string>;
22841
22866
  default: string;
@@ -22882,7 +22907,7 @@ declare const _default: {
22882
22907
  default: string;
22883
22908
  };
22884
22909
  loadMoreFn: {
22885
- type: import("vue").PropType<() => Promise<void>>;
22910
+ type: import("vue").PropType<() => Promise<any[]>>;
22886
22911
  default: any;
22887
22912
  };
22888
22913
  fetchDataDebounceTime: {
@@ -22895,6 +22920,7 @@ declare const _default: {
22895
22920
  };
22896
22921
  }>> & {
22897
22922
  onClear?: () => any;
22923
+ onClosed?: () => any;
22898
22924
  "onUpdate:selectedCondition"?: (value: {
22899
22925
  label: string;
22900
22926
  value: string;
@@ -22907,12 +22933,15 @@ declare const _default: {
22907
22933
  isOpen: boolean;
22908
22934
  infiniteLoading: boolean;
22909
22935
  optionNameKey: string;
22936
+ optionIconKey: string;
22937
+ optionImageKey: string;
22938
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
22910
22939
  optionFlagKey: string;
22911
22940
  groupedOptions: boolean;
22912
22941
  comparingKey: string;
22913
22942
  minCharsToStart: number;
22914
22943
  searchQuery: string;
22915
- loadMoreFn: () => Promise<void>;
22944
+ loadMoreFn: () => Promise<any[]>;
22916
22945
  fetchDataDebounceTime: number;
22917
22946
  autoFocusSearch: boolean;
22918
22947
  }>)[];
@@ -23888,6 +23917,18 @@ declare const _default: {
23888
23917
  required: true;
23889
23918
  default: string;
23890
23919
  };
23920
+ optionIconKey: {
23921
+ type: import("vue").PropType<string>;
23922
+ default: string;
23923
+ };
23924
+ optionImageKey: {
23925
+ type: import("vue").PropType<string>;
23926
+ default: string;
23927
+ };
23928
+ optionIconType: {
23929
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
23930
+ default: any;
23931
+ };
23891
23932
  optionFlagKey: {
23892
23933
  type: import("vue").PropType<string>;
23893
23934
  default: string;
@@ -23934,7 +23975,7 @@ declare const _default: {
23934
23975
  default: string;
23935
23976
  };
23936
23977
  loadMoreFn: {
23937
- type: import("vue").PropType<() => Promise<void>>;
23978
+ type: import("vue").PropType<() => Promise<any[]>>;
23938
23979
  default: any;
23939
23980
  };
23940
23981
  fetchDataDebounceTime: {
@@ -23953,6 +23994,7 @@ declare const _default: {
23953
23994
  }) => void;
23954
23995
  "update:appliedSelections": (value: unknown) => void;
23955
23996
  clear: () => void;
23997
+ closed: () => void;
23956
23998
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23957
23999
  label: {
23958
24000
  type: import("vue").PropType<string>;
@@ -23976,6 +24018,18 @@ declare const _default: {
23976
24018
  required: true;
23977
24019
  default: string;
23978
24020
  };
24021
+ optionIconKey: {
24022
+ type: import("vue").PropType<string>;
24023
+ default: string;
24024
+ };
24025
+ optionImageKey: {
24026
+ type: import("vue").PropType<string>;
24027
+ default: string;
24028
+ };
24029
+ optionIconType: {
24030
+ type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
24031
+ default: any;
24032
+ };
23979
24033
  optionFlagKey: {
23980
24034
  type: import("vue").PropType<string>;
23981
24035
  default: string;
@@ -24022,7 +24076,7 @@ declare const _default: {
24022
24076
  default: string;
24023
24077
  };
24024
24078
  loadMoreFn: {
24025
- type: import("vue").PropType<() => Promise<void>>;
24079
+ type: import("vue").PropType<() => Promise<any[]>>;
24026
24080
  default: any;
24027
24081
  };
24028
24082
  fetchDataDebounceTime: {
@@ -24035,6 +24089,7 @@ declare const _default: {
24035
24089
  };
24036
24090
  }>> & {
24037
24091
  onClear?: () => any;
24092
+ onClosed?: () => any;
24038
24093
  "onUpdate:selectedCondition"?: (value: {
24039
24094
  label: string;
24040
24095
  value: string;
@@ -24047,12 +24102,15 @@ declare const _default: {
24047
24102
  isOpen: boolean;
24048
24103
  infiniteLoading: boolean;
24049
24104
  optionNameKey: string;
24105
+ optionIconKey: string;
24106
+ optionImageKey: string;
24107
+ optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
24050
24108
  optionFlagKey: string;
24051
24109
  groupedOptions: boolean;
24052
24110
  comparingKey: string;
24053
24111
  minCharsToStart: number;
24054
24112
  searchQuery: string;
24055
- loadMoreFn: () => Promise<void>;
24113
+ loadMoreFn: () => Promise<any[]>;
24056
24114
  fetchDataDebounceTime: number;
24057
24115
  autoFocusSearch: boolean;
24058
24116
  }>;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
1
+ import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
2
2
  import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as po } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.11-rc.50",
3
+ "version": "2.1.11-rc.52",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .custom-list-area[data-v-8f96cf5a]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 43px}.inline-search[data-v-8f96cf5a]{width:100%}.contain-accept[data-v-8f96cf5a]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-8f96cf5a]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-8f96cf5a]{margin-left:4px;display:inline-flex;color:var(--primary-main)}