@ironsource/shared-ui 2.2.0-test.14 → 2.2.0-test.15

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-a7fb79c8]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-a7fb79c8]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-a7fb79c8]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-a7fb79c8]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-a7fb79c8]{border-left:1px solid var(--common-divider)}
@@ -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_4d927c4b_lang.css"; //*');
4
- const c = /* @__PURE__ */ _(o, [["__scopeId", "data-v-4d927c4b"]]);
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_a7fb79c8_lang.css"; //*');
4
+ const a = /* @__PURE__ */ _(o, [["__scopeId", "data-v-a7fb79c8"]]);
5
5
  export {
6
- c as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_4d927c4b_lang.css"; import { defineComponent as U, ref as $, computed as n, openBlock as d, createElementBlock as g, Fragment as C, createBlock as D, unref as e, isRef as y, withCtx as s, renderSlot as u, createCommentVNode as A, createElementVNode as L, mergeProps as b, normalizeClass as M, createVNode as k, createSlots as R, renderList as K } from "vue";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_a7fb79c8_lang.css"; import { defineComponent as P, ref as U, computed as n, openBlock as d, createElementBlock as T, Fragment as C, createBlock as D, unref as e, isRef as y, withCtx as s, renderSlot as u, createCommentVNode as A, createElementVNode as L, mergeProps as b, normalizeClass as M, createVNode as k, createSlots as R, renderList as K } from "vue";
2
2
  import { useVModel as B } from "@vueuse/core";
3
3
  import X from "./ChartLegend.vue.js";
4
4
  import z from "./SettingsHeader.vue.js";
@@ -13,7 +13,7 @@ import { ChartTestIdModifiers as p } from "../../testids/index.js";
13
13
  const lt = {
14
14
  key: 0,
15
15
  class: "chart-sidebar"
16
- }, Tt = /* @__PURE__ */ U({
16
+ }, gt = /* @__PURE__ */ P({
17
17
  __name: "Chart",
18
18
  props: {
19
19
  dataSets: { default: () => [] },
@@ -64,8 +64,8 @@ const lt = {
64
64
  colorVariant: { default: "default" }
65
65
  },
66
66
  emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
67
- setup(a, { emit: c }) {
68
- const t = a, r = B(t, "chartType", c), h = B(t, "sortSelected", c), f = $(null), v = n(() => ({
67
+ setup(a, { emit: h }) {
68
+ const t = a, r = B(t, "chartType", h), c = B(t, "sortSelected", h), f = U(null), v = n(() => ({
69
69
  dataSets: t.dataSets,
70
70
  visibleIds: t.visibleIds,
71
71
  parsing: t.parsing,
@@ -103,9 +103,9 @@ const lt = {
103
103
  tooltipExcludeTotalItem: t.tooltipExcludeTotalItem,
104
104
  headerTooltip: t.headerTooltip,
105
105
  testId: t.testId
106
- })), E = n(() => t.dataSets), I = n(() => t.visibleIds), x = n(() => t.extraCharts.length), S = n(() => 1 + x.value), F = (l) => l === x.value - 1, { colorsMap: m } = G({
106
+ })), E = n(() => t.dataSets), x = n(() => t.visibleIds), I = n(() => t.extraCharts.length), S = n(() => 1 + I.value), F = (l) => l === I.value - 1, { colorsMap: m } = G({
107
107
  dataSets: E,
108
- visibleIds: I,
108
+ visibleIds: x,
109
109
  variant: t.colorVariant
110
110
  }), H = n(() => t.dataSets.map((l) => ({
111
111
  id: l.id,
@@ -118,8 +118,10 @@ const lt = {
118
118
  chartPlanesCount: S,
119
119
  useFullHeight: t.fullHeight,
120
120
  bottomSpacing: t.fullHeightBottomSpacing
121
- }), O = at(t.testId, p), P = n(() => t.height ? { height: t.height } : {});
122
- return (l, i) => (d(), g(C, null, [
121
+ }), $ = at(t.testId, p), O = n(() => t.height ? t.withSettingsHeader ? {
122
+ height: `calc(${t.height} - var(--settings-header-height, 60px))`
123
+ } : { height: t.height } : {});
124
+ return (l, i) => (d(), T(C, null, [
123
125
  a.withSettingsHeader ? (d(), D(z, {
124
126
  key: 0,
125
127
  "chart-type": e(r),
@@ -140,8 +142,8 @@ const lt = {
140
142
  }, 8, ["chart-type", "hide-legend", "test-id"])) : A("", !0),
141
143
  L("div", b({ class: "chart-container" }, {
142
144
  ...e(w),
143
- ...e(O)[e(p).CONTAINER]
144
- }, { style: e(P) }), [
145
+ ...e($)[e(p).CONTAINER]
146
+ }, { style: e(O) }), [
145
147
  L("section", {
146
148
  class: M(["chart-planes", [{ "with-legend": !a.hideLegend }]])
147
149
  }, [
@@ -157,32 +159,32 @@ const lt = {
157
159
  key: "0"
158
160
  } : void 0
159
161
  ]), 1040, ["chart-type"]),
160
- (d(!0), g(C, null, K(a.extraCharts, (o, T) => (d(), D(V, b({
161
- key: T,
162
+ (d(!0), T(C, null, K(a.extraCharts, (o, g) => (d(), D(V, b({
163
+ key: g,
162
164
  class: "extra-chart-plane"
163
165
  }, { ...e(v), ...o }, {
164
166
  "chart-type": e(r),
165
167
  "colors-map": e(m),
166
168
  "type-switcher": !1,
167
- "tooltip-respects-top-edge": !F(T),
168
- "test-id": `${a.testId}-${e(p).EXTRA_CHART}-${T}`
169
+ "tooltip-respects-top-edge": !F(g),
170
+ "test-id": `${a.testId}-${e(p).EXTRA_CHART}-${g}`
169
171
  }), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge", "test-id"]))), 128))
170
172
  ], 2),
171
- a.hideLegend ? A("", !0) : (d(), g("section", lt, [
173
+ a.hideLegend ? A("", !0) : (d(), T("section", lt, [
172
174
  k(X, {
173
- "sort-selected": e(h),
174
- "onUpdate:sort-selected": i[2] || (i[2] = (o) => y(h) ? h.value = o : null),
175
+ "sort-selected": e(c),
176
+ "onUpdate:sort-selected": i[2] || (i[2] = (o) => y(c) ? c.value = o : null),
175
177
  "highlighted-id": f.value,
176
178
  "onUpdate:highlighted-id": i[3] || (i[3] = (o) => f.value = o),
177
179
  items: e(H),
178
- "visible-ids": e(I),
180
+ "visible-ids": e(x),
179
181
  "max-limit-tooltip-text": a.maxLimitTooltipText,
180
182
  "sort-options": a.sortOptions,
181
183
  "sort-option-name-key": a.sortOptionNameKey,
182
184
  "min-visible": a.minVisible,
183
185
  "max-visible": a.maxVisible,
184
186
  "test-id": `${a.testId}-${e(p).LEGEND}`,
185
- "onUpdate:visibleIds": i[4] || (i[4] = (o) => c("update:visibleIds", o))
187
+ "onUpdate:visibleIds": i[4] || (i[4] = (o) => h("update:visibleIds", o))
186
188
  }, 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"])
187
189
  ]))
188
190
  ], 16)
@@ -190,5 +192,5 @@ const lt = {
190
192
  }
191
193
  });
192
194
  export {
193
- Tt as default
195
+ gt as default
194
196
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './Text.vue_vue_type_style_index_0_scoped_94bd409b_lang.css';
1
+ import './Menu.vue_vue_type_style_index_0_scoped_eb057818_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.2.0-test.14",
3
+ "version": "2.2.0-test.15",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .chart-container[data-v-4d927c4b]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-4d927c4b]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-4d927c4b]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-4d927c4b]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-4d927c4b]{border-left:1px solid var(--common-divider)}