@ironsource/shared-ui 2.1.11-rc.22 → 2.1.11-rc.24

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
+ .chart-container[data-v-8f471697]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;height:388px;border-radius:0 0 6px 6px;width:100%}.header-wrapper[data-v-8f471697]{height:76px}.chart-content[data-v-8f471697]{width:100%}.chart-content.with-legend[data-v-8f471697]{width:calc(100% - 222px)}.chart-sidebar[data-v-8f471697]{border-left:1px solid var(--common-divider)}.chart[data-v-8f471697]{width:100%;height:312px;position:relative}.chart__canvas[data-v-8f471697]{width:100%;height:100%}.chart__tooltip[data-v-8f471697]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -0,0 +1 @@
1
+ .custom-list-area[data-v-3d7ef976]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:53px 43px}.inline-search[data-v-3d7ef976]{width:100%}.contain-accept[data-v-3d7ef976]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-3d7ef976]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-3d7ef976]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -0,0 +1 @@
1
+ .filters-panel[data-v-111b200a]{display:flex;flex-wrap:wrap;gap:var(--spacing-50)}.filters-panel[data-v-111b200a] .dropdown{padding:0}
@@ -1,7 +1,7 @@
1
- import e from "./Chart.vue2.js";
2
- /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ea1e5c3e"]]);
1
+ import o from "./Chart.vue2.js";
2
+ /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css"; //*');
4
+ const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-8f471697"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,23 +1,23 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css"; import { defineComponent as X, ref as g, computed as i, onMounted as j, watch as C, nextTick as q, openBlock as d, createElementBlock as k, Fragment as R, createBlock as m, unref as u, isRef as V, withCtx as O, renderSlot as D, createCommentVNode as v, createElementVNode as f, createVNode as F, normalizeStyle as J } from "vue";
2
- import { useVModel as Q } from "@vueuse/core";
3
- import { Chart as N, ArcElement as Y, LineElement as ee, BarElement as te, PointElement as ae, LineController as oe, BarController as re, PieController as ie, ScatterController as le, CategoryScale as ne, LinearScale as se, Filler as de, Tooltip as ue } from "chart.js";
4
- import { HoverVerticalLine as ce } from "./plugins/HoverVerticalLine.js";
5
- import { formatValue as H, calcStepSize as fe } from "./utils/utils.js";
6
- import { DEFAULT_TICK_COUNT as pe, DEFAULT_MIN_VISIBLE as he, DEFAULT_MAX_VISIBLE as me, COLOR_PALETTE as ve, POINT_BORDER_COLOR as be, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as M } from "./consts.js";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_8f471697_lang.css"; import { defineComponent as j, ref as g, computed as i, onMounted as q, watch as C, nextTick as J, openBlock as d, createElementBlock as k, Fragment as R, createBlock as m, unref as u, isRef as V, withCtx as O, renderSlot as D, createCommentVNode as v, createElementVNode as f, normalizeClass as Q, createVNode as F, normalizeStyle as Y } from "vue";
2
+ import { useVModel as _ } from "@vueuse/core";
3
+ import { Chart as N, ArcElement as ee, LineElement as te, BarElement as ae, PointElement as oe, LineController as re, BarController as ie, PieController as le, ScatterController as ne, CategoryScale as se, LinearScale as de, Filler as ue, Tooltip as ce } from "chart.js";
4
+ import { HoverVerticalLine as fe } from "./plugins/HoverVerticalLine.js";
5
+ import { formatValue as H, calcStepSize as pe } from "./utils/utils.js";
6
+ import { DEFAULT_TICK_COUNT as he, DEFAULT_MIN_VISIBLE as me, DEFAULT_MAX_VISIBLE as ve, COLOR_PALETTE as be, POINT_BORDER_COLOR as ye, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as z } from "./consts.js";
7
7
  import { ChartType as n } from "./types.js";
