@ironsource/shared-ui 2.1.11-test.6 → 2.1.11-test.7

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 (49) hide show
  1. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
  2. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_562f0b72_lang.css +1 -0
  4. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +1 -0
  6. package/PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css +1 -0
  7. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
  8. package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +1 -0
  9. package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
  10. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  11. package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
  12. package/components/button/v4/index.d.ts +9 -3
  13. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  14. package/components/dateRange/v4/DateRangeV4.vue2.js +21 -22
  15. package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
  16. package/components/dropdown/v3/index.d.ts +20 -20
  17. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  18. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
  19. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
  20. package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -1
  21. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  22. package/components/dropdown/v4/DropdownV4.vue2.js +128 -122
  23. package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
  24. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  25. package/components/dropdown/v4/OptionV4.vue2.js +78 -67
  26. package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
  27. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  28. package/components/dropdown/v4/TreeDropdown.vue2.js +151 -116
  29. package/components/dropdown/v4/index.d.ts +112 -53
  30. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  31. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  32. package/components/inlineCopy/InlineCopy.vue2.js +24 -22
  33. package/components/inlineCopy/index.d.ts +9 -0
  34. package/components/popover/v4/PopoverV4.vue.d.ts +3 -1
  35. package/components/popover/v4/PopoverV4.vue.js +2 -2
  36. package/components/popover/v4/PopoverV4.vue2.js +22 -20
  37. package/components/popover/v4/index.d.ts +9 -3
  38. package/index.d.ts +278 -118
  39. package/index.js +1 -1
  40. package/mocks/options.d.ts +29 -2
  41. package/package.json +1 -1
  42. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
  43. package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
  44. package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
  45. package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
  46. package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
  47. package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
  48. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
  49. package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
@@ -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_4070942a_lang.css"; //*');
4
- const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-4070942a"]]);
3
+ // import "../../../OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css"; //*');
4
+ const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-da829544"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css"; import { defineComponent as N, ref as I, watch as P, computed as $, openBlock as i, createBlock as y, unref as o, createSlots as V, withCtx as r, createElementVNode as s, normalizeClass as p, createCommentVNode as n, createElementBlock as a, renderSlot as u, createVNode as d, toDisplayString as g, createTextVNode as C, withModifiers as O, Fragment as F, renderList as D } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css"; import { defineComponent as N, ref as w, watch as P, computed as $, openBlock as o, createBlock as p, unref as n, createSlots as V, withCtx as d, createElementVNode as s, normalizeClass as T, createCommentVNode as i, createElementBlock as l, renderSlot as u, createVNode as r, toDisplayString as g, createTextVNode as x, withModifiers as O, Fragment as F, renderList as D } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
3
  import R from "../../typography/Text.vue.js";
4
4
  import j from "../../checkbox/v4/CheckboxV4.vue.js";
5
- import T from "../../icon/v4/IconV4.vue.js";
5
+ import m from "../../icon/v4/IconV4.vue.js";
6
6
  import "../../icon/v4/IconFlag.vue.js";
7
7
  import { NOOP as H } from "@vue/shared";
8
8
  import { optionCommon as U } from "../common/Option.common.js";
