@ironsource/shared-ui 2.1.11-test.99 → 2.1.11

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 (85) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_026d82c5_lang.css +1 -0
  2. package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
  3. package/ChartLoader.vue_vue_type_style_index_0_scoped_ffa4cc66_lang.css +1 -0
  4. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8e026669_lang.css +1 -0
  5. package/DateRangeV4.vue_vue_type_style_index_0_scoped_8a2714eb_lang.css +1 -0
  6. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_73bf9b5b_lang.css +1 -0
  7. package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
  8. package/IconFlag.vue_vue_type_style_index_0_scoped_6526c390_lang.css +1 -0
  9. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +1 -0
  10. package/SortableItem.vue_vue_type_style_index_0_scoped_48542664_lang.css +1 -0
  11. package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
  12. package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
  13. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
  14. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  15. package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
  16. package/Typography.vue_vue_type_style_index_0_scoped_07b259bf_lang.css +1 -0
  17. package/components/chart/Chart.vue.d.ts +5 -0
  18. package/components/chart/Chart.vue.js +3 -3
  19. package/components/chart/Chart.vue2.js +116 -108
  20. package/components/chart/ChartLegend.vue.js +3 -3
  21. package/components/chart/ChartLegend.vue2.js +64 -54
  22. package/components/chart/ChartLoader.vue.js +5 -23
  23. package/components/chart/ChartLoader.vue2.js +15 -0
  24. package/components/chart/index.d.ts +20 -1
  25. package/components/chart/mockData.d.ts +8 -0
  26. package/components/dateRange/v4/DateRangeV4.vue.js +3 -3
  27. package/components/dateRange/v4/DateRangeV4.vue2.js +86 -81
  28. package/components/dropdown/common/Dropdown.common.js +65 -65
  29. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +5 -3
  30. package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
  31. package/components/dropdown/v4/ConditionalDropdown.vue2.js +106 -100
  32. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  33. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +45 -46
  34. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  35. package/components/dropdown/v4/OptionV4.vue2.js +97 -98
  36. package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
  37. package/components/dropdown/v4/TreeDropdown.vue2.js +86 -86
  38. package/components/dropdown/v4/index.d.ts +5 -3
  39. package/components/icon/v4/IconFlag.vue.js +3 -3
  40. package/components/icon/v4/IconFlag.vue2.js +1 -1
  41. package/components/input/v4/TextField.vue.js +3 -3
  42. package/components/input/v4/TextField.vue2.js +184 -164
  43. package/components/sortableList/SortableItem.vue.d.ts +5 -0
  44. package/components/sortableList/SortableItem.vue.js +3 -3
  45. package/components/sortableList/SortableItem.vue2.js +76 -61
  46. package/components/sortableList/SortableList.vue.d.ts +16 -0
  47. package/components/sortableList/SortableList.vue.js +3 -3
  48. package/components/sortableList/SortableList.vue2.js +100 -87
  49. package/components/sortableList/index.d.ts +59 -1
  50. package/components/table/v4/DataGrid.vue.d.ts +1 -1
  51. package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
  52. package/components/table/v4/index.d.ts +40 -40
  53. package/components/table-cells/common/Editable.common.js +8 -7
  54. package/components/table-cells/common/EditableContext.d.ts +1 -0
  55. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  56. package/components/table-cells/v4/EditableV4.vue.js +3 -3
  57. package/components/table-cells/v4/EditableV4.vue2.js +11 -10
  58. package/components/table-cells/v4/index.d.ts +20 -1
  59. package/components/tooltip/v4/TooltipV4.vue.js +3 -3
  60. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  61. package/components/typography/v4/Typography.vue.js +3 -3
  62. package/components/typography/v4/Typography.vue2.js +1 -1
  63. package/index.d.ts +248 -90
  64. package/index.js +1 -1
  65. package/mocks/apps.d.ts +1 -0
  66. package/mocks/randomValue.d.ts +1 -0
  67. package/package.json +3 -3
  68. package/testids/index.d.ts +1 -0
  69. package/testids/index.js +13 -13
  70. package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
  71. package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +0 -1
  72. package/ChartLoader.vue_vue_type_style_index_0_scoped_142c444a_lang.css +0 -1
  73. package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_b2684c5f_lang.css +0 -1
  74. package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +0 -1
  75. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +0 -1
  76. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
  77. package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
  78. package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +0 -1
  79. package/SortableItem.vue_vue_type_style_index_0_scoped_7cb676f1_lang.css +0 -1
  80. package/SortableList.vue_vue_type_style_index_0_scoped_156c01ca_lang.css +0 -1
  81. package/TextField.vue_vue_type_style_index_0_scoped_2e327aa1_lang.css +0 -1
  82. package/TooltipV4.vue_vue_type_style_index_0_scoped_82b46d6d_lang.css +0 -1
  83. package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +0 -1
  84. package/Typography.vue_vue_type_style_index_0_scoped_a14013a5_lang.css +0 -1
  85. package/consts/configs.js +0 -4
