@ironsource/shared-ui 2.1.12-rc.12 → 2.1.12-rc.14
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/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +1 -0
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
- package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
- package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_01f78cd7_lang.css +1 -0
- package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
- package/components/appIcon/index.d.ts +3 -3
- package/components/banner/Banner.vue.d.ts +3 -3
- package/components/banner/index.d.ts +7 -7
- package/components/button/common/consts.d.ts +1 -0
- package/components/button/v3/Button.vue.d.ts +3 -3
- package/components/button/v3/ButtonBase.vue.d.ts +3 -3
- package/components/button/v3/IconButton.vue.d.ts +3 -3
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/ButtonV4.vue.d.ts +4 -3
- package/components/button/v4/ButtonV4.vue.js +3 -3
- package/components/button/v4/ButtonV4.vue2.js +1 -1
- package/components/chart/Chart.vue.d.ts +55 -2
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +109 -82
- package/components/chart/ChartHeader.vue.d.ts +24 -0
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +70 -50
- package/components/chart/ChartHeaderTrend.vue.d.ts +13 -0
- package/components/chart/ChartHeaderTrend.vue.js +2 -2
- package/components/chart/ChartHeaderTrend.vue2.js +80 -18
- package/components/chart/ChartLegend.vue.d.ts +17 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +78 -67
- package/components/chart/ChartPlane.vue.d.ts +42 -4
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +159 -146
- package/components/chart/LegendSorting.vue.d.ts +37 -0
- package/components/chart/LegendSorting.vue.js +45 -0
- package/components/chart/LegendSorting.vue2.js +4 -0
- package/components/chart/SettingsHeader.vue.d.ts +1 -0
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +17 -16
- package/components/chart/colorPalette.d.ts +4 -0
- package/components/chart/colorPalette.js +54 -0
- package/components/chart/composables/useColorsMap.d.ts +2 -2
- package/components/chart/composables/useColorsMap.js +41 -12
- package/components/chart/consts.d.ts +12 -1
- package/components/chart/consts.js +31 -26
- package/components/chart/index.d.ts +208 -40
- package/components/chart/mockData.d.ts +8 -14
- package/components/chart/types.d.ts +2 -1
- package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
- package/components/checkbox/v3/index.d.ts +7 -7
- package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
- package/components/dialog/v4/DialogV4.vue.js +4 -4
- package/components/dialog/v4/DialogV4.vue2.js +1 -1
- package/components/dialog/v4/index.d.ts +7 -7
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +4 -4
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -10
- package/components/dropdown/v4/index.d.ts +18 -0
- package/components/forms/FormRow.vue.d.ts +9 -2
- package/components/forms/FormRow.vue.js +3 -3
- package/components/forms/FormRow.vue2.js +25 -14
- package/components/forms/index.d.ts +25 -5
- package/components/search/v3/index.d.ts +3 -3
- package/components/shared/FieldLabel.vue.d.ts +19 -7
- package/components/shared/FieldLabel.vue.js +3 -3
- package/components/shared/FieldLabel.vue2.js +50 -37
- package/components/tabs/v3/Tabs.vue.d.ts +3 -3
- package/components/tabs/v3/index.d.ts +7 -7
- package/components/tooltip/common/Tooltip.types.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
- package/components/tooltip/v3/Tooltip.vue.js +2 -2
- package/components/tooltip/v3/Tooltip.vue2.js +1 -1
- package/components/tooltip/v3/index.d.ts +7 -7
- package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
- package/components/tooltip/v4/TooltipV4.vue.js +2 -2
- package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
- package/components/tooltip/v4/index.d.ts +7 -7
- package/components/typography/Text.vue.d.ts +3 -3
- package/components/typography/index.d.ts +7 -7
- package/composables/useFormValidation.d.ts +1 -0
- package/composables/useFormValidation.js +29 -26
- package/index.d.ts +71 -35
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/totals.d.ts +5 -0
- package/utils/totals.js +9 -0
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_78d3f5a8_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_32001725_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_e4c673e7_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_532f23bc_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_4396faf6_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
- package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
- package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_59fb505a_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +0 -1
- package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
value?: number | string;
|
|
3
3
|
direction?: 'up' | 'down';
|
|
4
|
+
trendTooltip?: {
|
|
5
|
+
header?: string;
|
|
6
|
+
rangeCurrent?: string;
|
|
7
|
+
rangePrevious?: string;
|
|
8
|
+
};
|
|
4
9
|
}>, {
|
|
5
10
|
value: any;
|
|
6
11
|
direction: string;
|
|
12
|
+
trendTooltip: any;
|
|
7
13
|
}>, {}, 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<{
|
|
8
14
|
value?: number | string;
|
|
9
15
|
direction?: 'up' | 'down';
|
|
16
|
+
trendTooltip?: {
|
|
17
|
+
header?: string;
|
|
18
|
+
rangeCurrent?: string;
|
|
19
|
+
rangePrevious?: string;
|
|
20
|
+
};
|
|
10
21
|
}>, {
|
|
11
22
|
value: any;
|
|
12
23
|
direction: string;
|
|
24
|
+
trendTooltip: any;
|
|
13
25
|
}>>>, {
|
|
14
26
|
value: number | string;
|
|
15
27
|
direction: 'up' | 'down';
|
|
28
|
+
trendTooltip: any;
|
|
16
29
|
}>;
|
|
17
30
|
export default _default;
|
|
18
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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 s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-21ce0774"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,94 @@
|
|
|
1
|
-
import "../../ChartHeaderTrend.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css"; import { defineComponent as f, computed as T, openBlock as r, createElementBlock as p, normalizeClass as v, createVNode as l, unref as t, withCtx as o, createElementVNode as s, createBlock as u, createTextVNode as a, toDisplayString as d, createCommentVNode as i, pushScopeId as g, popScopeId as y } from "vue";
|
|
2
|
+
import n from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import C from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import "../icon/v4/IconFlag.vue.js";
|
|
5
|
-
|
|
5
|
+
import x from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
+
const h = (e) => (g("data-v-21ce0774"), e = e(), y(), e), b = { class: "trend-tooltip" }, k = {
|
|
7
|
+
key: 2,
|
|
8
|
+
class: "separator"
|
|
9
|
+
}, _ = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), I = /* @__PURE__ */ h(() => /* @__PURE__ */ s("hr", null, null, -1)), E = /* @__PURE__ */ f({
|
|
6
10
|
__name: "ChartHeaderTrend",
|
|
7
11
|
props: {
|
|
8
12
|
value: { default: null },
|
|
9
|
-
direction: { default: "up" }
|
|
13
|
+
direction: { default: "up" },
|
|
14
|
+
trendTooltip: { default: null }
|
|
10
15
|
},
|
|
11
16
|
setup(e) {
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
const c = e, m = T(
|
|
18
|
+
() => c.trendTooltip?.header || c.trendTooltip?.rangeCurrent || c.trendTooltip?.rangePrevious
|
|
19
|
+
);
|
|
20
|
+
return (N, P) => (r(), p("div", {
|
|
21
|
+
class: v(["chart-trend", [`chart-trend--${e.direction}`]])
|
|
14
22
|
}, [
|
|
15
|
-
t(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
l(t(x), {
|
|
24
|
+
disabled: !t(m)
|
|
25
|
+
}, {
|
|
26
|
+
tooltip: o(() => [
|
|
27
|
+
s("div", b, [
|
|
28
|
+
e.trendTooltip?.header ? (r(), u(t(n), {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "trend-tooltip__header",
|
|
31
|
+
variant: "subtitle2"
|
|
32
|
+
}, {
|
|
33
|
+
default: o(() => [
|
|
34
|
+
a(d(e.trendTooltip.header), 1)
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})) : i("", !0),
|
|
38
|
+
e.trendTooltip?.rangeCurrent ? (r(), u(t(n), {
|
|
39
|
+
key: 1,
|
|
40
|
+
variant: "body2",
|
|
41
|
+
class: "trend-tooltip__text"
|
|
42
|
+
}, {
|
|
43
|
+
default: o(() => [
|
|
44
|
+
a(d(e.trendTooltip.rangeCurrent), 1)
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})) : i("", !0),
|
|
48
|
+
e.trendTooltip?.rangeCurrent && e.trendTooltip?.rangePrevious ? (r(), p("div", k, [
|
|
49
|
+
_,
|
|
50
|
+
l(t(n), {
|
|
51
|
+
class: "separator__text",
|
|
52
|
+
variant: "caption"
|
|
53
|
+
}, {
|
|
54
|
+
default: o(() => [
|
|
55
|
+
a(" vs. ")
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}),
|
|
59
|
+
I
|
|
60
|
+
])) : i("", !0),
|
|
61
|
+
e.trendTooltip?.rangePrevious ? (r(), u(t(n), {
|
|
62
|
+
key: 3,
|
|
63
|
+
variant: "body2",
|
|
64
|
+
class: "trend-tooltip__text"
|
|
65
|
+
}, {
|
|
66
|
+
default: o(() => [
|
|
67
|
+
a(d(e.trendTooltip.rangePrevious), 1)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})) : i("", !0)
|
|
71
|
+
])
|
|
72
|
+
]),
|
|
73
|
+
default: o(() => [
|
|
74
|
+
l(t(C), {
|
|
75
|
+
class: "trend-icon",
|
|
76
|
+
type: "bold",
|
|
77
|
+
name: `arrow-${e.direction}`,
|
|
78
|
+
size: "13px"
|
|
79
|
+
}, null, 8, ["name"]),
|
|
80
|
+
l(t(n), { variant: "chipLabel" }, {
|
|
81
|
+
default: o(() => [
|
|
82
|
+
a(d(e.value), 1)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
})
|
|
24
86
|
]),
|
|
25
87
|
_: 1
|
|
26
|
-
})
|
|
88
|
+
}, 8, ["disabled"])
|
|
27
89
|
], 2));
|
|
28
90
|
}
|
|
29
91
|
});
|
|
30
92
|
export {
|
|
31
|
-
|
|
93
|
+
E as default
|
|
32
94
|
};
|
|
@@ -5,34 +5,51 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
5
5
|
minVisible?: number;
|
|
6
6
|
maxVisible?: number;
|
|
7
7
|
maxLimitTooltipText?: string;
|
|
8
|
+
sortSelected?: unknown;
|
|
9
|
+
sortOptions?: unknown[];
|
|
10
|
+
sortOptionNameKey?: string;
|
|
8
11
|
}>, {
|
|
9
12
|
items: () => any[];
|
|
10
13
|
visibleIds: () => any[];
|
|
11
14
|
minVisible: number;
|
|
12
15
|
maxVisible: number;
|
|
13
16
|
maxLimitTooltipText: string;
|
|
17
|
+
sortSelected: any;
|
|
18
|
+
sortOptions: () => any[];
|
|
19
|
+
sortOptionNameKey: string;
|
|
14
20
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
21
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
22
|
+
"update:sortSelected": (sortOption: unknown) => void;
|
|
16
23
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
24
|
items: LegendItem[];
|
|
18
25
|
visibleIds: unknown[];
|
|
19
26
|
minVisible?: number;
|
|
20
27
|
maxVisible?: number;
|
|
21
28
|
maxLimitTooltipText?: string;
|
|
29
|
+
sortSelected?: unknown;
|
|
30
|
+
sortOptions?: unknown[];
|
|
31
|
+
sortOptionNameKey?: string;
|
|
22
32
|
}>, {
|
|
23
33
|
items: () => any[];
|
|
24
34
|
visibleIds: () => any[];
|
|
25
35
|
minVisible: number;
|
|
26
36
|
maxVisible: number;
|
|
27
37
|
maxLimitTooltipText: string;
|
|
38
|
+
sortSelected: any;
|
|
39
|
+
sortOptions: () => any[];
|
|
40
|
+
sortOptionNameKey: string;
|
|
28
41
|
}>>> & {
|
|
29
42
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
43
|
+
"onUpdate:sortSelected"?: (sortOption: unknown) => any;
|
|
30
44
|
}, {
|
|
31
45
|
items: LegendItem[];
|
|
32
46
|
visibleIds: unknown[];
|
|
33
47
|
minVisible: number;
|
|
34
48
|
maxVisible: number;
|
|
35
49
|
maxLimitTooltipText: string;
|
|
50
|
+
sortSelected: any;
|
|
51
|
+
sortOptions: unknown[];
|
|
52
|
+
sortOptionNameKey: string;
|
|
36
53
|
}>;
|
|
37
54
|
export default _default;
|
|
38
55
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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_da487aba_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-da487aba"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,124 +1,135 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_da487aba_lang.css"; import { defineComponent as O, ref as P, computed as b, openBlock as s, createElementBlock as p, createElementVNode as d, createVNode as c, unref as o, createBlock as v, isRef as U, createCommentVNode as h, mergeProps as T, withCtx as u, createTextVNode as x, Fragment as A, renderList as F, normalizeClass as H, withModifiers as R, toDisplayString as _ } from "vue";
|
|
2
|
+
import { useVModel as z, useVirtualList as K } from "@vueuse/core";
|
|
3
|
+
import k from "../typography/v4/Typography.vue.js";
|
|
4
|
+
import $ from "../checkbox/v4/CheckboxV4.vue.js";
|
|
5
5
|
import q from "../search/v4/SearchV4.vue.js";
|
|
6
6
|
import { DEFAULT_MIN_VISIBLE as G, DEFAULT_MAX_VISIBLE as X } from "./consts.js";
|
|
7
|
-
import
|
|
7
|
+
import j from "../icon/v4/IconV4.vue.js";
|
|
8
8
|
import "../icon/v4/IconFlag.vue.js";
|
|
9
|
-
import
|
|
10
|
-
|
|
9
|
+
import J from "../tooltip/v4/TooltipV4.vue.js";
|
|
10
|
+
import Q from "./LegendSorting.vue.js";
|
|
11
|
+
const W = { class: "chart-legend" }, Y = { class: "search-box" }, Z = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "empty-list"
|
|
13
|
-
},
|
|
14
|
+
}, ee = ["onClick"], te = { class: "label-container" }, ue = /* @__PURE__ */ O({
|
|
14
15
|
__name: "ChartLegend",
|
|
15
16
|
props: {
|
|
16
17
|
items: { default: () => [] },
|
|
17
18
|
visibleIds: { default: () => [] },
|
|
18
19
|
minVisible: { default: G },
|
|
19
20
|
maxVisible: { default: X },
|
|
20
|
-
maxLimitTooltipText: { default: "" }
|
|
21
|
+
maxLimitTooltipText: { default: "" },
|
|
22
|
+
sortSelected: { default: null },
|
|
23
|
+
sortOptions: { default: () => [] },
|
|
24
|
+
sortOptionNameKey: { default: "" }
|
|
21
25
|
},
|
|
22
|
-
emits: ["update:visibleIds"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
const t =
|
|
26
|
-
return
|
|
27
|
-
(
|
|
26
|
+
emits: ["update:visibleIds", "update:sortSelected"],
|
|
27
|
+
setup(a, { emit: y }) {
|
|
28
|
+
const i = a, V = 32, m = z(i, "sortSelected", y), f = P(""), C = b(() => {
|
|
29
|
+
const t = f.value.toLowerCase();
|
|
30
|
+
return i.items.filter(
|
|
31
|
+
(l) => l.label.toLowerCase().includes(t)
|
|
28
32
|
);
|
|
29
|
-
}),
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
() =>
|
|
33
|
-
),
|
|
34
|
-
|
|
33
|
+
}), n = (t) => i.visibleIds.includes(t.id), I = b(
|
|
34
|
+
() => i.visibleIds.length >= i.maxVisible
|
|
35
|
+
), w = b(
|
|
36
|
+
() => i.visibleIds.length <= i.minVisible
|
|
37
|
+
), r = (t) => w.value && n(t) || I.value && !n(t), S = (t) => !i.maxLimitTooltipText || n(t) || !I.value, E = (t, l) => {
|
|
38
|
+
y(
|
|
35
39
|
"update:visibleIds",
|
|
36
|
-
t ? [...
|
|
40
|
+
t ? [...i.visibleIds, l.id] : i.visibleIds.filter((e) => e !== l.id)
|
|
37
41
|
);
|
|
38
|
-
}, { list:
|
|
39
|
-
itemHeight:
|
|
42
|
+
}, { list: g, containerProps: N, wrapperProps: M } = K(C, {
|
|
43
|
+
itemHeight: V,
|
|
40
44
|
overscan: 10
|
|
41
|
-
}),
|
|
42
|
-
|
|
45
|
+
}), B = (t) => {
|
|
46
|
+
r(t) || E(!n(t), t);
|
|
43
47
|
};
|
|
44
|
-
return (t,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
modelValue:
|
|
48
|
-
"onUpdate:modelValue":
|
|
49
|
-
}, null, 8, ["modelValue"])
|
|
48
|
+
return (t, l) => (s(), p("div", W, [
|
|
49
|
+
d("div", Y, [
|
|
50
|
+
c(o(q), {
|
|
51
|
+
modelValue: f.value,
|
|
52
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => f.value = e)
|
|
53
|
+
}, null, 8, ["modelValue"]),
|
|
54
|
+
a.sortOptions?.length > 0 ? (s(), v(Q, {
|
|
55
|
+
key: 0,
|
|
56
|
+
selected: o(m),
|
|
57
|
+
"onUpdate:selected": l[1] || (l[1] = (e) => U(m) ? m.value = e : null),
|
|
58
|
+
options: a.sortOptions,
|
|
59
|
+
"option-name-key": a.sortOptionNameKey
|
|
60
|
+
}, null, 8, ["selected", "options", "option-name-key"])) : h("", !0)
|
|
50
61
|
]),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o(
|
|
54
|
-
|
|
55
|
-
default:
|
|
56
|
-
|
|
62
|
+
d("div", T({ class: "legend" }, o(N)), [
|
|
63
|
+
d("ul", T({ class: "legend__list" }, o(M)), [
|
|
64
|
+
o(g).length === 0 ? (s(), p("li", Z, [
|
|
65
|
+
c(o(k), { variant: "body2" }, {
|
|
66
|
+
default: u(() => [
|
|
67
|
+
x("No results")
|
|
57
68
|
]),
|
|
58
69
|
_: 1
|
|
59
70
|
})
|
|
60
|
-
])) : (s(!0),
|
|
61
|
-
key:
|
|
62
|
-
class: H({ "disabled-item":
|
|
71
|
+
])) : (s(!0), p(A, { key: 1 }, F(o(g), ({ data: e, index: D }) => (s(), p("li", {
|
|
72
|
+
key: D,
|
|
73
|
+
class: H({ "disabled-item": r(e) })
|
|
63
74
|
}, [
|
|
64
|
-
|
|
65
|
-
text:
|
|
66
|
-
disabled:
|
|
75
|
+
c(o(J), {
|
|
76
|
+
text: a.maxLimitTooltipText,
|
|
77
|
+
disabled: S(e),
|
|
67
78
|
class: "disabled-tooltip"
|
|
68
79
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
|
|
80
|
+
default: u(() => [
|
|
81
|
+
d("div", {
|
|
71
82
|
class: "item-wrapper",
|
|
72
|
-
onClick: (
|
|
83
|
+
onClick: (L) => B(e)
|
|
73
84
|
}, [
|
|
74
|
-
|
|
85
|
+
c(o($), {
|
|
75
86
|
color: e.color,
|
|
76
|
-
"is-checked":
|
|
77
|
-
disabled:
|
|
78
|
-
onClick:
|
|
79
|
-
(
|
|
80
|
-
|
|
87
|
+
"is-checked": n(e),
|
|
88
|
+
disabled: r(e),
|
|
89
|
+
onClick: l[2] || (l[2] = R(
|
|
90
|
+
(L) => {
|
|
91
|
+
L.stopPropagation();
|
|
81
92
|
},
|
|
82
93
|
["stop"]
|
|
83
94
|
))
|
|
84
95
|
}, null, 8, ["color", "is-checked", "disabled"]),
|
|
85
|
-
e.icon ? (s(),
|
|
96
|
+
e.icon ? (s(), v(o(j), {
|
|
86
97
|
key: 0,
|
|
87
98
|
class: "icon-color",
|
|
88
99
|
type: e.iconType,
|
|
89
100
|
name: e.icon,
|
|
90
101
|
size: "16px"
|
|
91
|
-
}, null, 8, ["type", "name"])) :
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
}, null, 8, ["type", "name"])) : h("", !0),
|
|
103
|
+
d("div", te, [
|
|
104
|
+
c(o(k), {
|
|
94
105
|
variant: "body2",
|
|
95
106
|
class: "legend-label",
|
|
96
107
|
"is-truncated": "",
|
|
97
|
-
"with-tooltip": !
|
|
108
|
+
"with-tooltip": !r(e),
|
|
98
109
|
"tooltip-text": e.label,
|
|
99
110
|
"tooltip-placement": "left"
|
|
100
111
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
112
|
+
default: u(() => [
|
|
113
|
+
x(_(e.label), 1)
|
|
103
114
|
]),
|
|
104
115
|
_: 2
|
|
105
116
|
}, 1032, ["with-tooltip", "tooltip-text"]),
|
|
106
|
-
e.caption ? (s(),
|
|
117
|
+
e.caption ? (s(), v(o(k), {
|
|
107
118
|
key: 0,
|
|
108
119
|
variant: "caption",
|
|
109
120
|
class: "legend-caption legend-label",
|
|
110
121
|
"is-truncated": "",
|
|
111
|
-
"with-tooltip": !
|
|
122
|
+
"with-tooltip": !r(e),
|
|
112
123
|
"tooltip-text": e.caption,
|
|
113
124
|
"tooltip-placement": "left"
|
|
114
125
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
126
|
+
default: u(() => [
|
|
127
|
+
x(_(e.caption), 1)
|
|
117
128
|
]),
|
|
118
129
|
_: 2
|
|
119
|
-
}, 1032, ["with-tooltip", "tooltip-text"])) :
|
|
130
|
+
}, 1032, ["with-tooltip", "tooltip-text"])) : h("", !0)
|
|
120
131
|
])
|
|
121
|
-
], 8,
|
|
132
|
+
], 8, ee)
|
|
122
133
|
]),
|
|
123
134
|
_: 2
|
|
124
135
|
}, 1032, ["text", "disabled"])
|
|
@@ -129,5 +140,5 @@ const J = { class: "chart-legend" }, K = { class: "search-box" }, O = {
|
|
|
129
140
|
}
|
|
130
141
|
});
|
|
131
142
|
export {
|
|
132
|
-
|
|
143
|
+
ue as default
|
|
133
144
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChartDataSet, ChartParsingConfig, ChartType, ValueFormat } from './types';
|
|
2
|
+
import { TotalType } from '@/utils/totals';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
dataSets: ChartDataSet[];
|
|
4
5
|
visibleIds: unknown[];
|
|
@@ -9,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
10
|
tickCount?: number;
|
|
10
11
|
header?: string;
|
|
11
12
|
subheader?: string;
|
|
13
|
+
subheaderTooltip?: {
|
|
14
|
+
header?: string;
|
|
15
|
+
text?: string;
|
|
16
|
+
};
|
|
12
17
|
loading?: boolean;
|
|
13
18
|
noDataIcon?: string;
|
|
14
19
|
noDataTitle?: string;
|
|
@@ -18,9 +23,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
23
|
height?: string;
|
|
19
24
|
compactHeader?: boolean;
|
|
20
25
|
tooltipRespectsTopEdge?: boolean;
|
|
26
|
+
tooltipTotalType?: TotalType;
|
|
27
|
+
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
21
28
|
trendValue?: string | number;
|
|
22
29
|
trendDirection?: "up" | "down";
|
|
30
|
+
trendTooltip?: {
|
|
31
|
+
header?: string;
|
|
32
|
+
rangeCurrent?: string;
|
|
33
|
+
rangePrevious?: string;
|
|
34
|
+
};
|
|
23
35
|
totalsChart?: boolean;
|
|
36
|
+
colorsMap: Record<string, string>;
|
|
24
37
|
}>, {
|
|
25
38
|
chartType: ChartType;
|
|
26
39
|
dataSets: () => any[];
|
|
@@ -31,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
44
|
tickCount: number;
|
|
32
45
|
header: string;
|
|
33
46
|
subheader: string;
|
|
34
|
-
subheaderTooltip:
|
|
47
|
+
subheaderTooltip: any;
|
|
35
48
|
loading: boolean;
|
|
36
49
|
noDataIcon: string;
|
|
37
50
|
noDataTitle: string;
|
|
@@ -41,9 +54,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
41
54
|
height: string;
|
|
42
55
|
compactHeader: boolean;
|
|
43
56
|
tooltipRespectsTopEdge: boolean;
|
|
57
|
+
tooltipTotalType: TotalType;
|
|
58
|
+
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
44
59
|
trendValue: any;
|
|
45
60
|
trendDirection: string;
|
|
61
|
+
trendTooltip: any;
|
|
46
62
|
totalsChart: boolean;
|
|
63
|
+
colorsMap: () => {};
|
|
47
64
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
65
|
"update:chartType": (chartType: ChartType) => void;
|
|
49
66
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -56,6 +73,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
56
73
|
tickCount?: number;
|
|
57
74
|
header?: string;
|
|
58
75
|
subheader?: string;
|
|
76
|
+
subheaderTooltip?: {
|
|
77
|
+
header?: string;
|
|
78
|
+
text?: string;
|
|
79
|
+
};
|
|
59
80
|
loading?: boolean;
|
|
60
81
|
noDataIcon?: string;
|
|
61
82
|
noDataTitle?: string;
|
|
@@ -65,9 +86,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
65
86
|
height?: string;
|
|
66
87
|
compactHeader?: boolean;
|
|
67
88
|
tooltipRespectsTopEdge?: boolean;
|
|
89
|
+
tooltipTotalType?: TotalType;
|
|
90
|
+
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
68
91
|
trendValue?: string | number;
|
|
69
92
|
trendDirection?: "up" | "down";
|
|
93
|
+
trendTooltip?: {
|
|
94
|
+
header?: string;
|
|
95
|
+
rangeCurrent?: string;
|
|
96
|
+
rangePrevious?: string;
|
|
97
|
+
};
|
|
70
98
|
totalsChart?: boolean;
|
|
99
|
+
colorsMap: Record<string, string>;
|
|
71
100
|
}>, {
|
|
72
101
|
chartType: ChartType;
|
|
73
102
|
dataSets: () => any[];
|
|
@@ -78,7 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
78
107
|
tickCount: number;
|
|
79
108
|
header: string;
|
|
80
109
|
subheader: string;
|
|
81
|
-
subheaderTooltip:
|
|
110
|
+
subheaderTooltip: any;
|
|
82
111
|
loading: boolean;
|
|
83
112
|
noDataIcon: string;
|
|
84
113
|
noDataTitle: string;
|
|
@@ -88,9 +117,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
88
117
|
height: string;
|
|
89
118
|
compactHeader: boolean;
|
|
90
119
|
tooltipRespectsTopEdge: boolean;
|
|
120
|
+
tooltipTotalType: TotalType;
|
|
121
|
+
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
91
122
|
trendValue: any;
|
|
92
123
|
trendDirection: string;
|
|
124
|
+
trendTooltip: any;
|
|
93
125
|
totalsChart: boolean;
|
|
126
|
+
colorsMap: () => {};
|
|
94
127
|
}>>> & {
|
|
95
128
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
96
129
|
}, {
|
|
@@ -103,18 +136,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
103
136
|
yAxisFormat: ValueFormat;
|
|
104
137
|
parsing: ChartParsingConfig;
|
|
105
138
|
dataSets: ChartDataSet[];
|
|
139
|
+
trendTooltip: any;
|
|
106
140
|
typeSwitcher: boolean;
|
|
107
141
|
subheader: string;
|
|
142
|
+
subheaderTooltip: any;
|
|
108
143
|
trendValue: string | number;
|
|
109
144
|
trendDirection: "up" | "down";
|
|
110
145
|
tickCount: number;
|
|
111
|
-
withAnimation: boolean;
|
|
112
|
-
totalsChart: boolean;
|
|
113
146
|
noDataIcon: string;
|
|
114
147
|
noDataTitle: string;
|
|
115
148
|
noDataSubtitle: string;
|
|
149
|
+
withAnimation: boolean;
|
|
116
150
|
compactHeader: boolean;
|
|
117
151
|
tooltipRespectsTopEdge: boolean;
|
|
152
|
+
tooltipTotalType: TotalType;
|
|
153
|
+
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
154
|
+
totalsChart: boolean;
|
|
155
|
+
colorsMap: Record<string, string>;
|
|
118
156
|
}>, {
|
|
119
157
|
"subheader-tooltip"?(_: {}): any;
|
|
120
158
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const s = /* @__PURE__ */ e
|
|
1
|
+
import e from "./ChartPlane.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ae87f435"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|