@ironsource/shared-ui 2.1.12-rc.42 → 2.1.12-rc.44

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-7114a241]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 10px}.inline-search[data-v-7114a241]{width:100%}.contain-accept[data-v-7114a241]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-7114a241]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-7114a241]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .link[data-v-b10e2439]{cursor:pointer;color:var(--primary-main);display:inline-flex;align-items:center;gap:var(--spacing-50)}.link[data-v-b10e2439]:hover{color:var(--primary-dark)}.link--default[data-v-b10e2439]{color:var(--text-secondary)}.link--default[data-v-b10e2439]:hover{color:var(--text-primary)}.link--disabled[data-v-b10e2439]{color:var(--text-disabled);pointer-events:none}
@@ -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_f5204c04_lang.css"; //*');
4
- const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-f5204c04"]]);
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_7114a241_lang.css"; //*');
4
+ const n = /* @__PURE__ */ _(o, [["__scopeId", "data-v-7114a241"]]);
5
5
  export {
6
6
  n as default
7
7
  };
@@ -1,21 +1,21 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_f5204c04_lang.css"; import { defineComponent as q, computed as w, ref as s, watch as m, onMounted as G, openBlock as F, createBlock as H, unref as c, createSlots as J, withCtx as v, createVNode as C, mergeProps as X, createElementVNode as Y, isRef as Z, normalizeProps as _, guardReactiveProps as ee, createElementBlock as le, createTextVNode as oe, toDisplayString as te, createCommentVNode as ae, renderSlot as ne } from "vue";
2
- import B from "./DropdownV4.vue.js";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_7114a241_lang.css"; import { defineComponent as H, computed as b, ref as s, watch as g, onMounted as J, resolveComponent as X, openBlock as B, createBlock as Y, unref as p, createSlots as Z, withCtx as f, createVNode as y, mergeProps as _, createElementVNode as ee, isRef as le, normalizeProps as F, guardReactiveProps as U, createElementBlock as oe, createTextVNode as te, toDisplayString as ne, createCommentVNode as ae, renderSlot as ie } from "vue";
2
+ import I from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
5
- import ie from "./ChipDropdownTrigger.vue.js";
5
+ import ue from "./ChipDropdownTrigger.vue.js";
6
6
  import "./AppDropdownTrigger.vue.js";
7
7
  import "./ButtonDropdownTrigger.vue.js";
8
- import ue from "./ButtonFilterDropdownTrigger.vue.js";
8
+ import re from "./ButtonFilterDropdownTrigger.vue.js";
9
9
  import "./TreeDropdown.vue.js";
10
10
  import "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
