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