@ironsource/shared-ui 2.1.12-test.83 → 2.1.12-test.85

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.
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  endIconKey?: string;
15
15
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
16
16
  endTextIconKey?: string;
17
- toolTipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
17
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
18
18
  treeMainOption?: boolean;
19
19
  treeMainOptionExpanded?: boolean;
20
20
  stopOptionClickEventPropagation?: boolean;
@@ -23,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  treeChildShown?: boolean;
24
24
  optionFlagKey?: string;
25
25
  isMulti?: boolean;
26
+ minMaxSelectionTooltipMessage?: string;
26
27
  }>, {
27
28
  subtitle: string;
28
29
  disabled: boolean;
@@ -38,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
38
39
  endIconKey: any;
39
40
  endIconType: string;
40
41
  endTextIconKey: any;
41
- toolTipPlacement: string;
42
+ tooltipPlacement: string;
42
43
  treeMainOption: boolean;
43
44
  treeMainOptionExpanded: boolean;
44
45
  stopOptionClickEventPropagation: boolean;
@@ -47,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
47
48
  treeChildShown: boolean;
48
49
  optionFlagKey: any;
49
50
  isMulti: boolean;
51
+ minMaxSelectionTooltipMessage: any;
50
52
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
53
  toggleTreeCollapse: (option: unknown) => void;
52
54
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -65,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
67
  endIconKey?: string;
66
68
  endIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
67
69
  endTextIconKey?: string;
68
- toolTipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
70
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
69
71
  treeMainOption?: boolean;
70
72
  treeMainOptionExpanded?: boolean;
71
73
  stopOptionClickEventPropagation?: boolean;
@@ -74,6 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
74
76
  treeChildShown?: boolean;
75
77
  optionFlagKey?: string;
76
78
  isMulti?: boolean;
79
+ minMaxSelectionTooltipMessage?: string;
77
80
  }>, {
78
81
  subtitle: string;
79
82
  disabled: boolean;
@@ -89,7 +92,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
92
  endIconKey: any;
90
93
  endIconType: string;
91
94
  endTextIconKey: any;
92
- toolTipPlacement: string;
95
+ tooltipPlacement: string;
93
96
  treeMainOption: boolean;
94
97
  treeMainOptionExpanded: boolean;
95
98
  stopOptionClickEventPropagation: boolean;
@@ -98,10 +101,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
98
101
  treeChildShown: boolean;
99
102
  optionFlagKey: any;
100
103
  isMulti: boolean;
104
+ minMaxSelectionTooltipMessage: any;
101
105
  }>>> & {
102
106
  onToggleTreeCollapse?: (option: unknown) => any;
103
107
  }, {
104
108
  option: any;
109
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
105
110
  disabled: boolean;
106
111
  active: boolean;
107
112
  endIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -118,12 +123,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
118
123
  iconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
119
124
  endIconKey: string;
120
125
  endTextIconKey: string;
121
- toolTipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
122
126
  treeMainOption: boolean;
123
127
  treeMainOptionExpanded: boolean;
124
128
  stopOptionClickEventPropagation: boolean;
125
129
  treeChildShown: boolean;
126
130
  isMulti: boolean;
131
+ minMaxSelectionTooltipMessage: string;
127
132
  }>, {
128
133
  image?(_: {}): any;
129
134
  flag?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./OptionV4.vue2.js";
2
- /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9560a062_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-9560a062"]]);
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0287cebf"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_9560a062_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as o, createBlock as f, unref as n, createSlots as N, withCtx as d, createElementVNode as c, normalizeClass as v, createCommentVNode as i, createElementBlock as l, renderSlot as r, createVNode as a, toDisplayString as u, createTextVNode as g, withModifiers as C, Fragment as j, renderList as R } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_0287cebf_lang.css"; import { defineComponent as A, ref as w, watch as F, computed as L, openBlock as i, createBlock as g, unref as n, createSlots as N, withCtx as d, createElementVNode as u, normalizeClass as v, createCommentVNode as o, createElementBlock as l, renderSlot as r, createVNode as s, toDisplayString as m, createTextVNode as T, withModifiers as C, Fragment as j, renderList as R } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
3
  import D from "../../typography/Text.vue.js";
4
4
  import q from "../../checkbox/v4/CheckboxV4.vue.js";
5
- import m from "../../icon/v4/IconV4.vue.js";
5
+ import y from "../../icon/v4/IconV4.vue.js";
6
6
  import G from "../../icon/v4/IconFlag.vue.js";
7
7
  import { NOOP as I } from "@vue/shared";
8
8
  import { optionCommon as H } from "../common/Option.common.js";
9
- import T from "../../typography/v4/Typography.vue.js";
9
+ import p from "../../typography/v4/Typography.vue.js";
10
10
  import O from "../../tooltip/v4/TooltipV4.vue.js";
11
11
  import { isElementTruncated as J } from "../../../utils/text.js";
12
12
  import { promiseTimeout as Q } from "@vueuse/core";
@@ -31,10 +31,10 @@ const U = { class: "multiline-tooltip" }, W = {
31
31
  }, ne = {
32
32
  key: 3,
33
33
  class: "caption-text"
34
- }, oe = {
34
+ }, ie = {
35
35
  key: 4,
36
36
  class: "end-icon"
37
- }, ie = {
37
+ }, oe = {
38
38
  key: 5,
39
39
  class: "option-warning"
40
40
  }, le = ["onClick"], ae = { key: 0 }, ve = /* @__PURE__ */ A({
@@ -55,7 +55,7 @@ const U = { class: "multiline-tooltip" }, W = {
55
55
  endIconKey: { default: null },
56
56
  endIconType: { default: "regular" },
57
57
  endTextIconKey: { default: null },
58
- toolTipPlacement: { default: "right" },
58
+ tooltipPlacement: { default: "right" },
59
59
  treeMainOption: { type: Boolean, default: !1 },
60
60
  treeMainOptionExpanded: { type: Boolean, default: !1 },
61
61
  stopOptionClickEventPropagation: { type: Boolean, default: !1 },
@@ -63,160 +63,165 @@ const U = { class: "multiline-tooltip" }, W = {
63
63
  optionTwoLinesKey: { default: void 0 },
64
64
  treeChildShown: { type: Boolean, default: !1 },
65
65
  optionFlagKey: { default: null },
66
- isMulti: { type: Boolean, default: !1 }
66
+ isMulti: { type: Boolean, default: !1 },
67
+ minMaxSelectionTooltipMessage: { default: null }
67
68
  },
68
69
  emits: ["toggleTreeCollapse"],
69
70
  setup(e, { emit: $ }) {
70
- const s = e, { selected: K, id: B, onClick: z, api: h } = H(s), M = (t) => {
71
- s.stopOptionClickEventPropagation && t.stopPropagation(), s.disabled ? I() : z(t);
72
- }, p = w(null), b = w(!1), E = (t) => {
73
- s.disabled && (t.stopPropagation(), I());
71
+ const a = e, { selected: x, id: M, onClick: B, api: b } = H(a), S = (t) => {
72
+ a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? I() : B(t);
73
+ }, k = w(null), h = w(!1), z = (t) => {
74
+ a.disabled && (t.stopPropagation(), I());
74
75
  };
75
- F([() => s.treeChildShown, p], async () => {
76
- await Q(100), b.value = p.value && J(p.value);
76
+ F([() => a.treeChildShown, k], async () => {
77
+ await Q(100), h.value = k.value && J(k.value);
77
78
  });
78
- const P = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[s.nameKey] : "", x = L(() => P(s.option)), S = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, V = () => {
79
- $("toggleTreeCollapse", s.option);
79
+ const E = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : h.value ? t[a.nameKey] : "", K = L(() => {
80
+ const t = a.disabled && a.minMaxSelectionTooltipMessage || "", c = E(a.option);
81
+ return c ? t ? `${c}. ${t}` : c : t;
82
+ }), P = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, V = () => {
83
+ $("toggleTreeCollapse", a.option);
80
84
  };
81
- return (t, k) => (o(), f(n(O), {
82
- text: n(x),
83
- "test-id": S(e.option),
84
- placement: e.toolTipPlacement,
85
+ return (t, c) => (i(), g(n(O), {
86
+ text: n(K),
87
+ "test-id": P(e.option),
88
+ placement: e.tooltipPlacement,
85
89
  class: "tooltip-option"
86
90
  }, N({
87
91
  default: d(() => [
88
- c("div", {
92
+ u("div", {
89
93
  ref: "el",
90
94
  class: v(["item-container", {
91
95
  "item-container--disabled": e.disabled,
92
96
  "item-container--active": e.nameKey ? !1 : e.active,
93
- "item-container--selected": n(K),
97
+ "item-container--selected": n(x),
94
98
  "item-container--multi": e.isMulti
95
99
  }]),
96
- onClick: E
100
+ onClick: z
97
101
  }, [
98
- c("div", {
102
+ u("div", {
99
103
  class: v(["item", {
100
104
  "item--multi": e.isMulti,
101
105
  "item--with-icon": t.$slots["icon-start"] || t.$slots.image
102
106
  }])
103
107
  }, [
104
- e.isMulti || e.selectAllOption ? (o(), f(n(q), {
108
+ e.isMulti || e.selectAllOption ? (i(), g(n(q), {
105
109
  key: 0,
106
- id: n(B).toString(),
110
+ id: n(M).toString(),
111
+ disabled: a.disabled,
107
112
  tabindex: "-1",
108
113
  class: "checkbox",
109
- "is-checked": n(K),
114
+ "is-checked": n(x),
110
115
  "is-indeterminate": e.isIndeterminate,
111
- onClick: k[0] || (k[0] = (y) => M(y))
112
- }, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
113
- !e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", W, [
116
+ onClick: c[0] || (c[0] = (f) => S(f))
117
+ }, null, 8, ["id", "disabled", "is-checked", "is-indeterminate"])) : o("", !0),
118
+ !e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (i(), l("div", W, [
114
119
  r(t.$slots, "image", {}, () => [
115
- e.imageKey ? (o(), l("img", {
120
+ e.imageKey ? (i(), l("img", {
116
121
  key: 0,
117
122
  src: e.option[e.imageKey]
118
- }, null, 8, X)) : i("", !0)
123
+ }, null, 8, X)) : o("", !0)
119
124
  ], !0)
120
- ])) : i("", !0),
121
- !e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", Y, [
125
+ ])) : o("", !0),
126
+ !e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (i(), l("div", Y, [
122
127
  r(t.$slots, "flag", {}, () => [
123
- e.optionFlagKey ? (o(), f(n(G), {
128
+ e.optionFlagKey ? (i(), g(n(G), {
124
129
  key: 0,
125
130
  "country-code": e.option[e.optionFlagKey]
126
- }, null, 8, ["country-code"])) : i("", !0)
131
+ }, null, 8, ["country-code"])) : o("", !0)
127
132
  ], !0)
128
- ])) : i("", !0),
129
- !e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Z, [
133
+ ])) : o("", !0),
134
+ !e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (i(), l("div", Z, [
130
135
  r(t.$slots, "icon-start", {}, () => [
131
- a(n(m), {
136
+ s(n(y), {
132
137
  type: e.iconType,
133
138
  name: e.option[e.iconKey],
134
139
  color: e.option.disabled ? "var(--text-disabled)" : null,
135
140
  size: e.iconType === "regular" ? "20px" : "16px"
136
141
  }, null, 8, ["type", "name", "color", "size"])
137
142
  ], !0)
138
- ])) : i("", !0),
139
- c("div", {
143
+ ])) : o("", !0),
144
+ u("div", {
140
145
  ref_key: "textContainerRef",
141
- ref: p,
146
+ ref: k,
142
147
  class: "text-container"
143
148
  }, [
144
- a(n(T), {
149
+ s(n(p), {
145
150
  class: "option-text",
146
151
  variant: "body2"
147
152
  }, {
148
153
  default: d(() => [
149
154
  r(t.$slots, "default", {}, () => [
150
- c("div", {
155
+ u("div", {
151
156
  class: v(`option-content-${e.optionTwoLinesVariant} option-content`)
152
157
  }, [
153
- e.option?.conditionalOptions ? (o(), l("div", ee, [
154
- a(n(T), {
158
+ e.option?.conditionalOptions ? (i(), l("div", ee, [
159
+ s(n(p), {
155
160
  variant: "body2",
156
161
  class: "conditional-option-label"
157
162
  }, {
158
163
  default: d(() => [
159
- g(u(e.option.conditionalName) + ": ", 1)
164
+ T(m(e.option.conditionalName) + ": ", 1)
160
165
  ]),
161
166
  _: 1
162
167
  }),
163
- a(n(T), {
168
+ s(n(p), {
164
169
  variant: "h5",
165
170
  class: "conditional-option-value"
166
171
  }, {
167
172
  default: d(() => [
168
- g('"' + u(e.option[e.nameKey]) + '"', 1)
173
+ T('"' + m(e.option[e.nameKey]) + '"', 1)
169
174
  ]),
170
175
  _: 1
171
176
  })
172
- ])) : (o(), l("div", _, u(e.option[e.nameKey]), 1)),
173
- e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", te, [
174
- a(n(m), {
177
+ ])) : (i(), l("div", _, m(e.option[e.nameKey]), 1)),
178
+ e.endTextIconKey && e.option[e.endTextIconKey] ? (i(), l("span", te, [
179
+ s(n(y), {
175
180
  type: "regular",
176
181
  name: e.option[e.endTextIconKey],
177
182
  size: "16px"
178
183
  }, null, 8, ["name"])
179
- ])) : i("", !0),
180
- e.optionTwoLinesKey ? (o(), l("div", ne, [
181
- a(n(T), { variant: "caption" }, {
184
+ ])) : o("", !0),
185
+ e.optionTwoLinesKey ? (i(), l("div", ne, [
186
+ s(n(p), { variant: "caption" }, {
182
187
  default: d(() => [
183
- g(u(e.option[e.optionTwoLinesKey]), 1)
188
+ T(m(e.option[e.optionTwoLinesKey]), 1)
184
189
  ]),
185
190
  _: 1
186
191
  })
187
- ])) : i("", !0)
192
+ ])) : o("", !0)
188
193
  ], 2)
189
194
  ], !0)
190
195
  ]),
191
196
  _: 3
192
197
  }),
193
- e.subtitle ? (o(), f(n(D), {
198
+ e.subtitle ? (i(), g(n(D), {
194
199
  key: 0,
195
200
  class: "subtitle",
196
201
  size: "xs"
197
202
  }, {
198
203
  default: d(() => [
199
- g(u(e.subtitle), 1)
204
+ T(m(e.subtitle), 1)
200
205
  ]),
201
206
  _: 1
202
- })) : i("", !0)
207
+ })) : o("", !0)
203
208
  ], 512),
204
- t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", oe, [
209
+ t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), l("div", ie, [
205
210
  r(t.$slots, "icon-end", {}, () => [
206
- a(n(m), {
211
+ s(n(y), {
207
212
  type: e.endIconType || "regular",
208
213
  name: e.option[e.endIconKey],
209
214
  size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
210
215
  }, null, 8, ["type", "name", "size"])
211
216
  ], !0)
212
- ])) : i("", !0),
213
- e.warningKey && e.option?.[e.warningKey] ? (o(), l("div", ie, [
214
- a(n(O), {
217
+ ])) : o("", !0),
218
+ e.warningKey && e.option?.[e.warningKey] ? (i(), l("div", oe, [
219
+ s(n(O), {
215
220
  text: e.option[e.warningKey],
216
221
  placement: "top"
217
222
  }, {
218
223
  default: d(() => [
219
- a(n(m), {
224
+ s(n(y), {
220
225
  class: "option-warning__icon",
221
226
  name: "warning-circle",
222
227
  size: "16px"
@@ -224,49 +229,49 @@ const U = { class: "multiline-tooltip" }, W = {
224
229
  ]),
225
230
  _: 1
226
231
  }, 8, ["text"])
227
- ])) : i("", !0),
232
+ ])) : o("", !0),
228
233
  t.$slots["option-end"] ? r(t.$slots, "option-end", {
229
234
  key: 6,
230
235
  option: e.option
231
- }, void 0, !0) : i("", !0),
232
- e.treeMainOption ? (o(), l("div", {
236
+ }, void 0, !0) : o("", !0),
237
+ e.treeMainOption ? (i(), l("div", {
233
238
  key: 7,
234
239
  class: "tree-main-arrow-wrapper",
235
240
  onClick: C(V, ["stop"])
236
241
  }, [
237
- a(n(m), {
242
+ s(n(y), {
238
243
  name: "caret-down",
239
244
  size: "16px",
240
245
  class: v(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
241
246
  }, null, 8, ["class"])
242
- ], 8, le)) : i("", !0)
247
+ ], 8, le)) : o("", !0)
243
248
  ], 2),
244
- n(h).clearable && n(K) ? (o(), l("div", ae, [
245
- c("button", {
249
+ n(b).clearable && n(x) ? (i(), l("div", ae, [
250
+ u("button", {
246
251
  class: "clear-button",
247
- onClick: k[1] || (k[1] = C((y) => n(h).clearSelection(), ["prevent", "stop"]))
252
+ onClick: c[1] || (c[1] = C((f) => n(b).clearSelection(), ["prevent", "stop"]))
248
253
  }, [
249
- a(n(m), {
254
+ s(n(y), {
250
255
  name: "close",
251
256
  width: "8",
252
257
  height: "8"
253
258
  })
254
259
  ])
255
- ])) : i("", !0)
260
+ ])) : o("", !0)
256
261
  ], 2)
257
262
  ]),
258
263
  _: 2
259
264
  }, [
260
- Array.isArray(n(x)) ? {
265
+ Array.isArray(n(K)) ? {
261
266
  name: "tooltip",
262
267
  fn: d(() => [
263
- c("div", U, [
264
- (o(!0), l(j, null, R(n(x), (y) => (o(), f(n(T), {
265
- key: y,
268
+ u("div", U, [
269
+ (i(!0), l(j, null, R(n(K), (f) => (i(), g(n(p), {
270
+ key: f,
266
271
  variant: "body2"
267
272
  }, {
268
273
  default: d(() => [
269
- g(u(y), 1)
274
+ T(m(f), 1)
270
275
  ]),
271
276
  _: 2
272
277
  }, 1024))), 128))