@ironsource/shared-ui 2.1.11-rc.60 → 2.1.11-rc.61
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.
- package/ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css +1 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +29 -29
- package/index.js +1 -1
- package/package.json +1 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_aa32a103_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.disabled-tooltip[data-v-4fe1c7d1],.disabled-tooltip[data-v-4fe1c7d1] .container{width:100%}.chart-legend[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-4fe1c7d1]{padding:12px 0 4px}.legend[data-v-4fe1c7d1]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-4fe1c7d1]{list-style:none;padding:0}.legend__list>li[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-4fe1c7d1]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-4fe1c7d1]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li.empty-list[data-v-4fe1c7d1]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-4fe1c7d1]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-4fe1c7d1]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-4fe1c7d1]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-4fe1c7d1]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-4fe1c7d1]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-4fe1c7d1]{color:var(--text-secondary)}
|
|
@@ -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.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4fe1c7d1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_4fe1c7d1_lang.css"; import { defineComponent as D, ref as M, computed as m, openBlock as r, createElementBlock as c, createElementVNode as d, createVNode as s, unref as o, mergeProps as I, withCtx as p, createTextVNode as b, Fragment as S, renderList as P, normalizeClass as A, withModifiers as F, createBlock as H, createCommentVNode as U, toDisplayString as L } from "vue";
|
|
2
2
|
import { useVirtualList as z } from "@vueuse/core";
|
|
3
3
|
import f from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import R from "../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -20,17 +20,17 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
20
20
|
maxLimitTooltipText: { default: "" }
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:visibleIds"],
|
|
23
|
-
setup(
|
|
24
|
-
const l =
|
|
25
|
-
const t =
|
|
23
|
+
setup(h, { emit: g }) {
|
|
24
|
+
const l = h, k = 32, u = M(""), T = m(() => {
|
|
25
|
+
const t = u.value.toLowerCase();
|
|
26
26
|
return l.items.filter(
|
|
27
27
|
(i) => i.label.toLowerCase().includes(t)
|
|
28
28
|
);
|
|
29
|
-
}), a = (t) => l.visibleIds.includes(t.id),
|
|
29
|
+
}), a = (t) => l.visibleIds.includes(t.id), v = m(
|
|
30
30
|
() => l.visibleIds.length >= l.maxVisible
|
|
31
31
|
), y = m(
|
|
32
32
|
() => l.visibleIds.length <= l.minVisible
|
|
33
|
-
),
|
|
33
|
+
), n = (t) => y.value && a(t) || v.value && !a(t), C = (t) => !l.maxLimitTooltipText || a(t) || !v.value, V = (t, i) => {
|
|
34
34
|
g(
|
|
35
35
|
"update:visibleIds",
|
|
36
36
|
t ? [...l.visibleIds, i.id] : l.visibleIds.filter((e) => e !== i.id)
|
|
@@ -39,42 +39,42 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
39
39
|
itemHeight: k,
|
|
40
40
|
overscan: 10
|
|
41
41
|
}), N = (t) => {
|
|
42
|
-
|
|
42
|
+
n(t) || V(!a(t), t);
|
|
43
43
|
};
|
|
44
|
-
return (t, i) => (
|
|
45
|
-
|
|
44
|
+
return (t, i) => (r(), c("div", J, [
|
|
45
|
+
d("div", K, [
|
|
46
46
|
s(o(q), {
|
|
47
|
-
modelValue:
|
|
48
|
-
"onUpdate:modelValue": i[0] || (i[0] = (e) =>
|
|
47
|
+
modelValue: u.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => u.value = e)
|
|
49
49
|
}, null, 8, ["modelValue"])
|
|
50
50
|
]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o(x).length === 0 ? (
|
|
51
|
+
d("div", I({ class: "legend" }, o(w)), [
|
|
52
|
+
d("ul", I({ class: "legend__list" }, o(E)), [
|
|
53
|
+
o(x).length === 0 ? (r(), c("li", O, [
|
|
54
54
|
s(o(f), { variant: "body2" }, {
|
|
55
|
-
default:
|
|
55
|
+
default: p(() => [
|
|
56
56
|
b("No results")
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
})
|
|
60
|
-
])) : (
|
|
60
|
+
])) : (r(!0), c(S, { key: 1 }, P(o(x), ({ data: e, index: B }) => (r(), c("li", {
|
|
61
61
|
key: B,
|
|
62
|
-
class: A({ "disabled-item":
|
|
62
|
+
class: A({ "disabled-item": n(e) })
|
|
63
63
|
}, [
|
|
64
64
|
s(o(j), {
|
|
65
|
-
text:
|
|
65
|
+
text: h.maxLimitTooltipText,
|
|
66
66
|
disabled: C(e),
|
|
67
67
|
class: "disabled-tooltip"
|
|
68
68
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
|
|
69
|
+
default: p(() => [
|
|
70
|
+
d("div", {
|
|
71
71
|
class: "item-wrapper",
|
|
72
72
|
onClick: (_) => N(e)
|
|
73
73
|
}, [
|
|
74
74
|
s(o(R), {
|
|
75
75
|
color: e.color,
|
|
76
76
|
"is-checked": a(e),
|
|
77
|
-
disabled:
|
|
77
|
+
disabled: n(e),
|
|
78
78
|
onClick: i[1] || (i[1] = F(
|
|
79
79
|
(_) => {
|
|
80
80
|
_.stopPropagation();
|
|
@@ -82,40 +82,40 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
82
82
|
["stop"]
|
|
83
83
|
))
|
|
84
84
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
85
|
-
e.icon ? (
|
|
85
|
+
e.icon ? (r(), H(o($), {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: "icon-color",
|
|
88
88
|
type: e.iconType,
|
|
89
89
|
name: e.icon,
|
|
90
90
|
size: "16px"
|
|
91
91
|
}, null, 8, ["type", "name"])) : U("", !0),
|
|
92
|
-
|
|
92
|
+
d("div", W, [
|
|
93
93
|
s(o(f), {
|
|
94
94
|
variant: "body2",
|
|
95
95
|
class: "legend-label",
|
|
96
96
|
"is-truncated": "",
|
|
97
|
-
"with-tooltip":
|
|
97
|
+
"with-tooltip": !n(e),
|
|
98
98
|
"tooltip-text": e.label,
|
|
99
99
|
"tooltip-placement": "left"
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: p(() => [
|
|
102
102
|
b(L(e.label), 1)
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
105
|
-
}, 1032, ["tooltip-text"]),
|
|
105
|
+
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
106
106
|
s(o(f), {
|
|
107
107
|
variant: "caption",
|
|
108
108
|
class: "legend-caption legend-label",
|
|
109
109
|
"is-truncated": "",
|
|
110
|
-
"with-tooltip":
|
|
110
|
+
"with-tooltip": !n(e),
|
|
111
111
|
"tooltip-text": e.caption,
|
|
112
112
|
"tooltip-placement": "left"
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
114
|
+
default: p(() => [
|
|
115
115
|
b(L(e.caption), 1)
|
|
116
116
|
]),
|
|
117
117
|
_: 2
|
|
118
|
-
}, 1032, ["tooltip-text"])
|
|
118
|
+
}, 1032, ["with-tooltip", "tooltip-text"])
|
|
119
119
|
])
|
|
120
120
|
], 8, Q)
|
|
121
121
|
]),
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppIcon.vue_vue_type_style_index_0_scoped_56ba337c_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 +0,0 @@
|
|
|
1
|
-
.disabled-tooltip[data-v-aa32a103],.disabled-tooltip[data-v-aa32a103] .container{width:100%}.chart-legend[data-v-aa32a103]{display:flex;flex-direction:column;width:220px;height:100%;padding:0 8px 8px}.search-box[data-v-aa32a103]{padding:12px 0 4px}.legend[data-v-aa32a103]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-aa32a103]{list-style:none;padding:0}.legend__list>li[data-v-aa32a103]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-aa32a103]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li.disabled-item[data-v-aa32a103]{cursor:not-allowed!important;opacity:.5;background:var(--background-paper)}.legend__list>li.empty-list[data-v-aa32a103]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-aa32a103]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-aa32a103]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-aa32a103]{width:80%}.legend__list>li .item-wrapper .icon-color[data-v-aa32a103]{color:var(--action-active)}.legend__list>li .item-wrapper .label-container[data-v-aa32a103]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-aa32a103]{color:var(--text-secondary)}
|