- import re from "../../search/v4/SearchV4.vue.js";
13
- import se from "../../typography/v4/Typography.vue.js";
14
- import { useDebounceFn as de } from "@vueuse/core";
15
- const ce = { class: "conditional-container" }, pe = {
12
+ import se from "../../search/v4/SearchV4.vue.js";
13
+ import de from "../../typography/v4/Typography.vue.js";
14
+ import { useDebounceFn as ce } from "@vueuse/core";
15
+ const pe = { class: "conditional-container" }, ve = {
16
16
  key: 0,
17
17
  class: "custom-list-area"
18
- }, Ne = /* @__PURE__ */ q({
18
+ }, Ne = /* @__PURE__ */ H({
19
19
  __name: "ConditionalDropdown",
20
20
  props: {
21
21
  selectedCondition: null,
@@ -42,225 +42,229 @@ const ce = { class: "conditional-container" }, pe = {
42
42
  triggerShownValuesCount: { default: 1 }
43
43
  },
44
44
  emits: ["update:selectedCondition", "update:appliedSelections", "clear", "closed"],
45
- setup(u, { emit: g }) {
46
- const e = u, y = w({
45
+ setup(u, { emit: h }) {
46
+ const e = u, S = b({
47
47
  get: () => e.appliedSelections,
48
48
  set: (l) => {
49
- g("update:appliedSelections", l);
49
+ h("update:appliedSelections", l);
50
50
  }
51
51
  }), T = s(
52
52
  e.selectedCondition || e.conditionalOptions[0]
53
- ), n = w({
53
+ ), a = b({
54
54
  get: () => T.value || e.conditionalOptions[0],
55
55
  set: (l) => {
56
56
  T.value = l;
57
57
  }
58
58
  });
59
- m(
59
+ g(
60
60
  () => e.selectedCondition,
61
61
  (l) => {
62
- l && l.value !== n.value?.value && (n.value = l, k());
62
+ l && l.value !== a.value?.value && (a.value = l, k());
63
63
  }
64
64
  );
65
65
  const A = () => {
66
66
  const { appliedSelections: l } = e;
67
67
  return l ? Array.isArray(l) ? l : [l] : [];
68
- }, N = s(null), p = s(!0), a = s([]), i = s(A()), D = s(!0), d = s(!1), O = s(!1), r = s(e.searchQuery), U = s(""), h = s(e.label), K = s([]), I = w(() => (!r.value || r.value?.length < e.minCharsToStart) && !a.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), M = w(() => {
69
- const l = p.value ? 4 : 4.5, t = a.value.length > 4 ? a.value.length : l;
68
+ }, D = s(null), v = s(!0), t = s([]), i = s(A()), N = s(!0), c = s(!1), w = s(!1), r = s(e.searchQuery), M = s(""), C = s(e.label), K = s([]), E = b(() => (!r.value || r.value?.length < e.minCharsToStart) && !t.value.length ? `Enter at least ${e.minCharsToStart} characters to begin` : "No results found"), Q = b(() => {
69
+ const l = v.value ? 4 : 4.5, o = t.value.length > 4 ? t.value.length : l;
70
70
  if (e.groupedOptions) {
71
- let o = 0;
72
- return a.value.forEach((S) => {
73
- S.options && (o = o + S.options.length);
74
- }), o > 4 ? o : l;
71
+ let d = 0;
72
+ return t.value.forEach((n) => {
73
+ n.options && (d = d + n.options.length);
74
+ }), d > 4 ? d : l;
75
75
  }
76
- return t > l ? t : l;
77
- }), E = (l, t) => {
78
- if (e.infiniteLoading && n.value.multi && Array.isArray(i.value) && i.value.length && l && t.length) {
79
- const o = [], S = i.value.filter(
80
- (f) => f[e.optionNameKey].includes(l)
76
+ return o > l ? o : l;
77
+ }), V = (l, o) => {
78
+ if (e.infiniteLoading && a.value.multi && Array.isArray(i.value) && i.value.length && l && o.length) {
79
+ const d = [], n = i.value.filter(
80
+ (m) => m[e.optionNameKey].includes(l)
81
81
  );
82
- return t.forEach((f) => {
83
- S.find(
84
- (W) => W[e.comparingKey] === f[e.comparingKey]
85
- ) && o.push(f[e.comparingKey]);
86
- }), S.filter(
87
- (f) => !o.includes(f[e.comparingKey])
82
+ return o.forEach((m) => {
83
+ n.find(
84
+ (G) => G[e.comparingKey] === m[e.comparingKey]
85
+ ) && d.push(m[e.comparingKey]);
86
+ }), n.filter(
87
+ (m) => !d.includes(m[e.comparingKey])
88
88
  );
89
89
  }
90
90
  return [];
91
91
  }, L = async (l) => {
92
92
  try {
93
- d.value = !0;
94
- const t = await e.fetchFnCallback(l), o = E(
93
+ c.value = !0;
94
+ const o = await e.fetchFnCallback(l), d = V(
95
95
  l,
96
- t
96
+ o
97
97
  );
98
- a.value = [...o, ...t], d.value = !1;
99
- } catch (t) {
100
- d.value = !1, console.error("Error fetching data:", t);
98
+ t.value = [...d, ...o], c.value = !1;
99
+ } catch (o) {
100
+ c.value = !1, console.error("Error fetching data:", o);
101
101
  }
102
- }, Q = async () => {
102
+ }, $ = async () => {
103
103
  if (e.infiniteLoading)
104
104
  try {
105
- O.value = !0;
105
+ w.value = !0;
106
106
  const l = await e.loadMoreFn();
107
- O.value = !1, Array.isArray(l) && (a.value = [...a.value, ...l]);
107
+ w.value = !1, Array.isArray(l) && (t.value = [...t.value, ...l]);
108
108
  } catch (l) {
109
- O.value = !1, console.error("Error fetching data:", l);
109
+ w.value = !1, console.error("Error fetching data:", l);
110
110
  }
111
- }, V = de(
111
+ }, x = ce(
112
112
  L,
113
113
  e.fetchDataDebounceTime
114
- ), b = (l) => {
115
- l.length >= e.minCharsToStart ? (V(l), N.value?.scrollTo(0)) : e.infiniteLoading && n.value.multi ? a.value = K.value || [] : a.value = [];
116
- }, $ = () => {
117
- r.value && a.value.length && !d.value && !n.value.multi ? a.value[0].conditionalOptions ? a.value[0] = {
114
+ ), O = (l) => {
115
+ l.length >= e.minCharsToStart ? (x(l), D.value?.scrollTo(0)) : e.infiniteLoading && a.value.multi ? t.value = K.value || [] : t.value = [];
116
+ }, R = () => {
117
+ r.value && t.value.length && !c.value && !a.value.multi ? t.value[0].conditionalOptions ? t.value[0] = {
118
118
  [e.optionNameKey]: r.value,
119
119
  conditionalOptions: !0,
120
- conditionalName: n.value.label,
120
+ conditionalName: a.value.label,
121
121
  [e.comparingKey]: r.value
122
- } : a.value = [
122
+ } : t.value = [
123
123
  {
124
124
  [e.optionNameKey]: r.value,
125
125
  conditionalOptions: !0,
126
- conditionalName: n.value.label,
126
+ conditionalName: a.value.label,
127
127
  [e.comparingKey]: r.value
128
128
  },
129
- ...a.value
130
- ] : a.value.length && a.value[0].conditionalOptions && a.value.shift();
129
+ ...t.value
130
+ ] : t.value.length && t.value[0].conditionalOptions && t.value.shift();
131
131
  }, k = () => {
132
- p.value && i.value.length === 0 ? h.value = e.label : h.value = `${e.label} ${n.value.label.toLowerCase()}`;
132
+ v.value && i.value.length === 0 ? C.value = e.label : C.value = `${e.label} ${a.value.label.toLowerCase()}`;
133
133
  };
134
- m(r, () => {
135
- b(r.value);
136
- }), m([n, a], () => {
137
- $();
138
- }), m(
134
+ g(r, () => {
135
+ O(r.value);
136
+ }), g([a, t], () => {
137
+ R();
138
+ }), g(
139
139
  () => e.loadingOverride,
140
- (l, t) => {
141
- !l && t && !e.infiniteLoading && L(e.searchQuery);
140
+ (l, o) => {
141
+ !l && o && !e.infiniteLoading && L(e.searchQuery);
142
142
  }
143
143
  );
144
- const x = () => {
145
- p.value && i.value.length === 0 ? (y.value = [], n.value = null) : (U.value = r.value, y.value = p.value ? [...i.value] : { ...i.value }, D.value = p.value), g("update:selectedCondition", n.value), k();
144
+ const z = () => {
145
+ v.value && i.value.length === 0 ? (S.value = [], a.value = null) : (M.value = r.value, S.value = v.value ? [...i.value] : { ...i.value }, N.value = v.value), h("update:selectedCondition", a.value), k();
146
146
  };
147
- m(n, (l, t) => {
148
- n.value.multi ? (d.value = !0, !t.multi && l.multi && (Array.isArray(e.appliedSelections) ? i.value = e.appliedSelections : i.value = [e.appliedSelections]), setTimeout(() => {
149
- d.value = !1, p.value = !0;
150
- }, 100)) : (!t.multi && !l.multi && (d.value = !0), setTimeout(() => {
151
- !t.multi && !l.multi && (d.value = !1), p.value = !1;
147
+ g(a, (l, o) => {
148
+ a.value.multi ? (c.value = !0, !o.multi && l.multi && (Array.isArray(e.appliedSelections) ? i.value = e.appliedSelections : i.value = [e.appliedSelections]), setTimeout(() => {
149
+ c.value = !1, v.value = !0;
150
+ }, 100)) : (!o.multi && !l.multi && (c.value = !0), setTimeout(() => {
151
+ !o.multi && !l.multi && (c.value = !1), v.value = !1;
152
152
  }, 100));
153
- }), m(y, () => {
153
+ }), g(S, () => {
154
154
  i.value = A();
155
155
  });
156
156
  const P = (l) => {
157
157
  K.value = l;
158
- }, R = () => {
159
- i.value = [], y.value = [], n.value = null, g("update:selectedCondition", null), h.value = e.label, r.value = "", g("clear");
160
- }, z = (l) => {
161
- n.value === null && (n.value = e.conditionalOptions[0]), l && n.value.multi && e.infiniteLoading && i.value && (a.value = i.value, r.value && b(r.value));
158
+ }, j = () => {
159
+ i.value = [], S.value = [], a.value = null, h("update:selectedCondition", null), C.value = e.label, r.value = "", h("clear");
160
+ }, W = (l) => {
161
+ a.value === null && (a.value = e.conditionalOptions[0]), l && a.value.multi && e.infiniteLoading && i.value && (t.value = i.value, r.value && O(r.value));
162
162
  };
163
- G(() => {
164
- (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && b(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (a.value = e.appliedSelections, i.value = e.appliedSelections, K.value = e.appliedSelections), k();
163
+ J(() => {
164
+ (e.searchQuery || !e.infiniteLoading || e.minCharsToStart === 0) && O(e.searchQuery), e.appliedSelections && Array.isArray(e.appliedSelections) && (t.value = e.appliedSelections, i.value = e.appliedSelections, K.value = e.appliedSelections), k();
165
165
  });
166
- const j = () => {
167
- g("closed");
166
+ const q = () => {
167
+ h("closed");
168
168
  };
169
- return (l, t) => (F(), H(c(B), {
170
- ref_key: "dropdownRef",
171
- ref: N,
172
- selected: i.value,
173
- "onUpdate:selected": t[2] || (t[2] = (o) => i.value = o),
174
- "predefined-trigger": "chip",
175
- "display-value": (o) => o?.[u.optionNameKey],
176
- multi: p.value,
177
- options: a.value,
178
- placeholder: h.value,
179
- "search-placeholder": "Search",
180
- "option-name-key": u.optionNameKey,
181
- "with-conditions": "",
182
- "inline-search": "",
183
- "custom-number-of-displayed-options": c(M),
184
- "options-list-width": "330px",
185
- loading: d.value || u.loadingOverride,
186
- "load-more-loading": O.value,
187
- "comparing-key": u.comparingKey,
188
- "is-open": u.isOpen,
189
- "infinite-loading": u.infiniteLoading,
190
- "show-select-all": !u.infiniteLoading && !r.value,
191
- "grouped-options": u.groupedOptions,
192
- "option-flag-key": u.optionFlagKey,
193
- "option-image-key": u.optionImageKey,
194
- "option-icon-key": u.optionIconKey,
195
- "option-icon-type": u.optionIconType,
196
- "trigger-shown-values-count": u.triggerShownValuesCount,
197
- "onUpdate:isOpen": z,
198
- onOnsearch: b,
199
- onApply: x,
200
- onLoadMore: Q,
201
- onUnsavedSelectionUpdate: P,
202
- onClosed: j
203
- }, J({
204
- "dropdown-trigger": v(({ defaultTriggerProps: o }) => [
205
- C(c(ie), X(o, {
206
- label: h.value,
207
- "selected-option": c(y),
208
- multi: D.value,
209
- "cancel-all-selected-display": "",
210
- "display-value-in-quotes": !Array.isArray(i.value) && i.value.conditionalOptions,
211
- "shown-values-count": u.triggerShownValuesCount,
212
- onClear: R
213
- }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes", "shown-values-count"])
214
- ]),
215
- "dropdown-conditions": v(() => [
216
- Y("div", ce, [
217
- C(c(B), {
218
- selected: c(n),
219
- "onUpdate:selected": t[0] || (t[0] = (o) => Z(n) ? n.value = o : null),
220
- options: u.conditionalOptions,
221
- "option-name-key": "label",
222
- "display-value": (o) => o?.label,
223
- container: ".conditional-container",
224
- size: "small"
225
- }, {
226
- "dropdown-trigger": v(({ buttonTriggerProps: o }) => [
227
- C(c(ue), _(ee(o)), null, 16)
228
- ]),
229
- _: 1
230
- }, 8, ["selected", "options", "display-value"])
231
- ])
232
- ]),
233
- "inline-search": v(() => [
234
- C(c(re), {
235
- modelValue: r.value,
236
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
237
- class: "inline-search",
238
- placeholder: "Search",
239
- variant: "transparent",
240
- size: "md",
241
- "auto-focus": u.autoFocusSearch
242
- }, null, 8, ["modelValue", "auto-focus"])
243
- ]),
244
- "custom-list-area": v(() => [
245
- !a.value.length && !d.value ? (F(), le("div", pe, [
246
- C(se, { variant: "body1" }, {
247
- default: v(() => [
248
- oe(te(c(I)), 1)
249
- ]),
250
- _: 1
251
- })
252
- ])) : ae("", !0)
253
- ]),
254
- _: 2
255
- }, [
256
- l.$slots["option-end"] ? {
257
- name: "option-end",
258
- fn: v(({ option: o }) => [
259
- ne(l.$slots, "option-end", { option: o }, void 0, !0)
169
+ return (l, o) => {
170
+ const d = X("ButtonDropdownTrigger");
171
+ return B(), Y(p(I), {
172
+ ref_key: "dropdownRef",
173
+ ref: D,
174
+ selected: i.value,
175
+ "onUpdate:selected": o[2] || (o[2] = (n) => i.value = n),
176
+ "predefined-trigger": "chip",
177
+ "display-value": (n) => n?.[u.optionNameKey],
178
+ multi: v.value,
179
+ options: t.value,
180
+ placeholder: C.value,
181
+ "search-placeholder": "Search",
182
+ "option-name-key": u.optionNameKey,
183
+ "with-conditions": "",
184
+ "inline-search": "",
185
+ "custom-number-of-displayed-options": p(Q),
186
+ "options-list-width": "330px",
187
+ loading: c.value || u.loadingOverride,
188
+ "load-more-loading": w.value,
189
+ "comparing-key": u.comparingKey,
190
+ "is-open": u.isOpen,
191
+ "infinite-loading": u.infiniteLoading,
192
+ "show-select-all": !u.infiniteLoading && !r.value,
193
+ "grouped-options": u.groupedOptions,
194
+ "option-flag-key": u.optionFlagKey,
195
+ "option-image-key": u.optionImageKey,
196
+ "option-icon-key": u.optionIconKey,
197
+ "option-icon-type": u.optionIconType,
198
+ "trigger-shown-values-count": u.triggerShownValuesCount,
199
+ "onUpdate:isOpen": W,
200
+ onOnsearch: O,
201
+ onApply: z,
202
+ onLoadMore: $,
203
+ onUnsavedSelectionUpdate: P,
204
+ onClosed: q
205
+ }, Z({
206
+ "dropdown-trigger": f(({ defaultTriggerProps: n }) => [
207
+ y(p(ue), _(n, {
208
+ label: C.value,
209
+ "selected-option": p(S),
210
+ multi: N.value,
211
+ "cancel-all-selected-display": "",
212
+ "display-value-in-quotes": !Array.isArray(i.value) && i.value.conditionalOptions,
213
+ "shown-values-count": u.triggerShownValuesCount,
214
+ onClear: j
215
+ }), null, 16, ["label", "selected-option", "multi", "display-value-in-quotes", "shown-values-count"])
216
+ ]),
217
+ "dropdown-conditions": f(() => [
218
+ ee("div", pe, [
219
+ y(p(I), {
220
+ selected: p(a),
221
+ "onUpdate:selected": o[0] || (o[0] = (n) => le(a) ? a.value = n : null),
222
+ options: u.conditionalOptions,
223
+ "option-name-key": "label",
224
+ "display-value": (n) => n?.label,
225
+ container: ".conditional-container",
226
+ size: "small"
227
+ }, {
228
+ "dropdown-trigger": f(({ buttonTriggerProps: n }) => [
229
+ y(d, F(U(n)), null, 16),
230
+ y(p(re), F(U(n)), null, 16)
231
+ ]),
232
+ _: 1
233
+ }, 8, ["selected", "options", "display-value"])
234
+ ])
260
235
  ]),
261
- key: "0"
262
- } : void 0
263
- ]), 1032, ["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", "trigger-shown-values-count"]));
236
+ "inline-search": f(() => [
237
+ y(p(se), {
238
+ modelValue: r.value,
239
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => r.value = n),
240
+ class: "inline-search",
241
+ placeholder: "Search",
242
+ variant: "transparent",
243
+ size: "md",
244
+ "auto-focus": u.autoFocusSearch
245
+ }, null, 8, ["modelValue", "auto-focus"])
246
+ ]),
247
+ "custom-list-area": f(() => [
248
+ !t.value.length && !c.value ? (B(), oe("div", ve, [
249
+ y(de, { variant: "body1" }, {
250
+ default: f(() => [
251
+ te(ne(p(E)), 1)
252
+ ]),
253
+ _: 1
254
+ })
255
+ ])) : ae("", !0)
256
+ ]),
257
+ _: 2
258
+ }, [
259
+ l.$slots["option-end"] ? {
260
+ name: "option-end",
261
+ fn: f(({ option: n }) => [
262
+ ie(l.$slots, "option-end", { option: n }, void 0, !0)
263
+ ]),
264
+ key: "0"
265
+ } : void 0
266
+ ]), 1032, ["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", "trigger-shown-values-count"]);
267
+ };
264
268
  }
265
269
  });
266
270
  export {
@@ -6,6 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
6
6
  iconName?: string;
7
7
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
8
8
  testId?: string;
9
+ isTruncated?: boolean;
10
+ withTooltip?: boolean;
11
+ tooltipText?: string;
12
+ navigateToPage?: () => void;
9
13
  }>, {
10
14
  href: any;
11
15
  disabled: boolean;
@@ -14,6 +18,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
18
  iconName: any;
15
19
  iconType: string;
16
20
  testId: string;
21
+ isTruncated: boolean;
22
+ withTooltip: boolean;
23
+ tooltipText: string;
24
+ navigateToPage: any;
17
25
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
26
  click: () => void;
19
27
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -24,6 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
24
32
  iconName?: string;
25
33
  iconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
26
34
  testId?: string;
35
+ isTruncated?: boolean;
36
+ withTooltip?: boolean;
37
+ tooltipText?: string;
38
+ navigateToPage?: () => void;
27
39
  }>, {
28
40
  href: any;
29
41
  disabled: boolean;
@@ -32,16 +44,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
44
  iconName: any;
33
45
  iconType: string;
34
46
  testId: string;
47
+ isTruncated: boolean;
48
+ withTooltip: boolean;
49
+ tooltipText: string;
50
+ navigateToPage: any;
35
51
  }>>> & {
36
52
  onClick?: () => any;
37
53
  }, {
38
54
  testId: string;
39
55
  variant: "button" | "body1" | "body2" | "subtitle1" | "subtitle2";
56
+ withTooltip: boolean;
57
+ tooltipText: string;
58
+ isTruncated: boolean;
40
59
  disabled: boolean;
41
60
  color: "default" | "primary";
42
61
  href: string;
43
62
  iconName: string;
44
63
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
64
+ navigateToPage: () => void;
45
65
  }>, {
46
66
  default?(_: {}): any;
47
67
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./Link.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ad98fe7b"]]);
3
+ // import "../../Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b10e2439"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import "../../Link.vue_vue_type_style_index_0_scoped_ad98fe7b_lang.css"; import { defineComponent as f, openBlock as i, createBlock as r, unref as t, mergeProps as l, withCtx as m, renderSlot as u, createCommentVNode as p } from "vue";
2
- import k from "../typography/v4/Typography.vue.js";
1
+ import "../../Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css"; import { defineComponent as u, openBlock as l, createBlock as n, unref as o, mergeProps as r, withCtx as f, renderSlot as m, createCommentVNode as p } from "vue";
2
+ import T from "../typography/v4/Typography.vue.js";
3
3
  import y from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
- import { useTestIdAttrs as I } from "../../utils/testIds.js";
5
+ import { useTestIdAttrs as k } from "../../utils/testIds.js";
6
6
  import { LinkTestIdModifiers as a } from "../../testids/index.js";
7
- const w = /* @__PURE__ */ f({
7
+ const b = /* @__PURE__ */ u({
8
8
  __name: "Link",
9
9
  props: {
10
10
  href: { default: null },
@@ -13,31 +13,45 @@ const w = /* @__PURE__ */ f({
13
13
  variant: { default: "body1" },
14
14
  iconName: { default: null },
15
15
  iconType: { default: "regular" },
16
- testId: { default: "" }
16
+ testId: { default: "" },
17
+ isTruncated: { type: Boolean, default: !1 },
18
+ withTooltip: { type: Boolean, default: !1 },
19
+ tooltipText: { default: "" },
20
+ navigateToPage: { type: Function, default: null }
17
21
  },
18
22
  emits: ["click"],
19
- setup(e, { emit: d }) {
20
- const o = e, c = () => {
21
- o.disabled || (o.href && window.open(o.href), d("click"));
22
- }, n = I(o.testId, a);
23
- return (s, h) => (i(), r(t(k), l({
24
- class: ["link", [`link--${e.color}`, { "link--disabled": e.disabled }]],
25
- variant: e.variant
26
- }, t(n)[t(a).WRAPPER], { onClick: c }), {
27
- default: m(() => [
28
- u(s.$slots, "default", {}, void 0, !0),
29
- e.iconName ? (i(), r(t(y), l({
23
+ setup(t, { emit: d }) {
24
+ const e = t, c = () => {
25
+ if (!e.disabled) {
26
+ {
27
+ if (e.navigateToPage)
28
+ return e.navigateToPage();
29
+ e.href && window.open(e.href);
30
+ }
31
+ d("click");
32
+ }
33
+ }, i = k(e.testId, a);
34
+ return (s, h) => (l(), n(o(T), r({
35
+ class: ["link", [`link--${t.color}`, { "link--disabled": t.disabled }]],
36
+ variant: t.variant,
37
+ "is-truncated": t.isTruncated,
38
+ "with-tooltip": t.withTooltip,
39
+ "tooltip-text": t.tooltipText
40
+ }, o(i)[o(a).WRAPPER], { onClick: c }), {
41
+ default: f(() => [
42
+ m(s.$slots, "default", {}, void 0, !0),
43
+ t.iconName ? (l(), n(o(y), r({
30
44
  key: 0,
31
- name: e.iconName,
32
- type: e.iconType,
45
+ name: t.iconName,
46
+ type: t.iconType,
33
47
  size: "16px",
34
48
  class: "icon"
35
- }, t(n)[t(a).ICON]), null, 16, ["name", "type"])) : p("", !0)
49
+ }, o(i)[o(a).ICON]), null, 16, ["name", "type"])) : p("", !0)
36
50
  ]),
37
51
  _: 3
38
- }, 16, ["class", "variant"]));
52
+ }, 16, ["class", "variant", "is-truncated", "with-tooltip", "tooltip-text"]));
39
53
  }
40
54
  });
41
55
  export {
42
- w as default
56
+ b as default
43
57
  };
@@ -5,11 +5,15 @@ declare const LinkTypes: () => ({
5
5
  $props: Partial<{
6
6
  testId: string;
7
7
  variant: "button" | "body1" | "body2" | "subtitle1" | "subtitle2";
8
+ withTooltip: boolean;
9
+ tooltipText: string;
10
+ isTruncated: boolean;
8
11
  disabled: boolean;
9
12
  color: "default" | "primary";
10
13
  href: string;
11
14
  iconName: string;
12
15
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
16
+ navigateToPage: () => void;
13
17
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
18
  testId: {
15
19
  type: import("vue").PropType<string>;
@@ -19,6 +23,18 @@ declare const LinkTypes: () => ({
19
23
  type: import("vue").PropType<"button" | "body1" | "body2" | "subtitle1" | "subtitle2">;
20
24
  default: string;
21
25
  };
26
+ withTooltip: {
27
+ type: import("vue").PropType<boolean>;
28
+ default: boolean;
29
+ };
30
+ tooltipText: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ isTruncated: {
35
+ type: import("vue").PropType<boolean>;
36
+ default: boolean;
37
+ };
22
38
  disabled: {
23
39
  type: import("vue").PropType<boolean>;
24
40
  default: boolean;
@@ -39,9 +55,13 @@ declare const LinkTypes: () => ({
39
55
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
40
56
  default: string;
41
57
  };
58
+ navigateToPage: {
59
+ type: import("vue").PropType<() => void>;
60
+ default: any;
61
+ };
42
62
  }>> & {
43
63
  onClick?: () => any;
44
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "disabled" | "color" | "href" | "iconName" | "iconType">;
64
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "withTooltip" | "tooltipText" | "isTruncated" | "disabled" | "color" | "href" | "iconName" | "iconType" | "navigateToPage">;
45
65
  $attrs: {
46
66
  [x: string]: unknown;
47
67
  };
@@ -64,6 +84,18 @@ declare const LinkTypes: () => ({
64
84
  type: import("vue").PropType<"button" | "body1" | "body2" | "subtitle1" | "subtitle2">;
65
85
  default: string;
66
86
  };
87
+ withTooltip: {
88
+ type: import("vue").PropType<boolean>;
89
+ default: boolean;
90
+ };
91
+ tooltipText: {
92
+ type: import("vue").PropType<string>;
93
+ default: string;
94
+ };
95
+ isTruncated: {
96
+ type: import("vue").PropType<boolean>;
97
+ default: boolean;
98
+ };
67
99
  disabled: {
68
100
  type: import("vue").PropType<boolean>;
69
101
  default: boolean;
@@ -84,6 +116,10 @@ declare const LinkTypes: () => ({
84
116
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
85
117
  default: string;
86
118
  };
119
+ navigateToPage: {
120
+ type: import("vue").PropType<() => void>;
121
+ default: any;
122
+ };
87
123
  }>> & {
88
124
  onClick?: () => any;
89
125
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -91,11 +127,15 @@ declare const LinkTypes: () => ({
91
127
  }, string, {
92
128
  testId: string;
93
129
  variant: "button" | "body1" | "body2" | "subtitle1" | "subtitle2";
130
+ withTooltip: boolean;
131
+ tooltipText: string;
132
+ isTruncated: boolean;
94
133
  disabled: boolean;
95
134
  color: "default" | "primary";
96
135
  href: string;
97
136
  iconName: string;
98
137
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
138
+ navigateToPage: () => void;
99
139
  }, {}, string> & {
100
140
  beforeCreate?: (() => void) | (() => void)[];
101
141
  created?: (() => void) | (() => void)[];
@@ -125,6 +165,18 @@ declare const LinkTypes: () => ({
125
165
  type: import("vue").PropType<"button" | "body1" | "body2" | "subtitle1" | "subtitle2">;
126
166
  default: string;
127
167
  };
168
+ withTooltip: {
169
+ type: import("vue").PropType<boolean>;
170
+ default: boolean;
171
+ };
172
+ tooltipText: {
173
+ type: import("vue").PropType<string>;
174
+ default: string;
175
+ };
176
+ isTruncated: {
177
+ type: import("vue").PropType<boolean>;
178
+ default: boolean;
179
+ };
128
180
  disabled: {
129
181
  type: import("vue").PropType<boolean>;
130
182
  default: boolean;
@@ -145,6 +197,10 @@ declare const LinkTypes: () => ({
145
197
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
146
198
  default: string;
147
199
  };
200
+ navigateToPage: {
201
+ type: import("vue").PropType<() => void>;
202
+ default: any;
203
+ };
148
204
  }>> & {
149
205
  onClick?: () => any;
150
206
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -160,6 +216,18 @@ declare const LinkTypes: () => ({
160
216
  type: import("vue").PropType<"button" | "body1" | "body2" | "subtitle1" | "subtitle2">;
161
217
  default: string;
162
218
  };
219
+ withTooltip: {
220
+ type: import("vue").PropType<boolean>;
221
+ default: boolean;
222
+ };
223
+ tooltipText: {
224
+ type: import("vue").PropType<string>;
225
+ default: string;
226
+ };
227
+ isTruncated: {
228
+ type: import("vue").PropType<boolean>;
229
+ default: boolean;
230
+ };
163
231
  disabled: {
164
232
  type: import("vue").PropType<boolean>;
165
233
  default: boolean;
@@ -180,6 +248,10 @@ declare const LinkTypes: () => ({
180
248
  type: import("vue").PropType<"fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate">;
181
249
  default: string;
182
250
  };
251
+ navigateToPage: {
252
+ type: import("vue").PropType<() => void>;
253
+ default: any;
254
+ };
183
255
  }>> & {
184
256
  onClick?: () => any;
185
257
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -187,11 +259,15 @@ declare const LinkTypes: () => ({
187
259
  }, string, {
188
260
  testId: string;
189
261
  variant: "button" | "body1" | "body2" | "subtitle1" | "subtitle2";
262
+ withTooltip: boolean;
263
+ tooltipText: string;
264
+ isTruncated: boolean;
190
265
  disabled: boolean;
191
266
  color: "default" | "primary";
192
267
  href: string;
193
268
  iconName: string;
194
269
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
270
+ navigateToPage: () => void;
195
271
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
196
272
  $slots: {
197
273
  default?(_: {}): any;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './Heading.vue_vue_type_style_index_0_scoped_19878c4b_lang.css';
1
+ import './IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_f738b223_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } 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.12-rc.42",
3
+ "version": "2.1.12-rc.44",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .custom-list-area[data-v-f5204c04]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:63px 10px}.inline-search[data-v-f5204c04]{width:100%}.contain-accept[data-v-f5204c04]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-f5204c04]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-f5204c04]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -1 +0,0 @@
1
- .link[data-v-ad98fe7b]{cursor:pointer;color:var(--primary-main);display:inline-flex;align-items:center;gap:var(--spacing-50)}.link[data-v-ad98fe7b]:hover{color:var(--primary-dark)}.link--default[data-v-ad98fe7b]{color:var(--text-secondary)}.link--default[data-v-ad98fe7b]:hover{color:var(--text-primary)}.link--disabled[data-v-ad98fe7b]{color:var(--text-disabled);pointer-events:none}