@ironsource/shared-ui 2.1.12-rc.16 → 2.1.12-rc.18

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.
Files changed (50) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_5525b3bc_lang.css +1 -0
  2. package/ChartHeader.vue_vue_type_style_index_0_scoped_da34b108_lang.css +1 -0
  3. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_79dc2883_lang.css +1 -0
  4. package/ChartPlane.vue_vue_type_style_index_0_scoped_fc79a730_lang.css +1 -0
  5. package/ChartTooltip.vue_vue_type_style_index_0_scoped_cb98e9e3_lang.css +1 -0
  6. package/SubHeader.vue_vue_type_style_index_0_scoped_e6008b6c_lang.css +1 -0
  7. package/TooltipHeader.vue_vue_type_style_index_0_scoped_3b15c693_lang.css +1 -0
  8. package/components/chart/Chart.vue.d.ts +26 -6
  9. package/components/chart/Chart.vue.js +4 -4
  10. package/components/chart/Chart.vue2.js +84 -76
  11. package/components/chart/ChartHeader.vue.d.ts +7 -7
  12. package/components/chart/ChartHeader.vue.js +3 -3
  13. package/components/chart/ChartHeader.vue2.js +48 -79
  14. package/components/chart/ChartHeaderTrend.vue.d.ts +6 -5
  15. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  16. package/components/chart/ChartHeaderTrend.vue2.js +15 -14
  17. package/components/chart/ChartPlane.vue.d.ts +27 -7
  18. package/components/chart/ChartPlane.vue.js +3 -3
  19. package/components/chart/ChartPlane.vue2.js +282 -267
  20. package/components/chart/ChartStoryArgs.d.ts +31 -2
  21. package/components/chart/ChartTooltip.vue.d.ts +6 -1
  22. package/components/chart/ChartTooltip.vue.js +3 -3
  23. package/components/chart/ChartTooltip.vue2.js +26 -24
  24. package/components/chart/SubHeader.vue.d.ts +52 -0
  25. package/components/chart/SubHeader.vue.js +7 -0
  26. package/components/chart/SubHeader.vue2.js +61 -0
  27. package/components/chart/{components/TooltipHeader.vue.d.ts → TooltipHeader.vue.d.ts} +6 -1
  28. package/components/chart/TooltipHeader.vue.js +7 -0
  29. package/components/chart/TooltipHeader.vue2.js +69 -0
  30. package/components/chart/colorPalette.d.ts +1 -1
  31. package/components/chart/colorPalette.js +23 -23
  32. package/components/chart/composables/useChartHeight.d.ts +1 -1
  33. package/components/chart/consts.d.ts +12 -12
  34. package/components/chart/consts.js +32 -32
  35. package/components/chart/index.d.ts +109 -32
  36. package/components/chart/mockData.d.ts +8 -0
  37. package/components/chart/types.d.ts +14 -0
  38. package/components/chart/types.js +5 -2
  39. package/components/chart/utils/highlightUtils.d.ts +1 -1
  40. package/components/chart/utils/utils.d.ts +1 -1
  41. package/index.js +12 -8
  42. package/package.json +1 -1
  43. package/Chart.vue_vue_type_style_index_0_scoped_4e9ce62f_lang.css +0 -1
  44. package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +0 -1
  45. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +0 -1
  46. package/ChartPlane.vue_vue_type_style_index_0_scoped_64dcfb5d_lang.css +0 -1
  47. package/ChartTooltip.vue_vue_type_style_index_0_scoped_81cdfd5e_lang.css +0 -1
  48. package/TooltipHeader.vue_vue_type_style_index_0_scoped_40d98a66_lang.css +0 -1
  49. package/components/chart/components/TooltipHeader.vue.js +0 -7
  50. package/components/chart/components/TooltipHeader.vue2.js +0 -59
@@ -1,47 +1,47 @@
1
1
  import { ChartType as _ } from "./types.js";
