@ironsource/shared-ui 2.1.12-rc.50 → 2.1.12-rc.52
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_c13770d4_lang.css → ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css} +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_2d66b7b6_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_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/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.vue.js +3 -3
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +19 -19
- package/components/columnConfigurator/index.d.ts +1 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +1 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +3 -2
- package/components/dropdown/v4/index.d.ts +1 -0
- 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/index.d.ts +42 -2
- package/index.js +1 -1
- package/package.json +2 -1
- package/testids/index.d.ts +23 -0
- package/testids/index.js +28 -24
- 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_908ef54f_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_3a6b2681_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f9907ea0_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-container[data-v-060d02be]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-060d02be]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-060d02be]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-060d02be]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-060d02be]{border-left:1px solid var(--common-divider)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-header[data-v-d90c583e]{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}.chart-header--compact[data-v-d90c583e]{padding-top:22px}.chart-header--compact .header-texts[data-v-d90c583e]{flex-direction:row}.chart-header--compact .header-text[data-v-d90c583e]{color:var(--text-secondary)}.header-row[data-v-d90c583e]{display:flex;align-items:flex-end;gap:4px}.header-texts[data-v-d90c583e]{display:flex;flex-direction:column;color:var(--text-primary);gap:4px;cursor:default}.header-actions[data-v-d90c583e]{display:flex;align-items:center;gap:var(--spacing-200)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-trend[data-v-ca558859]{display:flex;color:var(--text-secondary)}.chart-trend--up[data-v-ca558859]{color:var(--success-contrast-text)}.chart-trend--up .trend-icon[data-v-ca558859]{color:var(--success-darker)}.chart-trend--down[data-v-ca558859]{color:var(--error-contrast-text)}.chart-trend--down .trend-icon[data-v-ca558859]{color:var(--error-dark)}.chart-trend--neutral[data-v-ca558859],.chart-trend--neutral .trend-icon[data-v-ca558859]{color:var(--text-secondary)}.trend-icon[data-v-ca558859]{display:flex;align-self:normal}.chart-trend-tooltip[data-v-ca558859]{align-items:normal}.trend-tooltip[data-v-ca558859]{display:flex;flex-direction:column}.trend-tooltip__header[data-v-ca558859]{margin-bottom:.375rem}.trend-tooltip__text[data-v-ca558859]{color:var(--text-secondary)}.separator[data-v-ca558859]{display:flex;align-items:center;gap:.5rem;justify-content:center;height:1.1875rem}.separator__text[data-v-ca558859]{display:block;color:var(--text-secondary)}.separator hr[data-v-ca558859]{width:100%;height:1px;border:0;background:var(--common-divider)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.disabled-tooltip[data-v-9c4df598],.disabled-tooltip[data-v-9c4df598] .container{width:100%}.chart-legend[data-v-9c4df598]{display:flex;flex-direction:column;width:240px;height:100%;padding:0 8px 8px 12px}.search-box[data-v-9c4df598]{padding:12px 0 4px;display:flex;align-items:center;gap:4px}.legend[data-v-9c4df598]{overflow-y:auto;color:var(--text-primary);height:100%;overflow-x:hidden}.legend__list[data-v-9c4df598]{list-style:none;padding:0}.legend__list>li[data-v-9c4df598]{display:flex;align-items:center;gap:8px;padding:6px 8px}.legend__list>li[data-v-9c4df598]:hover{background-color:var(--action-hover);border-radius:8px;cursor:pointer}.legend__list>li .icon-color[data-v-9c4df598]{color:var(--action-active)}.legend__list>li.disabled-item[data-v-9c4df598]{cursor:not-allowed!important;background:var(--background-paper);color:var(--text-disabled)}.legend__list>li.disabled-item .icon-color[data-v-9c4df598]{color:var(--text-disabled)}.legend__list>li.empty-list[data-v-9c4df598]{display:flex;align-items:center;justify-content:flex-start;height:32px;color:var(--text-disabled)}.legend__list>li.empty-list[data-v-9c4df598]:hover{background-color:transparent;cursor:default}.legend__list>li .item-wrapper[data-v-9c4df598]{display:flex;align-items:center;gap:8px;width:100%}.legend__list>li .item-wrapper .legend-label[data-v-9c4df598]{width:80%}.legend__list>li .item-wrapper .label-container[data-v-9c4df598]{display:flex;flex-direction:column;width:100%}.legend__list>li .item-wrapper .label-container .legend-caption[data-v-9c4df598]{display:flex;color:var(--text-secondary)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-plane-container[data-v-a685cf5e]{--headerHeight: var(--6a964917);width:100%;height:var(--322ee3fc);position:relative}.header-wrapper[data-v-a685cf5e]{position:absolute;width:100%;height:var(--headerHeight);top:0;z-index:1}.chart-plane[data-v-a685cf5e]{padding-top:var(--headerHeight);height:100%}.chart-empty[data-v-a685cf5e]{background:var(--background-paper)}.chart[data-v-a685cf5e]{width:100%;height:100%;position:relative}.chart__canvas[data-v-a685cf5e]{width:100%;height:100%}.chart__tooltip[data-v-a685cf5e]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px;z-index:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-tooltip[data-v-9623dbbd]{color:var(--text-primary);background:var(--common-white);box-shadow:0 4px 8px -2px #1018281f;border:1px solid var(--common-divider-elevation-0);border-radius:var(--border-radius-md);width:280px;padding:calc(var(--spacing-100) - 1px)}.color-box[data-v-9623dbbd]{min-width:12px;width:12px;height:12px;border-radius:2px;display:inline-block;margin-right:var(--spacing-100)}.color-box+.platform-icon[data-v-9623dbbd]{margin-left:calc(var(--spacing-50) - var(--spacing-100))}.list[data-v-9623dbbd]{list-style:none;margin:0;padding:0}.list__item[data-v-9623dbbd]{display:flex;align-items:center;margin-bottom:var(--spacing-50);color:var(--text-secondary)}.list__item[data-v-9623dbbd]:last-child{margin-bottom:0}.platform-icon[data-v-9623dbbd]{color:var(--action-active);margin-right:var(--spacing-50)}.popover-label-wrapper[data-v-9623dbbd]{display:flex;width:120px;flex-grow:1}.truncated-label[data-v-9623dbbd]{max-width:95%}.tooltip-footer[data-v-9623dbbd]{display:flex;align-items:center;margin-top:var(--spacing-100);color:var(--text-primary)}.flex-grow[data-v-9623dbbd]{flex-grow:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.column-configurator[data-v-
|
|
1
|
+
.column-configurator[data-v-702ad52e]{width:100%;padding:1rem .75rem .75rem;background:var(--background-paper);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);overflow-y:auto}.section-header[data-v-702ad52e]{display:flex;align-items:center;justify-content:space-between}.column-section[data-v-702ad52e]{margin-bottom:1.125rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.v-enter-active[data-v-2d66b7b6],.v-leave-active[data-v-2d66b7b6]{transition:opacity .25s ease}ol[data-v-2d66b7b6],ul[data-v-2d66b7b6],menu[data-v-2d66b7b6]{list-style:none;margin:0;padding:0}.dropdown.full-width[data-v-2d66b7b6],.dropdown.full-width .button__container[data-v-2d66b7b6]{width:100%}.dropdown-list-wrapper[data-v-2d66b7b6]{display:flex;flex-direction:column;padding:.5rem .5rem .25rem}.dropdown-list-wrapper--multi[data-v-2d66b7b6]{padding:.5rem}.list-container--multi[data-v-2d66b7b6]{margin-bottom:0}.inline-search .inline-search-wrapper[data-v-2d66b7b6]{display:flex;gap:4px;padding-bottom:.25rem}.inline-search .inline-search-wrapper .search-container[data-v-2d66b7b6]{width:100%}.inline-search .list-container[data-v-2d66b7b6]{padding-top:0}.no-result-container[data-v-2d66b7b6]{height:100%;display:flex;align-items:center;padding:.375rem .5rem;color:var(--text-disabled)}.no-result[data-v-2d66b7b6]{color:var(--text-disabled);padding-left:.5rem}.list[data-v-2d66b7b6]{outline:none;display:flex;flex-direction:column;width:100%;min-height:2rem}.list--multi[data-v-2d66b7b6]{margin-bottom:.5rem;border-bottom-left-radius:0;border-bottom-right-radius:0}.list--with-conditions[data-v-2d66b7b6]{min-height:0;margin-bottom:0}.image-slot[data-v-2d66b7b6]{margin-right:.5rem}.actions-wrapper[data-v-2d66b7b6]{display:flex;width:100%;padding:.5rem .5rem .5rem .125rem;padding-bottom:0;border-top:1px solid var(--common-divider);justify-content:space-between;margin-top:.25rem}.dropdown-footer[data-v-2d66b7b6]{display:flex;width:100%;padding:.5rem .5rem .375rem .4375rem;border-top:1px solid var(--common-divider);margin-top:.25rem}.apply-button[data-v-2d66b7b6]{margin-left:.5rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.empty-state[data-v-76757f22]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;background:var(--common-white);padding:var(--spacing-300)}.title-wrapper[data-v-76757f22]{color:var(--text-primary);display:flex;place-items:center;flex-direction:column}.empty-variant-icon[data-v-76757f22]{width:112px;height:112px}.custom-empty-icon[data-v-76757f22]{color:var(--default-outlined-border)}.title[data-v-76757f22]{margin-top:var(--spacing-75);color:var(--text-primary)}.subtitle[data-v-76757f22]{color:var(--text-secondary);margin-top:var(--spacing-75)}.button[data-v-76757f22]{margin-top:var(--spacing-150)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.settings-header-container[data-v-
|
|
1
|
+
.settings-header-container[data-v-a869d327]{display:flex;border:.0625rem solid var(--common-divider);border-radius:.375rem .375rem 0 0;border-bottom:none;background-color:var(--background-paper-elevation-0, #f9f9f9);justify-content:space-between}.settings-header-container .settings[data-v-a869d327]{display:flex;flex-direction:row;height:3.875rem;padding:.75rem 0 .75rem 1.5rem;align-items:center;gap:.75rem;flex:1}.settings-header-container .settings .chart-type-selection[data-v-a869d327]{display:flex;margin-right:auto;height:1.75rem;max-width:8.125rem}.settings-header-container .settings-spacer[data-v-a869d327]{padding:.75rem 1.5rem}.settings-header-container .breakdowns[data-v-a869d327]{display:flex;width:15.0625rem;height:3.875rem;padding:0 .75rem;flex-direction:column;justify-content:center;align-items:flex-start;gap:.75rem}.settings-header-container .breakdowns-border[data-v-a869d327]{border-left:.0625rem solid var(--common-divider)}
|
|
@@ -21,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
valuePrefix?: string;
|
|
22
22
|
indicateIncompleteData?: boolean;
|
|
23
23
|
tooltipExcludeTotalItem?: boolean;
|
|
24
|
+
testId?: string;
|
|
24
25
|
header?: string;
|
|
25
26
|
subheader?: string;
|
|
26
27
|
subheaderTooltip?: {
|
|
@@ -72,6 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
72
73
|
valueSuffix: string;
|
|
73
74
|
valuePrefix: string;
|
|
74
75
|
indicateIncompleteData: boolean;
|
|
76
|
+
testId: string;
|
|
75
77
|
header: string;
|
|
76
78
|
subheader: string;
|
|
77
79
|
subheaderTooltip: any;
|
|
@@ -120,6 +122,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
120
122
|
valuePrefix?: string;
|
|
121
123
|
indicateIncompleteData?: boolean;
|
|
122
124
|
tooltipExcludeTotalItem?: boolean;
|
|
125
|
+
testId?: string;
|
|
123
126
|
header?: string;
|
|
124
127
|
subheader?: string;
|
|
125
128
|
subheaderTooltip?: {
|
|
@@ -171,6 +174,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
171
174
|
valueSuffix: string;
|
|
172
175
|
valuePrefix: string;
|
|
173
176
|
indicateIncompleteData: boolean;
|
|
177
|
+
testId: string;
|
|
174
178
|
header: string;
|
|
175
179
|
subheader: string;
|
|
176
180
|
subheaderTooltip: any;
|
|
@@ -200,6 +204,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
200
204
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
201
205
|
}, {
|
|
202
206
|
header: string;
|
|
207
|
+
testId: string;
|
|
203
208
|
loading: boolean;
|
|
204
209
|
visibleIds: unknown[];
|
|
205
210
|
minVisible: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Chart.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-060d02be"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import "../../Chart.
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css"; import { defineComponent as P, ref as U, computed as n, openBlock as d, createElementBlock as b, Fragment as S, createBlock as D, unref as l, isRef as y, withCtx as s, renderSlot as u, createCommentVNode as A, createElementVNode as L, mergeProps as g, normalizeClass as $, createVNode as k, createSlots as M, renderList as R } from "vue";
|
|
2
2
|
import { useVModel as B } from "@vueuse/core";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import K from "./ChartLegend.vue.js";
|
|
4
|
+
import X from "./SettingsHeader.vue.js";
|
|
5
5
|
import V from "./ChartPlane.vue.js";
|
|
6
6
|
import { useColorsMap as z } from "./composables/useColorsMap.js";
|
|
7
|
-
import { DEFAULT_TICK_COUNT as
|
|
8
|
-
import { ChartType as
|
|
9
|
-
import { useChartHeight as
|
|
10
|
-
import { TotalType as
|
|
11
|
-
|
|
7
|
+
import { DEFAULT_TICK_COUNT as G, DEFAULT_MIN_VISIBLE as Y, DEFAULT_MAX_VISIBLE as j } from "./consts.js";
|
|
8
|
+
import { ChartType as q, DateInterval as J, TooltipOrder as Q, TrendDirection as W } from "./types.js";
|
|
9
|
+
import { useChartHeight as Z } from "./composables/useChartHeight.js";
|
|
10
|
+
import { TotalType as _, calculateTotal as tt } from "../../utils/totals.js";
|
|
11
|
+
import { useTestIdAttrs as et } from "../../utils/testIds.js";
|
|
12
|
+
import { ChartTestIdModifiers as p } from "../../testids/index.js";
|
|
13
|
+
const at = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "chart-sidebar"
|
|
14
|
-
},
|
|
16
|
+
}, mt = /* @__PURE__ */ P({
|
|
15
17
|
__name: "Chart",
|
|
16
18
|
props: {
|
|
17
19
|
dataSets: { default: () => [] },
|
|
18
20
|
visibleIds: { default: () => [] },
|
|
19
|
-
chartType: { default:
|
|
21
|
+
chartType: { default: q.Line },
|
|
20
22
|
parsing: { default: void 0 },
|
|
21
23
|
xAxisFormat: { default: "string" },
|
|
22
24
|
yAxisFormat: { default: "number" },
|
|
23
|
-
xAxisDateInterval: { default:
|
|
24
|
-
tickCount: { default:
|
|
25
|
+
xAxisDateInterval: { default: J.DAILY },
|
|
26
|
+
tickCount: { default: G },
|
|
25
27
|
truncateTickLabels: { type: Boolean, default: !1 },
|
|
26
28
|
loading: { type: Boolean, default: !1 },
|
|
27
29
|
empty: { type: Boolean, default: !1 },
|
|
28
30
|
withAnimation: { type: Boolean, default: !0 },
|
|
29
31
|
totalsChart: { type: Boolean, default: !1 },
|
|
30
|
-
tooltipTotalType: { default:
|
|
31
|
-
tooltipTotalCalcFn: { type: Function, default:
|
|
32
|
-
tooltipOrder: { default:
|
|
32
|
+
tooltipTotalType: { default: _.Total },
|
|
33
|
+
tooltipTotalCalcFn: { type: Function, default: tt },
|
|
34
|
+
tooltipOrder: { default: Q.Legend },
|
|
33
35
|
valueSuffix: { default: "" },
|
|
34
36
|
valuePrefix: { default: "" },
|
|
35
37
|
indicateIncompleteData: { type: Boolean, default: !1 },
|
|
36
38
|
tooltipExcludeTotalItem: { type: Boolean, default: !1 },
|
|
39
|
+
testId: { default: "" },
|
|
37
40
|
header: { default: "" },
|
|
38
41
|
subheader: { default: "" },
|
|
39
42
|
subheaderTooltip: { default: null },
|
|
40
43
|
keepSubheaderVisible: { type: Boolean, default: !1 },
|
|
41
44
|
trendValue: { default: null },
|
|
42
|
-
trendDirection: { default:
|
|
45
|
+
trendDirection: { default: W.UP },
|
|
43
46
|
trendTooltip: { default: null },
|
|
44
47
|
noteText: { default: "" },
|
|
45
48
|
noDataIcon: { default: "file-search" },
|
|
46
49
|
noDataTitle: { default: "No data to display" },
|
|
47
50
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
48
51
|
hideLegend: { type: Boolean, default: !1 },
|
|
49
|
-
minVisible: { default:
|
|
50
|
-
maxVisible: { default:
|
|
52
|
+
minVisible: { default: Y },
|
|
53
|
+
maxVisible: { default: j },
|
|
51
54
|
maxLimitTooltipText: { default: "" },
|
|
52
55
|
sortSelected: { default: null },
|
|
53
56
|
sortOptions: { default: () => [] },
|
|
@@ -59,123 +62,130 @@ const _ = {
|
|
|
59
62
|
colorVariant: { default: "default" }
|
|
60
63
|
},
|
|
61
64
|
emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
|
|
62
|
-
setup(
|
|
63
|
-
const
|
|
64
|
-
dataSets:
|
|
65
|
-
visibleIds:
|
|
66
|
-
parsing:
|
|
67
|
-
xAxisFormat:
|
|
68
|
-
yAxisFormat:
|
|
69
|
-
xAxisDateInterval:
|
|
70
|
-
tickCount:
|
|
71
|
-
truncateTickLabels:
|
|
72
|
-
header:
|
|
73
|
-
subheader:
|
|
74
|
-
noteText:
|
|
75
|
-
loading:
|
|
76
|
-
empty:
|
|
77
|
-
noDataIcon:
|
|
78
|
-
noDataTitle:
|
|
79
|
-
noDataSubtitle:
|
|
80
|
-
withAnimation:
|
|
81
|
-
typeSwitcher: !
|
|
82
|
-
height:
|
|
83
|
-
compactHeader:
|
|
84
|
-
trendValue:
|
|
85
|
-
trendDirection:
|
|
86
|
-
trendTooltip:
|
|
87
|
-
totalsChart:
|
|
88
|
-
subheaderTooltip:
|
|
89
|
-
keepSubheaderVisible:
|
|
90
|
-
colorsMap:
|
|
91
|
-
tooltipTotalType:
|
|
92
|
-
tooltipTotalCalcFn:
|
|
93
|
-
tooltipOrder:
|
|
94
|
-
highlightedId:
|
|
95
|
-
valueSuffix:
|
|
96
|
-
valuePrefix:
|
|
97
|
-
indicateIncompleteData:
|
|
98
|
-
tooltipExcludeTotalItem:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
65
|
+
setup(e, { emit: c }) {
|
|
66
|
+
const t = e, r = B(t, "chartType", c), f = B(t, "sortSelected", c), h = U(null), v = n(() => ({
|
|
67
|
+
dataSets: t.dataSets,
|
|
68
|
+
visibleIds: t.visibleIds,
|
|
69
|
+
parsing: t.parsing,
|
|
70
|
+
xAxisFormat: t.xAxisFormat,
|
|
71
|
+
yAxisFormat: t.yAxisFormat,
|
|
72
|
+
xAxisDateInterval: t.xAxisDateInterval,
|
|
73
|
+
tickCount: t.tickCount,
|
|
74
|
+
truncateTickLabels: t.truncateTickLabels,
|
|
75
|
+
header: t.header,
|
|
76
|
+
subheader: t.subheader,
|
|
77
|
+
noteText: t.noteText,
|
|
78
|
+
loading: t.loading,
|
|
79
|
+
empty: t.empty,
|
|
80
|
+
noDataIcon: t.noDataIcon,
|
|
81
|
+
noDataTitle: t.noDataTitle,
|
|
82
|
+
noDataSubtitle: t.noDataSubtitle,
|
|
83
|
+
withAnimation: t.withAnimation,
|
|
84
|
+
typeSwitcher: !t.withSettingsHeader,
|
|
85
|
+
height: N.value,
|
|
86
|
+
compactHeader: C.value > 1,
|
|
87
|
+
trendValue: t.trendValue,
|
|
88
|
+
trendDirection: t.trendDirection,
|
|
89
|
+
trendTooltip: t.trendTooltip,
|
|
90
|
+
totalsChart: t.totalsChart,
|
|
91
|
+
subheaderTooltip: t.subheaderTooltip,
|
|
92
|
+
keepSubheaderVisible: t.keepSubheaderVisible,
|
|
93
|
+
colorsMap: m.value,
|
|
94
|
+
tooltipTotalType: t.tooltipTotalType,
|
|
95
|
+
tooltipTotalCalcFn: t.tooltipTotalCalcFn,
|
|
96
|
+
tooltipOrder: t.tooltipOrder,
|
|
97
|
+
highlightedId: h.value,
|
|
98
|
+
valueSuffix: t.valueSuffix,
|
|
99
|
+
valuePrefix: t.valuePrefix,
|
|
100
|
+
indicateIncompleteData: t.indicateIncompleteData,
|
|
101
|
+
tooltipExcludeTotalItem: t.tooltipExcludeTotalItem,
|
|
102
|
+
testId: t.testId
|
|
103
|
+
})), E = n(() => t.dataSets), I = n(() => t.visibleIds), x = n(() => t.extraCharts.length), C = n(() => 1 + x.value), F = (a) => a === x.value - 1, { colorsMap: m } = z({
|
|
104
|
+
dataSets: E,
|
|
105
|
+
visibleIds: I,
|
|
106
|
+
variant: t.colorVariant
|
|
107
|
+
}), w = n(() => t.dataSets.map((a) => ({
|
|
108
|
+
id: a.id,
|
|
109
|
+
label: a.label,
|
|
110
|
+
caption: a.caption || null,
|
|
111
|
+
color: m.value[a.id] || null,
|
|
112
|
+
icon: a.icon || null,
|
|
113
|
+
iconType: a.iconType || "branded"
|
|
114
|
+
}))), { containerProps: H, eachPlaneHeight: N } = Z({
|
|
115
|
+
chartPlanesCount: C,
|
|
116
|
+
useFullHeight: t.fullHeight,
|
|
117
|
+
bottomSpacing: t.fullHeightBottomSpacing
|
|
118
|
+
}), O = et(t.testId, p);
|
|
119
|
+
return (a, i) => (d(), b(S, null, [
|
|
120
|
+
e.withSettingsHeader ? (d(), D(X, {
|
|
117
121
|
key: 0,
|
|
118
|
-
"chart-type":
|
|
119
|
-
"onUpdate:chart-type":
|
|
120
|
-
"hide-legend":
|
|
122
|
+
"chart-type": l(r),
|
|
123
|
+
"onUpdate:chart-type": i[0] || (i[0] = (o) => y(r) ? r.value = o : null),
|
|
124
|
+
"hide-legend": e.hideLegend,
|
|
125
|
+
"test-id": e.testId
|
|
121
126
|
}, {
|
|
122
127
|
"before-chart-type": s(() => [
|
|
123
|
-
u(
|
|
128
|
+
u(a.$slots, "before-chart-type", {}, void 0, !0)
|
|
124
129
|
]),
|
|
125
130
|
metric: s(() => [
|
|
126
|
-
u(
|
|
131
|
+
u(a.$slots, "metric", {}, void 0, !0)
|
|
127
132
|
]),
|
|
128
133
|
breakdowns: s(() => [
|
|
129
|
-
u(
|
|
134
|
+
u(a.$slots, "breakdowns", {}, void 0, !0)
|
|
130
135
|
]),
|
|
131
136
|
_: 3
|
|
132
|
-
}, 8, ["chart-type", "hide-legend"])) :
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
}, 8, ["chart-type", "hide-legend", "test-id"])) : A("", !0),
|
|
138
|
+
L("div", g({ class: "chart-container" }, {
|
|
139
|
+
...l(H),
|
|
140
|
+
...l(O)[l(p).CONTAINER]
|
|
141
|
+
}), [
|
|
142
|
+
L("section", {
|
|
143
|
+
class: $(["chart-planes", [{ "with-legend": !e.hideLegend }]])
|
|
136
144
|
}, [
|
|
137
|
-
|
|
138
|
-
"chart-type":
|
|
139
|
-
"onUpdate:chart-type":
|
|
140
|
-
},
|
|
141
|
-
|
|
145
|
+
k(V, g({
|
|
146
|
+
"chart-type": l(r),
|
|
147
|
+
"onUpdate:chart-type": i[1] || (i[1] = (o) => y(r) ? r.value = o : null)
|
|
148
|
+
}, l(v)), M({ _: 2 }, [
|
|
149
|
+
a.$slots["subheader-tooltip"] ? {
|
|
142
150
|
name: "subheader-tooltip",
|
|
143
151
|
fn: s(() => [
|
|
144
|
-
u(
|
|
152
|
+
u(a.$slots, "subheader-tooltip", {}, void 0, !0)
|
|
145
153
|
]),
|
|
146
154
|
key: "0"
|
|
147
155
|
} : void 0
|
|
148
156
|
]), 1040, ["chart-type"]),
|
|
149
|
-
(d(!0),
|
|
150
|
-
key:
|
|
157
|
+
(d(!0), b(S, null, R(e.extraCharts, (o, T) => (d(), D(V, g({
|
|
158
|
+
key: T,
|
|
151
159
|
class: "extra-chart-plane"
|
|
152
|
-
}, { ...
|
|
153
|
-
"chart-type":
|
|
154
|
-
"colors-map":
|
|
160
|
+
}, { ...l(v), ...o }, {
|
|
161
|
+
"chart-type": l(r),
|
|
162
|
+
"colors-map": l(m),
|
|
155
163
|
"type-switcher": !1,
|
|
156
|
-
"tooltip-respects-top-edge": !F(
|
|
157
|
-
|
|
164
|
+
"tooltip-respects-top-edge": !F(T),
|
|
165
|
+
"test-id": `${e.testId}-${l(p).EXTRA_CHART}-${T}`
|
|
166
|
+
}), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge", "test-id"]))), 128))
|
|
158
167
|
], 2),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"sort-selected":
|
|
162
|
-
"onUpdate:sort-selected":
|
|
163
|
-
"highlighted-id":
|
|
164
|
-
"onUpdate:highlighted-id":
|
|
165
|
-
items:
|
|
166
|
-
"visible-ids":
|
|
167
|
-
"max-limit-tooltip-text":
|
|
168
|
-
"sort-options":
|
|
169
|
-
"sort-option-name-key":
|
|
170
|
-
"min-visible":
|
|
171
|
-
"max-visible":
|
|
172
|
-
"
|
|
173
|
-
|
|
168
|
+
e.hideLegend ? A("", !0) : (d(), b("section", at, [
|
|
169
|
+
k(K, {
|
|
170
|
+
"sort-selected": l(f),
|
|
171
|
+
"onUpdate:sort-selected": i[2] || (i[2] = (o) => y(f) ? f.value = o : null),
|
|
172
|
+
"highlighted-id": h.value,
|
|
173
|
+
"onUpdate:highlighted-id": i[3] || (i[3] = (o) => h.value = o),
|
|
174
|
+
items: l(w),
|
|
175
|
+
"visible-ids": l(I),
|
|
176
|
+
"max-limit-tooltip-text": e.maxLimitTooltipText,
|
|
177
|
+
"sort-options": e.sortOptions,
|
|
178
|
+
"sort-option-name-key": e.sortOptionNameKey,
|
|
179
|
+
"min-visible": e.minVisible,
|
|
180
|
+
"max-visible": e.maxVisible,
|
|
181
|
+
"test-id": `${e.testId}-${l(p).LEGEND}`,
|
|
182
|
+
"onUpdate:visibleIds": i[4] || (i[4] = (o) => c("update:visibleIds", o))
|
|
183
|
+
}, null, 8, ["sort-selected", "highlighted-id", "items", "visible-ids", "max-limit-tooltip-text", "sort-options", "sort-option-name-key", "min-visible", "max-visible", "test-id"])
|
|
174
184
|
]))
|
|
175
185
|
], 16)
|
|
176
186
|
], 64));
|
|
177
187
|
}
|
|
178
188
|
});
|
|
179
189
|
export {
|
|
180
|
-
|
|
190
|
+
mt as default
|
|
181
191
|
};
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
17
17
|
trendValue?: string | number;
|
|
18
18
|
trendDirection?: TrendDirection;
|
|
19
19
|
noteText?: string;
|
|
20
|
+
testId?: string;
|
|
20
21
|
}>, {
|
|
21
22
|
chartType: ChartType;
|
|
22
23
|
typeSwitcher: boolean;
|
|
@@ -28,6 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
29
|
trendValue: any;
|
|
29
30
|
trendDirection: TrendDirection;
|
|
30
31
|
noteText: string;
|
|
32
|
+
testId: string;
|
|
31
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
34
|
"update:chartType": (type: ChartType) => void;
|
|
33
35
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -48,6 +50,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
50
|
trendValue?: string | number;
|
|
49
51
|
trendDirection?: TrendDirection;
|
|
50
52
|
noteText?: string;
|
|
53
|
+
testId?: string;
|
|
51
54
|
}>, {
|
|
52
55
|
chartType: ChartType;
|
|
53
56
|
typeSwitcher: boolean;
|
|
@@ -59,10 +62,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
62
|
trendValue: any;
|
|
60
63
|
trendDirection: TrendDirection;
|
|
61
64
|
noteText: string;
|
|
65
|
+
testId: string;
|
|
62
66
|
}>>> & {
|
|
63
67
|
"onUpdate:chartType"?: (type: ChartType) => any;
|
|
64
68
|
}, {
|
|
65
69
|
header: string;
|
|
70
|
+
testId: string;
|
|
66
71
|
compact: boolean;
|
|
67
72
|
chartType: ChartType;
|
|
68
73
|
trendTooltip: any;
|
|
@@ -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_d90c583e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d90c583e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -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
|
}>;
|