@ironsource/shared-ui 2.1.8 → 2.1.9-test.1
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +1 -0
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_9fa84b26_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_360883b1_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_020a9896_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_058de532_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +1 -0
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +1 -0
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css +1 -0
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +1 -0
- package/components/alert/Alert.vue2.js +3 -2
- package/components/autocomplete/Autocomplete.vue.d.ts +1 -1
- package/components/autocomplete/index.d.ts +20 -20
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +65 -0
- package/components/button/v4/ToggleButtonGroupAB.vue.js +7 -0
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +95 -0
- package/components/button/v4/index.d.ts +170 -1
- package/components/button/v4/index.js +10 -3
- package/components/chart/Chart.vue.d.ts +5 -0
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +51 -49
- package/components/chart/ChartHeader.vue.d.ts +5 -0
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +35 -22
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +35 -28
- package/components/chart/SettingsHeader.vue.js +3 -3
- package/components/chart/SettingsHeader.vue2.js +33 -26
- package/components/chart/index.d.ts +20 -1
- package/components/dateRange/v4/CalendarMonthV4.vue2.js +9 -8
- package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
- package/components/dialog/v3/Dialog.vue.d.ts +1 -1
- package/components/dialog/v3/index.d.ts +5 -5
- package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
- package/components/dialog/v4/DialogV4.vue2.js +6 -5
- package/components/dialog/v4/index.d.ts +5 -5
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +51 -51
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +17 -11
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +17 -9
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +5 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +23 -22
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +11 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +59 -45
- package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -2
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +121 -109
- package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +4 -3
- package/components/dropdown/v4/OptionV4.vue.d.ts +6 -0
- package/components/dropdown/v4/OptionV4.vue.js +3 -3
- package/components/dropdown/v4/OptionV4.vue2.js +83 -70
- package/components/dropdown/v4/index.d.ts +157 -65
- package/components/emptyState/v4/EmptyStateV4.vue2.js +13 -12
- package/components/forms/FormCard.vue2.js +13 -12
- package/components/includeExclude/index.d.ts +56 -56
- package/components/input/v3/Input.vue.d.ts +1 -1
- package/components/input/v3/index.d.ts +32 -32
- package/components/input/v4/TextField.vue.d.ts +1 -1
- package/components/input/v4/index.d.ts +20 -20
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +20 -20
- package/components/multibar/MultiBar.vue.d.ts +1 -1
- package/components/multibar/MultiBar.vue2.js +3 -2
- package/components/multibar/index.d.ts +9 -9
- package/components/popover/v3/Popover.vue.d.ts +1 -1
- package/components/popover/v3/index.d.ts +20 -20
- package/components/popover/v4/PopoverV4.vue.d.ts +7 -3
- package/components/popover/v4/PopoverV4.vue.js +3 -3
- package/components/popover/v4/PopoverV4.vue2.js +23 -20
- package/components/popover/v4/index.d.ts +36 -24
- package/components/radioButton/v3/RadioButton.vue.d.ts +1 -1
- package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
- package/components/radioButton/v3/index.d.ts +6 -6
- package/components/radioButton/v4/RadioButtonV4.vue.d.ts +6 -1
- package/components/radioButton/v4/RadioButtonV4.vue.js +2 -2
- package/components/radioButton/v4/RadioButtonV4.vue2.js +59 -46
- package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
- package/components/radioButton/v4/index.d.ts +26 -7
- package/components/snackbar/v4/SnackbarV4.vue2.js +7 -6
- package/components/sortableList/SortableItem.vue.d.ts +1 -1
- package/components/switch/v3/index.d.ts +16 -16
- package/components/switch/v4/SwitchV4.vue2.js +6 -5
- package/components/switch/v4/index.d.ts +8 -8
- package/components/table/v4/DataGrid.vue.d.ts +5 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +45 -44
- package/components/table/v4/ExpandRowToggle.vue2.js +6 -5
- package/components/table/v4/MultipleDataGrid.vue.d.ts +23 -2
- package/components/table/v4/MultipleDataGrid.vue.js +5 -5
- package/components/table/v4/MultipleDataGrid.vue2.js +82 -73
- package/components/table/v4/index.d.ts +98 -2
- package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
- package/components/textArea/v4/index.d.ts +9 -9
- package/components/toggle/v3/index.d.ts +8 -8
- package/components/toggle/v4/index.d.ts +16 -16
- package/components/typography/v4/Typography.vue.js +2 -2
- package/components/typography/v4/Typography.vue2.js +1 -1
- package/consts/configs.d.ts +1 -0
- package/consts/configs.js +4 -0
- package/index.d.ts +1392 -471
- package/index.js +1 -1
- package/mocks/options.d.ts +4 -0
- package/package.json +2 -2
- package/testids/index.d.ts +8 -1
- package/testids/index.js +14 -13
- package/utils/testIds.d.ts +1 -1
- package/utils/testIds.js +6 -6
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_df85e0af_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_2e3de9c5_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_efc608f9_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_a8fdae89_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_d27e1304_lang.css +0 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_fd7a490e_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_62a620ee_lang.css +0 -1
- package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_cfedf78b_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_c54cd089_lang.css +0 -1
- package/RadioButtonV4.vue_vue_type_style_index_0_scoped_cb3a12c6_lang.css +0 -1
- package/SettingsHeader.vue_vue_type_style_index_0_scoped_1791e4fe_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +0 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import o from "./ButtonV4.vue.js";
|
|
2
2
|
import t from "./IconButtonV4.vue.js";
|
|
3
3
|
import r from "./ButtonGroup.vue.js";
|
|
4
|
-
|
|
4
|
+
import m from "./ToggleButtonGroupAB.vue.js";
|
|
5
|
+
const f = () => [
|
|
6
|
+
o,
|
|
7
|
+
t,
|
|
8
|
+
r,
|
|
9
|
+
m
|
|
10
|
+
];
|
|
5
11
|
export {
|
|
6
12
|
o as Button,
|
|
7
13
|
r as ButtonGroup,
|
|
8
|
-
|
|
9
|
-
t as IconButton
|
|
14
|
+
f as ButtonTypes,
|
|
15
|
+
t as IconButton,
|
|
16
|
+
m as ToggleButtonGroupAB
|
|
10
17
|
};
|
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
tickCount?: number;
|
|
10
10
|
header?: string;
|
|
11
11
|
subheader?: string;
|
|
12
|
+
subheaderTooltip?: string;
|
|
12
13
|
hideLegend?: boolean;
|
|
13
14
|
minVisible?: number;
|
|
14
15
|
maxVisible?: number;
|
|
@@ -27,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
28
|
tickCount: number;
|
|
28
29
|
header: string;
|
|
29
30
|
subheader: string;
|
|
31
|
+
subheaderTooltip: string;
|
|
30
32
|
hideLegend: boolean;
|
|
31
33
|
minVisible: number;
|
|
32
34
|
maxVisible: number;
|
|
@@ -48,6 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
50
|
tickCount?: number;
|
|
49
51
|
header?: string;
|
|
50
52
|
subheader?: string;
|
|
53
|
+
subheaderTooltip?: string;
|
|
51
54
|
hideLegend?: boolean;
|
|
52
55
|
minVisible?: number;
|
|
53
56
|
maxVisible?: number;
|
|
@@ -66,6 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
66
69
|
tickCount: number;
|
|
67
70
|
header: string;
|
|
68
71
|
subheader: string;
|
|
72
|
+
subheaderTooltip: string;
|
|
69
73
|
hideLegend: boolean;
|
|
70
74
|
minVisible: number;
|
|
71
75
|
maxVisible: number;
|
|
@@ -89,6 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
93
|
chartType: ChartType;
|
|
90
94
|
withSettingsHeader: boolean;
|
|
91
95
|
subheader: string;
|
|
96
|
+
subheaderTooltip: string;
|
|
92
97
|
dataSets: ChartDataSet[];
|
|
93
98
|
hideLegend: boolean;
|
|
94
99
|
tickCount: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const a = /* @__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_ea1e5c3e_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-ea1e5c3e"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "../../Chart.
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css"; import { defineComponent as X, ref as g, computed as i, onMounted as j, watch as C, nextTick as q, openBlock as d, createElementBlock as k, Fragment as R, createBlock as m, unref as u, isRef as V, withCtx as O, renderSlot as D, createCommentVNode as v, createElementVNode as f, createVNode as F, normalizeStyle as J } from "vue";
|
|
2
2
|
import { useVModel as Q } from "@vueuse/core";
|
|
3
|
-
import { Chart as N, ArcElement as Y, LineElement as ee, BarElement as te, PointElement as ae, LineController as oe, BarController as re, PieController as ie, ScatterController as le, CategoryScale as ne, LinearScale as se, Filler as de, Tooltip as
|
|
4
|
-
import { HoverVerticalLine as
|
|
3
|
+
import { Chart as N, ArcElement as Y, LineElement as ee, BarElement as te, PointElement as ae, LineController as oe, BarController as re, PieController as ie, ScatterController as le, CategoryScale as ne, LinearScale as se, Filler as de, Tooltip as ue } from "chart.js";
|
|
4
|
+
import { HoverVerticalLine as ce } from "./plugins/HoverVerticalLine.js";
|
|
5
5
|
import { formatValue as H, calcStepSize as fe } from "./utils/utils.js";
|
|
6
|
-
import { DEFAULT_TICK_COUNT as pe, DEFAULT_MIN_VISIBLE as
|
|
6
|
+
import { DEFAULT_TICK_COUNT as pe, DEFAULT_MIN_VISIBLE as he, DEFAULT_MAX_VISIBLE as me, COLOR_PALETTE as ve, POINT_BORDER_COLOR as be, TICK_LABEL_COLOR as P, TICK_LABEL_FONT as U, GRID_LINE_COLOR as M } from "./consts.js";
|
|
7
7
|
import { ChartType as n } from "./types.js";
|
|
8
|
-
import { useTooltipPosition as
|
|
8
|
+
import { useTooltipPosition as ye } from "./composables/useTooltipPosition.js";
|
|
9
9
|
import ge from "./ChartTooltip.vue.js";
|
|
10
10
|
import Ce from "./ChartLegend.vue.js";
|
|
11
11
|
import ke from "./ChartHeader.vue.js";
|
|
12
|
-
import { hexColorToRgba as
|
|
13
|
-
import { useChartValues as
|
|
12
|
+
import { hexColorToRgba as Te } from "../../utils/color.js";
|
|
13
|
+
import { useChartValues as Se } from "./composables/useChartValues.js";
|
|
14
14
|
import Le from "./ChartLoader.vue.js";
|
|
15
15
|
import xe from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
16
16
|
import Be from "./SettingsHeader.vue.js";
|
|
@@ -29,9 +29,10 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
29
29
|
tickCount: { default: pe },
|
|
30
30
|
header: { default: "" },
|
|
31
31
|
subheader: { default: "" },
|
|
32
|
+
subheaderTooltip: { default: "" },
|
|
32
33
|
hideLegend: { type: Boolean, default: !1 },
|
|
33
|
-
minVisible: { default:
|
|
34
|
-
maxVisible: { default:
|
|
34
|
+
minVisible: { default: he },
|
|
35
|
+
maxVisible: { default: me },
|
|
35
36
|
loading: { type: Boolean, default: !1 },
|
|
36
37
|
noDataIcon: { default: "file-x" },
|
|
37
38
|
noDataTitle: { default: "No data to display" },
|
|
@@ -39,7 +40,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
39
40
|
withSettingsHeader: { type: Boolean, default: !0 }
|
|
40
41
|
},
|
|
41
42
|
emits: ["update:chartType", "update:visibleIds"],
|
|
42
|
-
setup(a, { emit:
|
|
43
|
+
setup(a, { emit: T }) {
|
|
43
44
|
const t = a;
|
|
44
45
|
N.register(
|
|
45
46
|
Y,
|
|
@@ -53,31 +54,31 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
53
54
|
ne,
|
|
54
55
|
se,
|
|
55
56
|
de,
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
ue,
|
|
58
|
+
ce
|
|
58
59
|
);
|
|
59
|
-
const
|
|
60
|
+
const c = Q(t, "chartType", T), p = g(null);
|
|
60
61
|
let s = null;
|
|
61
|
-
const
|
|
62
|
+
const S = i(() => t.dataSets.length === 0), L = i(() => !t.loading && !S.value), b = () => {
|
|
62
63
|
p.value && (s && s.destroy(), s = new N(p.value, B.value));
|
|
63
64
|
}, z = () => {
|
|
64
|
-
s && (s.data.datasets =
|
|
65
|
+
s && (s.data.datasets = y.value, s.options = B.value.options, s.update());
|
|
65
66
|
};
|
|
66
|
-
j(
|
|
67
|
-
e && (await q(),
|
|
67
|
+
j(b), C(() => t.chartType, b), C(L, async (e) => {
|
|
68
|
+
e && (await q(), b());
|
|
68
69
|
}), C([() => t.visibleIds, () => t.dataSets], z);
|
|
69
|
-
const
|
|
70
|
+
const h = i(
|
|
70
71
|
() => t.chartType === n.StackedLine || t.chartType === n.StackedBar
|
|
71
|
-
),
|
|
72
|
+
), $ = i(
|
|
72
73
|
() => t.chartType === n.Line || t.chartType === n.StackedLine
|
|
73
74
|
), x = i(
|
|
74
75
|
() => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
|
|
75
|
-
),
|
|
76
|
+
), y = i(() => x.value.map((e, o) => {
|
|
76
77
|
const r = e.color || ve[o] || "#000000";
|
|
77
78
|
return {
|
|
78
79
|
...e,
|
|
79
|
-
fill:
|
|
80
|
-
backgroundColor:
|
|
80
|
+
fill: h.value ? "start" : void 0,
|
|
81
|
+
backgroundColor: Te(
|
|
81
82
|
r,
|
|
82
83
|
t.chartType === n.StackedLine ? 10 : 70
|
|
83
84
|
),
|
|
@@ -93,7 +94,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
93
94
|
type: t.chartType == n.Bar || t.chartType === n.StackedBar ? "bar" : "line",
|
|
94
95
|
// Chart Data
|
|
95
96
|
data: {
|
|
96
|
-
datasets:
|
|
97
|
+
datasets: y.value
|
|
97
98
|
},
|
|
98
99
|
// Chart Options
|
|
99
100
|
options: {
|
|
@@ -107,7 +108,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
107
108
|
plugins: {
|
|
108
109
|
legend: { display: !1 },
|
|
109
110
|
title: { display: !1 },
|
|
110
|
-
hoverVerticalLine:
|
|
111
|
+
hoverVerticalLine: $.value,
|
|
111
112
|
// tooltip
|
|
112
113
|
tooltip: {
|
|
113
114
|
enabled: !1,
|
|
@@ -145,7 +146,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
145
146
|
borderWidth: 0,
|
|
146
147
|
hoverRadius: 4,
|
|
147
148
|
hoverBorderWidth: 2,
|
|
148
|
-
pointHoverBackgroundColor:
|
|
149
|
+
pointHoverBackgroundColor: be
|
|
149
150
|
},
|
|
150
151
|
bar: {
|
|
151
152
|
borderRadius: 4
|
|
@@ -156,7 +157,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
156
157
|
x: {
|
|
157
158
|
beginAtZero: !0,
|
|
158
159
|
border: { display: !1 },
|
|
159
|
-
stacked:
|
|
160
|
+
stacked: h.value,
|
|
160
161
|
// stack on top of each other
|
|
161
162
|
// ticks
|
|
162
163
|
ticks: {
|
|
@@ -184,7 +185,7 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
184
185
|
beginAtZero: !0,
|
|
185
186
|
border: { display: !1 },
|
|
186
187
|
// hide left borderline
|
|
187
|
-
stacked:
|
|
188
|
+
stacked: h.value,
|
|
188
189
|
// stack on top of each other
|
|
189
190
|
// ticks
|
|
190
191
|
ticks: {
|
|
@@ -206,32 +207,32 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
})
|
|
209
|
-
),
|
|
210
|
-
() =>
|
|
211
|
-
),
|
|
210
|
+
), K = i(
|
|
211
|
+
() => y.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
|
|
212
|
+
), W = i(() => t.dataSets.map((e) => ({
|
|
212
213
|
id: e.id,
|
|
213
214
|
label: e.label,
|
|
214
|
-
color:
|
|
215
|
-
}))), I = g(null), l = g(null), { position: w } =
|
|
215
|
+
color: K.value[e.id] || null
|
|
216
|
+
}))), I = g(null), l = g(null), { position: w } = ye(
|
|
216
217
|
p,
|
|
217
218
|
I,
|
|
218
219
|
l
|
|
219
|
-
),
|
|
220
|
+
), Z = i(() => ({
|
|
220
221
|
left: `${w.value.left}px`,
|
|
221
222
|
top: `${w.value.top}px`,
|
|
222
223
|
opacity: l.value?.opacity || 0
|
|
223
|
-
})), { minValue: A, maxValue:
|
|
224
|
+
})), { minValue: A, maxValue: _ } = Se({
|
|
224
225
|
parsingConfig: t.parsing,
|
|
225
226
|
dataSets: x,
|
|
226
|
-
isStacked:
|
|
227
|
+
isStacked: h
|
|
227
228
|
}), E = i(
|
|
228
|
-
() => fe(A.value,
|
|
229
|
+
() => fe(A.value, _.value, t.tickCount)
|
|
229
230
|
);
|
|
230
231
|
return (e, o) => (d(), k(R, null, [
|
|
231
|
-
a.withSettingsHeader ? (d(),
|
|
232
|
+
a.withSettingsHeader ? (d(), m(Be, {
|
|
232
233
|
key: 0,
|
|
233
|
-
"chart-type": c
|
|
234
|
-
"onUpdate:chart-type": o[0] || (o[0] = (r) => V(
|
|
234
|
+
"chart-type": u(c),
|
|
235
|
+
"onUpdate:chart-type": o[0] || (o[0] = (r) => V(c) ? c.value = r : null),
|
|
235
236
|
"hide-legend": a.hideLegend
|
|
236
237
|
}, {
|
|
237
238
|
metric: O(() => [
|
|
@@ -243,16 +244,17 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
243
244
|
_: 3
|
|
244
245
|
}, 8, ["chart-type", "hide-legend"])) : v("", !0),
|
|
245
246
|
f("div", Ie, [
|
|
246
|
-
|
|
247
|
+
u(L) ? (d(), k(R, { key: 0 }, [
|
|
247
248
|
f("section", we, [
|
|
248
249
|
f("div", Ae, [
|
|
249
250
|
F(ke, {
|
|
250
|
-
"chart-type": c
|
|
251
|
-
"onUpdate:chart-type": o[1] || (o[1] = (r) => V(
|
|
251
|
+
"chart-type": u(c),
|
|
252
|
+
"onUpdate:chart-type": o[1] || (o[1] = (r) => V(c) ? c.value = r : null),
|
|
252
253
|
"with-settings-header": a.withSettingsHeader,
|
|
253
254
|
header: a.header,
|
|
254
|
-
subheader: a.subheader
|
|
255
|
-
|
|
255
|
+
subheader: a.subheader,
|
|
256
|
+
"subheader-tooltip": a.subheaderTooltip
|
|
257
|
+
}, null, 8, ["chart-type", "with-settings-header", "header", "subheader", "subheader-tooltip"])
|
|
256
258
|
]),
|
|
257
259
|
f("div", Ee, [
|
|
258
260
|
f("canvas", {
|
|
@@ -264,9 +266,9 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
264
266
|
ref_key: "tooltipRef",
|
|
265
267
|
ref: I,
|
|
266
268
|
class: "chart__tooltip",
|
|
267
|
-
style: J(
|
|
269
|
+
style: J(u(Z))
|
|
268
270
|
}, [
|
|
269
|
-
l.value ? (d(),
|
|
271
|
+
l.value ? (d(), m(ge, {
|
|
270
272
|
key: 0,
|
|
271
273
|
title: String(l.value.title),
|
|
272
274
|
"data-points": l.value.dataPoints,
|
|
@@ -280,12 +282,12 @@ const Ie = { class: "chart-container" }, we = { class: "chart-content" }, Ae = {
|
|
|
280
282
|
]),
|
|
281
283
|
a.hideLegend ? v("", !0) : (d(), k("section", Re, [
|
|
282
284
|
F(Ce, {
|
|
283
|
-
items:
|
|
285
|
+
items: u(W),
|
|
284
286
|
"visible-ids": a.visibleIds,
|
|
285
|
-
"onUpdate:visibleIds": o[2] || (o[2] = (r) =>
|
|
287
|
+
"onUpdate:visibleIds": o[2] || (o[2] = (r) => T("update:visibleIds", r))
|
|
286
288
|
}, null, 8, ["items", "visible-ids"])
|
|
287
289
|
]))
|
|
288
|
-
], 64)) : a.loading ? (d(),
|
|
290
|
+
], 64)) : a.loading ? (d(), m(Le, { key: 1 })) : u(S) ? (d(), m(u(xe), {
|
|
289
291
|
key: 2,
|
|
290
292
|
title: a.noDataTitle,
|
|
291
293
|
subtitle: a.noDataSubtitle,
|
|
@@ -4,11 +4,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
4
4
|
withSettingsHeader: boolean;
|
|
5
5
|
header?: string;
|
|
6
6
|
subheader?: string;
|
|
7
|
+
subheaderTooltip?: string;
|
|
7
8
|
}>, {
|
|
8
9
|
chartType: ChartType;
|
|
9
10
|
withSettingsHeader: boolean;
|
|
10
11
|
header: string;
|
|
11
12
|
subheader: string;
|
|
13
|
+
subheaderTooltip: string;
|
|
12
14
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
15
|
"update:chartType": (type: ChartType) => void;
|
|
14
16
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -16,11 +18,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
18
|
withSettingsHeader: boolean;
|
|
17
19
|
header?: string;
|
|
18
20
|
subheader?: string;
|
|
21
|
+
subheaderTooltip?: string;
|
|
19
22
|
}>, {
|
|
20
23
|
chartType: ChartType;
|
|
21
24
|
withSettingsHeader: boolean;
|
|
22
25
|
header: string;
|
|
23
26
|
subheader: string;
|
|
27
|
+
subheaderTooltip: string;
|
|
24
28
|
}>>> & {
|
|
25
29
|
"onUpdate:chartType"?: (type: ChartType) => any;
|
|
26
30
|
}, {
|
|
@@ -28,6 +32,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
28
32
|
chartType: ChartType;
|
|
29
33
|
withSettingsHeader: boolean;
|
|
30
34
|
subheader: string;
|
|
35
|
+
subheaderTooltip: string;
|
|
31
36
|
}>;
|
|
32
37
|
export default _default;
|
|
33
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -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 s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4c37736e"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,53 +1,66 @@
|
|
|
1
|
-
import "../../ChartHeader.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import "../../ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css"; import { defineComponent as y, computed as T, openBlock as c, createElementBlock as x, createElementVNode as V, createVNode as d, unref as t, withCtx as i, createTextVNode as u, toDisplayString as s, createBlock as b, isRef as g, createCommentVNode as k } from "vue";
|
|
2
|
+
import h from "../typography/v4/Typography.vue.js";
|
|
3
|
+
import v from "../switch/v4/SwitchV4.vue.js";
|
|
4
4
|
import { ChartType as r } from "./types.js";
|
|
5
|
-
|
|
5
|
+
import B from "../tooltip/v4/TooltipV4.vue.js";
|
|
6
|
+
const C = { class: "chart-header" }, S = { class: "header-texts" }, E = /* @__PURE__ */ y({
|
|
6
7
|
__name: "ChartHeader",
|
|
7
8
|
props: {
|
|
8
9
|
chartType: { default: r.Line },
|
|
9
10
|
withSettingsHeader: { type: Boolean, default: !0 },
|
|
10
11
|
header: { default: "" },
|
|
11
|
-
subheader: { default: "" }
|
|
12
|
+
subheader: { default: "" },
|
|
13
|
+
subheaderTooltip: { default: "" }
|
|
12
14
|
},
|
|
13
15
|
emits: ["update:chartType"],
|
|
14
|
-
setup(e, { emit:
|
|
16
|
+
setup(e, { emit: p }) {
|
|
15
17
|
const m = e, n = [
|
|
16
18
|
{ id: r.Line, icon: "chart-line-up" },
|
|
17
19
|
{ id: r.Bar, icon: "chart-bar" },
|
|
18
20
|
{ id: r.StackedLine, icon: "chart-line" }
|
|
19
21
|
], o = T({
|
|
20
22
|
get() {
|
|
21
|
-
return n.find(({ id:
|
|
23
|
+
return n.find(({ id: a }) => a === m.chartType);
|
|
22
24
|
},
|
|
23
|
-
set(
|
|
24
|
-
|
|
25
|
+
set(a) {
|
|
26
|
+
p("update:chartType", a.id);
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return (a, l) => (c(), x("div", C, [
|
|
30
|
+
V("div", S, [
|
|
31
|
+
d(t(B), {
|
|
32
|
+
text: e.subheaderTooltip,
|
|
33
|
+
placement: "right"
|
|
34
|
+
}, {
|
|
35
|
+
default: i(() => [
|
|
36
|
+
d(t(h), {
|
|
37
|
+
class: "subheader",
|
|
38
|
+
variant: "h5"
|
|
39
|
+
}, {
|
|
40
|
+
default: i(() => [
|
|
41
|
+
u(s(e.subheader), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
})
|
|
32
45
|
]),
|
|
33
46
|
_: 1
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
default:
|
|
37
|
-
s(
|
|
47
|
+
}, 8, ["text"]),
|
|
48
|
+
d(t(h), { variant: "chart2" }, {
|
|
49
|
+
default: i(() => [
|
|
50
|
+
u(s(e.header), 1)
|
|
38
51
|
]),
|
|
39
52
|
_: 1
|
|
40
53
|
})
|
|
41
54
|
]),
|
|
42
|
-
e.withSettingsHeader ?
|
|
55
|
+
e.withSettingsHeader ? k("", !0) : (c(), b(t(v), {
|
|
43
56
|
key: 0,
|
|
44
|
-
modelValue:
|
|
45
|
-
"onUpdate:modelValue":
|
|
57
|
+
modelValue: t(o),
|
|
58
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => g(o) ? o.value = f : null),
|
|
46
59
|
options: n
|
|
47
60
|
}, null, 8, ["modelValue"]))
|
|
48
61
|
]));
|
|
49
62
|
}
|
|
50
63
|
});
|
|
51
64
|
export {
|
|
52
|
-
|
|
65
|
+
E as default
|
|
53
66
|
};
|
|
@@ -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_c0f71a49_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-c0f71a49"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ChartLegend.
|
|
1
|
+
import "../../ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css"; import { defineComponent as E, ref as T, computed as r, openBlock as d, createElementBlock as n, createElementVNode as c, createVNode as u, unref as i, mergeProps as p, Fragment as y, renderList as w, withCtx as S, createTextVNode as U, toDisplayString as B } from "vue";
|
|
2
2
|
import { useVirtualList as D } from "@vueuse/core";
|
|
3
3
|
import N from "../typography/v4/Typography.vue.js";
|
|
4
4
|
import A from "../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -13,47 +13,54 @@ const P = { class: "chart-legend" }, R = { class: "search-box" }, K = /* @__PURE
|
|
|
13
13
|
maxVisible: { default: M }
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:visibleIds"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
(
|
|
16
|
+
setup(m, { emit: b }) {
|
|
17
|
+
const s = m, h = 32, o = T(""), f = r(() => {
|
|
18
|
+
const t = o.value.toLowerCase();
|
|
19
|
+
return s.items.filter(
|
|
20
|
+
(l) => l.label.toLowerCase().includes(t)
|
|
21
21
|
);
|
|
22
|
-
}),
|
|
23
|
-
() =>
|
|
24
|
-
), I =
|
|
25
|
-
() =>
|
|
26
|
-
), _ = (
|
|
22
|
+
}), a = (t) => s.visibleIds.includes(t.id), v = r(
|
|
23
|
+
() => s.visibleIds.length >= s.maxVisible
|
|
24
|
+
), I = r(
|
|
25
|
+
() => s.visibleIds.length <= s.minVisible
|
|
26
|
+
), _ = (t) => I.value && a(t) || v.value && !a(t), V = (t, l) => {
|
|
27
27
|
b(
|
|
28
28
|
"update:visibleIds",
|
|
29
|
-
|
|
29
|
+
t ? [...s.visibleIds, l.id] : s.visibleIds.filter((e) => e !== l.id)
|
|
30
30
|
);
|
|
31
|
-
}, { list:
|
|
31
|
+
}, { list: g, containerProps: L, wrapperProps: x } = D(f, {
|
|
32
32
|
itemHeight: h,
|
|
33
33
|
overscan: 10
|
|
34
34
|
});
|
|
35
|
-
return (
|
|
35
|
+
return (t, l) => (d(), n("div", P, [
|
|
36
36
|
c("div", R, [
|
|
37
|
-
u(
|
|
37
|
+
u(i(F), {
|
|
38
38
|
modelValue: o.value,
|
|
39
|
-
"onUpdate:modelValue":
|
|
39
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => o.value = e)
|
|
40
40
|
}, null, 8, ["modelValue"])
|
|
41
41
|
]),
|
|
42
|
-
c("div",
|
|
43
|
-
c("ul",
|
|
44
|
-
(d(!0), n(y, null,
|
|
45
|
-
u(
|
|
46
|
-
color:
|
|
47
|
-
"is-checked":
|
|
48
|
-
disabled: _(
|
|
49
|
-
"onUpdate:isChecked": (
|
|
42
|
+
c("div", p({ class: "legend" }, i(L)), [
|
|
43
|
+
c("ul", p({ class: "legend__list" }, i(x)), [
|
|
44
|
+
(d(!0), n(y, null, w(i(g), ({ data: e, index: k }) => (d(), n("li", { key: k }, [
|
|
45
|
+
u(i(A), {
|
|
46
|
+
color: e.color,
|
|
47
|
+
"is-checked": a(e),
|
|
48
|
+
disabled: _(e),
|
|
49
|
+
"onUpdate:isChecked": (C) => V(C, e)
|
|
50
50
|
}, null, 8, ["color", "is-checked", "disabled", "onUpdate:isChecked"]),
|
|
51
|
-
u(
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
u(i(N), {
|
|
52
|
+
variant: "body2",
|
|
53
|
+
"is-truncated": "",
|
|
54
|
+
class: "legend-label",
|
|
55
|
+
"with-tooltip": "",
|
|
56
|
+
"tooltip-text": e.label,
|
|
57
|
+
"tooltip-placement": "top"
|
|
58
|
+
}, {
|
|
59
|
+
default: S(() => [
|
|
60
|
+
U(B(e.label), 1)
|
|
54
61
|
]),
|
|
55
62
|
_: 2
|
|
56
|
-
},
|
|
63
|
+
}, 1032, ["tooltip-text"])
|
|
57
64
|
]))), 128))
|
|
58
65
|
], 16)
|
|
59
66
|
], 16)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./SettingsHeader.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../SettingsHeader.
|
|
4
|
-
const
|
|
3
|
+
// import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; //*');
|
|
4
|
+
const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9b6cd9d9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,57 +1,64 @@
|
|
|
1
|
-
import "../../SettingsHeader.
|
|
2
|
-
import
|
|
1
|
+
import "../../SettingsHeader.vue_vue_type_style_index_0_scoped_9b6cd9d9_lang.css"; import { defineComponent as h, computed as g, openBlock as y, createElementBlock as f, createElementVNode as r, normalizeClass as a, createVNode as l, unref as t, isRef as v, withCtx as T, mergeProps as w, renderSlot as p } from "vue";
|
|
2
|
+
import b from "../dropdown/v4/DropdownV4.vue.js";
|
|
3
3
|
import "../dropdown/v4/DefaultDropdownTrigger.vue.js";
|
|
4
4
|
import "../dropdown/v4/IconButtonDropdownTrigger.vue.js";
|
|
5
5
|
import "../dropdown/v4/ChipDropdownTrigger.vue.js";
|
|
6
6
|
import "../dropdown/v4/AppDropdownTrigger.vue.js";
|
|
7
|
-
import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
7
|
+
import k from "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import "../dropdown/v4/OptionV4.vue.js";
|
|
11
|
-
import { DROPDOWN_TYPE_OPTIONS as
|
|
12
|
-
const
|
|
11
|
+
import { DROPDOWN_TYPE_OPTIONS as c } from "./consts.js";
|
|
12
|
+
const _ = { class: "settings-header-container" }, B = { class: "chart-type-selection" }, R = /* @__PURE__ */ h({
|
|
13
13
|
__name: "SettingsHeader",
|
|
14
14
|
props: {
|
|
15
15
|
chartType: null,
|
|
16
16
|
hideLegend: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:chartType"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
19
|
+
setup(s, { emit: m }) {
|
|
20
|
+
const u = s, o = g({
|
|
21
21
|
get() {
|
|
22
|
-
return
|
|
22
|
+
return c.find(({ id: e }) => e === u.chartType);
|
|
23
23
|
},
|
|
24
24
|
set(e) {
|
|
25
|
-
|
|
25
|
+
m("update:chartType", e.id);
|
|
26
26
|
}
|
|
27
|
-
}),
|
|
28
|
-
return (e,
|
|
29
|
-
|
|
30
|
-
class:
|
|
27
|
+
}), i = (e) => `Chart: ${e.name}`;
|
|
28
|
+
return (e, d) => (y(), f("div", _, [
|
|
29
|
+
r("div", {
|
|
30
|
+
class: a(["settings", { "settings-spacer": !s.hideLegend }])
|
|
31
31
|
}, [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
selected:
|
|
35
|
-
"onUpdate:selected":
|
|
36
|
-
options:
|
|
32
|
+
r("div", B, [
|
|
33
|
+
l(t(b), {
|
|
34
|
+
selected: t(o),
|
|
35
|
+
"onUpdate:selected": d[0] || (d[0] = (n) => v(o) ? o.value = n : null),
|
|
36
|
+
options: t(c),
|
|
37
37
|
"option-name-key": "name",
|
|
38
|
-
"display-value":
|
|
38
|
+
"display-value": i,
|
|
39
39
|
placeholder: "Select chart type",
|
|
40
40
|
size: "small"
|
|
41
|
-
},
|
|
41
|
+
}, {
|
|
42
|
+
"dropdown-trigger": T(({ buttonTriggerProps: n }) => [
|
|
43
|
+
l(t(k), w(n, {
|
|
44
|
+
label: i(t(o))
|
|
45
|
+
}), null, 16, ["label"])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["selected", "options"])
|
|
42
49
|
]),
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
r("div", null, [
|
|
51
|
+
p(e.$slots, "metric", {}, void 0, !0)
|
|
45
52
|
])
|
|
46
53
|
], 2),
|
|
47
|
-
|
|
48
|
-
class:
|
|
54
|
+
r("div", {
|
|
55
|
+
class: a(["breakdowns", { "breakdowns-border": !s.hideLegend }])
|
|
49
56
|
}, [
|
|
50
|
-
|
|
57
|
+
p(e.$slots, "breakdowns", {}, void 0, !0)
|
|
51
58
|
], 2)
|
|
52
59
|
]));
|
|
53
60
|
}
|
|
54
61
|
});
|
|
55
62
|
export {
|
|
56
|
-
|
|
63
|
+
R as default
|
|
57
64
|
};
|