@ironsource/shared-ui 2.1.12-rc.19 → 2.1.12-rc.20

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.
@@ -0,0 +1 @@
1
+ .chart-container[data-v-64205c96]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-64205c96]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-64205c96]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-64205c96]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-64205c96]{border-left:1px solid var(--common-divider)}
@@ -44,6 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
44
  sortOptions?: unknown[];
45
45
  sortOptionNameKey?: string;
46
46
  fullHeight?: boolean;
47
+ fullHeightBottomSpacing?: number;
47
48
  withSettingsHeader?: boolean;
48
49
  extraCharts?: Record<string, unknown>[];
49
50
  }>, {
@@ -83,6 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
84
  sortOptions: () => any[];
84
85
  sortOptionNameKey: string;
85
86
  fullHeight: boolean;
87
+ fullHeightBottomSpacing: number;
86
88
  withSettingsHeader: boolean;
87
89
  extraCharts: () => any[];
88
90
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -133,6 +135,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
133
135
  sortOptions?: unknown[];
134
136
  sortOptionNameKey?: string;
135
137
  fullHeight?: boolean;
138
+ fullHeightBottomSpacing?: number;
136
139
  withSettingsHeader?: boolean;
137
140
  extraCharts?: Record<string, unknown>[];
138
141
  }>, {
@@ -172,6 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
172
175
  sortOptions: () => any[];
173
176
  sortOptionNameKey: string;
174
177
  fullHeight: boolean;
178
+ fullHeightBottomSpacing: number;
175
179
  withSettingsHeader: boolean;
176
180
  extraCharts: () => any[];
177
181
  }>>> & {
@@ -215,6 +219,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
215
219
  tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
216
220
  tooltipOrder: TooltipOrder;
217
221
  fullHeight: boolean;
222
+ fullHeightBottomSpacing: number;
218
223
  withSettingsHeader: boolean;
219
224
  extraCharts: Record<string, unknown>[];
220
225
  }>, {
@@ -1,7 +1,7 @@
1
1
  import o from "./Chart.vue2.js";
2
2
  /* empty css */import _ from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_53316c89_lang.css"; //*');
4
- const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-53316c89"]]);
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_64205c96_lang.css"; //*');
4
+ const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-64205c96"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_53316c89_lang.css"; import { defineComponent as U, ref as O, computed as n, openBlock as s, createElementBlock as m, Fragment as S, createBlock as I, unref as i, isRef as b, withCtx as d, renderSlot as u, createCommentVNode as D, createElementVNode as k, mergeProps as y, normalizeClass as E, createVNode as L, createSlots as N, renderList as M } from "vue";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_64205c96_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 y, normalizeClass as E, createVNode as L, createSlots as N, renderList as M } from "vue";
2
2
  import { useVModel as A } from "@vueuse/core";
3
3
  import $ from "./ChartLegend.vue.js";
4
4
  import K from "./SettingsHeader.vue.js";
@@ -50,6 +50,7 @@ const _ = {
50
50
  sortOptions: { default: () => [] },
51
51
  sortOptionNameKey: { default: "" },
52
52
  fullHeight: { type: Boolean, default: !1 },
53
+ fullHeightBottomSpacing: { default: 50 },
53
54
  withSettingsHeader: { type: Boolean, default: !0 },
54
55
  extraCharts: { default: () => [] }
55
56
  },
@@ -88,8 +89,8 @@ const _ = {
88
89
  highlightedId: c.value,
89
90
  valueSuffix: e.valueSuffix,
90
91
  valuePrefix: e.valuePrefix
91
- })), F = n(() => e.dataSets), v = n(() => e.visibleIds), T = n(() => e.extraCharts.length), x = n(() => 1 + T.value), B = (t) => t === T.value - 1, { colorsMap: f } = z({
92
- dataSets: F,
92
+ })), B = 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: B,
93
94
  visibleIds: v
