@ironsource/shared-ui 2.1.12-test.59 → 2.1.12-test.60
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/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/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_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/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_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 +24 -25
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +82 -88
- package/components/chart/ChartHeader.vue.d.ts +24 -25
- package/components/chart/ChartHeader.vue.js +3 -3
- package/components/chart/ChartHeader.vue2.js +30 -35
- package/components/chart/ChartHeaderTrend.vue.d.ts +13 -15
- package/components/chart/ChartHeaderTrend.vue.js +3 -3
- package/components/chart/ChartHeaderTrend.vue2.js +32 -34
- package/components/chart/ChartPlane.vue.d.ts +24 -25
- package/components/chart/ChartPlane.vue.js +5 -5
- package/components/chart/ChartPlane.vue2.js +122 -128
- package/components/chart/index.d.ts +59 -88
- 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/DropdownV4.vue.d.ts +8 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +105 -95
- package/components/dropdown/v4/OptionV4.vue.d.ts +8 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +91 -69
- package/components/dropdown/v4/index.d.ts +46 -2
- 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 +32 -27
- package/index.d.ts +127 -39
- package/index.js +1 -1
- package/package.json +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_757e7752_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_92052479_lang.css +0 -1
- package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_d61ed404_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_bb382dc4_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_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/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_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
|
@@ -15,13 +15,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
16
16
|
header?: string;
|
|
17
17
|
subheader?: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
subheaderTooltip?: {
|
|
19
|
+
header?: string;
|
|
20
|
+
text?: string;
|
|
21
|
+
};
|
|
20
22
|
trendValue?: string | number;
|
|
21
23
|
trendDirection?: "up" | "down";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
trendTooltip?: {
|
|
25
|
+
header?: string;
|
|
26
|
+
rangeCurrent?: string;
|
|
27
|
+
rangePrevious?: string;
|
|
28
|
+
};
|
|
25
29
|
noDataIcon?: string;
|
|
26
30
|
noDataTitle?: string;
|
|
27
31
|
noDataSubtitle?: string;
|
|
@@ -50,13 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
50
54
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
51
55
|
header: string;
|
|
52
56
|
subheader: string;
|
|
53
|
-
|
|
54
|
-
subheaderTooltipText: any;
|
|
57
|
+
subheaderTooltip: any;
|
|
55
58
|
trendValue: any;
|
|
56
59
|
trendDirection: string;
|
|
57
|
-
|
|
58
|
-
trendTooltipRangeCurrent: any;
|
|
59
|
-
trendTooltipRangePrevious: any;
|
|
60
|
+
trendTooltip: any;
|
|
60
61
|
noDataIcon: string;
|
|
61
62
|
noDataTitle: string;
|
|
62
63
|
noDataSubtitle: string;
|
|
@@ -89,13 +90,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
90
|
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
90
91
|
header?: string;
|
|
91
92
|
subheader?: string;
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
subheaderTooltip?: {
|
|
94
|
+
header?: string;
|
|
95
|
+
text?: string;
|
|
96
|
+
};
|
|
94
97
|
trendValue?: string | number;
|
|
95
98
|
trendDirection?: "up" | "down";
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
trendTooltip?: {
|
|
100
|
+
header?: string;
|
|
101
|
+
rangeCurrent?: string;
|
|
102
|
+
rangePrevious?: string;
|
|
103
|
+
};
|
|
99
104
|
noDataIcon?: string;
|
|
100
105
|
noDataTitle?: string;
|
|
101
106
|
noDataSubtitle?: string;
|
|
@@ -124,13 +129,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
129
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
125
130
|
header: string;
|
|
126
131
|
subheader: string;
|
|
127
|
-
|
|
128
|
-
subheaderTooltipText: any;
|
|
132
|
+
subheaderTooltip: any;
|
|
129
133
|
trendValue: any;
|
|
130
134
|
trendDirection: string;
|
|
131
|
-
|
|
132
|
-
trendTooltipRangeCurrent: any;
|
|
133
|
-
trendTooltipRangePrevious: any;
|
|
135
|
+
trendTooltip: any;
|
|
134
136
|
noDataIcon: string;
|
|
135
137
|
noDataTitle: string;
|
|
136
138
|
noDataSubtitle: string;
|
|
@@ -164,12 +166,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
164
166
|
yAxisFormat: ValueFormat;
|
|
165
167
|
parsing: ChartParsingConfig;
|
|
166
168
|
dataSets: ChartDataSet[];
|
|
169
|
+
trendTooltip: any;
|
|
167
170
|
subheader: string;
|
|
168
|
-
|
|
169
|
-
subheaderTooltipText: string;
|
|
170
|
-
trendTooltipHeader: string;
|
|
171
|
-
trendTooltipRangeCurrent: string;
|
|
172
|
-
trendTooltipRangePrevious: string;
|
|
171
|
+
subheaderTooltip: any;
|
|
173
172
|
trendValue: string | number;
|
|
174
173
|
trendDirection: "up" | "down";
|
|
175
174
|
tickCount: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const p = /* @__PURE__ */ e
|
|
1
|
+
import e from "./Chart.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-de950ffe"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../../Chart.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useColorsMap as
|
|
7
|
-
import { DEFAULT_TICK_COUNT as
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css"; import { defineComponent as E, computed as n, openBlock as s, createElementBlock as m, Fragment as S, createBlock as x, unref as a, isRef as f, withCtx as d, renderSlot as u, createCommentVNode as I, createElementVNode as D, mergeProps as y, normalizeClass as N, createVNode as F, createSlots as U, renderList as M } from "vue";
|
|
2
|
+
import { useVModel as L } from "@vueuse/core";
|
|
3
|
+
import P from "./ChartLegend.vue.js";
|
|
4
|
+
import O from "./SettingsHeader.vue.js";
|
|
5
|
+
import k from "./ChartPlane.vue.js";
|
|
6
|
+
import { useColorsMap as $ } from "./composables/useColorsMap.js";
|
|
7
|
+
import { DEFAULT_TICK_COUNT as K, DEFAULT_MIN_VISIBLE as z, DEFAULT_MAX_VISIBLE as R } from "./consts.js";
|
|
8
8
|
import { ChartType as X } from "./types.js";
|
|
9
9
|
import { useChartHeight as j } from "./composables/useChartHeight.js";
|
|
10
10
|
import { TotalType as q, calculateTotal as G } from "../../utils/totals.js";
|
|
11
11
|
const J = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "chart-sidebar"
|
|
14
|
-
},
|
|
14
|
+
}, it = /* @__PURE__ */ E({
|
|
15
15
|
__name: "Chart",
|
|
16
16
|
props: {
|
|
17
17
|
dataSets: { default: () => [] },
|
|
@@ -20,7 +20,7 @@ const J = {
|
|
|
20
20
|
parsing: { default: void 0 },
|
|
21
21
|
xAxisFormat: { default: "string" },
|
|
22
22
|
yAxisFormat: { default: "number" },
|
|
23
|
-
tickCount: { default:
|
|
23
|
+
tickCount: { default: K },
|
|
24
24
|
loading: { type: Boolean, default: !1 },
|
|
25
25
|
withAnimation: { type: Boolean, default: !0 },
|
|
26
26
|
totalsChart: { type: Boolean, default: !1 },
|
|
@@ -28,19 +28,16 @@ const J = {
|
|
|
28
28
|
tooltipTotalCalcFn: { type: Function, default: G },
|
|
29
29
|
header: { default: "" },
|
|
30
30
|
subheader: { default: "" },
|
|
31
|
-
|
|
32
|
-
subheaderTooltipText: { default: null },
|
|
31
|
+
subheaderTooltip: { default: null },
|
|
33
32
|
trendValue: { default: null },
|
|
34
33
|
trendDirection: { default: "up" },
|
|
35
|
-
|
|
36
|
-
trendTooltipRangeCurrent: { default: null },
|
|
37
|
-
trendTooltipRangePrevious: { default: null },
|
|
34
|
+
trendTooltip: { default: null },
|
|
38
35
|
noDataIcon: { default: "file-search" },
|
|
39
36
|
noDataTitle: { default: "No data to display" },
|
|
40
37
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
41
38
|
hideLegend: { type: Boolean, default: !1 },
|
|
42
|
-
minVisible: { default:
|
|
43
|
-
maxVisible: { default:
|
|
39
|
+
minVisible: { default: z },
|
|
40
|
+
maxVisible: { default: R },
|
|
44
41
|
maxLimitTooltipText: { default: "" },
|
|
45
42
|
sortSelected: { default: null },
|
|
46
43
|
sortOptions: { default: () => [] },
|
|
@@ -50,103 +47,100 @@ const J = {
|
|
|
50
47
|
extraCharts: { default: () => [] }
|
|
51
48
|
},
|
|
52
49
|
emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
55
|
-
dataSets:
|
|
56
|
-
visibleIds:
|
|
57
|
-
parsing:
|
|
58
|
-
xAxisFormat:
|
|
59
|
-
yAxisFormat:
|
|
60
|
-
tickCount:
|
|
61
|
-
header:
|
|
62
|
-
subheader:
|
|
63
|
-
loading:
|
|
64
|
-
noDataIcon:
|
|
65
|
-
noDataTitle:
|
|
66
|
-
noDataSubtitle:
|
|
67
|
-
withAnimation:
|
|
68
|
-
typeSwitcher: !
|
|
69
|
-
height:
|
|
50
|
+
setup(o, { emit: p }) {
|
|
51
|
+
const t = o, r = L(t, "chartType", p), c = L(t, "sortSelected", p), T = n(() => ({
|
|
52
|
+
dataSets: t.dataSets,
|
|
53
|
+
visibleIds: t.visibleIds,
|
|
54
|
+
parsing: t.parsing,
|
|
55
|
+
xAxisFormat: t.xAxisFormat,
|
|
56
|
+
yAxisFormat: t.yAxisFormat,
|
|
57
|
+
tickCount: t.tickCount,
|
|
58
|
+
header: t.header,
|
|
59
|
+
subheader: t.subheader,
|
|
60
|
+
loading: t.loading,
|
|
61
|
+
noDataIcon: t.noDataIcon,
|
|
62
|
+
noDataTitle: t.noDataTitle,
|
|
63
|
+
noDataSubtitle: t.noDataSubtitle,
|
|
64
|
+
withAnimation: t.withAnimation,
|
|
65
|
+
typeSwitcher: !t.withSettingsHeader,
|
|
66
|
+
height: H.value,
|
|
70
67
|
compactHeader: C.value > 1,
|
|
71
|
-
trendValue:
|
|
72
|
-
trendDirection:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
totalsChart: e.totalsChart,
|
|
77
|
-
subheaderTooltipHeader: e.subheaderTooltipHeader,
|
|
78
|
-
subheaderTooltipText: e.subheaderTooltipText,
|
|
68
|
+
trendValue: t.trendValue,
|
|
69
|
+
trendDirection: t.trendDirection,
|
|
70
|
+
trendTooltip: t.trendTooltip,
|
|
71
|
+
totalsChart: t.totalsChart,
|
|
72
|
+
subheaderTooltip: t.subheaderTooltip,
|
|
79
73
|
colorsMap: h.value,
|
|
80
|
-
tooltipTotalType:
|
|
81
|
-
tooltipTotalCalcFn:
|
|
82
|
-
})),
|
|
83
|
-
dataSets:
|
|
84
|
-
visibleIds:
|
|
85
|
-
}),
|
|
86
|
-
id:
|
|
87
|
-
label:
|
|
88
|
-
caption:
|
|
89
|
-
color: h.value[
|
|
90
|
-
icon:
|
|
91
|
-
iconType:
|
|
92
|
-
}))), { containerProps:
|
|
74
|
+
tooltipTotalType: t.tooltipTotalType,
|
|
75
|
+
tooltipTotalCalcFn: t.tooltipTotalCalcFn
|
|
76
|
+
})), w = n(() => t.dataSets), b = n(() => t.visibleIds), g = n(() => t.extraCharts.length), C = n(() => 1 + g.value), A = (e) => e === g.value - 1, { colorsMap: h } = $({
|
|
77
|
+
dataSets: w,
|
|
78
|
+
visibleIds: b
|
|
79
|
+
}), B = n(() => t.dataSets.map((e) => ({
|
|
80
|
+
id: e.id,
|
|
81
|
+
label: e.label,
|
|
82
|
+
caption: e.caption || null,
|
|
83
|
+
color: h.value[e.id] || null,
|
|
84
|
+
icon: e.icon || null,
|
|
85
|
+
iconType: e.iconType || "branded"
|
|
86
|
+
}))), { containerProps: V, eachPlaneHeight: H } = j({
|
|
93
87
|
chartPlanesCount: C,
|
|
94
|
-
useFullHeight:
|
|
88
|
+
useFullHeight: t.fullHeight
|
|
95
89
|
});
|
|
96
|
-
return (
|
|
97
|
-
|
|
90
|
+
return (e, i) => (s(), m(S, null, [
|
|
91
|
+
o.withSettingsHeader ? (s(), x(O, {
|
|
98
92
|
key: 0,
|
|
99
|
-
"chart-type":
|
|
100
|
-
"onUpdate:chart-type":
|
|
101
|
-
"hide-legend":
|
|
93
|
+
"chart-type": a(r),
|
|
94
|
+
"onUpdate:chart-type": i[0] || (i[0] = (l) => f(r) ? r.value = l : null),
|
|
95
|
+
"hide-legend": o.hideLegend
|
|
102
96
|
}, {
|
|
103
97
|
"before-chart-type": d(() => [
|
|
104
|
-
u(
|
|
98
|
+
u(e.$slots, "before-chart-type", {}, void 0, !0)
|
|
105
99
|
]),
|
|
106
100
|
metric: d(() => [
|
|
107
|
-
u(
|
|
101
|
+
u(e.$slots, "metric", {}, void 0, !0)
|
|
108
102
|
]),
|
|
109
103
|
breakdowns: d(() => [
|
|
110
|
-
u(
|
|
104
|
+
u(e.$slots, "breakdowns", {}, void 0, !0)
|
|
111
105
|
]),
|
|
112
106
|
_: 3
|
|
113
107
|
}, 8, ["chart-type", "hide-legend"])) : I("", !0),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
class:
|
|
108
|
+
D("div", y({ class: "chart-container" }, a(V)), [
|
|
109
|
+
D("section", {
|
|
110
|
+
class: N(["chart-planes", [{ "with-legend": !o.hideLegend }]])
|
|
117
111
|
}, [
|
|
118
|
-
|
|
119
|
-
"chart-type":
|
|
120
|
-
"onUpdate:chart-type":
|
|
121
|
-
},
|
|
122
|
-
|
|
112
|
+
F(k, y({
|
|
113
|
+
"chart-type": a(r),
|
|
114
|
+
"onUpdate:chart-type": i[1] || (i[1] = (l) => f(r) ? r.value = l : null)
|
|
115
|
+
}, a(T)), U({ _: 2 }, [
|
|
116
|
+
e.$slots["subheader-tooltip"] ? {
|
|
123
117
|
name: "subheader-tooltip",
|
|
124
118
|
fn: d(() => [
|
|
125
|
-
u(
|
|
119
|
+
u(e.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
126
120
|
]),
|
|
127
121
|
key: "0"
|
|
128
122
|
} : void 0
|
|
129
123
|
]), 1040, ["chart-type"]),
|
|
130
|
-
(s(!0), m(
|
|
124
|
+
(s(!0), m(S, null, M(o.extraCharts, (l, v) => (s(), x(k, y({
|
|
131
125
|
key: v,
|
|
132
126
|
class: "extra-chart-plane"
|
|
133
|
-
}, { ...
|
|
134
|
-
"chart-type":
|
|
135
|
-
"colors-map":
|
|
127
|
+
}, { ...a(T), ...l }, {
|
|
128
|
+
"chart-type": a(r),
|
|
129
|
+
"colors-map": a(h),
|
|
136
130
|
"type-switcher": !1,
|
|
137
|
-
"tooltip-respects-top-edge": !
|
|
131
|
+
"tooltip-respects-top-edge": !A(v)
|
|
138
132
|
}), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge"]))), 128))
|
|
139
133
|
], 2),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"sort-selected":
|
|
143
|
-
"onUpdate:sort-selected":
|
|
144
|
-
items:
|
|
145
|
-
"visible-ids":
|
|
146
|
-
"max-limit-tooltip-text":
|
|
147
|
-
"sort-options":
|
|
148
|
-
"sort-option-name-key":
|
|
149
|
-
"onUpdate:visibleIds":
|
|
134
|
+
o.hideLegend ? I("", !0) : (s(), m("section", J, [
|
|
135
|
+
F(P, {
|
|
136
|
+
"sort-selected": a(c),
|
|
137
|
+
"onUpdate:sort-selected": i[2] || (i[2] = (l) => f(c) ? c.value = l : null),
|
|
138
|
+
items: a(B),
|
|
139
|
+
"visible-ids": a(b),
|
|
140
|
+
"max-limit-tooltip-text": o.maxLimitTooltipText,
|
|
141
|
+
"sort-options": o.sortOptions,
|
|
142
|
+
"sort-option-name-key": o.sortOptionNameKey,
|
|
143
|
+
"onUpdate:visibleIds": i[3] || (i[3] = (l) => p("update:visibleIds", l))
|
|
150
144
|
}, null, 8, ["sort-selected", "items", "visible-ids", "max-limit-tooltip-text", "sort-options", "sort-option-name-key"])
|
|
151
145
|
]))
|
|
152
146
|
], 16)
|
|
@@ -154,5 +148,5 @@ const J = {
|
|
|
154
148
|
}
|
|
155
149
|
});
|
|
156
150
|
export {
|
|
157
|
-
|
|
151
|
+
it as default
|
|
158
152
|
};
|
|
@@ -4,11 +4,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
typeSwitcher: boolean;
|
|
5
5
|
header?: string;
|
|
6
6
|
subheader?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
subheaderTooltip?: {
|
|
8
|
+
header?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
};
|
|
11
|
+
trendTooltip?: {
|
|
12
|
+
header?: string;
|
|
13
|
+
rangeCurrent?: string;
|
|
14
|
+
rangePrevious?: string;
|
|
15
|
+
};
|
|
12
16
|
compact: boolean;
|
|
13
17
|
trendValue?: string | number;
|
|
14
18
|
trendDirection?: "up" | "down";
|
|
@@ -17,11 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
21
|
typeSwitcher: boolean;
|
|
18
22
|
header: string;
|
|
19
23
|
subheader: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
trendTooltipHeader: any;
|
|
23
|
-
trendTooltipRangeCurrent: any;
|
|
24
|
-
trendTooltipRangePrevious: any;
|
|
24
|
+
subheaderTooltip: any;
|
|
25
|
+
trendTooltip: any;
|
|
25
26
|
compact: boolean;
|
|
26
27
|
trendValue: any;
|
|
27
28
|
trendDirection: string;
|
|
@@ -32,11 +33,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
32
33
|
typeSwitcher: boolean;
|
|
33
34
|
header?: string;
|
|
34
35
|
subheader?: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
subheaderTooltip?: {
|
|
37
|
+
header?: string;
|
|
38
|
+
text?: string;
|
|
39
|
+
};
|
|
40
|
+
trendTooltip?: {
|
|
41
|
+
header?: string;
|
|
42
|
+
rangeCurrent?: string;
|
|
43
|
+
rangePrevious?: string;
|
|
44
|
+
};
|
|
40
45
|
compact: boolean;
|
|
41
46
|
trendValue?: string | number;
|
|
42
47
|
trendDirection?: "up" | "down";
|
|
@@ -45,11 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
50
|
typeSwitcher: boolean;
|
|
46
51
|
header: string;
|
|
47
52
|
subheader: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
trendTooltipHeader: any;
|
|
51
|
-
trendTooltipRangeCurrent: any;
|
|
52
|
-
trendTooltipRangePrevious: any;
|
|
53
|
+
subheaderTooltip: any;
|
|
54
|
+
trendTooltip: any;
|
|
53
55
|
compact: boolean;
|
|
54
56
|
trendValue: any;
|
|
55
57
|
trendDirection: string;
|
|
@@ -59,13 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
61
|
header: string;
|
|
60
62
|
compact: boolean;
|
|
61
63
|
chartType: ChartType;
|
|
64
|
+
trendTooltip: any;
|
|
62
65
|
typeSwitcher: boolean;
|
|
63
66
|
subheader: string;
|
|
64
|
-
|
|
65
|
-
subheaderTooltipText: string;
|
|
66
|
-
trendTooltipHeader: string;
|
|
67
|
-
trendTooltipRangeCurrent: string;
|
|
68
|
-
trendTooltipRangePrevious: string;
|
|
67
|
+
subheaderTooltip: any;
|
|
69
68
|
trendValue: string | number;
|
|
70
69
|
trendDirection: "up" | "down";
|
|
71
70
|
}>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./ChartHeader.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../ChartHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css"; //*');
|
|
4
|
+
const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1ff0e54f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import "../../ChartHeader.
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css"; import { defineComponent as B, useSlots as g, computed as m, openBlock as r, createElementBlock as N, normalizeClass as D, createElementVNode as n, createVNode as f, unref as t, withCtx as o, renderSlot as L, createBlock as d, createTextVNode as u, toDisplayString as c, createCommentVNode as i, normalizeProps as v, mergeProps as V, isRef as P } from "vue";
|
|
2
2
|
import s from "../typography/v4/Typography.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import z from "../switch/v4/SwitchV4.vue.js";
|
|
4
4
|
import { ChartType as h } from "./types.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import E from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
+
import k from "./ChartHeaderTrend.vue.js";
|
|
7
|
+
const H = { class: "header-texts" }, O = { class: "header-row" }, R = { class: "subheader-tooltip" }, U = { class: "header-row" }, I = /* @__PURE__ */ B({
|
|
8
8
|
__name: "ChartHeader",
|
|
9
9
|
props: {
|
|
10
10
|
chartType: { default: h.Line },
|
|
11
11
|
typeSwitcher: { type: Boolean, default: !0 },
|
|
12
12
|
header: { default: "" },
|
|
13
13
|
subheader: { default: "" },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
trendTooltipHeader: { default: null },
|
|
17
|
-
trendTooltipRangeCurrent: { default: null },
|
|
18
|
-
trendTooltipRangePrevious: { default: null },
|
|
14
|
+
subheaderTooltip: { default: null },
|
|
15
|
+
trendTooltip: { default: null },
|
|
19
16
|
compact: { type: Boolean, default: !1 },
|
|
20
17
|
trendValue: { default: null },
|
|
21
18
|
trendDirection: { default: "up" }
|
|
22
19
|
},
|
|
23
20
|
emits: ["update:chartType"],
|
|
24
21
|
setup(e, { emit: x }) {
|
|
25
|
-
const a = e,
|
|
22
|
+
const a = e, S = g(), T = [
|
|
26
23
|
{ id: h.Line, icon: "chart-line-up" },
|
|
27
24
|
{ id: h.Bar, icon: "chart-bar" },
|
|
28
25
|
{ id: h.StackedLine, icon: "chart-line" }
|
|
@@ -33,44 +30,42 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
|
|
|
33
30
|
set(l) {
|
|
34
31
|
x("update:chartType", l.id);
|
|
35
32
|
}
|
|
36
|
-
}),
|
|
33
|
+
}), C = m(() => S["subheader-tooltip"] || a.subheaderTooltip?.text || a.subheaderTooltip?.header), y = m(() => ({
|
|
37
34
|
value: a.trendValue,
|
|
38
35
|
direction: a.trendDirection,
|
|
39
|
-
|
|
40
|
-
tooltipRangeCurrent: a.trendTooltipRangeCurrent,
|
|
41
|
-
tooltipRangePrevious: a.trendTooltipRangePrevious
|
|
36
|
+
trendTooltip: a.trendTooltip
|
|
42
37
|
}));
|
|
43
|
-
return (l,
|
|
44
|
-
class:
|
|
38
|
+
return (l, b) => (r(), N("div", {
|
|
39
|
+
class: D(["chart-header", { "chart-header--compact": e.compact }])
|
|
45
40
|
}, [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
f(t(
|
|
41
|
+
n("div", H, [
|
|
42
|
+
n("div", O, [
|
|
43
|
+
f(t(E), {
|
|
49
44
|
placement: "right",
|
|
50
|
-
disabled: !t(
|
|
45
|
+
disabled: !t(C)
|
|
51
46
|
}, {
|
|
52
47
|
tooltip: o(() => [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
e.
|
|
48
|
+
L(l.$slots, "subheader-tooltip", {}, () => [
|
|
49
|
+
n("div", R, [
|
|
50
|
+
e.subheaderTooltip?.header ? (r(), d(t(s), {
|
|
56
51
|
key: 0,
|
|
57
52
|
variant: "h5"
|
|
58
53
|
}, {
|
|
59
54
|
default: o(() => [
|
|
60
|
-
u(c(e.
|
|
55
|
+
u(c(e.subheaderTooltip.header), 1)
|
|
61
56
|
]),
|
|
62
57
|
_: 1
|
|
63
|
-
})) :
|
|
64
|
-
e.
|
|
58
|
+
})) : i("", !0),
|
|
59
|
+
e.subheaderTooltip?.text ? (r(), d(t(s), {
|
|
65
60
|
key: 1,
|
|
66
61
|
variant: "body2",
|
|
67
62
|
class: "subheader-tooltip__text"
|
|
68
63
|
}, {
|
|
69
64
|
default: o(() => [
|
|
70
|
-
u(c(e.
|
|
65
|
+
u(c(e.subheaderTooltip.text), 1)
|
|
71
66
|
]),
|
|
72
67
|
_: 1
|
|
73
|
-
})) :
|
|
68
|
+
})) : i("", !0)
|
|
74
69
|
])
|
|
75
70
|
], !0)
|
|
76
71
|
]),
|
|
@@ -88,7 +83,7 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
|
|
|
88
83
|
_: 3
|
|
89
84
|
}, 8, ["disabled"])
|
|
90
85
|
]),
|
|
91
|
-
|
|
86
|
+
n("div", U, [
|
|
92
87
|
f(t(s), {
|
|
93
88
|
class: "header-text",
|
|
94
89
|
variant: e.compact ? "h5" : "chart2"
|
|
@@ -98,16 +93,16 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
|
|
|
98
93
|
]),
|
|
99
94
|
_: 1
|
|
100
95
|
}, 8, ["variant"]),
|
|
101
|
-
!e.compact && e.trendValue !== null ? (r(), d(
|
|
96
|
+
!e.compact && e.trendValue !== null ? (r(), d(k, v(V({ key: 0 }, t(y))), null, 16)) : i("", !0)
|
|
102
97
|
]),
|
|
103
|
-
e.compact && e.trendValue !== null ? (r(), d(
|
|
98
|
+
e.compact && e.trendValue !== null ? (r(), d(k, v(V({ key: 0 }, t(y))), null, 16)) : i("", !0)
|
|
104
99
|
]),
|
|
105
|
-
e.typeSwitcher ? (r(), d(t(
|
|
100
|
+
e.typeSwitcher ? (r(), d(t(z), {
|
|
106
101
|
key: 0,
|
|
107
102
|
modelValue: t(p),
|
|
108
|
-
"onUpdate:modelValue":
|
|
103
|
+
"onUpdate:modelValue": b[0] || (b[0] = (w) => P(p) ? p.value = w : null),
|
|
109
104
|
options: T
|
|
110
|
-
}, null, 8, ["modelValue"])) :
|
|
105
|
+
}, null, 8, ["modelValue"])) : i("", !0)
|
|
111
106
|
], 2));
|
|
112
107
|
}
|
|
113
108
|
});
|
|
@@ -1,33 +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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
trendTooltip?: {
|
|
5
|
+
header?: string;
|
|
6
|
+
rangeCurrent?: string;
|
|
7
|
+
rangePrevious?: string;
|
|
8
|
+
};
|
|
7
9
|
}>, {
|
|
8
10
|
value: any;
|
|
9
11
|
direction: string;
|
|
10
|
-
|
|
11
|
-
tooltipRangeCurrent: any;
|
|
12
|
-
tooltipRangePrevious: any;
|
|
12
|
+
trendTooltip: any;
|
|
13
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<{
|
|
14
14
|
value?: number | string;
|
|
15
15
|
direction?: 'up' | 'down';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
trendTooltip?: {
|
|
17
|
+
header?: string;
|
|
18
|
+
rangeCurrent?: string;
|
|
19
|
+
rangePrevious?: string;
|
|
20
|
+
};
|
|
19
21
|
}>, {
|
|
20
22
|
value: any;
|
|
21
23
|
direction: string;
|
|
22
|
-
|
|
23
|
-
tooltipRangeCurrent: any;
|
|
24
|
-
tooltipRangePrevious: any;
|
|
24
|
+
trendTooltip: any;
|
|
25
25
|
}>>>, {
|
|
26
26
|
value: number | string;
|
|
27
27
|
direction: 'up' | 'down';
|
|
28
|
-
|
|
29
|
-
tooltipRangeCurrent: string;
|
|
30
|
-
tooltipRangePrevious: string;
|
|
28
|
+
trendTooltip: any;
|
|
31
29
|
}>;
|
|
32
30
|
export default _default;
|
|
33
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
|
|
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
|
};
|