@ironsource/shared-ui 2.1.12-test.53 → 2.1.12-test.55
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_060d02be_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_9c4df598_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +1 -0
- package/ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_8cc86a27_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_e6cece52_lang.css +1 -0
- package/DataGridContainer.vue_vue_type_style_index_0_scoped_9a30b10c_lang.css +1 -0
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_0e826456_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_a594c97e_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css +1 -0
- package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +1 -0
- package/LoaderBars.vue_vue_type_style_index_0_scoped_d976ec65_lang.css +1 -0
- package/SectionDropdown.vue_vue_type_style_index_0_scoped_cfad60a8_lang.css +1 -0
- package/SectionHeaderText.vue_vue_type_style_index_0_scoped_0b8d3d79_lang.css +1 -0
- package/{SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css → SettingsHeader.vue_vue_type_style_index_0_scoped_a869d327_lang.css} +1 -1
- package/ShowMoreLink.vue_vue_type_style_index_0_scoped_9fc3bc1b_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_c72be7ed_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_9aec4e9b_lang.css +1 -0
- package/SortableSelectableList.vue_vue_type_style_index_0_scoped_40b0a4de_lang.css +1 -0
- package/TagsField.vue_vue_type_style_index_0_scoped_9760426b_lang.css +1 -0
- package/TagsFieldChip.vue_vue_type_style_index_0_scoped_d186b7ef_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_63dc057e_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +122 -112
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +49 -44
- package/components/chart/ChartHeaderTrend.vue.d.ts +5 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +42 -39
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +76 -71
- package/components/chart/ChartPlane.vue.d.ts +5 -0
- package/components/chart/ChartPlane.vue.js +3 -3
- package/components/chart/ChartPlane.vue2.js +125 -119
- package/components/chart/ChartTooltip.vue.d.ts +5 -0
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +38 -34
- package/components/chart/LegendSorting.vue.d.ts +5 -0
- package/components/chart/LegendSorting.vue.js +16 -14
- package/components/chart/SettingsHeader.vue.d.ts +19 -3
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +36 -29
- package/components/chart/index.d.ts +20 -1
- package/components/columnConfigurator/ColumnConfigurator.types.d.ts +12 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.d.ts +61 -0
- package/components/columnConfigurator/ColumnConfigurator.vue.js +7 -0
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +113 -0
- package/components/columnConfigurator/SectionDropdown.vue.d.ts +39 -0
- package/components/columnConfigurator/SectionDropdown.vue.js +7 -0
- package/components/columnConfigurator/SectionDropdown.vue2.js +57 -0
- package/components/columnConfigurator/SectionHeaderText.vue.d.ts +34 -0
- package/components/columnConfigurator/SectionHeaderText.vue.js +7 -0
- package/components/columnConfigurator/SectionHeaderText.vue2.js +22 -0
- package/components/columnConfigurator/ShowMoreLink.vue.d.ts +33 -0
- package/components/columnConfigurator/ShowMoreLink.vue.js +7 -0
- package/components/columnConfigurator/ShowMoreLink.vue2.js +41 -0
- package/components/columnConfigurator/consts.d.ts +1 -0
- package/components/columnConfigurator/consts.js +4 -0
- package/components/columnConfigurator/index.d.ts +73 -0
- package/components/columnConfigurator/index.js +6 -0
- package/components/columnConfigurator/mockData.d.ts +30 -0
- package/components/columnConfigurator/utils.d.ts +2 -0
- package/components/columnConfigurator/utils.js +18 -0
- package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
- package/components/columnPicker/index.d.ts +20 -20
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +99 -97
- package/components/dropdown/v4/DropdownV4.vue.d.ts +7 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +118 -107
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +155 -151
- package/components/dropdown/v4/index.d.ts +61 -2
- package/components/emptyState/v4/EmptyStateV4.vue.d.ts +5 -0
- package/components/emptyState/v4/EmptyStateV4.vue.js +2 -2
- package/components/emptyState/v4/EmptyStateV4.vue2.js +37 -34
- package/components/emptyState/v4/index.d.ts +20 -1
- package/components/link/Link.vue.d.ts +5 -0
- package/components/link/Link.vue.js +3 -3
- package/components/link/Link.vue2.js +36 -28
- package/components/link/index.d.ts +20 -1
- package/components/sortableList/LoaderBars.vue.d.ts +34 -0
- package/components/sortableList/LoaderBars.vue.js +7 -0
- package/components/sortableList/LoaderBars.vue2.js +25 -0
- package/components/sortableList/SortableItem.vue.js +4 -4
- package/components/sortableList/SortableItem.vue2.js +3 -3
- package/components/sortableList/SortableList.vue.d.ts +2 -2
- package/components/sortableList/SortableList.vue.js +5 -5
- package/components/sortableList/SortableList.vue2.js +96 -106
- package/components/sortableList/SortableSelectableList.vue.d.ts +107 -0
- package/components/sortableList/SortableSelectableList.vue.js +7 -0
- package/components/sortableList/SortableSelectableList.vue2.js +128 -0
- package/components/sortableList/composables/useDraggableHelpers.d.ts +5 -0
- package/components/sortableList/composables/useDraggableHelpers.js +20 -0
- package/components/sortableList/consts.d.ts +2 -0
- package/components/sortableList/consts.js +4 -2
- package/components/sortableList/index.d.ts +39 -39
- package/components/table/common/consts.d.ts +2 -0
- package/components/table/common/consts.js +6 -4
- package/components/table/v4/DataGrid.vue.d.ts +4 -3
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +362 -335
- package/components/table/v4/DataGridContainer.vue.d.ts +10 -0
- package/components/table/v4/DataGridContainer.vue.js +7 -0
- package/components/table/v4/DataGridContainer.vue2.js +19 -0
- package/components/table/v4/DataGridHeader.vue.d.ts +1 -1
- package/components/table/v4/DataGridHeader.vue.js +2 -2
- package/components/table/v4/DataGridHeader.vue2.js +30 -28
- package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
- package/components/table/v4/index.d.ts +104 -103
- package/components/tagsField/TagsField.types.d.ts +4 -0
- package/components/tagsField/TagsField.vue.d.ts +65 -0
- package/components/tagsField/TagsField.vue.js +7 -0
- package/components/tagsField/TagsField.vue2.js +90 -0
- package/components/tagsField/TagsFieldChip.vue.d.ts +45 -0
- package/components/tagsField/TagsFieldChip.vue.js +7 -0
- package/components/tagsField/TagsFieldChip.vue2.js +81 -0
- package/components/tagsField/consts.d.ts +1 -0
- package/components/tagsField/consts.js +4 -0
- package/components/tagsField/index.d.ts +75 -0
- package/components/tagsField/index.js +6 -0
- package/index.d.ts +450 -290
- package/index.js +87 -79
- package/package.json +10 -1
- package/testids/index.d.ts +36 -0
- package/testids/index.js +37 -31
- package/utils/object.d.ts +2 -0
- package/utils/object.js +9 -5
- package/utils/search.js +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_af520313_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_6103d8bd_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_dd60ff0e_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3d0780bb_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_bdd6ee48_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_da7631e0_lang.css +0 -1
- package/DataGridHeader.vue_vue_type_style_index_0_scoped_840e700c_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_55dd36a7_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
- package/Link.vue_vue_type_style_index_0_scoped_b10e2439_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_800cd503_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_84dc8525_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_4ba9e4bd_lang.css +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import "../../ChartHeader.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { ChartType as n, TrendDirection as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css"; import { defineComponent as I, computed as p, openBlock as o, createElementBlock as S, mergeProps as u, unref as t, createElementVNode as c, createVNode as T, createSlots as w, withCtx as y, renderSlot as x, createTextVNode as B, toDisplayString as E, createBlock as d, normalizeProps as b, createCommentVNode as l, isRef as D } from "vue";
|
|
2
|
+
import H from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import N from "../switch/v4/SwitchV4.vue.js";
|
|
4
|
+
import P from "../chip/v4/ChipV4.vue.js";
|
|
5
|
+
import { ChartType as n, TrendDirection as $ } from "./types.js";
|
|
6
|
+
import V from "./ChartHeaderTrend.vue.js";
|
|
7
|
+
import g from "./SubHeader.vue.js";
|
|
8
|
+
import { useTestIdAttrs as A } from "../../utils/testIds.js";
|
|
9
|
+
import { ChartTestIdModifiers as s } from "../../testids/index.js";
|
|
10
|
+
const L = { class: "header-texts" }, R = { class: "header-row" }, U = { class: "header-actions" }, J = /* @__PURE__ */ I({
|
|
9
11
|
__name: "ChartHeader",
|
|
10
12
|
props: {
|
|
11
13
|
chartType: { default: n.Line },
|
|
@@ -16,73 +18,76 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, U = { class: "
|
|
|
16
18
|
trendTooltip: { default: null },
|
|
17
19
|
compact: { type: Boolean, default: !1 },
|
|
18
20
|
trendValue: { default: null },
|
|
19
|
-
trendDirection: { default:
|
|
20
|
-
noteText: { default: "" }
|
|
21
|
+
trendDirection: { default: $.UP },
|
|
22
|
+
noteText: { default: "" },
|
|
23
|
+
testId: { default: "" }
|
|
21
24
|
},
|
|
22
25
|
emits: ["update:chartType"],
|
|
23
|
-
setup(e, { emit:
|
|
24
|
-
const
|
|
26
|
+
setup(e, { emit: v }) {
|
|
27
|
+
const a = e, h = [
|
|
25
28
|
{ id: n.Line, icon: "chart-line-up" },
|
|
26
29
|
{ id: n.Bar, icon: "chart-bar" },
|
|
27
30
|
{ id: n.StackedLine, icon: "chart-line" }
|
|
28
|
-
], i =
|
|
31
|
+
], i = p({
|
|
29
32
|
get() {
|
|
30
|
-
return
|
|
33
|
+
return h.find(({ id: r }) => r === a.chartType);
|
|
31
34
|
},
|
|
32
|
-
set(
|
|
33
|
-
|
|
35
|
+
set(r) {
|
|
36
|
+
v("update:chartType", r.id);
|
|
34
37
|
}
|
|
35
|
-
}),
|
|
36
|
-
value:
|
|
37
|
-
direction:
|
|
38
|
-
trendTooltip:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
}), m = p(() => ({
|
|
39
|
+
value: a.trendValue,
|
|
40
|
+
direction: a.trendDirection,
|
|
41
|
+
trendTooltip: a.trendTooltip,
|
|
42
|
+
testId: a.testId
|
|
43
|
+
})), k = A(a.testId, s);
|
|
44
|
+
return (r, f) => (o(), S("div", u({
|
|
45
|
+
class: ["chart-header", { "chart-header--compact": e.compact }]
|
|
46
|
+
}, t(k)[t(s).HEADER]), [
|
|
47
|
+
c("div", L, [
|
|
48
|
+
T(g, {
|
|
45
49
|
subheader: e.subheader,
|
|
46
50
|
"subheader-tooltip": e.subheaderTooltip,
|
|
47
51
|
"show-separator": e.compact && (!!e.header || !!e.trendValue)
|
|
48
52
|
}, w({ _: 2 }, [
|
|
49
|
-
|
|
53
|
+
r.$slots["subheader-tooltip"] ? {
|
|
50
54
|
name: "subheader-tooltip",
|
|
51
|
-
fn:
|
|
52
|
-
x(
|
|
55
|
+
fn: y(() => [
|
|
56
|
+
x(r.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
53
57
|
]),
|
|
54
58
|
key: "0"
|
|
55
59
|
} : void 0
|
|
56
60
|
]), 1032, ["subheader", "subheader-tooltip", "show-separator"]),
|
|
57
|
-
c("div",
|
|
58
|
-
|
|
61
|
+
c("div", R, [
|
|
62
|
+
T(t(H), {
|
|
59
63
|
class: "header-text",
|
|
60
64
|
variant: e.compact ? "h5" : "chart2"
|
|
61
65
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
B(
|
|
66
|
+
default: y(() => [
|
|
67
|
+
B(E(e.header), 1)
|
|
64
68
|
]),
|
|
65
69
|
_: 1
|
|
66
70
|
}, 8, ["variant"]),
|
|
67
|
-
!e.compact && e.trendValue !== null ? (
|
|
71
|
+
!e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
|
|
68
72
|
]),
|
|
69
|
-
e.compact && e.trendValue !== null ? (
|
|
73
|
+
e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
|
|
70
74
|
]),
|
|
71
75
|
c("div", U, [
|
|
72
|
-
e.noteText ? (
|
|
76
|
+
e.noteText ? (o(), d(t(P), {
|
|
73
77
|
key: 0,
|
|
74
78
|
label: `Note: ${e.noteText}`
|
|
75
|
-
}, null, 8, ["label"])) :
|
|
76
|
-
e.typeSwitcher ? (
|
|
79
|
+
}, null, 8, ["label"])) : l("", !0),
|
|
80
|
+
e.typeSwitcher ? (o(), d(t(N), {
|
|
77
81
|
key: 1,
|
|
78
|
-
modelValue:
|
|
79
|
-
"onUpdate:modelValue":
|
|
80
|
-
options:
|
|
81
|
-
|
|
82
|
+
modelValue: t(i),
|
|
83
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => D(i) ? i.value = C : null),
|
|
84
|
+
options: h,
|
|
85
|
+
"test-id": `${e.testId}-${t(s).TYPE_SWITCHER}`
|
|
86
|
+
}, null, 8, ["modelValue", "test-id"])) : l("", !0)
|
|
82
87
|
])
|
|
83
|
-
],
|
|
88
|
+
], 16));
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
91
|
export {
|
|
87
|
-
|
|
92
|
+
J as default
|
|
88
93
|
};
|
|
@@ -7,10 +7,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
rangeCurrent?: string;
|
|
8
8
|
rangePrevious?: string;
|
|
9
9
|
};
|
|
10
|
+
testId?: string;
|
|
10
11
|
}>, {
|
|
11
12
|
value: any;
|
|
12
13
|
direction: TrendDirection;
|
|
13
14
|
trendTooltip: any;
|
|
15
|
+
testId: string;
|
|
14
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
17
|
value?: number | string;
|
|
16
18
|
direction?: TrendDirection;
|
|
@@ -19,12 +21,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
21
|
rangeCurrent?: string;
|
|
20
22
|
rangePrevious?: string;
|
|
21
23
|
};
|
|
24
|
+
testId?: string;
|
|
22
25
|
}>, {
|
|
23
26
|
value: any;
|
|
24
27
|
direction: TrendDirection;
|
|
25
28
|
trendTooltip: any;
|
|
29
|
+
testId: string;
|
|
26
30
|
}>>>, {
|
|
27
31
|
value: number | string;
|
|
32
|
+
testId: string;
|
|
28
33
|
direction: TrendDirection;
|
|
29
34
|
trendTooltip: any;
|
|
30
35
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartHeaderTrend.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartHeaderTrend.
|
|
4
|
-
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ca558859"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
import "../../ChartHeaderTrend.
|
|
2
|
-
import
|
|
1
|
+
import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_ca558859_lang.css"; import { defineComponent as I, computed as p, openBlock as n, createElementBlock as m, mergeProps as C, unref as e, createVNode as i, withCtx as o, createElementVNode as u, createBlock as c, createTextVNode as a, toDisplayString as l, createCommentVNode as s, pushScopeId as _, popScopeId as x } from "vue";
|
|
2
|
+
import d from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import b from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { TrendDirection as
|
|
7
|
-
|
|
5
|
+
import k from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
+
import { TrendDirection as f } from "./types.js";
|
|
7
|
+
import { useTestIdAttrs as N } from "../../utils/testIds.js";
|
|
8
|
+
import { ChartTestIdModifiers as T } from "../../testids/index.js";
|
|
9
|
+
const h = (t) => (_("data-v-ca558859"), t = t(), x(), t), P = { class: "trend-tooltip" }, E = {
|
|
8
10
|
key: 2,
|
|
9
11
|
class: "separator"
|
|
10
|
-
},
|
|
12
|
+
}, S = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), V = /* @__PURE__ */ h(() => /* @__PURE__ */ u("hr", null, null, -1)), M = /* @__PURE__ */ I({
|
|
11
13
|
__name: "ChartHeaderTrend",
|
|
12
14
|
props: {
|
|
13
15
|
value: { default: null },
|
|
14
|
-
direction: { default:
|
|
15
|
-
trendTooltip: { default: null }
|
|
16
|
+
direction: { default: f.UP },
|
|
17
|
+
trendTooltip: { default: null },
|
|
18
|
+
testId: { default: "" }
|
|
16
19
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const r =
|
|
20
|
+
setup(t) {
|
|
21
|
+
const r = t, v = p(
|
|
19
22
|
() => r.trendTooltip?.header || r.trendTooltip?.rangeCurrent || r.trendTooltip?.rangePrevious
|
|
20
|
-
),
|
|
21
|
-
() => r.direction ===
|
|
22
|
-
);
|
|
23
|
-
return (
|
|
24
|
-
class:
|
|
25
|
-
}, [
|
|
26
|
-
|
|
27
|
-
disabled: !
|
|
23
|
+
), g = p(
|
|
24
|
+
() => r.direction === f.NEUTRAL ? "minus" : `arrow-${r.direction}`
|
|
25
|
+
), y = N(r.testId, T);
|
|
26
|
+
return (w, A) => (n(), m("div", C({
|
|
27
|
+
class: ["chart-trend", [`chart-trend--${t.direction}`]]
|
|
28
|
+
}, e(y)[e(T).TREND]), [
|
|
29
|
+
i(e(k), {
|
|
30
|
+
disabled: !e(v)
|
|
28
31
|
}, {
|
|
29
32
|
tooltip: o(() => [
|
|
30
|
-
u("div",
|
|
31
|
-
|
|
33
|
+
u("div", P, [
|
|
34
|
+
t.trendTooltip?.header ? (n(), c(e(d), {
|
|
32
35
|
key: 0,
|
|
33
36
|
class: "trend-tooltip__header",
|
|
34
37
|
variant: "subtitle2"
|
|
35
38
|
}, {
|
|
36
39
|
default: o(() => [
|
|
37
|
-
a(
|
|
40
|
+
a(l(t.trendTooltip.header), 1)
|
|
38
41
|
]),
|
|
39
42
|
_: 1
|
|
40
|
-
})) :
|
|
41
|
-
|
|
43
|
+
})) : s("", !0),
|
|
44
|
+
t.trendTooltip?.rangeCurrent ? (n(), c(e(d), {
|
|
42
45
|
key: 1,
|
|
43
46
|
variant: "body2",
|
|
44
47
|
class: "trend-tooltip__text"
|
|
45
48
|
}, {
|
|
46
49
|
default: o(() => [
|
|
47
|
-
a(
|
|
50
|
+
a(l(t.trendTooltip.rangeCurrent), 1)
|
|
48
51
|
]),
|
|
49
52
|
_: 1
|
|
50
|
-
})) :
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
})) : s("", !0),
|
|
54
|
+
t.trendTooltip?.rangeCurrent && t.trendTooltip?.rangePrevious ? (n(), m("div", E, [
|
|
55
|
+
S,
|
|
56
|
+
i(e(d), {
|
|
54
57
|
class: "separator__text",
|
|
55
58
|
variant: "caption"
|
|
56
59
|
}, {
|
|
@@ -59,39 +62,39 @@ const f = (e) => (C("data-v-2f916aeb"), e = e(), _(), e), k = { class: "trend-to
|
|
|
59
62
|
]),
|
|
60
63
|
_: 1
|
|
61
64
|
}),
|
|
62
|
-
|
|
63
|
-
])) :
|
|
64
|
-
|
|
65
|
+
V
|
|
66
|
+
])) : s("", !0),
|
|
67
|
+
t.trendTooltip?.rangePrevious ? (n(), c(e(d), {
|
|
65
68
|
key: 3,
|
|
66
69
|
variant: "body2",
|
|
67
70
|
class: "trend-tooltip__text"
|
|
68
71
|
}, {
|
|
69
72
|
default: o(() => [
|
|
70
|
-
a(
|
|
73
|
+
a(l(t.trendTooltip.rangePrevious), 1)
|
|
71
74
|
]),
|
|
72
75
|
_: 1
|
|
73
|
-
})) :
|
|
76
|
+
})) : s("", !0)
|
|
74
77
|
])
|
|
75
78
|
]),
|
|
76
79
|
default: o(() => [
|
|
77
|
-
|
|
80
|
+
i(e(b), {
|
|
78
81
|
class: "trend-icon",
|
|
79
82
|
type: "bold",
|
|
80
|
-
name:
|
|
83
|
+
name: e(g),
|
|
81
84
|
size: "15px"
|
|
82
85
|
}, null, 8, ["name"]),
|
|
83
|
-
|
|
86
|
+
i(e(d), { variant: "chipLabel" }, {
|
|
84
87
|
default: o(() => [
|
|
85
|
-
a(
|
|
88
|
+
a(l(t.value), 1)
|
|
86
89
|
]),
|
|
87
90
|
_: 1
|
|
88
91
|
})
|
|
89
92
|
]),
|
|
90
93
|
_: 1
|
|
91
94
|
}, 8, ["disabled"])
|
|
92
|
-
],
|
|
95
|
+
], 16));
|
|
93
96
|
}
|
|
94
97
|
});
|
|
95
98
|
export {
|
|
96
|
-
|
|
99
|
+
M as default
|
|
97
100
|
};
|
|
@@ -9,6 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9
9
|
sortSelected?: unknown;
|
|
10
10
|
sortOptions?: unknown[];
|
|
11
11
|
sortOptionNameKey?: string;
|
|
12
|
+
testId?: string;
|
|
12
13
|
}>, {
|
|
13
14
|
items: () => any[];
|
|
14
15
|
visibleIds: () => any[];
|
|
@@ -19,6 +20,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
19
20
|
sortSelected: any;
|
|
20
21
|
sortOptions: () => any[];
|
|
21
22
|
sortOptionNameKey: string;
|
|
23
|
+
testId: string;
|
|
22
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
25
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
24
26
|
"update:sortSelected": (sortOption: unknown) => void;
|
|
@@ -33,6 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
35
|
sortSelected?: unknown;
|
|
34
36
|
sortOptions?: unknown[];
|
|
35
37
|
sortOptionNameKey?: string;
|
|
38
|
+
testId?: string;
|
|
36
39
|
}>, {
|
|
37
40
|
items: () => any[];
|
|
38
41
|
visibleIds: () => any[];
|
|
@@ -43,11 +46,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
46
|
sortSelected: any;
|
|
44
47
|
sortOptions: () => any[];
|
|
45
48
|
sortOptionNameKey: string;
|
|
49
|
+
testId: string;
|
|
46
50
|
}>>> & {
|
|
47
51
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
48
52
|
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
49
53
|
"onUpdate:highlightedId"?: (id: string | number) => any;
|
|
50
54
|
}, {
|
|
55
|
+
testId: string;
|
|
51
56
|
items: LegendItem[];
|
|
52
57
|
visibleIds: unknown[];
|
|
53
58
|
highlightedId: string | number;
|
|
@@ -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_9c4df598_lang.css"; //*');
|
|
4
|
+
const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9c4df598"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,114 +1,119 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
2
|
-
import { useVModel 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_9c4df598_lang.css"; import { defineComponent as F, ref as G, computed as b, openBlock as n, createElementBlock as u, mergeProps as v, unref as o, createElementVNode as r, createVNode as c, createBlock as g, isRef as H, createCommentVNode as x, withCtx as p, createTextVNode as k, Fragment as z, renderList as K, normalizeClass as q, withModifiers as X, toDisplayString as E } from "vue";
|
|
2
|
+
import { useVModel as _, useVirtualList as j } from "@vueuse/core";
|
|
3
|
+
import y from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import J from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
|
+
import Q from "../search/v4/SearchV4.vue.js";
|
|
6
|
+
import { DEFAULT_MIN_VISIBLE as W, DEFAULT_MAX_VISIBLE as Y } from "./consts.js";
|
|
7
|
+
import Z from "../icon/v4/IconV4.vue.js";
|
|
8
8
|
import "../icon/v4/IconFlag.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
9
|
+
import ee from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
import te from "./LegendSorting.vue.js";
|
|
11
|
+
import { useTestIdAttrs as oe } from "../../utils/testIds.js";
|
|
12
|
+
import { ChartTestIdModifiers as L } from "../../testids/index.js";
|
|
13
|
+
const le = { class: "search-box" }, se = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "empty-list"
|
|
14
|
-
},
|
|
16
|
+
}, ie = ["onMouseenter"], ne = ["onClick"], ae = { class: "label-container" }, xe = /* @__PURE__ */ F({
|
|
15
17
|
__name: "ChartLegend",
|
|
16
18
|
props: {
|
|
17
19
|
items: { default: () => [] },
|
|
18
20
|
visibleIds: { default: () => [] },
|
|
19
21
|
highlightedId: { default: null },
|
|
20
|
-
minVisible: { default:
|
|
21
|
-
maxVisible: { default:
|
|
22
|
+
minVisible: { default: W },
|
|
23
|
+
maxVisible: { default: Y },
|
|
22
24
|
maxLimitTooltipText: { default: "" },
|
|
23
25
|
sortSelected: { default: null },
|
|
24
26
|
sortOptions: { default: () => [] },
|
|
25
|
-
sortOptionNameKey: { default: "" }
|
|
27
|
+
sortOptionNameKey: { default: "" },
|
|
28
|
+
testId: { default: "" }
|
|
26
29
|
},
|
|
27
30
|
emits: ["update:visibleIds", "update:sortSelected", "update:highlightedId"],
|
|
28
|
-
setup(
|
|
29
|
-
const l =
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const t =
|
|
31
|
+
setup(i, { emit: m }) {
|
|
32
|
+
const l = i, M = 32, f = _(l, "sortSelected", m), T = _(l, "highlightedId", m), N = (t) => {
|
|
33
|
+
T.value = a(t) ? t.id : null;
|
|
34
|
+
}, w = () => {
|
|
35
|
+
T.value = null;
|
|
36
|
+
}, h = G(""), S = b(() => {
|
|
37
|
+
const t = h.value.toLowerCase();
|
|
35
38
|
return l.items.filter(
|
|
36
|
-
(
|
|
39
|
+
(s) => s.label.toLowerCase().includes(t)
|
|
37
40
|
);
|
|
38
|
-
}),
|
|
41
|
+
}), a = (t) => l.visibleIds.includes(t.id), C = b(
|
|
39
42
|
() => l.visibleIds.length >= l.maxVisible
|
|
40
|
-
),
|
|
43
|
+
), D = b(
|
|
41
44
|
() => l.visibleIds.length <= l.minVisible
|
|
42
|
-
), d = (t) =>
|
|
45
|
+
), d = (t) => D.value && a(t) || C.value && !a(t), O = (t) => !l.maxLimitTooltipText || a(t) || !C.value, A = (t, s) => {
|
|
43
46
|
m(
|
|
44
47
|
"update:visibleIds",
|
|
45
|
-
t ? [...l.visibleIds,
|
|
48
|
+
t ? [...l.visibleIds, s.id] : l.visibleIds.filter((e) => e !== s.id)
|
|
46
49
|
);
|
|
47
|
-
}, { list:
|
|
50
|
+
}, { list: V, containerProps: B, wrapperProps: R } = j(S, {
|
|
48
51
|
itemHeight: M,
|
|
49
52
|
overscan: 10
|
|
50
|
-
}),
|
|
51
|
-
d(t) ||
|
|
52
|
-
};
|
|
53
|
-
return (t,
|
|
54
|
-
r("div",
|
|
55
|
-
c(o(
|
|
56
|
-
modelValue:
|
|
57
|
-
"onUpdate:modelValue":
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
}), $ = (t) => {
|
|
54
|
+
d(t) || A(!a(t), t);
|
|
55
|
+
}, P = oe(l.testId, L);
|
|
56
|
+
return (t, s) => (n(), u("div", v({ class: "chart-legend" }, o(P)[o(L).LEGEND_CONTAINER]), [
|
|
57
|
+
r("div", le, [
|
|
58
|
+
c(o(Q), {
|
|
59
|
+
modelValue: h.value,
|
|
60
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => h.value = e),
|
|
61
|
+
"test-id": i.testId
|
|
62
|
+
}, null, 8, ["modelValue", "test-id"]),
|
|
63
|
+
i.sortOptions?.length > 0 ? (n(), g(te, {
|
|
60
64
|
key: 0,
|
|
61
|
-
selected: o(
|
|
62
|
-
"onUpdate:selected":
|
|
63
|
-
options:
|
|
64
|
-
"option-name-key":
|
|
65
|
-
|
|
65
|
+
selected: o(f),
|
|
66
|
+
"onUpdate:selected": s[1] || (s[1] = (e) => H(f) ? f.value = e : null),
|
|
67
|
+
options: i.sortOptions,
|
|
68
|
+
"option-name-key": i.sortOptionNameKey,
|
|
69
|
+
"test-id": `${i.testId}-${o(L).LEGEND_SORT}`
|
|
70
|
+
}, null, 8, ["selected", "options", "option-name-key", "test-id"])) : x("", !0)
|
|
66
71
|
]),
|
|
67
|
-
r("div",
|
|
68
|
-
r("ul",
|
|
69
|
-
o(
|
|
70
|
-
c(o(
|
|
72
|
+
r("div", v({ class: "legend" }, o(B)), [
|
|
73
|
+
r("ul", v({ class: "legend__list" }, o(R)), [
|
|
74
|
+
o(V).length === 0 ? (n(), u("li", se, [
|
|
75
|
+
c(o(y), { variant: "body2" }, {
|
|
71
76
|
default: p(() => [
|
|
72
|
-
|
|
77
|
+
k("No results")
|
|
73
78
|
]),
|
|
74
79
|
_: 1
|
|
75
80
|
})
|
|
76
|
-
])) : (
|
|
77
|
-
key:
|
|
78
|
-
class:
|
|
79
|
-
onMouseenter: (
|
|
80
|
-
onMouseleave:
|
|
81
|
+
])) : (n(!0), u(z, { key: 1 }, K(o(V), ({ data: e, index: U }) => (n(), u("li", {
|
|
82
|
+
key: U,
|
|
83
|
+
class: q({ "disabled-item": d(e) }),
|
|
84
|
+
onMouseenter: (I) => N(e),
|
|
85
|
+
onMouseleave: w
|
|
81
86
|
}, [
|
|
82
|
-
c(o(
|
|
83
|
-
text:
|
|
84
|
-
disabled:
|
|
87
|
+
c(o(ee), {
|
|
88
|
+
text: i.maxLimitTooltipText,
|
|
89
|
+
disabled: O(e),
|
|
85
90
|
class: "disabled-tooltip"
|
|
86
91
|
}, {
|
|
87
92
|
default: p(() => [
|
|
88
93
|
r("div", {
|
|
89
94
|
class: "item-wrapper",
|
|
90
|
-
onClick: (
|
|
95
|
+
onClick: (I) => $(e)
|
|
91
96
|
}, [
|
|
92
|
-
c(o(
|
|
97
|
+
c(o(J), {
|
|
93
98
|
color: e.color,
|
|
94
|
-
"is-checked":
|
|
99
|
+
"is-checked": a(e),
|
|
95
100
|
disabled: d(e),
|
|
96
|
-
onClick:
|
|
97
|
-
(
|
|
98
|
-
|
|
101
|
+
onClick: s[2] || (s[2] = X(
|
|
102
|
+
(I) => {
|
|
103
|
+
I.stopPropagation();
|
|
99
104
|
},
|
|
100
105
|
["stop"]
|
|
101
106
|
))
|
|
102
107
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
103
|
-
e.icon ? (
|
|
108
|
+
e.icon ? (n(), g(o(Z), {
|
|
104
109
|
key: 0,
|
|
105
110
|
class: "icon-color",
|
|
106
111
|
type: e.iconType,
|
|
107
112
|
name: e.icon,
|
|
108
113
|
size: "16px"
|
|
109
114
|
}, null, 8, ["type", "name"])) : x("", !0),
|
|
110
|
-
r("div",
|
|
111
|
-
c(o(
|
|
115
|
+
r("div", ae, [
|
|
116
|
+
c(o(y), {
|
|
112
117
|
variant: "body2",
|
|
113
118
|
class: "legend-label",
|
|
114
119
|
"is-truncated": "",
|
|
@@ -117,11 +122,11 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
|
|
|
117
122
|
"tooltip-placement": "left"
|
|
118
123
|
}, {
|
|
119
124
|
default: p(() => [
|
|
120
|
-
|
|
125
|
+
k(E(e.label), 1)
|
|
121
126
|
]),
|
|
122
127
|
_: 2
|
|
123
128
|
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
124
|
-
e.caption ? (
|
|
129
|
+
e.caption ? (n(), g(o(y), {
|
|
125
130
|
key: 0,
|
|
126
131
|
variant: "caption",
|
|
127
132
|
class: "legend-caption legend-label",
|
|
@@ -131,21 +136,21 @@ const ee = { class: "chart-legend" }, te = { class: "search-box" }, oe = {
|
|
|
131
136
|
"tooltip-placement": "left"
|
|
132
137
|
}, {
|
|
133
138
|
default: p(() => [
|
|
134
|
-
|
|
139
|
+
k(E(e.caption), 1)
|
|
135
140
|
]),
|
|
136
141
|
_: 2
|
|
137
142
|
}, 1032, ["with-tooltip", "tooltip-text"])) : x("", !0)
|
|
138
143
|
])
|
|
139
|
-
], 8,
|
|
144
|
+
], 8, ne)
|
|
140
145
|
]),
|
|
141
146
|
_: 2
|
|
142
147
|
}, 1032, ["text", "disabled"])
|
|
143
|
-
], 42,
|
|
148
|
+
], 42, ie))), 128))
|
|
144
149
|
], 16)
|
|
145
150
|
], 16)
|
|
146
|
-
]));
|
|
151
|
+
], 16));
|
|
147
152
|
}
|
|
148
153
|
});
|
|
149
154
|
export {
|
|
150
|
-
|
|
155
|
+
xe as default
|
|
151
156
|
};
|
|
@@ -45,6 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
45
|
valuePrefix?: string;
|
|
46
46
|
indicateIncompleteData?: boolean;
|
|
47
47
|
tooltipExcludeTotalItem?: boolean;
|
|
48
|
+
testId?: string;
|
|
48
49
|
}>, {
|
|
49
50
|
chartType: ChartType;
|
|
50
51
|
dataSets: () => any[];
|
|
@@ -83,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
83
84
|
valuePrefix: string;
|
|
84
85
|
indicateIncompleteData: boolean;
|
|
85
86
|
tooltipExcludeTotalItem: boolean;
|
|
87
|
+
testId: string;
|
|
86
88
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
87
89
|
"update:chartType": (chartType: ChartType) => void;
|
|
88
90
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -130,6 +132,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
130
132
|
valuePrefix?: string;
|
|
131
133
|
indicateIncompleteData?: boolean;
|
|
132
134
|
tooltipExcludeTotalItem?: boolean;
|
|
135
|
+
testId?: string;
|
|
133
136
|
}>, {
|
|
134
137
|
chartType: ChartType;
|
|
135
138
|
dataSets: () => any[];
|
|
@@ -168,10 +171,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
168
171
|
valuePrefix: string;
|
|
169
172
|
indicateIncompleteData: boolean;
|
|
170
173
|
tooltipExcludeTotalItem: boolean;
|
|
174
|
+
testId: string;
|
|
171
175
|
}>>> & {
|
|
172
176
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
173
177
|
}, {
|
|
174
178
|
header: string;
|
|
179
|
+
testId: string;
|
|
175
180
|
height: string;
|
|
176
181
|
loading: boolean;
|
|
177
182
|
visibleIds: unknown[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartPlane.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a685cf5e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|