94
95
  }), w = n(() => e.dataSets.map((t) => ({
95
96
  id: t.id,
@@ -102,7 +103,7 @@ const _ = {
102
103
  chartPlanesCount: x,
103
104
  useFullHeight: e.fullHeight
104
105
  });
105
- return (t, o) => (s(), m(S, null, [
106
+ return (t, o) => (s(), m(C, null, [
106
107
  a.withSettingsHeader ? (s(), I(K, {
107
108
  key: 0,
108
109
  "chart-type": i(r),
@@ -136,14 +137,14 @@ const _ = {
136
137
  key: "0"
137
138
  } : void 0
138
139
  ]), 1040, ["chart-type"]),
139
- (s(!0), m(S, null, M(a.extraCharts, (l, C) => (s(), I(V, y({
140
- key: C,
140
+ (s(!0), m(C, null, M(a.extraCharts, (l, S) => (s(), I(V, y({
141
+ key: S,
141
142
  class: "extra-chart-plane"
142
143
  }, { ...i(g), ...l }, {
143
144
  "chart-type": i(r),
144
145
  "colors-map": i(f),
145
146
  "type-switcher": !1,
146
- "tooltip-respects-top-edge": !B(C)
147
+ "tooltip-respects-top-edge": !F(S)
147
148
  }), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge"]))), 128))
148
149
  ], 2),
149
150
  a.hideLegend ? D("", !0) : (s(), m("section", _, [
@@ -142,6 +142,15 @@ export declare const chartStoryArgs: {
142
142
  type: string;
143
143
  };
144
144
  };
145
+ fullHeightBottomSpacing: {
146
+ table: {
147
+ category: string;
148
+ };
149
+ description: string;
150
+ control: {
151
+ type: string;
152
+ };
153
+ };
145
154
  withSettingsHeader: {
146
155
  table: {
147
156
  category: string;
@@ -1,5 +1,5 @@
1
1
  import { UseChartHeightArgs } from '@/components/chart/types';
2
- export declare const useChartHeight: ({ chartPlanesCount, useFullHeight, }: UseChartHeightArgs) => {
2
+ export declare const useChartHeight: ({ chartPlanesCount, useFullHeight, bottomSpacing, }: UseChartHeightArgs) => {
3
3
  containerProps: import("vue").ComputedRef<Record<string, unknown>>;
4
4
  eachPlaneHeight: import("vue").ComputedRef<string>;
5
5
  };
@@ -1,22 +1,24 @@
1
- import { ref as H, computed as o } from "vue";
2
- import { useElementBounding as g, useWindowScroll as m } from "@vueuse/core";
3
- import { useFullPageHeight as f } from "../../../composables/useFullPageHeight.js";
4
- import { DEFAULT_CHART_PLANE_HEIGHT as p, HEADER_HEIGHT as E, MIN_PLANE_HEIGHT as r } from "../consts.js";
5
- const P = ({
1
+ import { ref as g, computed as o } from "vue";
2
+ import { useElementBounding as m, useWindowScroll as f } from "@vueuse/core";
3
+ import { useFullPageHeight as p } from "../../../composables/useFullPageHeight.js";
4
+ import { DEFAULT_CHART_PLANE_HEIGHT as E, HEADER_HEIGHT as v, MIN_PLANE_HEIGHT as r } from "../consts.js";
5
+ const T = ({
6
6
  chartPlanesCount: e,
7
- useFullHeight: n
7
+ useFullHeight: n,
8
+ bottomSpacing: i = 50
8
9
  }) => {
9
- const t = H(), { height: i } = g(t), { cssHeightValue: c } = f({
10
- elem: t
11
- }), { y: l } = m(), s = o(() => n && !l.value ? c.value : p + E + "px"), u = o(() => ({
10
+ const t = g(), { height: c } = m(t), { cssHeightValue: l } = p({
11
+ elem: t,
12
+ bottomSpacing: i
13
+ }), { y: s } = f(), u = o(() => n && !s.value ? l.value : E + v + "px"), h = o(() => ({
12
14
  ref: t,
13
- style: { height: s.value }
14
- })), h = o(() => e.value === 1 ? "100%" : i.value / e.value < r ? `${r}px` : 100 / e.value + "%");
15
+ style: { height: u.value }
16
+ })), a = o(() => e.value === 1 ? "100%" : c.value / e.value < r ? `${r}px` : 100 / e.value + "%");
15
17
  return {
16
- containerProps: u,
17
- eachPlaneHeight: h
18
+ containerProps: h,
19
+ eachPlaneHeight: a
18
20
  };
19
21
  };
20
22
  export {
21
- P as useChartHeight
23
+ T as useChartHeight
22
24
  };
@@ -41,6 +41,7 @@ declare const ChartTypes: () => ({
41
41
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
42
42
  tooltipOrder: TooltipOrder;
43
43
  fullHeight: boolean;
44
+ fullHeightBottomSpacing: number;
44
45
  withSettingsHeader: boolean;
45
46
  extraCharts: Record<string, unknown>[];
46
47
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
@@ -197,6 +198,10 @@ declare const ChartTypes: () => ({
197
198
  type: import("vue").PropType<boolean>;
198
199
  default: boolean;
199
200
  };
201
+ fullHeightBottomSpacing: {
202
+ type: import("vue").PropType<number>;
203
+ default: number;
204
+ };
200
205
  withSettingsHeader: {
201
206
  type: import("vue").PropType<boolean>;
202
207
  default: boolean;
@@ -209,7 +214,7 @@ declare const ChartTypes: () => ({
209
214
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
210
215
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
211
216
  "onUpdate:chartType"?: (chartType: ChartType) => any;
212
- } & 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" | "valueSuffix" | "valuePrefix" | "dataSets" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "fullHeight" | "withSettingsHeader" | "extraCharts">;
217
+ } & 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" | "valueSuffix" | "valuePrefix" | "dataSets" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts">;
213
218
  $attrs: {
214
219
  [x: string]: unknown;
215
220
  };
@@ -377,6 +382,10 @@ declare const ChartTypes: () => ({
377
382
  type: import("vue").PropType<boolean>;
378
383
  default: boolean;
379
384
  };
385
+ fullHeightBottomSpacing: {
386
+ type: import("vue").PropType<number>;
387
+ default: number;
388
+ };
380
389
  withSettingsHeader: {
381
390
  type: import("vue").PropType<boolean>;
382
391
  default: boolean;
@@ -430,6 +439,7 @@ declare const ChartTypes: () => ({
430
439
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
431
440
  tooltipOrder: TooltipOrder;
432
441
  fullHeight: boolean;
442
+ fullHeightBottomSpacing: number;
433
443
  withSettingsHeader: boolean;
434
444
  extraCharts: Record<string, unknown>[];
435
445
  }, {}, string> & {
@@ -606,6 +616,10 @@ declare const ChartTypes: () => ({
606
616
  type: import("vue").PropType<boolean>;
607
617
  default: boolean;
608
618
  };
619
+ fullHeightBottomSpacing: {
620
+ type: import("vue").PropType<number>;
621
+ default: number;
622
+ };
609
623
  withSettingsHeader: {
610
624
  type: import("vue").PropType<boolean>;
611
625
  default: boolean;
@@ -776,6 +790,10 @@ declare const ChartTypes: () => ({
776
790
  type: import("vue").PropType<boolean>;
777
791
  default: boolean;
778
792
  };
793
+ fullHeightBottomSpacing: {
794
+ type: import("vue").PropType<number>;
795
+ default: number;
796
+ };
779
797
  withSettingsHeader: {
780
798
  type: import("vue").PropType<boolean>;
781
799
  default: boolean;
@@ -829,6 +847,7 @@ declare const ChartTypes: () => ({
829
847
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
830
848
  tooltipOrder: TooltipOrder;
831
849
  fullHeight: boolean;
850
+ fullHeightBottomSpacing: number;
832
851
  withSettingsHeader: boolean;
833
852
  extraCharts: Record<string, unknown>[];
834
853
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -62,6 +62,7 @@ export type DropdownTypeOption = {
62
62
  export type UseChartHeightArgs = {
63
63
  chartPlanesCount: Ref<number>;
64
64
  useFullHeight: boolean;
65
+ bottomSpacing?: number;
65
66
  };
66
67
  export type HexColor = `#${string}`;
67
68
  export type DataSetConfig = ChartDataset<'line'> & ChartDataSet;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css';
1
+ import './FloatingToolbar.vue_vue_type_style_index_0_scoped_04d485be_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-rc.19",
3
+ "version": "2.1.12-rc.20",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .chart-container[data-v-53316c89]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-53316c89]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-53316c89]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-53316c89]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-53316c89]{border-left:1px solid var(--common-divider)}