@ironsource/shared-ui 2.1.12-test.69 → 2.1.12-test.71
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_03771fa3_lang.css +1 -0
- package/ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_e53c6287_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_0dff3241_lang.css +1 -0
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
- package/components/chart/Chart.vue.d.ts +26 -1
- package/components/chart/Chart.vue.js +4 -4
- package/components/chart/Chart.vue2.js +68 -56
- package/components/chart/ChartPlane.vue.d.ts +21 -1
- package/components/chart/ChartPlane.vue.js +4 -4
- package/components/chart/ChartPlane.vue2.js +152 -141
- package/components/chart/ChartStoryArgs.d.ts +20 -1
- package/components/chart/ChartTooltip.vue.d.ts +16 -1
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +33 -29
- package/components/chart/TooltipHeader.vue.d.ts +6 -1
- package/components/chart/TooltipHeader.vue.js +2 -2
- package/components/chart/TooltipHeader.vue2.js +37 -27
- package/components/chart/composables/useChartHeight.d.ts +1 -1
- package/components/chart/composables/useChartHeight.js +16 -14
- package/components/chart/consts.d.ts +3 -2
- package/components/chart/consts.js +13 -12
- package/components/chart/index.d.ts +96 -1
- package/components/chart/mockData.d.ts +8 -0
- package/components/chart/types.d.ts +6 -0
- package/components/chart/types.js +4 -3
- package/components/chart/utils/utils.d.ts +1 -1
- package/components/chart/utils/utils.js +10 -10
- package/components/table/common/Table.common.d.ts +0 -1
- package/components/table/common/Table.common.js +38 -39
- package/components/table/common/consts.d.ts +1 -0
- package/components/table/common/consts.js +2 -1
- package/components/table/v4/DataGrid.vue.d.ts +4 -0
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +268 -229
- package/components/table/v4/index.d.ts +14 -0
- package/components/table/v4/storyUtils.d.ts +2 -0
- package/index.d.ts +28 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/Chart.vue_vue_type_style_index_0_scoped_82f5b24e_lang.css +0 -1
- package/ChartPlane.vue_vue_type_style_index_0_scoped_5c80d8cd_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_9e521454_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_86ea5d2a_lang.css +0 -1
- package/TooltipHeader.vue_vue_type_style_index_0_scoped_9f6cf389_lang.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-container[data-v-03771fa3]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-03771fa3]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-03771fa3]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-03771fa3]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-03771fa3]{border-left:1px solid var(--common-divider)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chart-plane-container[data-v-903fc6ae]{--headerHeight: var(--d271311a);width:100%;height:var(--6c5bc85e);position:relative}.header-wrapper[data-v-903fc6ae]{position:absolute;width:100%;height:var(--headerHeight);top:0;z-index:1}.chart-plane[data-v-903fc6ae]{padding-top:var(--headerHeight);height:100%}.chart[data-v-903fc6ae]{width:100%;height:100%;position:relative}.chart__canvas[data-v-903fc6ae]{width:100%;height:100%}.chart__tooltip[data-v-903fc6ae]{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-e53c6287]{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-e53c6287]{width:12px;height:12px;border-radius:2px;display:inline-block;margin-right:var(--spacing-100)}.color-box+.platform-icon[data-v-e53c6287]{margin-left:calc(var(--spacing-50) - var(--spacing-100))}.list[data-v-e53c6287]{list-style:none;margin:0;padding:0}.list__item[data-v-e53c6287]{display:flex;align-items:center;margin-bottom:var(--spacing-50);color:var(--text-secondary)}.list__item[data-v-e53c6287]:last-child{margin-bottom:0}.platform-icon[data-v-e53c6287]{color:var(--action-active);margin-right:var(--spacing-50)}.popover-label-wrapper[data-v-e53c6287]{display:flex;width:200px;flex-grow:1}.truncated-label[data-v-e53c6287]{max-width:90%}.tooltip-footer[data-v-e53c6287]{display:flex;align-items:center;margin-top:var(--spacing-100);color:var(--text-primary)}.flex-grow[data-v-e53c6287]{flex-grow:1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sticky[data-v-0dff3241]{position:sticky}.table-container[data-v-0dff3241]{width:100%;position:relative;display:flex;flex-direction:column}.table-header[data-v-0dff3241]{display:flex;align-items:center;height:calc(var(--spacing-800) - 1px);border-bottom:1px solid var(--common-divider);background-color:var(--background-paper-elevation-0);position:sticky;left:0;padding:var(--spacing-300)}.table-header .table-title[data-v-0dff3241]{display:flex;flex:1;align-items:center;justify-content:flex-start;height:100%;color:var(--text-primary)}.table-header .table-header-right[data-v-0dff3241]{display:flex;align-items:center;height:100%}.table-header .search-wrapper[data-v-0dff3241]{width:13.75rem}.table-header.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 3);top:0}.table-head-container[data-v-0dff3241]{display:flex;align-items:center;white-space:nowrap;color:var(--text-primary)}.table-footer[data-v-0dff3241]{color:var(--text-primary);background-color:var(--background-paper-elevation-0);padding:0 var(--spacing-300);display:flex;align-items:center;min-height:var(--spacing-600);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);border-top-right-radius:0;border-top-left-radius:0}.table-body-wrapper[data-v-0dff3241]{display:inline-table}.table-header-pre-search-content[data-v-0dff3241]{margin-right:var(--spacing-100);display:flex;align-items:center}.table-header-actions[data-v-0dff3241]{margin-left:var(--spacing-100);display:flex;align-items:center}.table-row[data-v-0dff3241]{position:relative}.table-row.loading[data-v-0dff3241]{opacity:.7}.table-row:not(.expanded):last-child>td[data-v-0dff3241]{border-bottom:none}.table-row.expanded:last-child>.expanded-row[data-v-0dff3241]{border-bottom:none}.expanded-row[data-v-0dff3241]{grid-column:var(--4f8f6bba);border-bottom:1px solid var(--common-divider);background-color:var(--background-default)}table[data-v-0dff3241]{position:relative;display:block;overflow:auto;background:var(--background-paper-elevation-0);border:1px solid var(--common-divider);color:var(--text-primary);text-align:left;table-layout:fixed;width:100%;max-height:100%;border-radius:var(--border-radius-md);border-collapse:collapse;border-spacing:0}table.hasFooter[data-v-0dff3241]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:none}table td[data-v-0dff3241],table th[data-v-0dff3241]{line-height:normal;padding:0 var(--spacing-200)}table td[data-v-0dff3241]:first-of-type,table th[data-v-0dff3241]:first-of-type{padding-left:var(--spacing-300)}table td[data-v-0dff3241]:last-of-type,table th[data-v-0dff3241]:last-of-type{padding-right:var(--spacing-300)}table td.expand-toggle-cell[data-v-0dff3241],table th.expand-toggle-cell[data-v-0dff3241]{padding-left:var(--spacing-150);padding-right:var(--spacing-75)}table>thead[data-v-0dff3241]{border-bottom:none;z-index:calc(var(--35c47222) + 1);display:inline-table;min-width:100%}table>thead>tr[data-v-0dff3241]{color:var(--text-primary);border-bottom:1px solid var(--common-divider);height:var(--spacing-500);display:grid;grid-template-columns:var(--731a605c)}table>thead>tr>th[data-v-0dff3241]{background:var(--background-paper-elevation-0);width:100%;display:flex;align-items:center;cursor:default}table>thead>tr>th.isSortable[data-v-0dff3241]{cursor:pointer}table>thead>tr>td[data-v-0dff3241]{display:flex;align-items:center}table>thead>tr>th.bordered[data-v-0dff3241],table>thead>tr>td.bordered[data-v-0dff3241]{border-right:1px solid var(--common-divider)}table>thead>tr>th.bordered.isStickyRight[data-v-0dff3241],table>thead>tr>td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>thead>tr>th.isTextRight[data-v-0dff3241],table>thead>tr>td.isTextRight[data-v-0dff3241]{justify-content:flex-end}table>thead.sticky[data-v-0dff3241]{position:sticky;top:0;background:var(--background-default)}table>thead.isStickyHeader[data-v-0dff3241]{z-index:calc(var(--35c47222) + 2);top:calc(var(--spacing-800) - 1px)}table .totals-row[data-v-0dff3241]{height:40px}table .totals-row[data-v-0dff3241]:hover{background:var(--background-paper-elevation-1)}table>tbody[data-v-0dff3241]{display:block}table>tbody>*>tr[data-v-0dff3241]{background-color:var(--background-default);height:auto;display:grid;align-items:center;grid-template-columns:var(--731a605c)}table>tbody>*>tr:nth-of-type(2n)>td[data-v-0dff3241]{background-color:var(--background-default)}table>tbody>*>tr:hover:not(.loading)>td[data-v-0dff3241],table>tbody>*>tr.activeMenu>td[data-v-0dff3241]{background-color:var(--background-paper-elevation-1)}table>tbody td[data-v-0dff3241]{background-color:var(--background-default);border:none;min-width:0;display:flex;height:auto;width:100%;place-items:center;border-bottom:1px solid var(--common-divider);justify-content:start}table>tbody td.bordered[data-v-0dff3241]{border-right:1px solid var(--common-divider)}table>tbody td.bordered.isStickyRight[data-v-0dff3241]{border-right:none;border-left:1px solid var(--common-divider)}table>tbody td.isTextRight[data-v-0dff3241]{justify-content:flex-end;text-align:right}.section-container[data-v-0dff3241]{left:0}.sections[data-v-0dff3241]{display:flex}.section[data-v-0dff3241]{padding:0 1.5rem;background:var(--background-default);left:0;height:32px;display:flex;align-items:flex-end;border-right:1px solid var(--common-divider)}.table-cell[data-v-0dff3241]{width:100%}.empty-state[data-v-0dff3241]{min-height:250px}.floating-row[data-v-0dff3241]{display:flex;inset:0;pointer-events:none;position:absolute;z-index:calc(var(--35c47222) + 1)}.floating-row *[data-v-0dff3241-s]{pointer-events:auto}.bg[data-v-0dff3241]{background:var(--background-default)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tooltip-title-wrapper[data-v-3b15c693]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-3b15c693]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-3b15c693]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-3b15c693]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-3b15c693]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-3b15c693]{color:var(--action-active)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartDataSet, ChartParsingConfig, ChartType, TooltipOrder, TrendDirection, ValueFormat } from './types';
|
|
1
|
+
import { ChartDataSet, ChartParsingConfig, ChartType, DateInterval, TooltipOrder, TrendDirection, ValueFormat } from './types';
|
|
2
2
|
import { TotalType } from '@/utils/totals';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
dataSets: ChartDataSet[];
|
|
@@ -7,14 +7,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
parsing?: ChartParsingConfig;
|
|
8
8
|
xAxisFormat?: ValueFormat;
|
|
9
9
|
yAxisFormat?: ValueFormat;
|
|
10
|
+
xAxisDateInterval?: DateInterval;
|
|
10
11
|
tickCount?: number;
|
|
11
12
|
truncateTickLabels?: boolean;
|
|
12
13
|
loading?: boolean;
|
|
14
|
+
empty?: boolean;
|
|
13
15
|
withAnimation?: boolean;
|
|
14
16
|
totalsChart?: boolean;
|
|
15
17
|
tooltipTotalType?: TotalType;
|
|
16
18
|
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
17
19
|
tooltipOrder?: TooltipOrder;
|
|
20
|
+
valueSuffix?: string;
|
|
21
|
+
valuePrefix?: string;
|
|
18
22
|
header?: string;
|
|
19
23
|
subheader?: string;
|
|
20
24
|
subheaderTooltip?: {
|
|
@@ -40,6 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
44
|
sortOptions?: unknown[];
|
|
41
45
|
sortOptionNameKey?: string;
|
|
42
46
|
fullHeight?: boolean;
|
|
47
|
+
fullHeightBottomSpacing?: number;
|
|
43
48
|
withSettingsHeader?: boolean;
|
|
44
49
|
extraCharts?: Record<string, unknown>[];
|
|
45
50
|
}>, {
|
|
@@ -48,15 +53,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
48
53
|
visibleIds: () => any[];
|
|
49
54
|
xAxisFormat: string;
|
|
50
55
|
yAxisFormat: string;
|
|
56
|
+
xAxisDateInterval: DateInterval;
|
|
51
57
|
parsing: any;
|
|
52
58
|
tickCount: number;
|
|
53
59
|
truncateTickLabels: boolean;
|
|
54
60
|
loading: boolean;
|
|
61
|
+
empty: boolean;
|
|
55
62
|
withAnimation: boolean;
|
|
56
63
|
totalsChart: boolean;
|
|
57
64
|
tooltipTotalType: TotalType;
|
|
58
65
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
59
66
|
tooltipOrder: TooltipOrder;
|
|
67
|
+
valueSuffix: string;
|
|
68
|
+
valuePrefix: string;
|
|
60
69
|
header: string;
|
|
61
70
|
subheader: string;
|
|
62
71
|
subheaderTooltip: any;
|
|
@@ -75,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
75
84
|
sortOptions: () => any[];
|
|
76
85
|
sortOptionNameKey: string;
|
|
77
86
|
fullHeight: boolean;
|
|
87
|
+
fullHeightBottomSpacing: number;
|
|
78
88
|
withSettingsHeader: boolean;
|
|
79
89
|
extraCharts: () => any[];
|
|
80
90
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -88,14 +98,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
88
98
|
parsing?: ChartParsingConfig;
|
|
89
99
|
xAxisFormat?: ValueFormat;
|
|
90
100
|
yAxisFormat?: ValueFormat;
|
|
101
|
+
xAxisDateInterval?: DateInterval;
|
|
91
102
|
tickCount?: number;
|
|
92
103
|
truncateTickLabels?: boolean;
|
|
93
104
|
loading?: boolean;
|
|
105
|
+
empty?: boolean;
|
|
94
106
|
withAnimation?: boolean;
|
|
95
107
|
totalsChart?: boolean;
|
|
96
108
|
tooltipTotalType?: TotalType;
|
|
97
109
|
tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
|
|
98
110
|
tooltipOrder?: TooltipOrder;
|
|
111
|
+
valueSuffix?: string;
|
|
112
|
+
valuePrefix?: string;
|
|
99
113
|
header?: string;
|
|
100
114
|
subheader?: string;
|
|
101
115
|
subheaderTooltip?: {
|
|
@@ -121,6 +135,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
121
135
|
sortOptions?: unknown[];
|
|
122
136
|
sortOptionNameKey?: string;
|
|
123
137
|
fullHeight?: boolean;
|
|
138
|
+
fullHeightBottomSpacing?: number;
|
|
124
139
|
withSettingsHeader?: boolean;
|
|
125
140
|
extraCharts?: Record<string, unknown>[];
|
|
126
141
|
}>, {
|
|
@@ -129,15 +144,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
129
144
|
visibleIds: () => any[];
|
|
130
145
|
xAxisFormat: string;
|
|
131
146
|
yAxisFormat: string;
|
|
147
|
+
xAxisDateInterval: DateInterval;
|
|
132
148
|
parsing: any;
|
|
133
149
|
tickCount: number;
|
|
134
150
|
truncateTickLabels: boolean;
|
|
135
151
|
loading: boolean;
|
|
152
|
+
empty: boolean;
|
|
136
153
|
withAnimation: boolean;
|
|
137
154
|
totalsChart: boolean;
|
|
138
155
|
tooltipTotalType: TotalType;
|
|
139
156
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
140
157
|
tooltipOrder: TooltipOrder;
|
|
158
|
+
valueSuffix: string;
|
|
159
|
+
valuePrefix: string;
|
|
141
160
|
header: string;
|
|
142
161
|
subheader: string;
|
|
143
162
|
subheaderTooltip: any;
|
|
@@ -156,6 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
156
175
|
sortOptions: () => any[];
|
|
157
176
|
sortOptionNameKey: string;
|
|
158
177
|
fullHeight: boolean;
|
|
178
|
+
fullHeightBottomSpacing: number;
|
|
159
179
|
withSettingsHeader: boolean;
|
|
160
180
|
extraCharts: () => any[];
|
|
161
181
|
}>>> & {
|
|
@@ -175,9 +195,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
175
195
|
chartType: ChartType;
|
|
176
196
|
hideLegend: boolean;
|
|
177
197
|
xAxisFormat: ValueFormat;
|
|
198
|
+
xAxisDateInterval: DateInterval;
|
|
178
199
|
totalsChart: boolean;
|
|
179
200
|
parsing: ChartParsingConfig;
|
|
180
201
|
yAxisFormat: ValueFormat;
|
|
202
|
+
valueSuffix: string;
|
|
203
|
+
valuePrefix: string;
|
|
181
204
|
dataSets: ChartDataSet[];
|
|
182
205
|
trendTooltip: any;
|
|
183
206
|
subheader: string;
|
|
@@ -187,6 +210,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
187
210
|
tickCount: number;
|
|
188
211
|
truncateTickLabels: boolean;
|
|
189
212
|
keepSubheaderVisible: boolean;
|
|
213
|
+
empty: boolean;
|
|
190
214
|
noDataIcon: string;
|
|
191
215
|
noDataTitle: string;
|
|
192
216
|
noDataSubtitle: string;
|
|
@@ -195,6 +219,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
195
219
|
tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
|
|
196
220
|
tooltipOrder: TooltipOrder;
|
|
197
221
|
fullHeight: boolean;
|
|
222
|
+
fullHeightBottomSpacing: number;
|
|
198
223
|
withSettingsHeader: boolean;
|
|
199
224
|
extraCharts: Record<string, unknown>[];
|
|
200
225
|
}>, {
|
|
@@ -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 _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-03771fa3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import "../../Chart.
|
|
2
|
-
import { useVModel as
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_03771fa3_lang.css"; import { defineComponent as U, ref as O, computed as n, openBlock as s, createElementBlock as m, Fragment as C, createBlock as I, unref as i, isRef as b, withCtx as d, renderSlot as u, createCommentVNode as D, createElementVNode as k, mergeProps as g, normalizeClass as E, createVNode as L, createSlots as N, renderList as M } from "vue";
|
|
2
|
+
import { useVModel as A } from "@vueuse/core";
|
|
3
3
|
import $ from "./ChartLegend.vue.js";
|
|
4
4
|
import K from "./SettingsHeader.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import B from "./ChartPlane.vue.js";
|
|
6
6
|
import { useColorsMap as z } from "./composables/useColorsMap.js";
|
|
7
|
-
import { DEFAULT_TICK_COUNT as R, DEFAULT_MIN_VISIBLE as X, DEFAULT_MAX_VISIBLE as
|
|
8
|
-
import { ChartType as q, TooltipOrder as G, TrendDirection as J } from "./types.js";
|
|
7
|
+
import { DEFAULT_TICK_COUNT as R, DEFAULT_MIN_VISIBLE as X, DEFAULT_MAX_VISIBLE as Y } from "./consts.js";
|
|
8
|
+
import { ChartType as j, DateInterval as q, TooltipOrder as G, TrendDirection as J } from "./types.js";
|
|
9
9
|
import { useChartHeight as Q } from "./composables/useChartHeight.js";
|
|
10
|
-
import { TotalType as W, calculateTotal as
|
|
11
|
-
const
|
|
10
|
+
import { TotalType as W, calculateTotal as Z } from "../../utils/totals.js";
|
|
11
|
+
const _ = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "chart-sidebar"
|
|
14
|
-
},
|
|
14
|
+
}, ue = /* @__PURE__ */ U({
|
|
15
15
|
__name: "Chart",
|
|
16
16
|
props: {
|
|
17
17
|
dataSets: { default: () => [] },
|
|
18
18
|
visibleIds: { default: () => [] },
|
|
19
|
-
chartType: { default:
|
|
19
|
+
chartType: { default: j.Line },
|
|
20
20
|
parsing: { default: void 0 },
|
|
21
21
|
xAxisFormat: { default: "string" },
|
|
22
22
|
yAxisFormat: { default: "number" },
|
|
23
|
+
xAxisDateInterval: { default: q.DAILY },
|
|
23
24
|
tickCount: { default: R },
|
|
24
|
-
truncateTickLabels: { type: Boolean, default: !
|
|
25
|
+
truncateTickLabels: { type: Boolean, default: !1 },
|
|
25
26
|
loading: { type: Boolean, default: !1 },
|
|
27
|
+
empty: { type: Boolean, default: !1 },
|
|
26
28
|
withAnimation: { type: Boolean, default: !0 },
|
|
27
29
|
totalsChart: { type: Boolean, default: !1 },
|
|
28
30
|
tooltipTotalType: { default: W.Total },
|
|
29
|
-
tooltipTotalCalcFn: { type: Function, default:
|
|
31
|
+
tooltipTotalCalcFn: { type: Function, default: Z },
|
|
30
32
|
tooltipOrder: { default: G.Legend },
|
|
33
|
+
valueSuffix: { default: "" },
|
|
34
|
+
valuePrefix: { default: "" },
|
|
31
35
|
header: { default: "" },
|
|
32
36
|
subheader: { default: "" },
|
|
33
37
|
subheaderTooltip: { default: null },
|
|
@@ -40,35 +44,38 @@ const Z = {
|
|
|
40
44
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
41
45
|
hideLegend: { type: Boolean, default: !1 },
|
|
42
46
|
minVisible: { default: X },
|
|
43
|
-
maxVisible: { default:
|
|
47
|
+
maxVisible: { default: Y },
|
|
44
48
|
maxLimitTooltipText: { default: "" },
|
|
45
49
|
sortSelected: { default: null },
|
|
46
50
|
sortOptions: { default: () => [] },
|
|
47
51
|
sortOptionNameKey: { default: "" },
|
|
48
52
|
fullHeight: { type: Boolean, default: !1 },
|
|
53
|
+
fullHeightBottomSpacing: { default: 50 },
|
|
49
54
|
withSettingsHeader: { type: Boolean, default: !0 },
|
|
50
55
|
extraCharts: { default: () => [] }
|
|
51
56
|
},
|
|
52
57
|
emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
|
|
53
|
-
setup(
|
|
54
|
-
const e =
|
|
58
|
+
setup(a, { emit: p }) {
|
|
59
|
+
const e = a, r = A(e, "chartType", p), c = A(e, "sortSelected", p), h = O(null), y = n(() => ({
|
|
55
60
|
dataSets: e.dataSets,
|
|
56
61
|
visibleIds: e.visibleIds,
|
|
57
62
|
parsing: e.parsing,
|
|
58
63
|
xAxisFormat: e.xAxisFormat,
|
|
59
64
|
yAxisFormat: e.yAxisFormat,
|
|
65
|
+
xAxisDateInterval: e.xAxisDateInterval,
|
|
60
66
|
tickCount: e.tickCount,
|
|
61
67
|
truncateTickLabels: e.truncateTickLabels,
|
|
62
68
|
header: e.header,
|
|
63
69
|
subheader: e.subheader,
|
|
64
70
|
loading: e.loading,
|
|
71
|
+
empty: e.empty,
|
|
65
72
|
noDataIcon: e.noDataIcon,
|
|
66
73
|
noDataTitle: e.noDataTitle,
|
|
67
74
|
noDataSubtitle: e.noDataSubtitle,
|
|
68
75
|
withAnimation: e.withAnimation,
|
|
69
76
|
typeSwitcher: !e.withSettingsHeader,
|
|
70
|
-
height:
|
|
71
|
-
compactHeader:
|
|
77
|
+
height: P.value,
|
|
78
|
+
compactHeader: x.value > 1,
|
|
72
79
|
trendValue: e.trendValue,
|
|
73
80
|
trendDirection: e.trendDirection,
|
|
74
81
|
trendTooltip: e.trendTooltip,
|
|
@@ -79,27 +86,30 @@ const Z = {
|
|
|
79
86
|
tooltipTotalType: e.tooltipTotalType,
|
|
80
87
|
tooltipTotalCalcFn: e.tooltipTotalCalcFn,
|
|
81
88
|
tooltipOrder: e.tooltipOrder,
|
|
82
|
-
highlightedId:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
89
|
+
highlightedId: h.value,
|
|
90
|
+
valueSuffix: e.valueSuffix,
|
|
91
|
+
valuePrefix: e.valuePrefix
|
|
92
|
+
})), V = n(() => e.dataSets), v = n(() => e.visibleIds), T = n(() => e.extraCharts.length), x = n(() => 1 + T.value), F = (t) => t === T.value - 1, { colorsMap: f } = z({
|
|
93
|
+
dataSets: V,
|
|
94
|
+
visibleIds: v
|
|
95
|
+
}), w = n(() => e.dataSets.map((t) => ({
|
|
87
96
|
id: t.id,
|
|
88
97
|
label: t.label,
|
|
89
98
|
caption: t.caption || null,
|
|
90
99
|
color: f.value[t.id] || null,
|
|
91
100
|
icon: t.icon || null,
|
|
92
101
|
iconType: t.iconType || "branded"
|
|
93
|
-
}))), { containerProps: H, eachPlaneHeight:
|
|
94
|
-
chartPlanesCount:
|
|
95
|
-
useFullHeight: e.fullHeight
|
|
102
|
+
}))), { containerProps: H, eachPlaneHeight: P } = Q({
|
|
103
|
+
chartPlanesCount: x,
|
|
104
|
+
useFullHeight: e.fullHeight,
|
|
105
|
+
bottomSpacing: e.fullHeightBottomSpacing
|
|
96
106
|
});
|
|
97
|
-
return (t, o) => (s(), m(
|
|
98
|
-
|
|
107
|
+
return (t, o) => (s(), m(C, null, [
|
|
108
|
+
a.withSettingsHeader ? (s(), I(K, {
|
|
99
109
|
key: 0,
|
|
100
|
-
"chart-type":
|
|
101
|
-
"onUpdate:chart-type": o[0] || (o[0] = (
|
|
102
|
-
"hide-legend":
|
|
110
|
+
"chart-type": i(r),
|
|
111
|
+
"onUpdate:chart-type": o[0] || (o[0] = (l) => b(r) ? r.value = l : null),
|
|
112
|
+
"hide-legend": a.hideLegend
|
|
103
113
|
}, {
|
|
104
114
|
"before-chart-type": d(() => [
|
|
105
115
|
u(t.$slots, "before-chart-type", {}, void 0, !0)
|
|
@@ -111,15 +121,15 @@ const Z = {
|
|
|
111
121
|
u(t.$slots, "breakdowns", {}, void 0, !0)
|
|
112
122
|
]),
|
|
113
123
|
_: 3
|
|
114
|
-
}, 8, ["chart-type", "hide-legend"])) :
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class:
|
|
124
|
+
}, 8, ["chart-type", "hide-legend"])) : D("", !0),
|
|
125
|
+
k("div", g({ class: "chart-container" }, i(H)), [
|
|
126
|
+
k("section", {
|
|
127
|
+
class: E(["chart-planes", [{ "with-legend": !a.hideLegend }]])
|
|
118
128
|
}, [
|
|
119
|
-
|
|
120
|
-
"chart-type":
|
|
121
|
-
"onUpdate:chart-type": o[1] || (o[1] = (
|
|
122
|
-
},
|
|
129
|
+
L(B, g({
|
|
130
|
+
"chart-type": i(r),
|
|
131
|
+
"onUpdate:chart-type": o[1] || (o[1] = (l) => b(r) ? r.value = l : null)
|
|
132
|
+
}, i(y)), N({ _: 2 }, [
|
|
123
133
|
t.$slots["subheader-tooltip"] ? {
|
|
124
134
|
name: "subheader-tooltip",
|
|
125
135
|
fn: d(() => [
|
|
@@ -128,34 +138,36 @@ const Z = {
|
|
|
128
138
|
key: "0"
|
|
129
139
|
} : void 0
|
|
130
140
|
]), 1040, ["chart-type"]),
|
|
131
|
-
(s(!0), m(
|
|
141
|
+
(s(!0), m(C, null, M(a.extraCharts, (l, S) => (s(), I(B, g({
|
|
132
142
|
key: S,
|
|
133
143
|
class: "extra-chart-plane"
|
|
134
|
-
}, { ...
|
|
135
|
-
"chart-type":
|
|
136
|
-
"colors-map":
|
|
144
|
+
}, { ...i(y), ...l }, {
|
|
145
|
+
"chart-type": i(r),
|
|
146
|
+
"colors-map": i(f),
|
|
137
147
|
"type-switcher": !1,
|
|
138
|
-
"tooltip-respects-top-edge": !
|
|
148
|
+
"tooltip-respects-top-edge": !F(S)
|
|
139
149
|
}), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge"]))), 128))
|
|
140
150
|
], 2),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"sort-selected":
|
|
144
|
-
"onUpdate:sort-selected": o[2] || (o[2] = (
|
|
145
|
-
"highlighted-id":
|
|
146
|
-
"onUpdate:highlighted-id": o[3] || (o[3] = (
|
|
147
|
-
items:
|
|
148
|
-
"visible-ids":
|
|
149
|
-
"max-limit-tooltip-text":
|
|
150
|
-
"sort-options":
|
|
151
|
-
"sort-option-name-key":
|
|
152
|
-
"
|
|
153
|
-
|
|
151
|
+
a.hideLegend ? D("", !0) : (s(), m("section", _, [
|
|
152
|
+
L($, {
|
|
153
|
+
"sort-selected": i(c),
|
|
154
|
+
"onUpdate:sort-selected": o[2] || (o[2] = (l) => b(c) ? c.value = l : null),
|
|
155
|
+
"highlighted-id": h.value,
|
|
156
|
+
"onUpdate:highlighted-id": o[3] || (o[3] = (l) => h.value = l),
|
|
157
|
+
items: i(w),
|
|
158
|
+
"visible-ids": i(v),
|
|
159
|
+
"max-limit-tooltip-text": a.maxLimitTooltipText,
|
|
160
|
+
"sort-options": a.sortOptions,
|
|
161
|
+
"sort-option-name-key": a.sortOptionNameKey,
|
|
162
|
+
"min-visible": a.minVisible,
|
|
163
|
+
"max-visible": a.maxVisible,
|
|
164
|
+
"onUpdate:visibleIds": o[4] || (o[4] = (l) => p("update:visibleIds", l))
|
|
165
|
+
}, null, 8, ["sort-selected", "highlighted-id", "items", "visible-ids", "max-limit-tooltip-text", "sort-options", "sort-option-name-key", "min-visible", "max-visible"])
|
|
154
166
|
]))
|
|
155
167
|
], 16)
|
|
156
168
|
], 64));
|
|
157
169
|
}
|
|
158
170
|
});
|
|
159
171
|
export {
|
|
160
|
-
|
|
172
|
+
ue as default
|
|
161
173
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartDataSet, ChartParsingConfig, ChartType, TooltipOrder, TrendDirection, ValueFormat } from './types';
|
|
1
|
+
import { ChartDataSet, ChartParsingConfig, ChartType, DateInterval, TooltipOrder, TrendDirection, ValueFormat } from './types';
|
|
2
2
|
import { TotalType } from '@/utils/totals';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
dataSets: ChartDataSet[];
|
|
@@ -8,6 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
parsing?: ChartParsingConfig;
|
|
9
9
|
xAxisFormat?: ValueFormat;
|
|
10
10
|
yAxisFormat?: ValueFormat;
|
|
11
|
+
xAxisDateInterval?: DateInterval;
|
|
11
12
|
tickCount?: number;
|
|
12
13
|
truncateTickLabels?: boolean;
|
|
13
14
|
header?: string;
|
|
@@ -18,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
19
|
};
|
|
19
20
|
keepSubheaderVisible?: boolean;
|
|
20
21
|
loading?: boolean;
|
|
22
|
+
empty?: boolean;
|
|
21
23
|
noDataIcon?: string;
|
|
22
24
|
noDataTitle?: string;
|
|
23
25
|
noDataSubtitle?: string;
|
|
@@ -38,6 +40,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
38
40
|
};
|
|
39
41
|
totalsChart?: boolean;
|
|
40
42
|
colorsMap: Record<string, string>;
|
|
43
|
+
valueSuffix?: string;
|
|
44
|
+
valuePrefix?: string;
|
|
41
45
|
}>, {
|
|
42
46
|
chartType: ChartType;
|
|
43
47
|
dataSets: () => any[];
|
|
@@ -45,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
49
|
highlightedId: any;
|
|
46
50
|
xAxisFormat: string;
|
|
47
51
|
yAxisFormat: string;
|
|
52
|
+
xAxisDateInterval: DateInterval;
|
|
48
53
|
parsing: any;
|
|
49
54
|
tickCount: number;
|
|
50
55
|
truncateTickLabels: boolean;
|
|
@@ -53,6 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
53
58
|
subheaderTooltip: any;
|
|
54
59
|
keepSubheaderVisible: boolean;
|
|
55
60
|
loading: boolean;
|
|
61
|
+
empty: boolean;
|
|
56
62
|
noDataIcon: string;
|
|
57
63
|
noDataTitle: string;
|
|
58
64
|
noDataSubtitle: string;
|
|
@@ -69,6 +75,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
69
75
|
trendTooltip: any;
|
|
70
76
|
totalsChart: boolean;
|
|
71
77
|
colorsMap: () => {};
|
|
78
|
+
valueSuffix: string;
|
|
79
|
+
valuePrefix: string;
|
|
72
80
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
81
|
"update:chartType": (chartType: ChartType) => void;
|
|
74
82
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -79,6 +87,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
79
87
|
parsing?: ChartParsingConfig;
|
|
80
88
|
xAxisFormat?: ValueFormat;
|
|
81
89
|
yAxisFormat?: ValueFormat;
|
|
90
|
+
xAxisDateInterval?: DateInterval;
|
|
82
91
|
tickCount?: number;
|
|
83
92
|
truncateTickLabels?: boolean;
|
|
84
93
|
header?: string;
|
|
@@ -89,6 +98,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
89
98
|
};
|
|
90
99
|
keepSubheaderVisible?: boolean;
|
|
91
100
|
loading?: boolean;
|
|
101
|
+
empty?: boolean;
|
|
92
102
|
noDataIcon?: string;
|
|
93
103
|
noDataTitle?: string;
|
|
94
104
|
noDataSubtitle?: string;
|
|
@@ -109,6 +119,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
109
119
|
};
|
|
110
120
|
totalsChart?: boolean;
|
|
111
121
|
colorsMap: Record<string, string>;
|
|
122
|
+
valueSuffix?: string;
|
|
123
|
+
valuePrefix?: string;
|
|
112
124
|
}>, {
|
|
113
125
|
chartType: ChartType;
|
|
114
126
|
dataSets: () => any[];
|
|
@@ -116,6 +128,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
116
128
|
highlightedId: any;
|
|
117
129
|
xAxisFormat: string;
|
|
118
130
|
yAxisFormat: string;
|
|
131
|
+
xAxisDateInterval: DateInterval;
|
|
119
132
|
parsing: any;
|
|
120
133
|
tickCount: number;
|
|
121
134
|
truncateTickLabels: boolean;
|
|
@@ -124,6 +137,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
124
137
|
subheaderTooltip: any;
|
|
125
138
|
keepSubheaderVisible: boolean;
|
|
126
139
|
loading: boolean;
|
|
140
|
+
empty: boolean;
|
|
127
141
|
noDataIcon: string;
|
|
128
142
|
noDataTitle: string;
|
|
129
143
|
noDataSubtitle: string;
|
|
@@ -140,6 +154,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
140
154
|
trendTooltip: any;
|
|
141
155
|
totalsChart: boolean;
|
|
142
156
|
colorsMap: () => {};
|
|
157
|
+
valueSuffix: string;
|
|
158
|
+
valuePrefix: string;
|
|
143
159
|
}>>> & {
|
|
144
160
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
145
161
|
}, {
|
|
@@ -150,9 +166,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
150
166
|
highlightedId: string | number;
|
|
151
167
|
chartType: ChartType;
|
|
152
168
|
xAxisFormat: ValueFormat;
|
|
169
|
+
xAxisDateInterval: DateInterval;
|
|
153
170
|
totalsChart: boolean;
|
|
154
171
|
parsing: ChartParsingConfig;
|
|
155
172
|
yAxisFormat: ValueFormat;
|
|
173
|
+
valueSuffix: string;
|
|
174
|
+
valuePrefix: string;
|
|
156
175
|
dataSets: ChartDataSet[];
|
|
157
176
|
trendTooltip: any;
|
|
158
177
|
subheader: string;
|
|
@@ -163,6 +182,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
163
182
|
tickCount: number;
|
|
164
183
|
truncateTickLabels: boolean;
|
|
165
184
|
keepSubheaderVisible: boolean;
|
|
185
|
+
empty: boolean;
|
|
166
186
|
noDataIcon: string;
|
|
167
187
|
noDataTitle: string;
|
|
168
188
|
noDataSubtitle: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ChartPlane.
|
|
4
|
-
const s = /* @__PURE__ */ e
|
|
1
|
+
import e from "./ChartPlane.vue2.js";
|
|
2
|
+
/* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ChartPlane.vue_vue_type_style_index_0_scoped_903fc6ae_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-903fc6ae"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|