@@ -1,41 +1,40 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; import { defineComponent as N, ref as I, watch as L, computed as w, openBlock as o, createBlock as v, unref as n, createSlots as P, withCtx as d, createElementVNode as c, normalizeClass as k, createCommentVNode as l, createElementBlock as i, renderSlot as m, createVNode as s, toDisplayString as r, createTextVNode as y, withModifiers as $, Fragment as V, renderList as F } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css"; import { defineComponent as P, ref as C, watch as S, computed as V, openBlock as o, createBlock as m, unref as n, createSlots as A, withCtx as s, createElementVNode as c, normalizeClass as v, createCommentVNode as i, createElementBlock as l, renderSlot as y, createVNode as a, toDisplayString as u, createTextVNode as f, withModifiers as I, Fragment as F, renderList as L } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
- import D from "../../typography/Text.vue.js";
4
- import R from "../../checkbox/v4/CheckboxV4.vue.js";
5
- import f from "../../icon/v4/IconV4.vue.js";
6
- import "../../icon/v4/IconFlag.vue.js";
7
- import { NOOP as j } from "@vue/shared";
8
- import { optionCommon as H } from "../common/Option.common.js";
9
- import T from "../../typography/v4/Typography.vue.js";
10
- import U from "../../tooltip/v4/TooltipV4.vue.js";
11
- import { isElementTruncated as q } from "../../../utils/text.js";
12
- import { promiseTimeout as G } from "@vueuse/core";
13
- import { SHARED_ASSETS_CDN_DOMAIN as J } from "../../../consts/configs.js";
14
- const Q = { class: "multiline-tooltip" }, W = {
3
+ import N from "../../typography/Text.vue.js";
4
+ import j from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import T from "../../icon/v4/IconV4.vue.js";
6
+ import R from "../../icon/v4/IconFlag.vue.js";
7
+ import { NOOP as D } from "@vue/shared";
8
+ import { optionCommon as q } from "../common/Option.common.js";
9
+ import g from "../../typography/v4/Typography.vue.js";
10
+ import G from "../../tooltip/v4/TooltipV4.vue.js";
11
+ import { isElementTruncated as H } from "../../../utils/text.js";
12
+ import { promiseTimeout as J } from "@vueuse/core";
13
+ const Q = { class: "multiline-tooltip" }, U = {
15
14
  key: 1,
16
15
  class: "image"
17
- }, X = ["src"], Y = {
16
+ }, W = ["src"], X = {
18
17
  key: 2,
19
18
  class: "flag"
20
- }, Z = ["src"], _ = {
19
+ }, Y = {
21
20
  key: 3,
22
21
  class: "start-icon"
23
- }, ee = {
22
+ }, Z = {
24
23
  key: 0,
25
24
  class: "main-text"
26
- }, te = {
25
+ }, _ = {
27
26
  key: 1,
28
27
  class: "main-text"
29
- }, ne = {
28
+ }, ee = {
30
29
  key: 2,
31
30
  class: "end-text-icon"
32
- }, oe = {
31
+ }, te = {
33
32
  key: 3,
34
33
  class: "caption-text"
35
- }, ie = {
34
+ }, ne = {
36
35
  key: 4,
37
36
  class: "end-icon"
38
- }, le = ["onClick"], ae = { key: 0 }, he = /* @__PURE__ */ N({
37
+ }, oe = ["onClick"], ie = { key: 0 }, pe = /* @__PURE__ */ P({
39
38
  __name: "OptionV4",
40
39
  props: {
41
40
  option: { default: null },
@@ -64,25 +63,25 @@ const Q = { class: "multiline-tooltip" }, W = {
64
63
  },
65
64
  emits: ["toggleTreeCollapse"],
66
65
  setup(e, { emit: O }) {
67
- const a = e, { selected: h, id: B, onClick: S, api: K } = H(a), M = (t) => {
68
- a.stopOptionClickEventPropagation && t.stopPropagation(), a.disabled ? j() : S(t);
69
- }, g = I(null), C = I(!1);
70
- L([() => a.treeChildShown, g], async () => {
71
- await G(100), C.value = g.value && q(g.value);
66
+ const d = e, { selected: h, id: w, onClick: $, api: K } = q(d), B = (t) => {
67
+ d.stopOptionClickEventPropagation && t.stopPropagation(), d.disabled ? D() : $(t);
68
+ }, p = C(null), b = C(!1);
69
+ S([() => d.treeChildShown, p], async () => {
70
+ await J(100), b.value = p.value && H(p.value);
72
71
  });
73
- const A = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : C.value ? t[a.nameKey] : "", x = w(() => A(a.option)), E = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, z = () => {
74
- O("toggleTreeCollapse", a.option);
75
- }, b = w(() => a.optionFlagKey ? `${J}/assets/flags/v4/${a.option[a.optionFlagKey]?.toLowerCase()}.svg` : null);
76
- return (t, p) => (o(), v(n(U), {
72
+ const M = (t) => t && typeof t == "object" && "optionTooltipText" in t ? (Array.isArray(t.optionTooltipText), t.optionTooltipText) : b.value ? t[d.nameKey] : "", x = V(() => M(d.option)), z = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null, E = () => {
73
+ O("toggleTreeCollapse", d.option);
74
+ };
75
+ return (t, k) => (o(), m(n(G), {
77
76
  text: n(x),
78
- "test-id": E(e.option),
77
+ "test-id": z(e.option),
79
78
  placement: e.toolTipPlacement,
80
79
  class: "tooltip-option"
81
- }, P({
82
- default: d(() => [
80
+ }, A({
81
+ default: s(() => [
83
82
  c("div", {
84
83
  ref: "el",
85
- class: k(["item-container", {
84
+ class: v(["item-container", {
86
85
  "item-container--disabled": e.disabled,
87
86
  "item-container--active": e.nameKey ? !1 : e.active,
88
87
  "item-container--selected": n(h),
@@ -90,157 +89,157 @@ const Q = { class: "multiline-tooltip" }, W = {
90
89
  }])
91
90
  }, [
92
91
  c("div", {
93
- class: k(["item", {
92
+ class: v(["item", {
94
93
  "item--multi": e.isMulti,
95
94
  "item--with-icon": t.$slots["icon-start"] || t.$slots.image
96
95
  }])
97
96
  }, [
98
- e.isMulti || e.selectAllOption ? (o(), v(n(R), {
97
+ e.isMulti || e.selectAllOption ? (o(), m(n(j), {
99
98
  key: 0,
100
- id: n(B).toString(),
99
+ id: n(w).toString(),
101
100
  tabindex: "-1",
102
101
  class: "checkbox",
103
102
  "is-checked": n(h),
104
103
  "is-indeterminate": e.isIndeterminate,
105
- onClick: p[0] || (p[0] = (u) => M(u))
106
- }, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
107
- t.$slots.image || e.imageKey ? (o(), i("div", W, [
108
- m(t.$slots, "image", {}, () => [
109
- e.imageKey ? (o(), i("img", {
104
+ onClick: k[0] || (k[0] = (r) => B(r))
105
+ }, null, 8, ["id", "is-checked", "is-indeterminate"])) : i("", !0),
106
+ !e.option?.conditionalOptions && (t.$slots.image || e.imageKey) ? (o(), l("div", U, [
107
+ y(t.$slots, "image", {}, () => [
108
+ e.imageKey ? (o(), l("img", {
110
109
  key: 0,
111
110
  src: e.option[e.imageKey]
112
- }, null, 8, X)) : l("", !0)
111
+ }, null, 8, W)) : i("", !0)
113
112
  ], !0)
114
- ])) : l("", !0),
115
- t.$slots.flag || e.optionFlagKey ? (o(), i("div", Y, [
116
- m(t.$slots, "flag", {}, () => [
117
- n(b) ? (o(), i("img", {
113
+ ])) : i("", !0),
114
+ !e.option?.conditionalOptions && (t.$slots.flag || e.optionFlagKey) ? (o(), l("div", X, [
115
+ y(t.$slots, "flag", {}, () => [
116
+ e.optionFlagKey ? (o(), m(n(R), {
118
117
  key: 0,
119
- src: n(b)
120
- }, null, 8, Z)) : l("", !0)
118
+ "country-code": e.option[e.optionFlagKey]
119
+ }, null, 8, ["country-code"])) : i("", !0)
121
120
  ], !0)
122
- ])) : l("", !0),
123
- t.$slots["icon-start"] || e.iconKey ? (o(), i("div", _, [
124
- m(t.$slots, "icon-start", {}, () => [
125
- s(n(f), {
121
+ ])) : i("", !0),
122
+ !e.option?.conditionalOptions && (t.$slots["icon-start"] || e.iconKey) ? (o(), l("div", Y, [
123
+ y(t.$slots, "icon-start", {}, () => [
124
+ a(n(T), {
126
125
  type: e.iconType,
127
126
  name: e.option[e.iconKey],
128
127
  size: e.iconType === "regular" ? "20px" : "16px"
129
128
  }, null, 8, ["type", "name", "size"])
130
129
  ], !0)
131
- ])) : l("", !0),
130
+ ])) : i("", !0),
132
131
  c("div", {
133
132
  ref_key: "textContainerRef",
134
- ref: g,
133
+ ref: p,
135
134
  class: "text-container"
136
135
  }, [
137
- s(n(T), {
136
+ a(n(g), {
138
137
  class: "option-text",
139
138
  variant: "body2"
140
139
  }, {
141
- default: d(() => [
142
- m(t.$slots, "default", {}, () => [
140
+ default: s(() => [
141
+ y(t.$slots, "default", {}, () => [
143
142
  c("div", {
144
- class: k(`option-content-${e.optionTwoLinesVariant} option-content`)
143
+ class: v(`option-content-${e.optionTwoLinesVariant} option-content`)
145
144
  }, [
146
- e.option.conditionalOptions ? (o(), i("div", te, [
147
- s(n(T), {
145
+ e.option?.conditionalOptions ? (o(), l("div", _, [
146
+ a(n(g), {
148
147
  variant: "body2",
149
148
  class: "conditional-option-label"
150
149
  }, {
151
- default: d(() => [
152
- y(r(e.option.conditionalName) + ": ", 1)
150
+ default: s(() => [
151
+ f(u(e.option.conditionalName) + ": ", 1)
153
152
  ]),
154
153
  _: 1
155
154
  }),
156
- s(n(T), {
155
+ a(n(g), {
157
156
  variant: "h5",
158
157
  class: "conditional-option-value"
159
158
  }, {
160
- default: d(() => [
161
- y('"' + r(e.option[e.nameKey]) + '"', 1)
159
+ default: s(() => [
160
+ f('"' + u(e.option[e.nameKey]) + '"', 1)
162
161
  ]),
163
162
  _: 1
164
163
  })
165
- ])) : (o(), i("div", ee, r(e.option[e.nameKey]), 1)),
166
- e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), i("span", ne, [
167
- s(n(f), {
164
+ ])) : (o(), l("div", Z, u(e.option[e.nameKey]), 1)),
165
+ e.endTextIconKey && e.option[e.endTextIconKey] ? (o(), l("span", ee, [
166
+ a(n(T), {
168
167
  type: "regular",
169
168
  name: e.option[e.endTextIconKey],
170
169
  size: "16px"
171
170
  }, null, 8, ["name"])
172
- ])) : l("", !0),
173
- e.optionTwoLinesKey ? (o(), i("div", oe, [
174
- s(n(T), { variant: "caption" }, {
175
- default: d(() => [
176
- y(r(e.option[e.optionTwoLinesKey]), 1)
171
+ ])) : i("", !0),
172
+ e.optionTwoLinesKey ? (o(), l("div", te, [
173
+ a(n(g), { variant: "caption" }, {
174
+ default: s(() => [
175
+ f(u(e.option[e.optionTwoLinesKey]), 1)
177
176
  ]),
178
177
  _: 1
179
178
  })
180
- ])) : l("", !0)
179
+ ])) : i("", !0)
181
180
  ], 2)
182
181
  ], !0)
183
182
  ]),
184
183
  _: 3
185
184
  }),
186
- e.subtitle ? (o(), v(n(D), {
185
+ e.subtitle ? (o(), m(n(N), {
187
186
  key: 0,
188
187
  class: "subtitle",
189
188
  size: "xs"
190
189
  }, {
191
- default: d(() => [
192
- y(r(e.subtitle), 1)
190
+ default: s(() => [
191
+ f(u(e.subtitle), 1)
193
192
  ]),
194
193
  _: 1
195
- })) : l("", !0)
194
+ })) : i("", !0)
196
195
  ], 512),
197
- t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), i("div", ie, [
198
- m(t.$slots, "icon-end", {}, () => [
199
- s(n(f), {
196
+ t.$slots["icon-end"] || e.endIconKey && e.option[e.endIconKey] ? (o(), l("div", ne, [
197
+ y(t.$slots, "icon-end", {}, () => [
198
+ a(n(T), {
200
199
  type: e.endIconType || "regular",
201
200
  name: e.option[e.endIconKey],
202
201
  size: e.endIconType === "regular" || e.endIconType === "ab-test" ? "20px" : "16px"
203
202
  }, null, 8, ["type", "name", "size"])
204
203
  ], !0)
205
- ])) : l("", !0),
206
- e.treeMainOption ? (o(), i("div", {
204
+ ])) : i("", !0),
205
+ e.treeMainOption ? (o(), l("div", {
207
206
  key: 5,
208
207
  class: "tree-main-arrow-wrapper",
209
- onClick: $(z, ["stop"])
208
+ onClick: I(E, ["stop"])
210
209
  }, [
211
- s(n(f), {
210
+ a(n(T), {
212
211
  name: "caret-down",
213
212
  size: "16px",
214
- class: k(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
213
+ class: v(`app-trigger--icon ${e.treeMainOptionExpanded && "expanded"}`)
215
214
  }, null, 8, ["class"])
216
- ], 8, le)) : l("", !0)
215
+ ], 8, oe)) : i("", !0)
217
216
  ], 2),
218
- n(K).clearable && n(h) ? (o(), i("div", ae, [
217
+ n(K).clearable && n(h) ? (o(), l("div", ie, [
219
218
  c("button", {
220
219
  class: "clear-button",
221
- onClick: p[1] || (p[1] = $((u) => n(K).clearSelection(), ["prevent", "stop"]))
220
+ onClick: k[1] || (k[1] = I((r) => n(K).clearSelection(), ["prevent", "stop"]))
222
221
  }, [
223
- s(n(f), {
222
+ a(n(T), {
224
223
  name: "close",
225
224
  width: "8",
226
225
  height: "8"
227
226
  })
228
227
  ])
229
- ])) : l("", !0)
228
+ ])) : i("", !0)
230
229
  ], 2)
231
230
  ]),
232
231
  _: 2
233
232
  }, [
234
233
  Array.isArray(n(x)) ? {
235
234
  name: "tooltip",
236
- fn: d(() => [
235
+ fn: s(() => [
237
236
  c("div", Q, [
238
- (o(!0), i(V, null, F(n(x), (u) => (o(), v(n(T), {
239
- key: u,
237
+ (o(!0), l(F, null, L(n(x), (r) => (o(), m(n(g), {
238
+ key: r,
240
239
  variant: "body2"
241
240
  }, {
242
- default: d(() => [
243
- y(r(u), 1)
241
+ default: s(() => [
242
+ f(u(r), 1)
244
243
  ]),
245
244
  _: 2
246
245
  }, 1024))), 128))
@@ -252,5 +251,5 @@ const Q = { class: "multiline-tooltip" }, W = {
252
251
  }
253
252
  });
254
253
  export {
255
- he as default
254
+ pe as default
256
255
  };
@@ -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_bdfb0aef_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bdfb0aef"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b883d1fa"]]);
5
5
  export {
6
6
  s as default
7
7
  };