@ironsource/shared-ui 2.1.11-rc.35 → 2.1.11-rc.37

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
+ .button-trigger.open[data-v-604dfc6f]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-trigger.open[data-v-604dfc6f]:hover{background:var(--action-selected)}.button-trigger .label-wrapper[data-v-604dfc6f]{display:block;width:100%}.button-trigger .label-wrapper .label-text[data-v-604dfc6f]{white-space:nowrap}
@@ -0,0 +1 @@
1
+ .chart-container[data-v-04b9d6b3]{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-04b9d6b3]{height:76px}.chart-content[data-v-04b9d6b3]{width:100%}.chart-content.with-legend[data-v-04b9d6b3]{width:calc(100% - 221px)}.chart-sidebar[data-v-04b9d6b3]{border-left:1px solid var(--common-divider)}.chart[data-v-04b9d6b3]{width:100%;height:312px;position:relative}.chart__canvas[data-v-04b9d6b3]{width:100%;height:100%}.chart__tooltip[data-v-04b9d6b3]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -0,0 +1 @@
1
+ .disabled-tooltip[data-v-3cd8616d],.disabled-tooltip[data-v-3cd8616d] .container{width:100%}.chart-legend[data-v-3cd8616d]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-3cd8616d]{padding:12px 0 4px}.legend[data-v-3cd8616d]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-3cd8616d]{list-style:none;padding:0}.legend__list>li[data-v-3cd8616d]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-3cd8616d]:hover{background-color:var(--action-hover, rgba(0, 0, 0, .05));border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-3cd8616d]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li .item-wrapper[data-v-3cd8616d]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-3cd8616d]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-3cd8616d]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-3cd8616d]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-3cd8616d]{color:var(--text-secondary, #646464)}
@@ -1,7 +1,7 @@
1
1
  import o from "./Chart.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_b6e14d9b_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-b6e14d9b"]]);