8
- import { useTooltipPosition as ye } from "./composables/useTooltipPosition.js";
9
- import ge from "./ChartTooltip.vue.js";
10
- import Ce from "./ChartLegend.vue.js";
11
- import ke from "./ChartHeader.vue.js";
12
- import { hexColorToRgba as Te } from "../../utils/color.js";
13
- import { useChartValues as Se } from "./composables/useChartValues.js";
14
- import Le from "./ChartLoader.vue.js";
15
- import xe from "../emptyState/v4/EmptyStateV4.vue.js";
16
- import Be from "./SettingsHeader.vue.js";
17
- const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = { class: "header-wrapper" }, Ee = { class: "chart" }, Re = {
8
+ import { useTooltipPosition as ge } from "./composables/useTooltipPosition.js";
9
+ import Ce from "./ChartTooltip.vue.js";
10
+ import ke from "./ChartLegend.vue.js";
11
+ import Te from "./ChartHeader.vue.js";
12
+ import { hexColorToRgba as Se } from "../../utils/color.js";
13
+ import { useChartValues as Le } from "./composables/useChartValues.js";
14
+ import xe from "./ChartLoader.vue.js";
15
+ import Be from "../emptyState/v4/EmptyStateV4.vue.js";
16
+ import Ie from "./SettingsHeader.vue.js";
17
+ const we = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee = { class: "chart" }, Re = {
18
18
  key: 0,
19
19
  class: "chart-sidebar"
20
- }, Xe = /* @__PURE__ */ X({
20
+ }, je = /* @__PURE__ */ j({
21
21
  __name: "Chart",
22
22
  props: {
23
23
  dataSets: { default: () => [] },
@@ -26,13 +26,13 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
26
26
  parsing: { default: void 0 },
27
27
  xAxisFormat: { default: "string" },
28
28
  yAxisFormat: { default: "number" },
29
- tickCount: { default: pe },
29
+ tickCount: { default: he },
30
30
  header: { default: "" },
31
31
  subheader: { default: "" },
32
32
  subheaderTooltip: { default: "" },
33
33
  hideLegend: { type: Boolean, default: !1 },
34
- minVisible: { default: he },
35
- maxVisible: { default: me },
34
+ minVisible: { default: me },
35
+ maxVisible: { default: ve },
36
36
  loading: { type: Boolean, default: !1 },
37
37
  noDataIcon: { default: "file-x" },
38
38
  noDataTitle: { default: "No data to display" },
@@ -43,7 +43,6 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
43
43
  setup(a, { emit: T }) {
44
44
  const t = a;
45
45
  N.register(
46
- Y,
47
46
  ee,
48
47
  te,
49
48
  ae,
@@ -55,18 +54,19 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
55
54
  se,
56
55
  de,
57
56
  ue,
58
- ce
57
+ ce,
58
+ fe
59
59
  );
60
- const c = Q(t, "chartType", T), p = g(null);
60
+ const c = _(t, "chartType", T), p = g(null);
61
61
  let s = null;
62
62
  const S = i(() => t.dataSets.length === 0), L = i(() => !t.loading && !S.value), b = () => {
63
63
  p.value && (s && s.destroy(), s = new N(p.value, B.value));
64
- }, z = () => {
64
+ }, M = () => {
65
65
  s && (s.data.datasets = y.value, s.options = B.value.options, s.update());
66
66
  };
67
- j(b), C(() => t.chartType, b), C(L, async (e) => {
68
- e && (await q(), b());
69
- }), C([() => t.visibleIds, () => t.dataSets], z);
67
+ q(b), C(() => t.chartType, b), C(L, async (e) => {
68
+ e && (await J(), b());
69
+ }), C([() => t.visibleIds, () => t.dataSets], M);
70
70
  const h = i(
71
71
  () => t.chartType === n.StackedLine || t.chartType === n.StackedBar
72
72
  ), $ = i(
@@ -74,11 +74,11 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
74
74
  ), x = i(
75
75
  () => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
76
76
  ), y = i(() => x.value.map((e, o) => {
77
- const r = e.color || ve[o] || "#000000";
77
+ const r = e.color || be[o] || "#000000";
78
78
  return {
79
79
  ...e,
80
80
  fill: h.value ? "start" : void 0,
81
- backgroundColor: Te(
81
+ backgroundColor: Se(
82
82
  r,
83
83
  t.chartType === n.StackedLine ? 10 : 70
84
84
  ),
@@ -118,7 +118,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
118
118
  },
119
119
  callbacks: {
120
120
  footer: (e) => {
121
- const o = e.reduce((r, G) => r + (G.parsed.y || 0), 0);
121
+ const o = e.reduce((r, X) => r + (X.parsed.y || 0), 0);
122
122
  return ["Total", String(o)];
123
123
  }
124
124
  }
@@ -146,7 +146,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
146
146
  borderWidth: 0,
147
147
  hoverRadius: 4,
148
148
  hoverBorderWidth: 2,
149
- pointHoverBackgroundColor: be
149
+ pointHoverBackgroundColor: ye
150
150
  },
151
151
  bar: {
152
152
  borderRadius: 4
@@ -173,7 +173,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
173
173
  },
174
174
  // grid lines
175
175
  grid: {
176
- color: M,
176
+ color: z,
177
177
  drawOnChartArea: !1,
178
178
  drawTicks: !0,
179
179
  drawBorder: !1,
@@ -199,7 +199,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
199
199
  },
200
200
  // grid lines
201
201
  grid: {
202
- color: M,
202
+ color: z,
203
203
  drawOnChartArea: !0,
204
204
  drawTicks: !1
205
205
  }
@@ -213,7 +213,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
213
213
  id: e.id,
214
214
  label: e.label,
215
215
  color: K.value[e.id] || null
216
- }))), I = g(null), l = g(null), { position: w } = ye(
216
+ }))), I = g(null), l = g(null), { position: w } = ge(
217
217
  p,
218
218
  I,
219
219
  l
@@ -221,15 +221,15 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
221
221
  left: `${w.value.left}px`,
222
222
  top: `${w.value.top}px`,
223
223
  opacity: l.value?.opacity || 0
224
- })), { minValue: A, maxValue: _ } = Se({
224
+ })), { minValue: A, maxValue: G } = Le({
225
225
  parsingConfig: t.parsing,
226
226
  dataSets: x,
227
227
  isStacked: h
228
228
  }), E = i(
229
- () => fe(A.value, _.value, t.tickCount)
229
+ () => pe(A.value, G.value, t.tickCount)
230
230
  );