2
- const I = "#fcfcfc", T = "#E4E4E4", t = "#646464", O = {
2
+ const t = "#fcfcfc", n = "#E4E4E4", T = "#646464", o = {
3
3
  size: 12,
4
4
  weight: 400,
5
5
  family: "Inter"
6
- }, n = 4, N = 1, R = 5, o = [
6
+ }, O = 4, A = 1, R = 5, c = [
7
7
  { id: _.Line, name: "Line" },
8
8
  { id: _.StackedLine, name: "Stack" },
9
9
  { id: _.Bar, name: "Bar" }
10
- ], c = 76, A = 43, s = 312, D = 187, L = "__TOTALS_HELPER_KEY__", C = "___BASE_COLOR__", K = "Bidding", P = "Non-bidding", H = 9899, i = 9917, B = 9939, S = 9942, e = 9953, G = 9935, F = 9938, W = 9950, a = 9952, d = 9962, r = 10, M = 70, m = {
10
+ ], N = 76, L = 43, s = 312, I = 187, e = "__TOTALS_HELPER_KEY__", D = "___BASE_COLOR__", i = "Bidding", C = "ironSource", K = "UnityAds", P = "Meta", H = "Google", S = "Mintegral", a = "AppLovin", B = "InMobi", G = "DT Exchange", M = "Pangle", r = "Liftoff Monetize", F = 10, W = 70, f = {
11
11
  left: 18,
12
12
  right: 18,
13
13
  top: 18,
14
14
  bottom: 11
15
- }, U = 10;
15
+ }, d = 10, g = "dateLong";
16
16
  export {
17
- C as BASE_COLOR_KEY,
18
- K as BIDDING_PREFIX,
19
- m as CHART_PADDING,
20
- A as COMPACT_HEADER_HEIGHT,
17
+ D as BASE_COLOR_KEY,
18
+ i as BIDDING_PREFIX,
19
+ f as CHART_PADDING,
20
+ L as COMPACT_HEADER_HEIGHT,
21
21
  s as DEFAULT_CHART_PLANE_HEIGHT,
22
22
  R as DEFAULT_MAX_VISIBLE,
23
- N as DEFAULT_MIN_VISIBLE,
24
- n as DEFAULT_TICK_COUNT,
25
- o as DROPDOWN_TYPE_OPTIONS,
26
- T as GRID_LINE_COLOR,
27
- c as HEADER_HEIGHT,
28
- M as HOVER_AREA_TRANSPARENCY,
29
- r as HOVER_TRANSPARENCY,
30
- D as MIN_PLANE_HEIGHT,
31
- S as NETWORK_ID_AD_MOB,
32
- G as NETWORK_ID_APPLOVIN,
33
- W as NETWORK_ID_DT_EXCHANGE,
34
- B as NETWORK_ID_FACEBOOK_META,
35
- F as NETWORK_ID_INMOBI,
36
- H as NETWORK_ID_IRON_SOURCE,
37
- d as NETWORK_ID_LIFTOFF,
38
- e as NETWORK_ID_MINTEGRAL,
39
- a as NETWORK_ID_PANGLE,
40
- i as NETWORK_ID_UNITY_ADS,
41
- P as NON_BIDDING_PREFIX,
42
- I as POINT_BORDER_COLOR,
43
- U as TICKS_EXTRA_PADDING,
44
- t as TICK_LABEL_COLOR,
45
- O as TICK_LABEL_FONT,
46
- L as TOTALS_HELPER_KEY
23
+ A as DEFAULT_MIN_VISIBLE,
24
+ O as DEFAULT_TICK_COUNT,
25
+ c as DROPDOWN_TYPE_OPTIONS,
26
+ n as GRID_LINE_COLOR,
27
+ N as HEADER_HEIGHT,
28
+ W as HOVER_AREA_TRANSPARENCY,
29
+ F as HOVER_TRANSPARENCY,
30
+ g as LONG_DATE_FORMAT,
31
+ I as MIN_PLANE_HEIGHT,
32
+ H as NETWORK_AD_MOB,
33
+ a as NETWORK_APPLOVIN,
34
+ G as NETWORK_DT_EXCHANGE,
35
+ P as NETWORK_FACEBOOK_META,
36
+ B as NETWORK_INMOBI,
37
+ C as NETWORK_IRON_SOURCE,
38
+ r as NETWORK_LIFTOFF,
39
+ S as NETWORK_MINTEGRAL,
40
+ M as NETWORK_PANGLE,
41
+ K as NETWORK_UNITY_ADS,
42
+ t as POINT_BORDER_COLOR,
43
+ d as TICKS_EXTRA_PADDING,
44
+ T as TICK_LABEL_COLOR,
45
+ o as TICK_LABEL_FONT,
46
+ e as TOTALS_HELPER_KEY
47
47
  };
@@ -1,4 +1,5 @@
1
1
  import Chart from './Chart.vue';
