@ironsource/shared-ui 2.1.12-rc.32 → 2.1.12-rc.33

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 (27) hide show
  1. package/Chart.vue_vue_type_style_index_0_scoped_3da25a36_lang.css +1 -0
  2. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_2f916aeb_lang.css +1 -0
  3. package/ChartPlane.vue_vue_type_style_index_0_scoped_f871962e_lang.css +1 -0
  4. package/RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css +1 -0
  5. package/components/chart/Chart.vue.d.ts +10 -0
  6. package/components/chart/Chart.vue.js +2 -2
  7. package/components/chart/Chart.vue2.js +29 -25
  8. package/components/chart/ChartHeaderTrend.vue.js +2 -2
  9. package/components/chart/ChartHeaderTrend.vue2.js +34 -33
  10. package/components/chart/ChartPlane.vue.d.ts +10 -0
  11. package/components/chart/ChartPlane.vue.js +4 -4
  12. package/components/chart/ChartPlane.vue2.js +158 -147
  13. package/components/chart/ChartStoryArgs.d.ts +12 -0
  14. package/components/chart/consts.d.ts +4 -0
  15. package/components/chart/consts.js +30 -26
  16. package/components/chart/index.d.ts +39 -1
  17. package/components/chart/mockData.d.ts +15 -0
  18. package/components/chart/types.d.ts +2 -1
  19. package/components/chart/types.js +5 -5
  20. package/components/radioButton/v3/RadioButton.vue.js +2 -2
  21. package/components/radioButton/v3/RadioButton.vue2.js +40 -38
  22. package/index.js +1 -1
  23. package/package.json +1 -1
  24. package/Chart.vue_vue_type_style_index_0_scoped_fa533a3d_lang.css +0 -1
  25. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_db8a902c_lang.css +0 -1
  26. package/ChartPlane.vue_vue_type_style_index_0_scoped_4f67d41d_lang.css +0 -1
  27. package/RadioButton.vue_vue_type_style_index_0_scoped_1da367f8_lang.css +0 -1