@@ -20,13 +20,16 @@ const W = { class: "multiline-tooltip" }, X = {
20
20
  }, _ = ["src"], ee = {
21
21
  key: 3,
22
22
  class: "start-icon"
23
- }, te = { class: "main-text" }, oe = {
23
+ }, te = { class: "main-text" }, ne = {
24
24
  key: 0,
25
+ class: "end-text-icon"
26
+ }, oe = {
27
+ key: 1,
25
28
  class: "caption-text"
26
29
  }, ie = {
27
30
  key: 4,
28
31
  class: "end-icon"
29
- }, ne = ["onClick"], le = { key: 0 }, ke = /* @__PURE__ */ N({
32
+ }, le = ["onClick"], ae = { key: 0 }, he = /* @__PURE__ */ N({
30
33
  __name: "OptionV4",
31
34
  props: {
32
35
  option: { default: null },
@@ -42,6 +45,7 @@ const W = { class: "multiline-tooltip" }, X = {
42
45
  iconType: { default: "regular" },
43
46
  endIconKey: { default: null },
44
47
  endIconType: { default: "regular" },
48
+ endTextIconKey: { default: null },
45
49
  toolTipPlacement: { default: "right" },
46
50
  treeMainOption: { type: Boolean, default: !1 },
47
51
  treeMainOptionExpanded: { type: Boolean, default: !1 },
@@ -53,157 +57,164 @@ const W = { class: "multiline-tooltip" }, X = {
53
57
  },
54
58
  emits: ["toggleTreeCollapse"],
55
59
  setup(e, { emit: B }) {
56
- const l = e, { selected: v, isMulti: k, id: S, onClick: E, api: x } = U(l), z = (t) => {
57
- l.stopOptionClickEventPropagation && t.stopPropagation(), l.disabled ? H() : E(t);
58
- }, m = I(null), b = I(!1);
59
- P([() => l.treeChildShown, m], async () => {
60
- await J(100), b.value = m.value && G(m.value);
60
+ const a = e, { selected: k, isMulti: v, id: S, onClick: E, api: C } = U(a), z = (t) => {
61
+ a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? H() : E(t);
62
+ }, y = w(null), b = w(!1);
63
+ P([() => a.treeChildShown, y], async () => {
64
+ await J(100), b.value = y.value && G(y.value);
61
65
  });
62
- const A = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[l.nameKey] : "", h = $(() => A(l.option)), L = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, M = () => {
63
- B("toggleTreeCollapse", l.option);
64
- }, w = $(() => l.optionFlagKey ? `${Q}/assets/flags/v4/${l.option[l.optionFlagKey]?.toLowerCase()}.svg` : null);
65
- return (t, f) => (i(), y(o(q), {
66
- text: o(h),
66
+ const A = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[a.nameKey] : "", h = $(() => A(a.option)), L = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, M = () => {
67
+ B("toggleTreeCollapse", a.option);
68
+ }, I = $(() => a.optionFlagKey ? `${Q}/assets/flags/v4/${a.option[a.optionFlagKey]?.toLowerCase()}.svg` : null);
69
+ return (t, f) => (o(), p(n(q), {
70
+ text: n(h),
67
71
  "test-id": L(e.option),
68
72
  placement: e.toolTipPlacement,
69
73
  class: "tooltip-option"
70
74
  }, V({
71
- default: r(() => [
75
+ default: d(() => [
72
76
  s("div", {
73
77
  ref: "el",
74
- class: p(["item-container", {
78
+ class: T(["item-container", {
75
79
  "item-container--disabled": e.disabled,
76
80
  "item-container--active": e.nameKey ? !1 : e.active,
77
- "item-container--selected": o(v),
78
- "item-container--multi": o(k)
81
+ "item-container--selected": n(k),
82
+ "item-container--multi": n(v)
79
83
  }])
80
84
  }, [
81
85
  s("div", {
82
- class: p(["item", {
83
- "item--multi": o(k),
86
+ class: T(["item", {
87
+ "item--multi": n(v),
84
88
  "item--with-icon": t.$slots["icon-start"] || t.$slots.image
85
89
  }])
86
90
  }, [
87
- o(k) ? (i(), y(o(j), {
91
+ n(v) ? (o(), p(n(j), {
88
92
  key: 0,
89
- id: o(S).toString(),
93
+ id: n(S).toString(),
90
94
  tabindex: "-1",
91
95
  class: "checkbox",
92
- "is-checked": o(v),
96
+ "is-checked": n(k),
93
97
  "is-indeterminate": e.isIndeterminate,
94
98
  onClick: f[0] || (f[0] = (c) => z(c))
95
- }, null, 8, ["id", "is-checked", "is-indeterminate"])) : n("", !0),
96
- t.$slots.image || e.imageKey ? (i(), a("div", X, [
99
+ }, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
100
+ t.$slots.image || e.imageKey ? (o(), l("div", X, [
97
101
  u(t.$slots, "image", {}, () => [
98
- e.imageKey ? (i(), a("img", {
102
+ e.imageKey ? (o(), l("img", {
99
103
  key: 0,
100
104
  src: e.option[e.imageKey]
101
- }, null, 8, Y)) : n("", !0)
105
+ }, null, 8, Y)) : i("", !0)
102
106
  ], !0)
103
- ])) : n("", !0),
104
- t.$slots.flag || e.optionFlagKey ? (i(), a("div", Z, [
107
+ ])) : i("", !0),
108
+ t.$slots.flag || e.optionFlagKey ? (o(), l("div", Z, [
105
109
  u(t.$slots, "flag", {}, () => [
106
- o(w) ? (i(), a("img", {
110
+ n(I) ? (o(), l("img", {
107
111
  key: 0,
108
- src: o(w)
109
- }, null, 8, _)) : n("", !0)
112
+ src: n(I)
113
+ }, null, 8, _)) : i("", !0)
110
114
  ], !0)
111
- ])) : n("", !0),
112
- t.$slots["icon-start"] || e.iconKey ? (i(), a("div", ee, [
115
+ ])) : i("", !0),
116
+ t.$slots["icon-start"] || e.iconKey ? (o(), l("div", ee, [
113
117
  u(t.$slots, "icon-start", {}, () => [
114
- d(o(T), {
118
+ r(n(m), {
115
119
  type: e.iconType,
116
120
  name: e.option[e.iconKey],
117
121
  size: e.iconType === "regular" ? "20px" : "16px"
118
122
  }, null, 8, ["type", "name", "size"])
119
123
  ], !0)
120
- ])) : n("", !0),
124
+ ])) : i("", !0),
121
125
  s("div", {
122
126
  ref_key: "textContainerRef",
123
- ref: m,
127
+ ref: y,
124
128
  class: "text-container"
125
129
  }, [
126
- d(o(K), {
130
+ r(n(K), {
127
131
  class: "option-text",
128
132
  variant: "body2"
129
133
  }, {
130
- default: r(() => [
134
+ default: d(() => [
131
135
  u(t.$slots, "default", {}, () => [
132
136
  s("div", {
133
- class: p(`option-content-${e.optionTwoLinesVariant || "horizontal"}`)
137
+ class: T(`option-content-${e.optionTwoLinesVariant} option-content`)
134
138
  }, [
135
139
  s("div", te, g(e.option[e.nameKey]), 1),
136
- e.optionTwoLinesKey ? (i(), a("div", oe, [
137
- d(o(K), { variant: "caption" }, {
138
- default: r(() => [
139
- C(g(e.option[e.optionTwoLinesKey]), 1)
140
+ e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", ne, [
141
+ r(n(m), {
142
+ type: "regular",
143
+ name: e.option[e.endTextIconKey],
144
+ size: "16px"
145
+ }, null, 8, ["name"])
146
+ ])) : i("", !0),
147
+ e.optionTwoLinesKey ? (o(), l("div", oe, [
148
+ r(n(K), { variant: "caption" }, {
149
+ default: d(() => [
150
+ x(g(e.option[e.optionTwoLinesKey]), 1)
140
151
  ]),
141
152
  _: 1
142
153
  })
143
- ])) : n("", !0)
154
+ ])) : i("", !0)
144
155
  ], 2)
145
156
  ], !0)
146
157
  ]),
147
158
  _: 3
148
159
  }),
149
- e.subtitle ? (i(), y(o(R), {
160
+ e.subtitle ? (o(), p(n(R), {
150
161
  key: 0,
151
162
  class: "subtitle",
152
163
  size: "xs"
153
164
  }, {
154
- default: r(() => [
155
- C(g(e.subtitle), 1)
165
+ default: d(() => [
166
+ x(g(e.subtitle), 1)
156
167
  ]),
157
168
  _: 1
158
- })) : n("", !0)
169
+ })) : i("", !0)
159
170
  ], 512),
160
- t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (i(), a("div", ie, [
171
+ t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", ie, [
161
172
  u(t.$slots, "icon-end", {}, () => [
162
- d(o(T), {
163
- type: e.endIconType,
173
+ r(n(m), {
174
+ type: e.endIconType || "regular",
164
175
  name: e.option[e.endIconKey],
165
176
  size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
166
177
  }, null, 8, ["type", "name", "size"])
167
178
  ], !0)
168
- ])) : n("", !0),
169
- e.treeMainOption ? (i(), a("div", {
179
+ ])) : i("", !0),
180
+ e.treeMainOption ? (o(), l("div", {
170
181
  key: 5,
171
182
  class: "tree-main-arrow-wrapper",
172
183
  onClick: O(M, ["stop"])
173
184
  }, [
174
- d(o(T), {
185
+ r(n(m), {
175
186
  name: "caret-down",
176
187
  size: "16px",
177
- class: p(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
188
+ class: T(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
178
189
  }, null, 8, ["class"])
179
- ], 8, ne)) : n("", !0)
190
+ ], 8, le)) : i("", !0)
180
191
  ], 2),
181
- o(x).clearable && o(v) ? (i(), a("div", le, [
192
+ n(C).clearable && n(k) ? (o(), l("div", ae, [
182
193
  s("button", {
183
194
  class: "clear-button",
184
- onClick: f[1] || (f[1] = O((c) => o(x).clearSelection(), ["prevent", "stop"]))
195
+ onClick: f[1] || (f[1] = O((c) => n(C).clearSelection(), ["prevent", "stop"]))
185
196
  }, [
186
- d(o(T), {
197
+ r(n(m), {
187
198
  name: "close",
188
199
  width: "8",
189
200
  height: "8"
190
201
  })
191
202
  ])
192
- ])) : n("", !0)
203
+ ])) : i("", !0)
193
204
  ], 2)
194
205
  ]),
195
206
  _: 2
196
207
  }, [
197
- Array.isArray(o(h)) ? {
208
+ Array.isArray(n(h)) ? {
198
209
  name: "tooltip",
199
- fn: r(() => [
210
+ fn: d(() => [
200
211
  s("div", W, [
201
- (i(!0), a(F, null, D(o(h), (c) => (i(), y(o(K), {
212
+ (o(!0), l(F, null, D(n(h), (c) => (o(), p(n(K), {
202
213
  key: c,
203
214
  variant: "body2"
204
215
  }, {
205
- default: r(() => [
206
- C(g(c), 1)
216
+ default: d(() => [
217
+ x(g(c), 1)
207
218
  ]),
208
219
  _: 2
209
220
  }, 1024))), 128))
@@ -215,5 +226,5 @@ const W = { class: "multiline-tooltip" }, X = {
215
226
  }
216
227
  });
217
228
  export {
218
- ke as default
229
+ he as default
219
230
  };
@@ -14,6 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
15
15
  optionEndIconKey?: string;
16
16
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
17
+ optionEndTextIconKey?: string;
17
18
  valueToCopy?: string;
18
19
  disabledOptionKey?: string;
19
20
  optionChildrenKey: string;
@@ -32,6 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
33
  optionIconType: any;
33
34
  optionEndIconKey: string;
34
35
  optionEndIconType: any;
36
+ optionEndTextIconKey: any;
35
37
  valueToCopy: any;
36
38
  disabledOptionKey: string;
37
39
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -53,6 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
53
55
  optionIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
54
56
  optionEndIconKey?: string;
55
57
  optionEndIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
58
+ optionEndTextIconKey?: string;
56
59
  valueToCopy?: string;
57
60
  disabledOptionKey?: string;
58
61
  optionChildrenKey: string;
@@ -71,6 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
71
74
  optionIconType: any;
72
75
  optionEndIconKey: string;
73
76
  optionEndIconType: any;
77
+ optionEndTextIconKey: any;
74
78
  valueToCopy: any;
75
79
  disabledOptionKey: string;
76
80
  }>>> & {
@@ -81,6 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
81
85
  disabled: boolean;
82
86
  size: "small" | "medium" | "large";
83
87
  selected: unknown[];
88
+ valueToCopy: string;
84
89
  placeholder: string;
85
90
  inlineSearchPlaceholder: string;
86
91
  optionNameKey: string;
@@ -89,8 +94,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
94
  optionIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
90
95
  optionEndIconKey: string;
91
96
  optionEndIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
92
- valueToCopy: string;
93
97
  disabledOptionKey: string;
98
+ optionEndTextIconKey: string;
94
99
  }>, {
95
100
  "trigger-end-icon"?(_: {}): any;
96
101
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./TreeDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6ac5f602"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-985779f7"]]);
5
5
  export {
6
6
  s as default
7
7
  };