231
231
  return (e, o) => (d(), k(R, null, [
232
- a.withSettingsHeader ? (d(), m(Be, {
232
+ a.withSettingsHeader ? (d(), m(Ie, {
233
233
  key: 0,
234
234
  "chart-type": u(c),
235
235
  "onUpdate:chart-type": o[0] || (o[0] = (r) => V(c) ? c.value = r : null),
@@ -243,11 +243,13 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
243
243
  ]),
244
244
  _: 3
245
245
  }, 8, ["chart-type", "hide-legend"])) : v("", !0),
246
- f("div", Ie, [
246
+ f("div", we, [
247
247
  u(L) ? (d(), k(R, { key: 0 }, [
248
- f("section", we, [
248
+ f("section", {
249
+ class: Q(["chart-content", [{ "with-legend": !a.hideLegend }]])
250
+ }, [
249
251
  f("div", Ae, [
250
- F(ke, {
252
+ F(Te, {
251
253
  "chart-type": u(c),
252
254
  "onUpdate:chart-type": o[1] || (o[1] = (r) => V(c) ? c.value = r : null),
253
255
  "with-settings-header": a.withSettingsHeader,
@@ -266,9 +268,9 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
266
268
  ref_key: "tooltipRef",
267
269
  ref: I,
268
270
  class: "chart__tooltip",
269
- style: J(u(Z))
271
+ style: Y(u(Z))
270
272
  }, [
271
- l.value ? (d(), m(ge, {
273
+ l.value ? (d(), m(Ce, {
272
274
  key: 0,
273
275
  title: String(l.value.title),
274
276
  "data-points": l.value.dataPoints,
@@ -279,15 +281,15 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
279
281
  }, null, 8, ["title", "data-points", "x-axis-format", "y-axis-format", "total-label", "total-value"])) : v("", !0)
280
282
  ], 4)
281
283
  ])
282
- ]),
284
+ ], 2),
283
285
  a.hideLegend ? v("", !0) : (d(), k("section", Re, [
284
- F(Ce, {
286
+ F(ke, {
285
287
  items: u(W),
286
288
  "visible-ids": a.visibleIds,
287
289
  "onUpdate:visibleIds": o[2] || (o[2] = (r) => T("update:visibleIds", r))
288
290
  }, null, 8, ["items", "visible-ids"])
289
291
  ]))
290
- ], 64)) : a.loading ? (d(), m(Le, { key: 1 })) : u(S) ? (d(), m(u(xe), {
292
+ ], 64)) : a.loading ? (d(), m(xe, { key: 1 })) : u(S) ? (d(), m(u(Be), {
291
293
  key: 2,
292
294
  title: a.noDataTitle,
293
295
  subtitle: a.noDataSubtitle,
@@ -298,5 +300,5 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
298
300
  }
299
301
  });
300
302
  export {
301
- Xe as default
303
+ je as default
302
304
  };
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
14
  optionNameKey: string;
15
15
  minCharsToStart?: number;
16
16
  isOpen?: boolean;
17
+ searchQuery?: string;
17
18
  }>, {
18
19
  label: string;
19
20
  testId: string;
@@ -21,6 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
22
  optionNameKey: string;
22
23
  minCharsToStart: number;
23
24
  isOpen: boolean;
25
+ searchQuery: string;
24
26
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
27
  "update:selectedCondition": (value: SelectedCondition) => void;
26
28
  "update:appliedSelections": (value: unknown) => void;
@@ -36,6 +38,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
36
38
  optionNameKey: string;
37
39
  minCharsToStart?: number;
38
40
  isOpen?: boolean;
41
+ searchQuery?: string;
39
42
  }>, {
40
43
  label: string;
41
44
  testId: string;
@@ -43,6 +46,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
43
46
  optionNameKey: string;
44
47
  minCharsToStart: number;
45
48
  isOpen: boolean;
49
+ searchQuery: string;
46
50
  }>>> & {
47
51
  onClear?: () => any;
48
52
  "onUpdate:selectedCondition"?: (value: SelectedCondition) => any;
@@ -54,6 +58,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
54
58
  optionNameKey: string;
55
59
  comparingKey: string;
56
60
  minCharsToStart: number;
61
+ searchQuery: string;
57
62
  }>;
58
63
  export default _default;
59
64
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./ConditionalDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css"; //*');
4
- const n = /* @__PURE__ */ e(o, [["__scopeId", "data-v-93545ce0"]]);
3
+ // import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_3d7ef976_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3d7ef976"]]);
5
5
  export {
6
- n as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_93545ce0_lang.css"; import { defineComponent as B, computed as f, ref as s, watch as b, openBlock as k, createBlock as E, unref as u, withCtx as m, createVNode as h, mergeProps as A, createElementVNode as F, isRef as U, createElementBlock as $, createTextVNode as z, toDisplayString as M, createCommentVNode as P } from "vue";
1
+ import "../../../ConditionalDropdown.vue_vue_type_style_index_0_scoped_3d7ef976_lang.css"; import { defineComponent as Q, computed as f, ref as u, watch as C, onMounted as B, openBlock as k, createBlock as E, unref as s, withCtx as m, createVNode as h, mergeProps as A, createElementVNode as F, isRef as M, createElementBlock as U, createTextVNode as $, toDisplayString as z, createCommentVNode as P } from "vue";
2
2
  import w from "./DropdownV4.vue.js";
3
3
  import "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
@@ -10,12 +10,12 @@ import "./TreeDropdown.vue.js";
10
10
  import "./OptionV4.vue.js";
11
11
  import "./ConditionalDropdown.vue.js";
12
12
  import L from "../../search/v4/SearchV4.vue.js";
13
- import Q from "../../typography/v4/Typography.vue.js";
14
- import { useDebounceFn as R } from "@vueuse/core";
15
- const j = { class: "conditional-container" }, q = {
13
+ import R from "../../typography/v4/Typography.vue.js";
14
+ import { useDebounceFn as j } from "@vueuse/core";
15
+ const q = { class: "conditional-container" }, G = {
16
16
  key: 0,
17
17
  class: "custom-list-area"
18
- }, se = /* @__PURE__ */ B({
18
+ }, se = /* @__PURE__ */ Q({
19
19
  __name: "ConditionalDropdown",
20
20
  props: {
21
21
  selectedCondition: null,
@@ -27,58 +27,59 @@ const j = { class: "conditional-container" }, q = {
27
27
  fetchFnCallback: null,
28
28
  optionNameKey: { default: "name" },
29
29
  minCharsToStart: { default: 3 },
30
- isOpen: { type: Boolean, default: !1 }
30
+ isOpen: { type: Boolean, default: !1 },
31
+ searchQuery: { default: "" }
31
32
  },
32
33
  emits: ["update:selectedCondition", "update:appliedSelections", "clear"],
33
34
  setup(c, { emit: y }) {
34
- const t = c, g = f({
35
- get: () => t.appliedSelections,
35
+ const e = c, g = f({
36
+ get: () => e.appliedSelections,
36
37
  set: (o) => {
37
38
  y("update:appliedSelections", o);
38
39
  }
39
40
  }), a = f({
40
- get: () => t.selectedCondition || t.conditionalOptions[0],
41
+ get: () => e.selectedCondition || e.conditionalOptions[0],
41
42
  set: (o) => {
42
43
  y("update:selectedCondition", o);
43
44
  }
44
- }), d = s(!0), e = s([]), p = s([]), C = s(!0), r = s(!1), l = s(""), N = s(""), v = s(t.label), D = f(() => (!l.value || l.value?.length < t.minCharsToStart) && !e.value.length ? `Enter at least ${t.minCharsToStart} keywords to begin` : "No results found"), T = f(() => {
45
+ }), d = u(!0), l = u([]), p = u([]), S = u(!0), r = u(!1), t = u(e.searchQuery), N = u(""), v = u(e.label), D = f(() => (!t.value || t.value?.length < e.minCharsToStart) && !l.value.length ? `Enter at least ${e.minCharsToStart} keywords to begin` : "No results found"), T = f(() => {
45
46
  const o = d.value ? 2.5 : 4;
46
- return e.value.length ? null : o;
47
- }), K = R(async (o) => {
47
+ return l.value.length ? null : o;
48
+ }), K = j(async (o) => {
48
49
  try {
49
50
  r.value = !0;
50
- const i = await t.fetchFnCallback(o);
51
- r.value = !1, e.value = i, O();
51
+ const i = await e.fetchFnCallback(o);
52
+ r.value = !1, l.value = i, O();
52
53
  } catch (i) {
53
54
  console.error("Error fetching data:", i);
54
55
  }
55
- }, 400), S = (o) => {
56
- o.length >= t.minCharsToStart ? K(o) : e.value = [];
56
+ }, 400), b = (o) => {
57
+ o.length >= e.minCharsToStart ? K(o) : l.value = [];
57
58
  }, O = () => {
58
- l.value && e.value.length && !r.value && !a.value.multi ? e.value[0].conditionalOptions ? e.value[0] = {
59
- name: l.value,
59
+ t.value && l.value.length && !r.value && !a.value.multi ? l.value[0].conditionalOptions ? l.value[0] = {
60
+ name: t.value,
60
61
  conditionalOptions: !0,
61
62
  conditionalName: a.value.label,
62
- [t.comparingKey]: l.value
63
- } : e.value = [
63
+ [e.comparingKey]: t.value
64
+ } : l.value = [
64
65
  {
65
- name: l.value,
66
+ name: t.value,
66
67
  conditionalOptions: !0,
67
68
  conditionalName: a.value.label,
68
- [t.comparingKey]: l.value
69
+ [e.comparingKey]: t.value
69
70
  },
70
- ...e.value
71
- ] : e.value.length && e.value[0].conditionalOptions && e.value.shift();
71
+ ...l.value
72
+ ] : l.value.length && l.value[0].conditionalOptions && l.value.shift();
72
73
  };
73
- b(l, () => {
74
- S(l.value);
75
- }), b(a, () => {
74
+ C(t, () => {
75
+ b(t.value);
76
+ }), C(a, () => {
76
77
  O();
77
78
  });
78
79
  const V = () => {
79
- N.value = l.value, v.value = `${t.label} ${a.value.label.toLowerCase()}`, g.value = d.value ? [...p.value] : { ...p.value }, C.value = d.value;
80
+ N.value = t.value, v.value = `${e.label} ${a.value.label.toLowerCase()}`, g.value = d.value ? [...p.value] : { ...p.value }, S.value = d.value;
80
81
  };
81
- b(a, () => {
82
+ C(a, () => {
82
83
  a.value.multi ? (r.value = !0, p.value = [], setTimeout(() => {
83
84
  r.value = !1, d.value = !0;
84
85
  }, 100)) : setTimeout(() => {
@@ -86,41 +87,43 @@ const j = { class: "conditional-container" }, q = {
86
87
  }, 100);
87
88
  });
88
89
  const x = () => {
89
- p.value = [], g.value = [], a.value = null, v.value = t.label, l.value = "", y("clear");
90
+ p.value = [], g.value = [], a.value = null, v.value = e.label, t.value = "", y("clear");
90
91
  };
91
- return (o, i) => (k(), E(u(w), {
92
+ return B(() => {
93
+ e.searchQuery && b(e.searchQuery);
94
+ }), (o, i) => (k(), E(s(w), {
92
95
  selected: p.value,
93
96
  "onUpdate:selected": i[2] || (i[2] = (n) => p.value = n),
94
97
  "predefined-trigger": "chip",
95
98
  "display-value": (n) => n?.[c.optionNameKey],
96
99
  multi: d.value,
97
- options: e.value,
100
+ options: l.value,
98
101
  placeholder: v.value,
99
102
  "search-placeholder": "Search",
100
103
  "option-name-key": c.optionNameKey,
101
104
  "with-conditions": "",
102
105
  "inline-search": "",
103
- "custom-number-of-displayed-options": u(T),
106
+ "custom-number-of-displayed-options": s(T),
104
107
  "options-list-width": "330px",
105
108
  loading: r.value,
106
109
  "comparing-key": c.comparingKey,
107
110
  "is-open": c.isOpen,
108
- onOnsearch: S,
111
+ onOnsearch: b,
109
112
  onApply: V
110
113
  }, {
111
114
  "dropdown-trigger": m(({ defaultTriggerProps: n }) => [
112
- h(u(I), A(n, {
115
+ h(s(I), A(n, {
113
116
  label: v.value,
114
- "selected-option": u(g),
115
- multi: C.value,
117
+ "selected-option": s(g),
118
+ multi: S.value,
116
119
  onClear: x
117
120
  }), null, 16, ["label", "selected-option", "multi"])
118
121
  ]),
119
122
  "dropdown-conditions": m(() => [
120
- F("div", j, [
121
- h(u(w), {
122
- selected: u(a),
123
- "onUpdate:selected": i[0] || (i[0] = (n) => U(a) ? a.value = n : null),
123
+ F("div", q, [
124
+ h(s(w), {
125
+ selected: s(a),
126
+ "onUpdate:selected": i[0] || (i[0] = (n) => M(a) ? a.value = n : null),
124
127
  options: c.conditionalOptions,
125
128
  "option-name-key": "label",
126
129
  "display-value": (n) => n?.label,
@@ -130,9 +133,9 @@ const j = { class: "conditional-container" }, q = {
130
133
  ])
131
134
  ]),
132
135
  "inline-search": m(() => [
133
- h(u(L), {
134
- modelValue: l.value,
135
- "onUpdate:modelValue": i[1] || (i[1] = (n) => l.value = n),
136
+ h(s(L), {
137
+ modelValue: t.value,
138
+ "onUpdate:modelValue": i[1] || (i[1] = (n) => t.value = n),
136
139
  class: "inline-search",
137
140
  placeholder: "Search",
138
141
  variant: "transparent",
@@ -141,10 +144,10 @@ const j = { class: "conditional-container" }, q = {
141
144
  }, null, 8, ["modelValue"])
142
145
  ]),
143
146
  "custom-list-area": m(() => [
144
- !e.value.length && !r.value ? (k(), $("div", q, [
145
- h(Q, { variant: "body1" }, {
147
+ !l.value.length && !r.value ? (k(), U("div", G, [
148
+ h(R, { variant: "body1" }, {
146
149
  default: m(() => [
147
- z(M(u(D)), 1)
150
+ $(z(s(D)), 1)
148
151
  ]),
149
152
  _: 1
150
153
  })
@@ -3544,6 +3544,10 @@ declare const DropdownTypes: () => (({
3544
3544
  type: import("vue").PropType<number>;
3545
3545
  default: number;
3546
3546
  };
3547
+ searchQuery: {
3548
+ type: import("vue").PropType<string>;
3549
+ default: string;
3550
+ };
3547
3551
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3548
3552
  "update:selectedCondition": (value: {
3549
3553
  label: string;
@@ -3604,6 +3608,10 @@ declare const DropdownTypes: () => (({
3604
3608
  type: import("vue").PropType<number>;
3605
3609
  default: number;
3606
3610
  };
3611
+ searchQuery: {
3612
+ type: import("vue").PropType<string>;
3613
+ default: string;
3614
+ };
3607
3615
  }>> & {
3608
3616
  onClear?: () => any;
3609
3617
  "onUpdate:selectedCondition"?: (value: {
@@ -3619,5 +3627,6 @@ declare const DropdownTypes: () => (({
3619
3627
  optionNameKey: string;
3620
3628
  comparingKey: string;
3621
3629
  minCharsToStart: number;
3630
+ searchQuery: string;
3622
3631
  }>)[];
3623
3632
  export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, TreeDropdown, ConditionalDropdown, };
@@ -1,7 +1,7 @@
1
1
  import e from "./FiltersPanelV4.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css"; //*');
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-39061862"]]);
3
+ // import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-111b200a"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,23 +1,22 @@
1
- import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css"; import { defineComponent as a, openBlock as t, createElementBlock as r, Fragment as d, renderList as i, renderSlot as l, normalizeProps as c, guardReactiveProps as p } from "vue";
2
- const u = { class: "filters-panel" }, m = ["data-testid"], h = /* @__PURE__ */ a({
1
+ import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css"; import { defineComponent as d, openBlock as t, createElementBlock as s, Fragment as a, renderList as i, renderSlot as l, normalizeProps as c, guardReactiveProps as u } from "vue";
2
+ const p = { class: "filters-panel" }, m = ["data-testid"], v = /* @__PURE__ */ d({
3
3
  __name: "FiltersPanelV4",
4
4
  props: {
5
5
  filters: null,
6
6
  testId: { default: "" }
7
7
  },
8
- setup(s) {
9
- const n = s;
10
- return (o, f) => (t(), r("div", u, [
11
- (t(!0), r(d, null, i(s.filters, (e) => (t(), r("div", {
8
+ setup(r) {
9
+ const n = r;
10
+ return (o, _) => (t(), s("div", p, [
11
+ (t(!0), s(a, null, i(r.filters, (e) => (t(), s("div", {
12
12
  key: e.id,
13
- class: "filter-chip-wrapper",
14
13
  "data-testid": `${n.testId}-filter-${e.id}`
15
14
  }, [
16
- l(o.$slots, e.id, c(p({ filter: e })), void 0, !0)
15
+ l(o.$slots, e.id, c(u({ filter: e })), void 0, !0)
17
16
  ], 8, m))), 128))
18
17
  ]));
19
18
  }
20
19
  });
21
20
  export {
22
- h as default
21
+ v as default
23
22
  };
package/index.d.ts CHANGED
@@ -22242,6 +22242,10 @@ declare const _default: {
22242
22242
  type: import("vue").PropType<number>;
22243
22243
  default: number;
22244
22244
  };
22245
+ searchQuery: {
22246
+ type: import("vue").PropType<string>;
22247
+ default: string;
22248
+ };
22245
22249
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22246
22250
  "update:selectedCondition": (value: {
22247
22251
  label: string;
@@ -22302,6 +22306,10 @@ declare const _default: {
22302
22306
  type: import("vue").PropType<number>;
22303
22307
  default: number;
22304
22308
  };
22309
+ searchQuery: {
22310
+ type: import("vue").PropType<string>;
22311
+ default: string;
22312
+ };
22305
22313
  }>> & {
22306
22314
  onClear?: () => any;
22307
22315
  "onUpdate:selectedCondition"?: (value: {
@@ -22317,6 +22325,7 @@ declare const _default: {
22317
22325
  optionNameKey: string;
22318
22326
  comparingKey: string;
22319
22327
  minCharsToStart: number;
22328
+ searchQuery: string;
22320
22329
  }>)[];
22321
22330
  Option: {
22322
22331
  new (...args: any[]): {
@@ -23319,6 +23328,10 @@ declare const _default: {
23319
23328
  type: import("vue").PropType<number>;
23320
23329
  default: number;
23321
23330
  };
23331
+ searchQuery: {
23332
+ type: import("vue").PropType<string>;
23333
+ default: string;
23334
+ };
23322
23335
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23323
23336
  "update:selectedCondition": (value: {
23324
23337
  label: string;
@@ -23379,6 +23392,10 @@ declare const _default: {
23379
23392
  type: import("vue").PropType<number>;
23380
23393
  default: number;
23381
23394
  };
23395
+ searchQuery: {
23396
+ type: import("vue").PropType<string>;
23397
+ default: string;
23398
+ };
23382
23399
  }>> & {
23383
23400
  onClear?: () => any;
23384
23401
  "onUpdate:selectedCondition"?: (value: {
@@ -23394,6 +23411,7 @@ declare const _default: {
23394
23411
  optionNameKey: string;
23395
23412
  comparingKey: string;
23396
23413
  minCharsToStart: number;
23414
+ searchQuery: string;
23397
23415
  }>;
23398
23416
  Label: {
23399
23417
  new (...args: any[]): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.11-rc.22",
3
+ "version": "2.1.11-rc.24",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .chart-container[data-v-ea1e5c3e]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;height:388px;border-radius:0 0 6px 6px}.header-wrapper[data-v-ea1e5c3e]{height:76px}.chart-content[data-v-ea1e5c3e]{flex:1}.chart-sidebar[data-v-ea1e5c3e]{border-left:1px solid var(--common-divider)}.chart[data-v-ea1e5c3e]{width:100%;height:312px;position:relative}.chart__canvas[data-v-ea1e5c3e]{width:100%;height:100%}.chart__tooltip[data-v-ea1e5c3e]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -1 +0,0 @@
1
- .custom-list-area[data-v-93545ce0]{color:var(--text-secondary);width:100%;text-align:center;box-sizing:border-box;padding:53px 43px}.inline-search[data-v-93545ce0]{width:100%}.contain-accept[data-v-93545ce0]{padding:6px 8px;margin-bottom:4px;cursor:pointer}.contain-accept[data-v-93545ce0]:hover{background-color:var(--action-hover);border-radius:.5rem}.contain-accept--query[data-v-93545ce0]{margin-left:4px;display:inline-flex;color:var(--primary-main)}
@@ -1 +0,0 @@
1
- .filters-panel[data-v-39061862]{display:flex}.filters-panel[data-v-39061862] .dropdown{padding:0}.filter-chip-wrapper[data-v-39061862]{margin-right:var(--spacing-50)}