@@ -41,6 +41,8 @@ declare const ChartTypes: () => ({
41
41
  tooltipTotalType: import("../../utils/totals").TotalType;
42
42
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
43
43
  tooltipOrder: TooltipOrder;
44
+ indicateIncompleteData: boolean;
45
+ tooltipExcludeTotalItem: boolean;
44
46
  fullHeight: boolean;
45
47
  fullHeightBottomSpacing: number;
46
48
  withSettingsHeader: boolean;
@@ -200,6 +202,14 @@ declare const ChartTypes: () => ({
200
202
  type: import("vue").PropType<TooltipOrder>;
201
203
  default: TooltipOrder;
202
204
  };
205
+ indicateIncompleteData: {
206
+ type: import("vue").PropType<boolean>;
207
+ default: boolean;
208
+ };
209
+ tooltipExcludeTotalItem: {
210
+ type: import("vue").PropType<boolean>;
211
+ default: boolean;
212
+ };
203
213
  fullHeight: {
204
214
  type: import("vue").PropType<boolean>;
205
215
  default: boolean;
@@ -224,7 +234,7 @@ declare const ChartTypes: () => ({
224
234
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
225
235
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
226
236
  "onUpdate:chartType"?: (chartType: ChartType) => any;
227
- } & 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" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
237
+ } & 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" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
228
238
  $attrs: {
229
239
  [x: string]: unknown;
230
240
  };
@@ -392,6 +402,14 @@ declare const ChartTypes: () => ({
392
402
  type: import("vue").PropType<TooltipOrder>;
393
403
  default: TooltipOrder;
394
404
  };
405
+ indicateIncompleteData: {
406
+ type: import("vue").PropType<boolean>;
407
+ default: boolean;
408
+ };
409
+ tooltipExcludeTotalItem: {
410
+ type: import("vue").PropType<boolean>;
411
+ default: boolean;
412
+ };
395
413
  fullHeight: {
396
414
  type: import("vue").PropType<boolean>;
397
415
  default: boolean;
@@ -457,6 +475,8 @@ declare const ChartTypes: () => ({
457
475
  tooltipTotalType: import("../../utils/totals").TotalType;
458
476
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
459
477
  tooltipOrder: TooltipOrder;
478
+ indicateIncompleteData: boolean;
479
+ tooltipExcludeTotalItem: boolean;
460
480
  fullHeight: boolean;
461
481
  fullHeightBottomSpacing: number;
462
482
  withSettingsHeader: boolean;
@@ -636,6 +656,14 @@ declare const ChartTypes: () => ({
636
656
  type: import("vue").PropType<TooltipOrder>;
637
657
  default: TooltipOrder;
638
658
  };
659
+ indicateIncompleteData: {
660
+ type: import("vue").PropType<boolean>;
661
+ default: boolean;
662
+ };
663
+ tooltipExcludeTotalItem: {
664
+ type: import("vue").PropType<boolean>;
665
+ default: boolean;
666
+ };
639
667
  fullHeight: {
640
668
  type: import("vue").PropType<boolean>;
641
669
  default: boolean;
@@ -818,6 +846,14 @@ declare const ChartTypes: () => ({
818
846
  type: import("vue").PropType<TooltipOrder>;
819
847
  default: TooltipOrder;
820
848
  };
849
+ indicateIncompleteData: {
850
+ type: import("vue").PropType<boolean>;
851
+ default: boolean;
852
+ };
853
+ tooltipExcludeTotalItem: {
854
+ type: import("vue").PropType<boolean>;
855
+ default: boolean;
856
+ };
821
857
  fullHeight: {
822
858
  type: import("vue").PropType<boolean>;
823
859
  default: boolean;
@@ -883,6 +919,8 @@ declare const ChartTypes: () => ({
883
919
  tooltipTotalType: import("../../utils/totals").TotalType;
884
920
  tooltipTotalCalcFn: (values: number[], totalType: import("../../utils/totals").TotalType) => number;
885
921
  tooltipOrder: TooltipOrder;
922
+ indicateIncompleteData: boolean;
923
+ tooltipExcludeTotalItem: boolean;
886
924
  fullHeight: boolean;
887
925
  fullHeightBottomSpacing: number;
888
926
  withSettingsHeader: boolean;
@@ -38,6 +38,7 @@ export declare const MULTIPLE_DATASETS_DATE: ({
38
38
  id: number;
39
39
  label: string;
40
40
  caption: string;
41
+ isTotal: boolean;
41
42
  icon: string;
42
43
  data: {
43
44
  date: string;
@@ -58,6 +59,20 @@ export declare const MULTIPLE_DATASETS_DATE: ({
58
59
  value2: number;
59
60
  value3: number;
60
61
  }[];
62
+ isTotal?: undefined;
63
+ } | {
64
+ id: number;
65
+ label: string;
66
+ caption: string;
67
+ icon: string;
68
+ data: {
69
+ date: string;
70
+ value: number;
71
+ value2: number;
72
+ value3: number;
73
+ }[];
74
+ isTotal?: undefined;
75
+ iconType?: undefined;
61
76
  })[];
62
77
  export declare const MULTIPLE_DATASETS_SINGLE_DATE: {
63
78
  id: number;
@@ -24,6 +24,7 @@ export type ChartDataSet = {
24
24
  iconType?: IconTypes;
25
25
  countryFlag?: string;
26
26
  image?: string;
27
+ isTotal?: boolean;
27
28
  };
28
29
  export type ChartParsingConfig = {
29
30
  xAxisKey: string;
@@ -84,6 +85,6 @@ export declare enum TooltipOrder {
84
85
  export declare enum TrendDirection {
85
86
  UP = "up",
86
87
  DOWN = "down",
87
- NEUTRAL = "right"
88
+ NEUTRAL = "neutral"
88
89
  }
89
90
  export type ColorVariant = 'default' | 'mediation';
@@ -1,7 +1,7 @@
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 || {});
1
+ var L = /* @__PURE__ */ ((e) => (e.Line = "line", e.Bar = "bar", e.StackedLine = "stackedLine", e.StackedBar = "stackedBar", e))(L || {}), a = /* @__PURE__ */ ((e) => (e.DAILY = "daily", e.WEEKLY = "weekly", e.MONTHLY = "monthly", e))(a || {}), n = /* @__PURE__ */ ((e) => (e.Legend = "legend", e.YAxis = "yAxis", e))(n || {}), r = /* @__PURE__ */ ((e) => (e.UP = "up", e.DOWN = "down", e.NEUTRAL = "neutral", e))(r || {});
2
2
  export {
3
- e as ChartType,
4
- r as DateInterval,
5
- a as TooltipOrder,
6
- n as TrendDirection
3
+ L as ChartType,
4
+ a as DateInterval,
5
+ n as TooltipOrder,
6
+ r as TrendDirection
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RadioButton.vue2.js";
2
2
  /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../RadioButton.vue_vue_type_style_index_0_scoped_1da367f8_lang.css"; //*');
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1da367f8"]]);
3
+ // import "../../../RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css"; //*');
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dac25b9f"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import "../../../RadioButton.vue_vue_type_style_index_0_scoped_1da367f8_lang.css"; import { defineComponent as y, openBlock as n, createElementBlock as E, normalizeClass as T, unref as t, createElementVNode as r, withDirectives as I, mergeProps as u, isRef as C, vModelRadio as N, renderSlot as g, createVNode as w, withCtx as i, createTextVNode as f, toDisplayString as m, createBlock as v, createCommentVNode as R } from "vue";
2
- import c from "../../typography/Text.vue.js";
3
- import { useRadio as z } from "../common/useRadio.js";
4
- import { RadioTestIdModifiers as o } from "../../../testids/index.js";
5
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
6
- const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PURE__ */ y({
1
+ import "../../../RadioButton.vue_vue_type_style_index_0_scoped_dac25b9f_lang.css"; import { defineComponent as E, computed as I, openBlock as u, createElementBlock as C, normalizeClass as T, unref as e, createElementVNode as o, withDirectives as N, mergeProps as i, isRef as g, vModelRadio as w, renderSlot as z, createVNode as A, withCtx as m, createTextVNode as f, toDisplayString as c, createBlock as v, createCommentVNode as R } from "vue";
2
+ import p from "../../typography/Text.vue.js";
3
+ import { useRadio as D } from "../common/useRadio.js";
4
+ import { RadioTestIdModifiers as r } from "../../../testids/index.js";
5
+ import { useTestIdAttrs as L } from "../../../utils/testIds.js";
6
+ const $ = { class: "wrapper" }, F = ["value", "name", "disabled"], U = /* @__PURE__ */ E({
7
7
  __name: "RadioButton",
8
8
  props: {
9
9
  label: { default: "" },
@@ -15,59 +15,61 @@ const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PUR
15
15
  disabledButton: { type: Boolean, default: !1 }
16
16
  },
17
17
  emits: ["update:modelValue", "change"],
18
- setup(e, { emit: B }) {
19
- const x = e, { radioRef: V, focus: p, disabled: b, modelValue: a, radioGroup: h } = z(
20
- x,
18
+ setup(t, { emit: B }) {
19
+ const d = t, { radioRef: V, focus: x, disabled: h, modelValue: a, radioGroup: k } = D(
20
+ d,
21
21
  B
22
- ), d = A(x.testId, o);
23
- return (k, l) => (n(), E("label", {
24
- class: T(["radio-button", { "radio-button--disabled": t(b) }])
22
+ ), s = L(d.testId, r), b = I(
23
+ () => h.value || d.disabledButton
24
+ );
25
+ return (y, l) => (u(), C("label", {
26
+ class: T(["radio-button", { "radio-button--disabled": e(b) }])
25
27
  }, [
26
- r("span", D, [
27
- I(r("input", u({
28
+ o("span", $, [
29
+ N(o("input", i({
28
30
  ref_key: "radioRef",
29
31
  ref: V,
30
- "onUpdate:modelValue": l[0] || (l[0] = (s) => C(a) ? a.value = s : null),
31
- value: e.label,
32
- name: e.name || t(h)?.name,
32
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => g(a) ? a.value = n : null),
33
+ value: t.label,
34
+ name: t.name || e(k)?.name,
33
35
  type: "radio",
34
- disabled: t(b) || e.disabledButton
35
- }, t(d)[t(o).FIELD], {
36
- onFocus: l[1] || (l[1] = (s) => p.value = !0),
37
- onBlur: l[2] || (l[2] = (s) => p.value = !1)
38
- }), null, 16, L), [
39
- [N, t(a)]
36
+ disabled: e(b)
37
+ }, e(s)[e(r).FIELD], {
38
+ onFocus: l[1] || (l[1] = (n) => x.value = !0),
39
+ onBlur: l[2] || (l[2] = (n) => x.value = !1)
40
+ }), null, 16, F), [
41
+ [w, e(a)]
40
42
  ]),
41
- r("span", {
42
- class: T([{ "circle--selected": t(a) === e.label }, "circle"])
43
+ o("span", {
44
+ class: T([{ "circle--selected": e(a) === t.label }, "circle"])
43
45
  }, null, 2)
44
46
  ]),
45
- r("span", u({ class: "label" }, t(d)[t(o).LABEL]), [
46
- g(k.$slots, "default", {}, () => [
47
- w(c, { "is-truncated": "" }, {
48
- default: i(() => [
49
- f(m(e.label), 1)
47
+ o("span", i({ class: "label" }, e(s)[e(r).LABEL]), [
48
+ z(y.$slots, "default", {}, () => [
49
+ A(p, { "is-truncated": "" }, {
50
+ default: m(() => [
51
+ f(c(t.label), 1)
50
52
  ]),
51
53
  _: 1
52
54
  })
53
55
  ], !0),
54
- !e.errorText && e.helperText ? (n(), v(c, {
56
+ !t.errorText && t.helperText ? (u(), v(p, {
55
57
  key: 0,
56
58
  class: "helper-text--text helper-text",
57
59
  size: "caption"
58
60
  }, {
59
- default: i(() => [
60
- f(m(e.helperText), 1)
61
+ default: m(() => [
62
+ f(c(t.helperText), 1)
61
63
  ]),
62
64
  _: 1
63
65
  })) : R("", !0),
64
- e.errorText ? (n(), v(c, u({
66
+ t.errorText ? (u(), v(p, i({
65
67
  key: 1,
66
68
  size: "caption",
67
69
  class: "helper-text--error helper-text"
68
- }, t(d)[t(o).ERROR_TEXT]), {
69
- default: i(() => [
70
- f(m(e.errorText), 1)
70
+ }, e(s)[e(r).ERROR_TEXT]), {
71
+ default: m(() => [
72
+ f(c(t.errorText), 1)
71
73
  ]),
72
74
  _: 1
73
75
  }, 16)) : R("", !0)
@@ -76,5 +78,5 @@ const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PUR
76
78
  }
77
79
  });
78
80
  export {
79
- O as default
81
+ U as default
80
82
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_a91fcaa5_lang.css';
1
+ import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_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.32",
3
+ "version": "2.1.12-rc.33",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .chart-container[data-v-fa533a3d]{border:1px solid var(--common-divider);background:var(--background-paper);display:flex;border-radius:0 0 6px 6px;width:100%}.chart-planes[data-v-fa533a3d]{width:100%;height:100%;overflow-y:auto}.chart-planes.with-legend[data-v-fa533a3d]{width:calc(100% - 221px)}.chart-planes .extra-chart-plane[data-v-fa533a3d]{border-top:1px solid var(--common-divider)}.chart-sidebar[data-v-fa533a3d]{border-left:1px solid var(--common-divider)}
@@ -1 +0,0 @@
1
- .chart-trend[data-v-db8a902c]{display:flex;color:var(--text-secondary)}.chart-trend--up[data-v-db8a902c]{color:var(--success-contrast-text)}.chart-trend--up .trend-icon[data-v-db8a902c]{color:var(--success-darker)}.chart-trend--down[data-v-db8a902c]{color:var(--error-contrast-text)}.chart-trend--down .trend-icon[data-v-db8a902c]{color:var(--error-dark)}.trend-icon[data-v-db8a902c]{display:flex;align-self:normal}.chart-trend-tooltip[data-v-db8a902c]{align-items:normal}.trend-tooltip[data-v-db8a902c]{display:flex;flex-direction:column}.trend-tooltip__header[data-v-db8a902c]{margin-bottom:.375rem}.trend-tooltip__text[data-v-db8a902c]{color:var(--text-secondary)}.separator[data-v-db8a902c]{display:flex;align-items:center;gap:.5rem;justify-content:center;height:1.1875rem}.separator__text[data-v-db8a902c]{display:block;color:var(--text-secondary)}.separator hr[data-v-db8a902c]{width:100%;height:1px;border:0;background:var(--common-divider)}
@@ -1 +0,0 @@
1
- .chart-plane-container[data-v-4f67d41d]{--headerHeight: var(--11153e48);width:100%;height:var(--30644433);position:relative}.header-wrapper[data-v-4f67d41d]{position:absolute;width:100%;height:var(--headerHeight);top:0;z-index:1}.chart-plane[data-v-4f67d41d]{padding-top:var(--headerHeight);height:100%}.chart-empty[data-v-4f67d41d]{background:var(--background-paper)}.chart[data-v-4f67d41d]{width:100%;height:100%;position:relative}.chart__canvas[data-v-4f67d41d]{width:100%;height:100%}.chart__tooltip[data-v-4f67d41d]{position:absolute;pointer-events:none;transition:all .1s ease;min-width:214px;max-width:270px;z-index:1}
@@ -1 +0,0 @@
1
- .label[data-v-1da367f8]{color:#41454d}.radio-button[data-v-1da367f8]{display:flex;align-items:flex-start}.radio-button--disabled[data-v-1da367f8]{opacity:.7;cursor:default}.radio-button--disabled .label[data-v-1da367f8]{cursor:default}.helper-text[data-v-1da367f8]{margin-left:-1.5rem;margin-top:.25rem;color:#53575b}.helper-text--error[data-v-1da367f8]{color:#da564f}.helper-text--text[data-v-1da367f8]{color:#696a6b}.wrapper[data-v-1da367f8]{display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;background-color:transparent;outline:0;border:0;margin:0;cursor:pointer;user-select:none;vertical-align:middle;appearance:none;text-decoration:none;padding:.125rem .5rem;border-radius:50%}.label[data-v-1da367f8]{cursor:pointer;color:#53575b;flex-direction:column;display:inline-flex}.circle[data-v-1da367f8]{border-radius:50%;width:16px;transition:all .2s ease-in-out 0s;height:16px}.circle[data-v-1da367f8]:not(.circle--selected){box-shadow:#a9afb4 0 0 0 2px inset}.circle--selected[data-v-1da367f8]{background-color:#3083ff}.circle[data-v-1da367f8]:before{display:block;width:16px;height:16px;background-image:radial-gradient(rgb(255,255,255),rgb(255,255,255) 3px,transparent 28%);content:""}input[data-v-1da367f8]{cursor:inherit;position:absolute;opacity:0;width:100%;height:100%;top:0;left:0;margin:0;padding:0;z-index:1}