2
+ import { ChartType, TooltipOrder, TrendDirection } from './types';
2
3
  declare const ChartTypes: () => ({
3
4
  new (...args: any[]): {
4
5
  $: import("vue").ComponentInternalInstance;
@@ -13,9 +14,10 @@ declare const ChartTypes: () => ({
13
14
  sortSelected: any;
14
15
  sortOptions: unknown[];
15
16
  sortOptionNameKey: string;
16
- chartType: import("./types").ChartType;
17
+ chartType: ChartType;
17
18
  hideLegend: boolean;
18
19
  xAxisFormat: import("./types").ValueFormat;
20
+ xAxisDateInterval: import("./types").DateInterval;
19
21
  totalsChart: boolean;
20
22
  parsing: import("./types").ChartParsingConfig;
21
23
  yAxisFormat: import("./types").ValueFormat;
@@ -24,15 +26,18 @@ declare const ChartTypes: () => ({
24
26
  subheader: string;
25
27
  subheaderTooltip: any;
26
28
  trendValue: string | number;
27
- trendDirection: "up" | "down";
29
+ trendDirection: TrendDirection;
28
30
  tickCount: number;
29
31
  truncateTickLabels: boolean;
32
+ keepSubheaderVisible: boolean;
33
+ empty: boolean;
30
34
  noDataIcon: string;
31
35
  noDataTitle: string;
32
36
  noDataSubtitle: string;
33
37
  withAnimation: boolean;
34
38
  tooltipTotalType: import("../../utils/totals").TotalType;
35
39
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
40
+ tooltipOrder: TooltipOrder;
36
41
  fullHeight: boolean;
37
42
  withSettingsHeader: boolean;
38
43
  extraCharts: Record<string, unknown>[];
@@ -75,8 +80,8 @@ declare const ChartTypes: () => ({
75
80
  default: string;
76
81
  };
77
82
  chartType: {
78
- type: import("vue").PropType<import("./types").ChartType>;
79
- default: import("./types").ChartType;
83
+ type: import("vue").PropType<ChartType>;
84
+ default: ChartType;
80
85
  };
81
86
  hideLegend: {
82
87
  type: import("vue").PropType<boolean>;
@@ -86,6 +91,10 @@ declare const ChartTypes: () => ({
86
91
  type: import("vue").PropType<import("./types").ValueFormat>;
87
92
  default: string;
88
93
  };
94
+ xAxisDateInterval: {
95
+ type: import("vue").PropType<import("./types").DateInterval>;
96
+ default: import("./types").DateInterval;
97
+ };
89
98
  totalsChart: {
90
99
  type: import("vue").PropType<boolean>;
91
100
  default: boolean;
@@ -127,8 +136,8 @@ declare const ChartTypes: () => ({
127
136
  default: any;
128
137
  };
129
138
  trendDirection: {
130
- type: import("vue").PropType<"up" | "down">;
131
- default: string;
139
+ type: import("vue").PropType<TrendDirection>;
140
+ default: TrendDirection;
132
141
  };
133
142
  tickCount: {
134
143
  type: import("vue").PropType<number>;
@@ -138,6 +147,14 @@ declare const ChartTypes: () => ({
138
147
  type: import("vue").PropType<boolean>;
139
148
  default: boolean;
140
149
  };
150
+ keepSubheaderVisible: {
151
+ type: import("vue").PropType<boolean>;
152
+ default: boolean;
153
+ };
154
+ empty: {
155
+ type: import("vue").PropType<boolean>;
156
+ default: boolean;
157
+ };
141
158
  noDataIcon: {
142
159
  type: import("vue").PropType<string>;
143
160
  default: string;
@@ -162,6 +179,10 @@ declare const ChartTypes: () => ({
162
179
  type: import("vue").PropType<(values: number[], totalType: import("../../utils/totals").TotalType) => number>;
163
180
  default: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
164
181
  };
182
+ tooltipOrder: {
183
+ type: import("vue").PropType<TooltipOrder>;
184
+ default: TooltipOrder;
185
+ };
165
186
  fullHeight: {
166
187
  type: import("vue").PropType<boolean>;
167
188
  default: boolean;
@@ -177,8 +198,8 @@ declare const ChartTypes: () => ({
177
198
  }>> & {
178
199
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
179
200
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
180
- "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
181
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "totalsChart" | "parsing" | "yAxisFormat" | "dataSets" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "tickCount" | "truncateTickLabels" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "fullHeight" | "withSettingsHeader" | "extraCharts">;
201
+ "onUpdate:chartType"?: (chartType: ChartType) => any;
202
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "dataSets" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "fullHeight" | "withSettingsHeader" | "extraCharts">;
182
203
  $attrs: {
183
204
  [x: string]: unknown;
184
205
  };
@@ -190,7 +211,7 @@ declare const ChartTypes: () => ({
190
211
  }>;
191
212
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
192
213
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
193
- $emit: ((event: "update:visibleIds", visibleIds: unknown[]) => void) & ((event: "update:sortSelected", sortOption: unknown) => void) & ((event: "update:chartType", chartType: import("./types").ChartType) => void);
214
+ $emit: ((event: "update:visibleIds", visibleIds: unknown[]) => void) & ((event: "update:sortSelected", sortOption: unknown) => void) & ((event: "update:chartType", chartType: ChartType) => void);
194
215
  $el: any;
195
216
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
196
217
  header: {
@@ -231,8 +252,8 @@ declare const ChartTypes: () => ({
231
252
  default: string;
232
253
  };
233
254
  chartType: {
234
- type: import("vue").PropType<import("./types").ChartType>;
235
- default: import("./types").ChartType;
255
+ type: import("vue").PropType<ChartType>;
256
+ default: ChartType;
236
257
  };
237
258
  hideLegend: {
238
259
  type: import("vue").PropType<boolean>;
@@ -242,6 +263,10 @@ declare const ChartTypes: () => ({
242
263
  type: import("vue").PropType<import("./types").ValueFormat>;
243
264
  default: string;
244
265
  };
266
+ xAxisDateInterval: {
267
+ type: import("vue").PropType<import("./types").DateInterval>;
268
+ default: import("./types").DateInterval;
269
+ };
245
270
  totalsChart: {
246
271
  type: import("vue").PropType<boolean>;
247
272
  default: boolean;
@@ -283,8 +308,8 @@ declare const ChartTypes: () => ({
283
308
  default: any;
284
309
  };
285
310
  trendDirection: {
286
- type: import("vue").PropType<"up" | "down">;
287
- default: string;
311
+ type: import("vue").PropType<TrendDirection>;
312
+ default: TrendDirection;
288
313
  };
289
314
  tickCount: {
290
315
  type: import("vue").PropType<number>;
@@ -294,6 +319,14 @@ declare const ChartTypes: () => ({
294
319
  type: import("vue").PropType<boolean>;
295
320
  default: boolean;
296
321
  };
322
+ keepSubheaderVisible: {
323
+ type: import("vue").PropType<boolean>;
324
+ default: boolean;
325
+ };
326
+ empty: {
327
+ type: import("vue").PropType<boolean>;
328
+ default: boolean;
329
+ };
297
330
  noDataIcon: {
298
331
  type: import("vue").PropType<string>;
299
332
  default: string;
@@ -318,6 +351,10 @@ declare const ChartTypes: () => ({
318
351
  type: import("vue").PropType<(values: number[], totalType: import("../../utils/totals").TotalType) => number>;
319
352
  default: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
320
353
  };
354
+ tooltipOrder: {
355
+ type: import("vue").PropType<TooltipOrder>;
356
+ default: TooltipOrder;
357
+ };
321
358
  fullHeight: {
322
359
  type: import("vue").PropType<boolean>;
323
360
  default: boolean;
@@ -333,9 +370,9 @@ declare const ChartTypes: () => ({
333
370
  }>> & {
334
371
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
335
372
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
336
- "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
373
+ "onUpdate:chartType"?: (chartType: ChartType) => any;
337
374
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
338
- "update:chartType": (chartType: import("./types").ChartType) => void;
375
+ "update:chartType": (chartType: ChartType) => void;
339
376
  "update:visibleIds": (visibleIds: unknown[]) => void;
340
377
  "update:sortSelected": (sortOption: unknown) => void;
341
378
  }, string, {
@@ -348,9 +385,10 @@ declare const ChartTypes: () => ({
348
385
  sortSelected: any;
349
386
  sortOptions: unknown[];
350
387
  sortOptionNameKey: string;
351
- chartType: import("./types").ChartType;
388
+ chartType: ChartType;
352
389
  hideLegend: boolean;
353
390
  xAxisFormat: import("./types").ValueFormat;
391
+ xAxisDateInterval: import("./types").DateInterval;
354
392
  totalsChart: boolean;
355
393
  parsing: import("./types").ChartParsingConfig;
356
394
  yAxisFormat: import("./types").ValueFormat;
@@ -359,15 +397,18 @@ declare const ChartTypes: () => ({
359
397
  subheader: string;
360
398
  subheaderTooltip: any;
361
399
  trendValue: string | number;
362
- trendDirection: "up" | "down";
400
+ trendDirection: TrendDirection;
363
401
  tickCount: number;
364
402
  truncateTickLabels: boolean;
403
+ keepSubheaderVisible: boolean;
404
+ empty: boolean;
365
405
  noDataIcon: string;
366
406
  noDataTitle: string;
367
407
  noDataSubtitle: string;
368
408
  withAnimation: boolean;
369
409
  tooltipTotalType: import("../../utils/totals").TotalType;
370
410
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
411
+ tooltipOrder: TooltipOrder;
371
412
  fullHeight: boolean;
372
413
  withSettingsHeader: boolean;
373
414
  extraCharts: Record<string, unknown>[];
@@ -430,8 +471,8 @@ declare const ChartTypes: () => ({
430
471
  default: string;
431
472
  };
432
473
  chartType: {
433
- type: import("vue").PropType<import("./types").ChartType>;
434
- default: import("./types").ChartType;
474
+ type: import("vue").PropType<ChartType>;
475
+ default: ChartType;
435
476
  };
436
477
  hideLegend: {
437
478
  type: import("vue").PropType<boolean>;
@@ -441,6 +482,10 @@ declare const ChartTypes: () => ({
441
482
  type: import("vue").PropType<import("./types").ValueFormat>;
442
483
  default: string;
443
484
  };
485
+ xAxisDateInterval: {
486
+ type: import("vue").PropType<import("./types").DateInterval>;
487
+ default: import("./types").DateInterval;
488
+ };
444
489
  totalsChart: {
445
490
  type: import("vue").PropType<boolean>;
446
491
  default: boolean;
@@ -482,8 +527,8 @@ declare const ChartTypes: () => ({
482
527
  default: any;
483
528
  };
484
529
  trendDirection: {
485
- type: import("vue").PropType<"up" | "down">;
486
- default: string;
530
+ type: import("vue").PropType<TrendDirection>;
531
+ default: TrendDirection;
487
532
  };
488
533
  tickCount: {
489
534
  type: import("vue").PropType<number>;
@@ -493,6 +538,14 @@ declare const ChartTypes: () => ({
493
538
  type: import("vue").PropType<boolean>;
494
539
  default: boolean;
495
540
  };
541
+ keepSubheaderVisible: {
542
+ type: import("vue").PropType<boolean>;
543
+ default: boolean;
544
+ };
545
+ empty: {
546
+ type: import("vue").PropType<boolean>;
547
+ default: boolean;
548
+ };
496
549
  noDataIcon: {
497
550
  type: import("vue").PropType<string>;
498
551
  default: string;
@@ -517,6 +570,10 @@ declare const ChartTypes: () => ({
517
570
  type: import("vue").PropType<(values: number[], totalType: import("../../utils/totals").TotalType) => number>;
518
571
  default: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
519
572
  };
573
+ tooltipOrder: {
574
+ type: import("vue").PropType<TooltipOrder>;
575
+ default: TooltipOrder;
576
+ };
520
577
  fullHeight: {
521
578
  type: import("vue").PropType<boolean>;
522
579
  default: boolean;
@@ -532,7 +589,7 @@ declare const ChartTypes: () => ({
532
589
  }>> & {
533
590
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
534
591
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
535
- "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
592
+ "onUpdate:chartType"?: (chartType: ChartType) => any;
536
593
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
537
594
  __isFragment?: never;
538
595
  __isTeleport?: never;
@@ -576,8 +633,8 @@ declare const ChartTypes: () => ({
576
633
  default: string;
577
634
  };
578
635
  chartType: {
579
- type: import("vue").PropType<import("./types").ChartType>;
580
- default: import("./types").ChartType;
636
+ type: import("vue").PropType<ChartType>;
637
+ default: ChartType;
581
638
  };
582
639
  hideLegend: {
583
640
  type: import("vue").PropType<boolean>;
@@ -587,6 +644,10 @@ declare const ChartTypes: () => ({
587
644
  type: import("vue").PropType<import("./types").ValueFormat>;
588
645
  default: string;
589
646
  };
647
+ xAxisDateInterval: {
648
+ type: import("vue").PropType<import("./types").DateInterval>;
649
+ default: import("./types").DateInterval;
650
+ };
590
651
  totalsChart: {
591
652
  type: import("vue").PropType<boolean>;
592
653
  default: boolean;
@@ -628,8 +689,8 @@ declare const ChartTypes: () => ({
628
689
  default: any;
629
690
  };
630
691
  trendDirection: {
631
- type: import("vue").PropType<"up" | "down">;
632
- default: string;
692
+ type: import("vue").PropType<TrendDirection>;
693
+ default: TrendDirection;
633
694
  };
634
695
  tickCount: {
635
696
  type: import("vue").PropType<number>;
@@ -639,6 +700,14 @@ declare const ChartTypes: () => ({
639
700
  type: import("vue").PropType<boolean>;
640
701
  default: boolean;
641
702
  };
703
+ keepSubheaderVisible: {
704
+ type: import("vue").PropType<boolean>;
705
+ default: boolean;
706
+ };
707
+ empty: {
708
+ type: import("vue").PropType<boolean>;
709
+ default: boolean;
710
+ };
642
711
  noDataIcon: {
643
712
  type: import("vue").PropType<string>;
644
713
  default: string;
@@ -663,6 +732,10 @@ declare const ChartTypes: () => ({
663
732
  type: import("vue").PropType<(values: number[], totalType: import("../../utils/totals").TotalType) => number>;
664
733
  default: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
665
734
  };
735
+ tooltipOrder: {
736
+ type: import("vue").PropType<TooltipOrder>;
737
+ default: TooltipOrder;
738
+ };
666
739
  fullHeight: {
667
740
  type: import("vue").PropType<boolean>;
668
741
  default: boolean;
@@ -678,9 +751,9 @@ declare const ChartTypes: () => ({
678
751
  }>> & {
679
752
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
680
753
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
681
- "onUpdate:chartType"?: (chartType: import("./types").ChartType) => any;
754
+ "onUpdate:chartType"?: (chartType: ChartType) => any;
682
755
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
683
- "update:chartType": (chartType: import("./types").ChartType) => void;
756
+ "update:chartType": (chartType: ChartType) => void;
684
757
  "update:visibleIds": (visibleIds: unknown[]) => void;
685
758
  "update:sortSelected": (sortOption: unknown) => void;
686
759
  }, string, {
@@ -693,9 +766,10 @@ declare const ChartTypes: () => ({
693
766
  sortSelected: any;
694
767
  sortOptions: unknown[];
695
768
  sortOptionNameKey: string;
696
- chartType: import("./types").ChartType;
769
+ chartType: ChartType;
697
770
  hideLegend: boolean;
698
771
  xAxisFormat: import("./types").ValueFormat;
772
+ xAxisDateInterval: import("./types").DateInterval;
699
773
  totalsChart: boolean;
700
774
  parsing: import("./types").ChartParsingConfig;
701
775
  yAxisFormat: import("./types").ValueFormat;
@@ -704,15 +778,18 @@ declare const ChartTypes: () => ({
704
778
  subheader: string;
705
779
  subheaderTooltip: any;
706
780
  trendValue: string | number;
707
- trendDirection: "up" | "down";
781
+ trendDirection: TrendDirection;
708
782
  tickCount: number;
709
783
  truncateTickLabels: boolean;
784
+ keepSubheaderVisible: boolean;
785
+ empty: boolean;
710
786
  noDataIcon: string;
711
787
  noDataTitle: string;
712
788
  noDataSubtitle: string;
713
789
  withAnimation: boolean;
714
790
  tooltipTotalType: import("../../utils/totals").TotalType;
715
791
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
792
+ tooltipOrder: TooltipOrder;
716
793
  fullHeight: boolean;
717
794
  withSettingsHeader: boolean;
718
795
  extraCharts: Record<string, unknown>[];
@@ -724,5 +801,5 @@ declare const ChartTypes: () => ({
724
801
  "subheader-tooltip"?(_: {}): any;
725
802
  };
726
803
  }))[];
727
- export type { ChartType, ChartDataRecord, ChartDataSet, ChartParsingConfig, } from './types';
728
- export { Chart, ChartTypes };
804
+ export type { ChartDataRecord, ChartDataSet, ChartParsingConfig, } from './types';
805
+ export { Chart, ChartTypes, ChartType, TooltipOrder, TrendDirection };
@@ -6,6 +6,14 @@ export declare const SINGLE_DATASET_DATE: {
6
6
  value: number;
7
7
  }[];
8
8
  }[];
9
+ export declare const SINGLE_DATASET_DATE_MONTHLY: {
10
+ id: string;
11
+ label: string;
12
+ data: {
13
+ date: string;
14
+ value: number;
15
+ }[];
16
+ }[];
9
17
  export declare const SINGLE_DATASET_COUNTRY: {
10
18
  id: string;
11
19
  countryFlag: string;
@@ -8,6 +8,11 @@ export declare enum ChartType {
8
8
  StackedLine = "stackedLine",
9
9
  StackedBar = "stackedBar"
10
10
  }
11
+ export declare enum DateInterval {
12
+ DAILY = "daily",
13
+ WEEKLY = "weekly",
14
+ MONTHLY = "monthly"
15
+ }
11
16
  export type ChartDataRecord = Record<string, unknown>;
12
17
  export type ChartDataSet = {
13
18
  id: string | number;
@@ -71,3 +76,12 @@ export type PrepareTicksLabelArgs = {
71
76
  availableSpace: number;
72
77
  truncate?: boolean;
73
78
  };
79
+ export declare enum TooltipOrder {
80
+ Legend = "legend",
81
+ YAxis = "yAxis"
82
+ }
83
+ export declare enum TrendDirection {
84
+ UP = "up",
85
+ DOWN = "down",
86
+ NEUTRAL = "right"
87
+ }
@@ -1,4 +1,7 @@
1
- var a = /* @__PURE__ */ ((e) => (e.Line = "line", e.Bar = "bar", e.StackedLine = "stackedLine", e.StackedBar = "stackedBar", e))(a || {});
1
+ var e = /* @__PURE__ */ ((L) => (L.Line = "line", L.Bar = "bar", L.StackedLine = "stackedLine", L.StackedBar = "stackedBar", L))(e || {}), r = /* @__PURE__ */ ((L) => (L.DAILY = "daily", L.WEEKLY = "weekly", L.MONTHLY = "monthly", L))(r || {}), a = /* @__PURE__ */ ((L) => (L.Legend = "legend", L.YAxis = "yAxis", L))(a || {}), n = /* @__PURE__ */ ((L) => (L.UP = "up", L.DOWN = "down", L.NEUTRAL = "right", L))(n || {});
2
2
  export {
3
- a as ChartType
3
+ e as ChartType,
4
+ r as DateInterval,
5
+ a as TooltipOrder,
6
+ n as TrendDirection
4
7
  };
@@ -1,3 +1,3 @@
1
- import { DataSetConfig } from '@is-ssp/chart/types';
1
+ import { DataSetConfig } from '@/components/chart/types';
2
2
  export declare const storeOriginalDatasetColors: (dataset: DataSetConfig) => void;
3
3
  export declare const restoreOriginalDatasetColors: (dataset: DataSetConfig) => void;
@@ -1,4 +1,4 @@
1
1
  import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
2
2
  export declare const calcStepSize: (min: number, max: number, tickCount: number) => number;
3
- export declare const formatValue: (value: number | string, valueFormat: ValueFormat) => string;
3
+ export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat) => string;
4
4
  export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
1
+ import './AppIcon.vue_vue_type_style_index_0_scoped_56ba337c_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
- import { AutocompleteDropdownTypes as to } from "./components/autocompleteDropdown/index.js";
3
+ import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
5
5
  import { MenuTypes as fo } from "./components/menu/index.js";
6
6
  import { AppIconTypes as so } from "./components/appIcon/index.js";
@@ -16,8 +16,8 @@ import { FormCardTypes as wo, FormFieldTypes as Oo } from "./components/forms/in
16
16
  import * as o from "./components/button/v3/index.js";
17
17
  import * as r from "./components/button/v4/index.js";
18
18
  import * as e from "./components/chip/v3/index.js";
19
- import * as m from "./components/chip/v4/index.js";
20
- import * as t from "./components/switch/v3/index.js";
19
+ import * as t from "./components/chip/v4/index.js";
20
+ import * as m from "./components/switch/v3/index.js";
21
21
  import * as p from "./components/switch/v4/index.js";
22
22
  import * as a from "./components/dropdown/v3/index.js";
23
23
  import * as i from "./components/dropdown/v4/index.js";
@@ -77,7 +77,7 @@ import { default as Uo } from "./components/appTrigger/AppTrigger.vue.js";
77
77
  import { default as Xo } from "./components/autocompleteDropdown/AutocompleteDropdown.vue.js";
78
78
  import { default as or } from "./components/menuItem/MenuItem.vue.js";
79
79
  import { default as er } from "./components/menu/Menu.vue.js";
80
- import { default as tr } from "./components/appIcon/AppIcon.vue.js";
80
+ import { default as mr } from "./components/appIcon/AppIcon.vue.js";
81
81
  import { default as ar } from "./components/floatingToolbar/FloatingToolbar.vue.js";
82
82
  import { default as fr } from "./components/includeExclude/IncludeExclude.vue.js";
83
83
  import { default as xr } from "./components/includeExclude/IncludeExcludeDragDrop.vue.js";
@@ -101,10 +101,11 @@ import { default as qr } from "./components/banner/Banner.vue.js";
101
101
  import { default as Gr } from "./components/alert/Alert.vue.js";
102
102
  import { default as Qr } from "./components/autocomplete/Autocomplete.vue.js";
103
103
  import { default as Ur } from "./components/chart/Chart.vue.js";
104
+ import { ChartType as Xr, TooltipOrder as Zr, TrendDirection as oe } from "./components/chart/types.js";
104
105
  const Z = {
105
106
  ...e,
106
- ...m,
107
107
  ...t,
108
+ ...m,
108
109
  ...p,
109
110
  ...o,
110
111
  ...r,
@@ -160,18 +161,19 @@ export {
160
161
  Cr as AddFilterButton,
161
162
  Gr as Alert,
162
163
  qo as AlertTypes,
163
- tr as AppIcon,
164
+ mr as AppIcon,
164
165
  so as AppIconTypes,
165
166
  Uo as AppTrigger,
166
167
  eo as AppTriggerTypes,
167
168
  Qr as Autocomplete,
168
169
  Xo as AutocompleteDropdown,
169
- to as AutocompleteDropdownTypes,
170
+ mo as AutocompleteDropdownTypes,
170
171
  Go as AutocompleteTypes,
171
172
  qr as Banner,
172
173
  jo as BannerTypes,
173
174
  Rr as CardPanel,
174
175
  Ur as Chart,
176
+ Xr as ChartType,
175
177
  Qo as ChartTypes,
176
178
  Ar as FilterDropdown,
177
179
  Fo as FilterDropdownTypes,
@@ -201,6 +203,8 @@ export {
201
203
  Hr as MultiBar,
202
204
  ho as MultiBarTypes,
203
205
  Mr as Text,
206
+ Zr as TooltipOrder,
207
+ oe as TrendDirection,
204
208
  wr as Typography,
205
209
  Ao as TypographyTypes,
206
210
  Co as TypographyTypesV4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-rc.16",
3
+ "version": "2.1.12-rc.18",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .chart-container[data-v-4e9ce62f]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-4e9ce62f]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-4e9ce62f]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-4e9ce62f]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-4e9ce62f]{border-left:1px solid var(--common-divider)}
@@ -1 +0,0 @@
1
- .chart-header[data-v-1ff0e54f]{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0}.chart-header .subheader[data-v-1ff0e54f]{color:var(--text-secondary)}.chart-header--compact[data-v-1ff0e54f]{padding-top:22px}.chart-header--compact .header-texts[data-v-1ff0e54f]{flex-direction:row}.chart-header--compact .header-text[data-v-1ff0e54f]{color:var(--text-secondary)}.header-row[data-v-1ff0e54f]{display:flex;align-items:flex-end;gap:4px}.header-texts[data-v-1ff0e54f]{display:flex;flex-direction:column;color:var(--text-primary);gap:4px;cursor:default}.type-switch[data-v-1ff0e54f]{display:flex;align-items:center;gap:4px}.subheader-tooltip[data-v-1ff0e54f]{display:flex;flex-direction:column;gap:.25rem}.subheader-tooltip__text[data-v-1ff0e54f]{color:var(--text-secondary)}
@@ -1 +0,0 @@
1
- .chart-trend[data-v-21ce0774]{display:flex}.chart-trend--up[data-v-21ce0774]{color:var(--success-contrast-text)}.chart-trend--up .trend-icon[data-v-21ce0774]{color:var(--success-darker)}.chart-trend--down[data-v-21ce0774]{color:var(--error-contrast-text)}.chart-trend--down .trend-icon[data-v-21ce0774]{color:var(--error-dark)}.chart-trend .trend-icon[data-v-21ce0774]{align-self:normal}.chart-trend-tooltip[data-v-21ce0774]{align-items:normal}.trend-tooltip[data-v-21ce0774]{display:flex;flex-direction:column}.trend-tooltip__header[data-v-21ce0774]{margin-bottom:.375rem}.trend-tooltip__text[data-v-21ce0774]{color:var(--text-secondary)}.separator[data-v-21ce0774]{display:flex;align-items:center;gap:.5rem;justify-content:center;height:1.1875rem}.separator__text[data-v-21ce0774]{display:block;color:var(--text-secondary)}.separator hr[data-v-21ce0774]{width:100%;height:1px;border:0;background:var(--common-divider)}
@@ -1 +0,0 @@
1
- .chart-plane[data-v-64dcfb5d]{--headerHeight: var(--2e8f327a);width:100%}.chart-plane[data-v-64dcfb5d],.chart-loading[data-v-64dcfb5d],.chart-empty[data-v-64dcfb5d]{height:var(--f7b2eb36)}.header-wrapper[data-v-64dcfb5d]{height:var(--headerHeight)}.chart[data-v-64dcfb5d]{width:100%;height:calc(100% - var(--headerHeight));position:relative}.chart__canvas[data-v-64dcfb5d]{width:100%;height:100%}.chart__tooltip[data-v-64dcfb5d]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px;z-index:1}
@@ -1 +0,0 @@
1
- .chart-tooltip[data-v-81cdfd5e]{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-81cdfd5e]{width:12px;height:12px;border-radius:2px;display:inline-block;margin-right:var(--spacing-100)}.color-box+.platform-icon[data-v-81cdfd5e]{margin-left:calc(var(--spacing-50) - var(--spacing-100))}.list[data-v-81cdfd5e]{list-style:none;margin:0;padding:0}.list__item[data-v-81cdfd5e]{display:flex;align-items:center;margin-bottom:var(--spacing-50);color:var(--text-secondary)}.list__item[data-v-81cdfd5e]:last-child{margin-bottom:0}.platform-icon[data-v-81cdfd5e]{color:var(--action-active);margin-right:var(--spacing-50)}.popover-label-wrapper[data-v-81cdfd5e]{display:flex;width:200px;flex-grow:1}.truncated-label[data-v-81cdfd5e]{max-width:90%}.tooltip-footer[data-v-81cdfd5e]{display:flex;align-items:center;margin-top:var(--spacing-100);color:var(--text-primary)}.flex-grow[data-v-81cdfd5e]{flex-grow:1}
@@ -1 +0,0 @@
1
- .tooltip-title-wrapper[data-v-40d98a66]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-40d98a66]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-40d98a66]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-40d98a66]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-40d98a66]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-40d98a66]{color:var(--action-active)}
@@ -1,7 +0,0 @@
1
- import o from "./TooltipHeader.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- console.log('scoped// import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_40d98a66_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-40d98a66"]]);
5
- export {
6
- s as default
7
- };