2
+ /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css"; //*');
4
+ const p = /* @__PURE__ */ _(o, [["__scopeId", "data-v-04b9d6b3"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_b6e14d9b_lang.css"; import { defineComponent as j, ref as g, computed as l, onMounted as q, watch as T, nextTick as J, openBlock as d, createElementBlock as C, Fragment as O, createBlock as h, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Q, createVNode as F, normalizeStyle as Y } from "vue";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css"; import { defineComponent as j, ref as g, computed as l, onMounted as q, watch as T, nextTick as J, openBlock as d, createElementBlock as C, Fragment as O, createBlock as h, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Q, createVNode as F, normalizeStyle as Y } from "vue";
2
2
  import { useVModel as _ } from "@vueuse/core";
3
3
  import { Chart as N, ArcElement as ee, LineElement as te, BarElement as ae, PointElement as oe, LineController as ie, BarController as le, PieController as re, ScatterController as ne, CategoryScale as se, LinearScale as de, Filler as ue, Tooltip as ce } from "chart.js";
4
4
  import { HoverVerticalLine as pe } from "./plugins/HoverVerticalLine.js";
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartLegend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_214d2926_lang.css"; //*');
4
- const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-214d2926"]]);
3
+ // import "../../ChartLegend.vue_vue_type_style_index_0_scoped_3cd8616d_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3cd8616d"]]);
5
5
  export {
6
- d as default
6
+ s as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import "../../ChartLegend.vue_vue_type_style_index_0_scoped_214d2926_lang.css"; import { defineComponent as N, ref as S, computed as p, openBlock as r, createElementBlock as u, createElementVNode as a, createVNode as n, unref as l, mergeProps as x, Fragment as U, renderList as M, normalizeClass as A, withCtx as m, createBlock as F, createCommentVNode as H, createTextVNode as _, toDisplayString as I } from "vue";
2
- import { useVirtualList as P } from "@vueuse/core";
1
+ import "../../ChartLegend.vue_vue_type_style_index_0_scoped_3cd8616d_lang.css"; import { defineComponent as M, ref as N, computed as u, openBlock as r, createElementBlock as m, createElementVNode as a, createVNode as n, unref as i, mergeProps as h, Fragment as S, renderList as P, normalizeClass as A, withCtx as b, withModifiers as F, createBlock as H, createCommentVNode as U, createTextVNode as I, toDisplayString as _ } from "vue";
2
+ import { useVirtualList as z } from "@vueuse/core";
3
3
  import L from "../typography/v4/Typography.vue.js";
4
- import z from "../checkbox/v4/CheckboxV4.vue.js";
5
- import R from "../search/v4/SearchV4.vue.js";
4
+ import R from "../checkbox/v4/CheckboxV4.vue.js";
5
+ import $ from "../search/v4/SearchV4.vue.js";
6
6
  import { DEFAULT_MIN_VISIBLE as q, DEFAULT_MAX_VISIBLE as G } from "./consts.js";
7
7
  import X from "../icon/v4/IconV4.vue.js";
8
8
  import "../icon/v4/IconFlag.vue.js";
9
- import $ from "../tooltip/v4/TooltipV4.vue.js";
10
- const j = { class: "chart-legend" }, J = { class: "search-box" }, K = { class: "item-wrapper" }, O = ["onClick"], se = /* @__PURE__ */ N({
9
+ import j from "../tooltip/v4/TooltipV4.vue.js";
10
+ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = ["onClick"], Q = ["onClick"], ae = /* @__PURE__ */ M({
11
11
  __name: "ChartLegend",
12
12
  props: {
13
13
  items: { default: () => [] },
@@ -17,65 +17,73 @@ const j = { class: "chart-legend" }, J = { class: "search-box" }, K = { class: "
17
17
  maxLimitTooltipText: { default: "" }
18
18
  },
19
19
  emits: ["update:visibleIds"],
20
- setup(b, { emit: T }) {
21
- const o = b, k = 32, c = S(""), C = p(() => {
20
+ setup(f, { emit: k }) {
21
+ const o = f, C = 32, c = N(""), T = u(() => {
22
22
  const t = c.value.toLowerCase();
23
23
  return o.items.filter(
24
- (i) => i.label.toLowerCase().includes(t)
24
+ (l) => l.label.toLowerCase().includes(t)
25
25
  );
26
- }), s = (t) => o.visibleIds.includes(t.id), f = p(
26
+ }), s = (t) => o.visibleIds.includes(t.id), v = u(
27
27
  () => o.visibleIds.length >= o.maxVisible
28
- ), g = p(
28
+ ), g = u(
29
29
  () => o.visibleIds.length <= o.minVisible
30
- ), d = (t) => g.value && s(t) || f.value && !s(t), V = (t) => !o.maxLimitTooltipText || s(t) || !f.value, h = (t, i) => {
31
- T(
30
+ ), d = (t) => g.value && s(t) || v.value && !s(t), V = (t) => !o.maxLimitTooltipText || s(t) || !v.value, y = (t, l) => {
31
+ k(
32
32
  "update:visibleIds",
33
- t ? [...o.visibleIds, i.id] : o.visibleIds.filter((e) => e !== i.id)
33
+ t ? [...o.visibleIds, l.id] : o.visibleIds.filter((e) => e !== l.id)
34
34
  );
35
- }, { list: y, containerProps: E, wrapperProps: w } = P(C, {
36
- itemHeight: k,
35
+ }, { list: w, containerProps: E, wrapperProps: B } = z(T, {
36
+ itemHeight: C,
37
37
  overscan: 10
38
- }), B = (t) => {
39
- d(t) || h(!s(t), t);
38
+ }), x = (t) => {
39
+ d(t) || y(!s(t), t);
40
40
  };
41
- return (t, i) => (r(), u("div", j, [
42
- a("div", J, [
43
- n(l(R), {
41
+ return (t, l) => (r(), m("div", J, [
42
+ a("div", K, [
43
+ n(i($), {
44
44
  modelValue: c.value,
45
- "onUpdate:modelValue": i[0] || (i[0] = (e) => c.value = e)
45
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => c.value = e)
46
46
  }, null, 8, ["modelValue"])
47
47
  ]),
48
- a("div", x({ class: "legend" }, l(E)), [
49
- a("ul", x({ class: "legend__list" }, l(w)), [
50
- (r(!0), u(U, null, M(l(y), ({ data: e, index: D }) => (r(), u("li", {
48
+ a("div", h({ class: "legend" }, i(E)), [
49
+ a("ul", h({ class: "legend__list" }, i(B)), [
50
+ (r(!0), m(S, null, P(i(w), ({ data: e, index: D }) => (r(), m("li", {
51
51
  key: D,
52
52
  class: A({ "disabled-item": d(e) })
53
53
  }, [
54
- n(l($), {
55
- text: b.maxLimitTooltipText,
54
+ n(i(j), {
55
+ text: f.maxLimitTooltipText,
56
56
  disabled: V(e),
57
57
  class: "disabled-tooltip"
58
58
  }, {
59
- default: m(() => [
60
- a("div", K, [
61
- n(l(z), {
59
+ default: b(() => [
60
+ a("div", {
61
+ class: "item-wrapper",
62
+ onClick: (p) => x(e)
63
+ }, [
64
+ n(i(R), {
62
65
  color: e.color,
63
66
  "is-checked": s(e),
64
67
  disabled: d(e),
65
- "onUpdate:isChecked": (v) => h(v, e)
66
- }, null, 8, ["color", "is-checked", "disabled", "onUpdate:isChecked"]),
67
- e.icon ? (r(), F(l(X), {
68
+ onClick: l[1] || (l[1] = F(
69
+ (p) => {
70
+ p.stopPropagation();
71
+ },
72
+ ["stop"]
73
+ ))
74
+ }, null, 8, ["color", "is-checked", "disabled"]),
75
+ e.icon ? (r(), H(i(X), {
68
76
  key: 0,
69
77
  class: "icon-color",
70
78
  type: e.iconType,
71
79
  name: e.icon,
72
80
  size: "16px"
73
- }, null, 8, ["type", "name"])) : H("", !0),
81
+ }, null, 8, ["type", "name"])) : U("", !0),
74
82
  a("div", {
75
83
  class: "label-container",
76
- onClick: (v) => B(e)
84
+ onClick: (p) => x(e)
77
85
  }, [
78
- n(l(L), {
86
+ n(i(L), {
79
87
  variant: "body2",
80
88
  class: "legend-label",
81
89
  "is-truncated": "",
@@ -83,12 +91,12 @@ const j = { class: "chart-legend" }, J = { class: "search-box" }, K = { class: "
83
91
  "tooltip-text": e.label,
84
92
  "tooltip-placement": "left"
85
93
  }, {
86
- default: m(() => [
87
- _(I(e.label), 1)
94
+ default: b(() => [
95
+ I(_(e.label), 1)
88
96
  ]),
89
97
  _: 2
90
98
  }, 1032, ["tooltip-text"]),
91
- n(l(L), {
99
+ n(i(L), {
92
100
  variant: "caption",
93
101
  class: "legend-caption legend-label",
94
102
  "is-truncated": "",
@@ -96,13 +104,13 @@ const j = { class: "chart-legend" }, J = { class: "search-box" }, K = { class: "
96
104
  "tooltip-text": e.caption,
97
105
  "tooltip-placement": "left"
98
106
  }, {
99
- default: m(() => [
100
- _(I(e.caption), 1)
107
+ default: b(() => [
108
+ I(_(e.caption), 1)
101
109
  ]),
102
110
  _: 2
103
111
  }, 1032, ["tooltip-text"])
104
- ], 8, O)
105
- ])
112
+ ], 8, Q)
113
+ ], 8, O)
106
114
  ]),
107
115
  _: 2
108
116
  }, 1032, ["text", "disabled"])
@@ -113,5 +121,5 @@ const j = { class: "chart-legend" }, J = { class: "search-box" }, K = { class: "
113
121
  }
114
122
  });
115
123
  export {
116
- se as default
124
+ ae as default
117
125
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonDropdownTrigger.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_9151e036_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-9151e036"]]);
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; //*');
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604dfc6f"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_9151e036_lang.css"; import { defineComponent as c, openBlock as s, createBlock as u, unref as o, normalizeClass as m, withCtx as n, renderSlot as f, createElementVNode as p, normalizeStyle as y, createVNode as h, createTextVNode as b, toDisplayString as x } from "vue";
1
+ import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css"; import { defineComponent as c, openBlock as s, createBlock as u, unref as o, normalizeClass as m, withCtx as n, renderSlot as f, createElementVNode as p, normalizeStyle as y, createVNode as h, createTextVNode as b, toDisplayString as x } from "vue";
2
2
  import T from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
@@ -44,7 +44,7 @@ const W = /* @__PURE__ */ c({
44
44
  }, [
45
45
  h(B, {
46
46
  variant: "button",
47
- class: "label",
47
+ class: "label-text",
48
48
  "is-truncated": "",
49
49
  "with-tooltip": t.withTooltip,
50
50
  "tooltip-text": t.label,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
1
+ import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
2
2
  import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as po } 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.11-rc.35",
3
+ "version": "2.1.11-rc.37",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .button-trigger.open[data-v-9151e036]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-trigger.open[data-v-9151e036]:hover{background:var(--action-selected)}.button-trigger .label-wrapper[data-v-9151e036]{display:block;width:100%}.button-trigger .label-wrapper .label[data-v-9151e036]{white-space:nowrap}
@@ -1 +0,0 @@
1
- .chart-container[data-v-b6e14d9b]{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-b6e14d9b]{height:76px}.chart-content[data-v-b6e14d9b]{width:100%}.chart-content.with-legend[data-v-b6e14d9b]{width:calc(100% - 222px)}.chart-sidebar[data-v-b6e14d9b]{border-left:1px solid var(--common-divider)}.chart[data-v-b6e14d9b]{width:100%;height:312px;position:relative}.chart__canvas[data-v-b6e14d9b]{width:100%;height:100%}.chart__tooltip[data-v-b6e14d9b]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px}
@@ -1 +0,0 @@
1
- .disabled-tooltip[data-v-214d2926],.disabled-tooltip[data-v-214d2926] .container{width:100%}.chart-legend[data-v-214d2926]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-214d2926]{padding:12px 0 4px}.legend[data-v-214d2926]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-214d2926]{list-style:none;padding:0}.legend__list>li[data-v-214d2926]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-214d2926]:hover{background-color:var(--action-hover, rgba(0, 0, 0, .05));border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-214d2926]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li .item-wrapper[data-v-214d2926]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-214d2926]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-214d2926]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-214d2926]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-214d2926]{color:var(--text-secondary, #646464)}