@ironsource/shared-ui 2.1.12-test.59 → 2.1.12-test.60

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 (87) hide show
  1. package/ButtonV4.vue_vue_type_style_index_0_scoped_d7948c77_lang.css +1 -0
  2. package/Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css +1 -0
  3. package/ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css +1 -0
  4. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css +1 -0
  5. package/ChartPlane.vue_vue_type_style_index_0_scoped_ae87f435_lang.css +1 -0
  6. package/DialogV4.vue_vue_type_style_index_0_scoped_eb226e31_lang.css +1 -0
  7. package/DropdownV4.vue_vue_type_style_index_0_scoped_08cb822e_lang.css +1 -0
  8. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +1 -0
  9. package/FormRow.vue_vue_type_style_index_0_scoped_2d5a3057_lang.css +1 -0
  10. package/OptionV4.vue_vue_type_style_index_0_scoped_9cdf3a94_lang.css +1 -0
  11. package/Tooltip.vue_vue_type_style_index_0_scoped_20630944_lang.css +1 -0
  12. package/TooltipV4.vue_vue_type_style_index_0_scoped_bcb40ed4_lang.css +1 -0
  13. package/components/appIcon/index.d.ts +3 -3
  14. package/components/banner/Banner.vue.d.ts +3 -3
  15. package/components/banner/index.d.ts +7 -7
  16. package/components/button/common/consts.d.ts +1 -0
  17. package/components/button/v3/Button.vue.d.ts +3 -3
  18. package/components/button/v3/ButtonBase.vue.d.ts +3 -3
  19. package/components/button/v3/IconButton.vue.d.ts +3 -3
  20. package/components/button/v3/index.d.ts +14 -14
  21. package/components/button/v4/ButtonV4.vue.d.ts +4 -3
  22. package/components/button/v4/ButtonV4.vue.js +3 -3
  23. package/components/button/v4/ButtonV4.vue2.js +1 -1
  24. package/components/chart/Chart.vue.d.ts +24 -25
  25. package/components/chart/Chart.vue.js +4 -4
  26. package/components/chart/Chart.vue2.js +82 -88
  27. package/components/chart/ChartHeader.vue.d.ts +24 -25
  28. package/components/chart/ChartHeader.vue.js +3 -3
  29. package/components/chart/ChartHeader.vue2.js +30 -35
  30. package/components/chart/ChartHeaderTrend.vue.d.ts +13 -15
  31. package/components/chart/ChartHeaderTrend.vue.js +3 -3
  32. package/components/chart/ChartHeaderTrend.vue2.js +32 -34
  33. package/components/chart/ChartPlane.vue.d.ts +24 -25
  34. package/components/chart/ChartPlane.vue.js +5 -5
  35. package/components/chart/ChartPlane.vue2.js +122 -128
  36. package/components/chart/index.d.ts +59 -88
  37. package/components/checkbox/v3/Checkbox.vue.d.ts +3 -3
  38. package/components/checkbox/v3/index.d.ts +7 -7
  39. package/components/dialog/v4/DialogV4.vue.d.ts +4 -3
  40. package/components/dialog/v4/DialogV4.vue.js +4 -4
  41. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  42. package/components/dialog/v4/index.d.ts +7 -7
  43. package/components/dropdown/v4/DropdownV4.vue.d.ts +8 -0
  44. package/components/dropdown/v4/DropdownV4.vue.js +4 -4
  45. package/components/dropdown/v4/DropdownV4.vue2.js +105 -95
  46. package/components/dropdown/v4/OptionV4.vue.d.ts +8 -0
  47. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  48. package/components/dropdown/v4/OptionV4.vue2.js +91 -69
  49. package/components/dropdown/v4/index.d.ts +46 -2
  50. package/components/forms/FormRow.vue.d.ts +9 -2
  51. package/components/forms/FormRow.vue.js +3 -3
  52. package/components/forms/FormRow.vue2.js +25 -14
  53. package/components/forms/index.d.ts +25 -5
  54. package/components/search/v3/index.d.ts +3 -3
  55. package/components/shared/FieldLabel.vue.d.ts +19 -7
  56. package/components/shared/FieldLabel.vue.js +3 -3
  57. package/components/shared/FieldLabel.vue2.js +50 -37
  58. package/components/tabs/v3/Tabs.vue.d.ts +3 -3
  59. package/components/tabs/v3/index.d.ts +7 -7
  60. package/components/tooltip/common/Tooltip.types.d.ts +1 -0
  61. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  62. package/components/tooltip/v3/Tooltip.vue.js +2 -2
  63. package/components/tooltip/v3/Tooltip.vue2.js +1 -1
  64. package/components/tooltip/v3/index.d.ts +7 -7
  65. package/components/tooltip/v4/TooltipV4.vue.d.ts +4 -4
  66. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  67. package/components/tooltip/v4/TooltipV4.vue2.js +1 -1
  68. package/components/tooltip/v4/index.d.ts +7 -7
  69. package/components/typography/Text.vue.d.ts +3 -3
  70. package/components/typography/index.d.ts +7 -7
  71. package/composables/useFormValidation.d.ts +1 -0
  72. package/composables/useFormValidation.js +32 -27
  73. package/index.d.ts +127 -39
  74. package/index.js +1 -1
  75. package/package.json +1 -1
  76. package/ButtonV4.vue_vue_type_style_index_0_scoped_bdfce3aa_lang.css +0 -1
  77. package/Chart.vue_vue_type_style_index_0_scoped_757e7752_lang.css +0 -1
  78. package/ChartHeader.vue_vue_type_style_index_0_scoped_92052479_lang.css +0 -1
  79. package/ChartHeaderTrend.vue_vue_type_style_index_0_scoped_d61ed404_lang.css +0 -1
  80. package/ChartPlane.vue_vue_type_style_index_0_scoped_bb382dc4_lang.css +0 -1
  81. package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +0 -1
  82. package/DropdownV4.vue_vue_type_style_index_0_scoped_d154c5da_lang.css +0 -1
  83. package/FieldLabel.vue_vue_type_style_index_0_scoped_96ee1c98_lang.css +0 -1
  84. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +0 -1
  85. package/OptionV4.vue_vue_type_style_index_0_scoped_1e8837dc_lang.css +0 -1
  86. package/Tooltip.vue_vue_type_style_index_0_scoped_9020a179_lang.css +0 -1
  87. package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +0 -1
@@ -15,13 +15,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
16
16
  header?: string;
17
17
  subheader?: string;
18
- subheaderTooltipHeader?: string;
19
- subheaderTooltipText?: string;
18
+ subheaderTooltip?: {
19
+ header?: string;
20
+ text?: string;
21
+ };
20
22
  trendValue?: string | number;
21
23
  trendDirection?: "up" | "down";
22
- trendTooltipHeader?: string;
23
- trendTooltipRangeCurrent?: string;
24
- trendTooltipRangePrevious?: string;
24
+ trendTooltip?: {
25
+ header?: string;
26
+ rangeCurrent?: string;
27
+ rangePrevious?: string;
28
+ };
25
29
  noDataIcon?: string;
26
30
  noDataTitle?: string;
27
31
  noDataSubtitle?: string;
@@ -50,13 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
54
  tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
51
55
  header: string;
52
56
  subheader: string;
53
- subheaderTooltipHeader: any;
54
- subheaderTooltipText: any;
57
+ subheaderTooltip: any;
55
58
  trendValue: any;
56
59
  trendDirection: string;
57
- trendTooltipHeader: any;
58
- trendTooltipRangeCurrent: any;
59
- trendTooltipRangePrevious: any;
60
+ trendTooltip: any;
60
61
  noDataIcon: string;
61
62
  noDataTitle: string;
62
63
  noDataSubtitle: string;
@@ -89,13 +90,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
89
90
  tooltipTotalCalcFn?: (values: number[], totalType: TotalType) => number;
90
91
  header?: string;
91
92
  subheader?: string;
92
- subheaderTooltipHeader?: string;
93
- subheaderTooltipText?: string;
93
+ subheaderTooltip?: {
94
+ header?: string;
95
+ text?: string;
96
+ };
94
97
  trendValue?: string | number;
95
98
  trendDirection?: "up" | "down";
96
- trendTooltipHeader?: string;
97
- trendTooltipRangeCurrent?: string;
98
- trendTooltipRangePrevious?: string;
99
+ trendTooltip?: {
100
+ header?: string;
101
+ rangeCurrent?: string;
102
+ rangePrevious?: string;
103
+ };
99
104
  noDataIcon?: string;
100
105
  noDataTitle?: string;
101
106
  noDataSubtitle?: string;
@@ -124,13 +129,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
124
129
  tooltipTotalCalcFn: (values: number[], totalType: TotalType) => number;
125
130
  header: string;
126
131
  subheader: string;
127
- subheaderTooltipHeader: any;
128
- subheaderTooltipText: any;
132
+ subheaderTooltip: any;
129
133
  trendValue: any;
130
134
  trendDirection: string;
131
- trendTooltipHeader: any;
132
- trendTooltipRangeCurrent: any;
133
- trendTooltipRangePrevious: any;
135
+ trendTooltip: any;
134
136
  noDataIcon: string;
135
137
  noDataTitle: string;
136
138
  noDataSubtitle: string;
@@ -164,12 +166,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
164
166
  yAxisFormat: ValueFormat;
165
167
  parsing: ChartParsingConfig;
166
168
  dataSets: ChartDataSet[];
169
+ trendTooltip: any;
167
170
  subheader: string;
168
- subheaderTooltipHeader: string;
169
- subheaderTooltipText: string;
170
- trendTooltipHeader: string;
171
- trendTooltipRangeCurrent: string;
172
- trendTooltipRangePrevious: string;
171
+ subheaderTooltip: any;
173
172
  trendValue: string | number;
174
173
  trendDirection: "up" | "down";
175
174
  tickCount: number;
@@ -1,7 +1,7 @@
1
- import o from "./Chart.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Chart.vue_vue_type_style_index_0_scoped_757e7752_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-757e7752"]]);
1
+ import e from "./Chart.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css"; //*');
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-de950ffe"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,17 +1,17 @@
1
- import "../../Chart.vue_vue_type_style_index_0_scoped_757e7752_lang.css"; import { defineComponent as P, computed as n, openBlock as s, createElementBlock as m, Fragment as x, createBlock as S, unref as o, isRef as f, withCtx as d, renderSlot as u, createCommentVNode as I, createElementVNode as H, mergeProps as T, normalizeClass as E, createVNode as D, createSlots as N, renderList as U } from "vue";
2
- import { useVModel as F } from "@vueuse/core";
3
- import R from "./ChartLegend.vue.js";
4
- import M from "./SettingsHeader.vue.js";
5
- import L from "./ChartPlane.vue.js";
6
- import { useColorsMap as O } from "./composables/useColorsMap.js";
7
- import { DEFAULT_TICK_COUNT as $, DEFAULT_MIN_VISIBLE as K, DEFAULT_MAX_VISIBLE as z } from "./consts.js";
1
+ import "../../Chart.vue_vue_type_style_index_0_scoped_de950ffe_lang.css"; import { defineComponent as E, computed as n, openBlock as s, createElementBlock as m, Fragment as S, createBlock as x, unref as a, isRef as f, withCtx as d, renderSlot as u, createCommentVNode as I, createElementVNode as D, mergeProps as y, normalizeClass as N, createVNode as F, createSlots as U, renderList as M } from "vue";
2
+ import { useVModel as L } from "@vueuse/core";
3
+ import P from "./ChartLegend.vue.js";
4
+ import O from "./SettingsHeader.vue.js";
5
+ import k from "./ChartPlane.vue.js";
6
+ import { useColorsMap as $ } from "./composables/useColorsMap.js";
7
+ import { DEFAULT_TICK_COUNT as K, DEFAULT_MIN_VISIBLE as z, DEFAULT_MAX_VISIBLE as R } from "./consts.js";
8
8
  import { ChartType as X } from "./types.js";
9
9
  import { useChartHeight as j } from "./composables/useChartHeight.js";
10
10
  import { TotalType as q, calculateTotal as G } from "../../utils/totals.js";
11
11
  const J = {
12
12
  key: 0,
13
13
  class: "chart-sidebar"
14
- }, re = /* @__PURE__ */ P({
14
+ }, it = /* @__PURE__ */ E({
15
15
  __name: "Chart",
16
16
  props: {
17
17
  dataSets: { default: () => [] },
@@ -20,7 +20,7 @@ const J = {
20
20
  parsing: { default: void 0 },
21
21
  xAxisFormat: { default: "string" },
22
22
  yAxisFormat: { default: "number" },
23
- tickCount: { default: $ },
23
+ tickCount: { default: K },
24
24
  loading: { type: Boolean, default: !1 },
25
25
  withAnimation: { type: Boolean, default: !0 },
26
26
  totalsChart: { type: Boolean, default: !1 },
@@ -28,19 +28,16 @@ const J = {
28
28
  tooltipTotalCalcFn: { type: Function, default: G },
29
29
  header: { default: "" },
30
30
  subheader: { default: "" },
31
- subheaderTooltipHeader: { default: null },
32
- subheaderTooltipText: { default: null },
31
+ subheaderTooltip: { default: null },
33
32
  trendValue: { default: null },
34
33
  trendDirection: { default: "up" },
35
- trendTooltipHeader: { default: null },
36
- trendTooltipRangeCurrent: { default: null },
37
- trendTooltipRangePrevious: { default: null },
34
+ trendTooltip: { default: null },
38
35
  noDataIcon: { default: "file-search" },
39
36
  noDataTitle: { default: "No data to display" },
40
37
  noDataSubtitle: { default: "Search again with different filters" },
41
38
  hideLegend: { type: Boolean, default: !1 },
42
- minVisible: { default: K },
43
- maxVisible: { default: z },
39
+ minVisible: { default: z },
40
+ maxVisible: { default: R },
44
41
  maxLimitTooltipText: { default: "" },
45
42
  sortSelected: { default: null },
46
43
  sortOptions: { default: () => [] },
@@ -50,103 +47,100 @@ const J = {
50
47
  extraCharts: { default: () => [] }
51
48
  },
52
49
  emits: ["update:chartType", "update:visibleIds", "update:sortSelected"],
53
- setup(a, { emit: p }) {
54
- const e = a, i = F(e, "chartType", p), c = F(e, "sortSelected", p), y = n(() => ({
55
- dataSets: e.dataSets,
56
- visibleIds: e.visibleIds,
57
- parsing: e.parsing,
58
- xAxisFormat: e.xAxisFormat,
59
- yAxisFormat: e.yAxisFormat,
60
- tickCount: e.tickCount,
61
- header: e.header,
62
- subheader: e.subheader,
63
- loading: e.loading,
64
- noDataIcon: e.noDataIcon,
65
- noDataTitle: e.noDataTitle,
66
- noDataSubtitle: e.noDataSubtitle,
67
- withAnimation: e.withAnimation,
68
- typeSwitcher: !e.withSettingsHeader,
69
- height: V.value,
50
+ setup(o, { emit: p }) {
51
+ const t = o, r = L(t, "chartType", p), c = L(t, "sortSelected", p), T = n(() => ({
52
+ dataSets: t.dataSets,
53
+ visibleIds: t.visibleIds,
54
+ parsing: t.parsing,
55
+ xAxisFormat: t.xAxisFormat,
56
+ yAxisFormat: t.yAxisFormat,
57
+ tickCount: t.tickCount,
58
+ header: t.header,
59
+ subheader: t.subheader,
60
+ loading: t.loading,
61
+ noDataIcon: t.noDataIcon,
62
+ noDataTitle: t.noDataTitle,
63
+ noDataSubtitle: t.noDataSubtitle,
64
+ withAnimation: t.withAnimation,
65
+ typeSwitcher: !t.withSettingsHeader,
66
+ height: H.value,
70
67
  compactHeader: C.value > 1,
71
- trendValue: e.trendValue,
72
- trendDirection: e.trendDirection,
73
- trendTooltipHeader: e.trendTooltipHeader,
74
- trendTooltipRangeCurrent: e.trendTooltipRangeCurrent,
75
- trendTooltipRangePrevious: e.trendTooltipRangePrevious,
76
- totalsChart: e.totalsChart,
77
- subheaderTooltipHeader: e.subheaderTooltipHeader,
78
- subheaderTooltipText: e.subheaderTooltipText,
68
+ trendValue: t.trendValue,
69
+ trendDirection: t.trendDirection,
70
+ trendTooltip: t.trendTooltip,
71
+ totalsChart: t.totalsChart,
72
+ subheaderTooltip: t.subheaderTooltip,
79
73
  colorsMap: h.value,
80
- tooltipTotalType: e.tooltipTotalType,
81
- tooltipTotalCalcFn: e.tooltipTotalCalcFn
82
- })), k = n(() => e.dataSets), g = n(() => e.visibleIds), b = n(() => e.extraCharts.length), C = n(() => 1 + b.value), w = (t) => t === b.value - 1, { colorsMap: h } = O({
83
- dataSets: k,
84
- visibleIds: g
85
- }), A = n(() => e.dataSets.map((t) => ({
86
- id: t.id,
87
- label: t.label,
88
- caption: t.caption || null,
89
- color: h.value[t.id] || null,
90
- icon: t.icon || null,
91
- iconType: t.iconType || "branded"
92
- }))), { containerProps: B, eachPlaneHeight: V } = j({
74
+ tooltipTotalType: t.tooltipTotalType,
75
+ tooltipTotalCalcFn: t.tooltipTotalCalcFn
76
+ })), w = n(() => t.dataSets), b = n(() => t.visibleIds), g = n(() => t.extraCharts.length), C = n(() => 1 + g.value), A = (e) => e === g.value - 1, { colorsMap: h } = $({
77
+ dataSets: w,
78
+ visibleIds: b
79
+ }), B = n(() => t.dataSets.map((e) => ({
80
+ id: e.id,
81
+ label: e.label,
82
+ caption: e.caption || null,
83
+ color: h.value[e.id] || null,
84
+ icon: e.icon || null,
85
+ iconType: e.iconType || "branded"
86
+ }))), { containerProps: V, eachPlaneHeight: H } = j({
93
87
  chartPlanesCount: C,
94
- useFullHeight: e.fullHeight
88
+ useFullHeight: t.fullHeight
95
89
  });
96
- return (t, r) => (s(), m(x, null, [
97
- a.withSettingsHeader ? (s(), S(M, {
90
+ return (e, i) => (s(), m(S, null, [
91
+ o.withSettingsHeader ? (s(), x(O, {
98
92
  key: 0,
99
- "chart-type": o(i),
100
- "onUpdate:chart-type": r[0] || (r[0] = (l) => f(i) ? i.value = l : null),
101
- "hide-legend": a.hideLegend
93
+ "chart-type": a(r),
94
+ "onUpdate:chart-type": i[0] || (i[0] = (l) => f(r) ? r.value = l : null),
95
+ "hide-legend": o.hideLegend
102
96
  }, {
103
97
  "before-chart-type": d(() => [
104
- u(t.$slots, "before-chart-type", {}, void 0, !0)
98
+ u(e.$slots, "before-chart-type", {}, void 0, !0)
105
99
  ]),
106
100
  metric: d(() => [
107
- u(t.$slots, "metric", {}, void 0, !0)
101
+ u(e.$slots, "metric", {}, void 0, !0)
108
102
  ]),
109
103
  breakdowns: d(() => [
110
- u(t.$slots, "breakdowns", {}, void 0, !0)
104
+ u(e.$slots, "breakdowns", {}, void 0, !0)
111
105
  ]),
112
106
  _: 3
113
107
  }, 8, ["chart-type", "hide-legend"])) : I("", !0),
114
- H("div", T({ class: "chart-container" }, o(B)), [
115
- H("section", {
116
- class: E(["chart-planes", [{ "with-legend": !a.hideLegend }]])
108
+ D("div", y({ class: "chart-container" }, a(V)), [
109
+ D("section", {
110
+ class: N(["chart-planes", [{ "with-legend": !o.hideLegend }]])
117
111
  }, [
118
- D(L, T({
119
- "chart-type": o(i),
120
- "onUpdate:chart-type": r[1] || (r[1] = (l) => f(i) ? i.value = l : null)
121
- }, o(y)), N({ _: 2 }, [
122
- t.$slots["subheader-tooltip"] ? {
112
+ F(k, y({
113
+ "chart-type": a(r),
114
+ "onUpdate:chart-type": i[1] || (i[1] = (l) => f(r) ? r.value = l : null)
115
+ }, a(T)), U({ _: 2 }, [
116
+ e.$slots["subheader-tooltip"] ? {
123
117
  name: "subheader-tooltip",
124
118
  fn: d(() => [
125
- u(t.$slots, "subheader-tooltip", {}, void 0, !0)
119
+ u(e.$slots, "subheader-tooltip", {}, void 0, !0)
126
120
  ]),
127
121
  key: "0"
128
122
  } : void 0
129
123
  ]), 1040, ["chart-type"]),
130
- (s(!0), m(x, null, U(a.extraCharts, (l, v) => (s(), S(L, T({
124
+ (s(!0), m(S, null, M(o.extraCharts, (l, v) => (s(), x(k, y({
131
125
  key: v,
132
126
  class: "extra-chart-plane"
133
- }, { ...o(y), ...l }, {
134
- "chart-type": o(i),
135
- "colors-map": o(h),
127
+ }, { ...a(T), ...l }, {
128
+ "chart-type": a(r),
129
+ "colors-map": a(h),
136
130
  "type-switcher": !1,
137
- "tooltip-respects-top-edge": !w(v)
131
+ "tooltip-respects-top-edge": !A(v)
138
132
  }), null, 16, ["chart-type", "colors-map", "tooltip-respects-top-edge"]))), 128))
139
133
  ], 2),
140
- a.hideLegend ? I("", !0) : (s(), m("section", J, [
141
- D(R, {
142
- "sort-selected": o(c),
143
- "onUpdate:sort-selected": r[2] || (r[2] = (l) => f(c) ? c.value = l : null),
144
- items: o(A),
145
- "visible-ids": o(g),
146
- "max-limit-tooltip-text": a.maxLimitTooltipText,
147
- "sort-options": a.sortOptions,
148
- "sort-option-name-key": a.sortOptionNameKey,
149
- "onUpdate:visibleIds": r[3] || (r[3] = (l) => p("update:visibleIds", l))
134
+ o.hideLegend ? I("", !0) : (s(), m("section", J, [
135
+ F(P, {
136
+ "sort-selected": a(c),
137
+ "onUpdate:sort-selected": i[2] || (i[2] = (l) => f(c) ? c.value = l : null),
138
+ items: a(B),
139
+ "visible-ids": a(b),
140
+ "max-limit-tooltip-text": o.maxLimitTooltipText,
141
+ "sort-options": o.sortOptions,
142
+ "sort-option-name-key": o.sortOptionNameKey,
143
+ "onUpdate:visibleIds": i[3] || (i[3] = (l) => p("update:visibleIds", l))
150
144
  }, null, 8, ["sort-selected", "items", "visible-ids", "max-limit-tooltip-text", "sort-options", "sort-option-name-key"])
151
145
  ]))
152
146
  ], 16)
@@ -154,5 +148,5 @@ const J = {
154
148
  }
155
149
  });
156
150
  export {
157
- re as default
151
+ it as default
158
152
  };
@@ -4,11 +4,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  typeSwitcher: boolean;
5
5
  header?: string;
6
6
  subheader?: string;
7
- subheaderTooltipHeader?: string;
8
- subheaderTooltipText?: string;
9
- trendTooltipHeader?: string;
10
- trendTooltipRangeCurrent?: string;
11
- trendTooltipRangePrevious?: string;
7
+ subheaderTooltip?: {
8
+ header?: string;
9
+ text?: string;
10
+ };
11
+ trendTooltip?: {
12
+ header?: string;
13
+ rangeCurrent?: string;
14
+ rangePrevious?: string;
15
+ };
12
16
  compact: boolean;
13
17
  trendValue?: string | number;
14
18
  trendDirection?: "up" | "down";
@@ -17,11 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
21
  typeSwitcher: boolean;
18
22
  header: string;
19
23
  subheader: string;
20
- subheaderTooltipHeader: any;
21
- subheaderTooltipText: any;
22
- trendTooltipHeader: any;
23
- trendTooltipRangeCurrent: any;
24
- trendTooltipRangePrevious: any;
24
+ subheaderTooltip: any;
25
+ trendTooltip: any;
25
26
  compact: boolean;
26
27
  trendValue: any;
27
28
  trendDirection: string;
@@ -32,11 +33,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
33
  typeSwitcher: boolean;
33
34
  header?: string;
34
35
  subheader?: string;
35
- subheaderTooltipHeader?: string;
36
- subheaderTooltipText?: string;
37
- trendTooltipHeader?: string;
38
- trendTooltipRangeCurrent?: string;
39
- trendTooltipRangePrevious?: string;
36
+ subheaderTooltip?: {
37
+ header?: string;
38
+ text?: string;
39
+ };
40
+ trendTooltip?: {
41
+ header?: string;
42
+ rangeCurrent?: string;
43
+ rangePrevious?: string;
44
+ };
40
45
  compact: boolean;
41
46
  trendValue?: string | number;
42
47
  trendDirection?: "up" | "down";
@@ -45,11 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
45
50
  typeSwitcher: boolean;
46
51
  header: string;
47
52
  subheader: string;
48
- subheaderTooltipHeader: any;
49
- subheaderTooltipText: any;
50
- trendTooltipHeader: any;
51
- trendTooltipRangeCurrent: any;
52
- trendTooltipRangePrevious: any;
53
+ subheaderTooltip: any;
54
+ trendTooltip: any;
53
55
  compact: boolean;
54
56
  trendValue: any;
55
57
  trendDirection: string;
@@ -59,13 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
59
61
  header: string;
60
62
  compact: boolean;
61
63
  chartType: ChartType;
64
+ trendTooltip: any;
62
65
  typeSwitcher: boolean;
63
66
  subheader: string;
64
- subheaderTooltipHeader: string;
65
- subheaderTooltipText: string;
66
- trendTooltipHeader: string;
67
- trendTooltipRangeCurrent: string;
68
- trendTooltipRangePrevious: string;
67
+ subheaderTooltip: any;
69
68
  trendValue: string | number;
70
69
  trendDirection: "up" | "down";
71
70
  }>, {
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeader.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_92052479_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-92052479"]]);
3
+ // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css"; //*');
4
+ const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1ff0e54f"]]);
5
5
  export {
6
- s as default
6
+ f as default
7
7
  };
@@ -1,28 +1,25 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_92052479_lang.css"; import { defineComponent as S, useSlots as R, computed as m, openBlock as r, createElementBlock as w, normalizeClass as B, createElementVNode as i, createVNode as f, unref as t, withCtx as o, renderSlot as P, createBlock as d, createTextVNode as u, toDisplayString as c, createCommentVNode as n, normalizeProps as v, mergeProps as g, isRef as N } from "vue";
1
+ import "../../ChartHeader.vue_vue_type_style_index_0_scoped_1ff0e54f_lang.css"; import { defineComponent as B, useSlots as g, computed as m, openBlock as r, createElementBlock as N, normalizeClass as D, createElementVNode as n, createVNode as f, unref as t, withCtx as o, renderSlot as L, createBlock as d, createTextVNode as u, toDisplayString as c, createCommentVNode as i, normalizeProps as v, mergeProps as V, isRef as P } from "vue";
2
2
  import s from "../typography/v4/Typography.vue.js";
3
- import D from "../switch/v4/SwitchV4.vue.js";
3
+ import z from "../switch/v4/SwitchV4.vue.js";
4
4
  import { ChartType as h } from "./types.js";
5
- import L from "../tooltip/v4/TooltipV4.vue.js";
6
- import V from "./ChartHeaderTrend.vue.js";
7
- const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "subheader-tooltip" }, U = { class: "header-row" }, I = /* @__PURE__ */ S({
5
+ import E from "../tooltip/v4/TooltipV4.vue.js";
6
+ import k from "./ChartHeaderTrend.vue.js";
7
+ const H = { class: "header-texts" }, O = { class: "header-row" }, R = { class: "subheader-tooltip" }, U = { class: "header-row" }, I = /* @__PURE__ */ B({
8
8
  __name: "ChartHeader",
9
9
  props: {
10
10
  chartType: { default: h.Line },
11
11
  typeSwitcher: { type: Boolean, default: !0 },
12
12
  header: { default: "" },
13
13
  subheader: { default: "" },
14
- subheaderTooltipHeader: { default: null },
15
- subheaderTooltipText: { default: null },
16
- trendTooltipHeader: { default: null },
17
- trendTooltipRangeCurrent: { default: null },
18
- trendTooltipRangePrevious: { default: null },
14
+ subheaderTooltip: { default: null },
15
+ trendTooltip: { default: null },
19
16
  compact: { type: Boolean, default: !1 },
20
17
  trendValue: { default: null },
21
18
  trendDirection: { default: "up" }
22
19
  },
23
20
  emits: ["update:chartType"],
24
21
  setup(e, { emit: x }) {
25
- const a = e, C = R(), T = [
22
+ const a = e, S = g(), T = [
26
23
  { id: h.Line, icon: "chart-line-up" },
27
24
  { id: h.Bar, icon: "chart-bar" },
28
25
  { id: h.StackedLine, icon: "chart-line" }
@@ -33,44 +30,42 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
33
30
  set(l) {
34
31
  x("update:chartType", l.id);
35
32
  }
36
- }), k = m(() => C["subheader-tooltip"] || a.subheaderTooltipText || a.subheaderTooltipHeader), b = m(() => ({
33
+ }), C = m(() => S["subheader-tooltip"] || a.subheaderTooltip?.text || a.subheaderTooltip?.header), y = m(() => ({
37
34
  value: a.trendValue,
38
35
  direction: a.trendDirection,
39
- tooltipHeader: a.trendTooltipHeader,
40
- tooltipRangeCurrent: a.trendTooltipRangeCurrent,
41
- tooltipRangePrevious: a.trendTooltipRangePrevious
36
+ trendTooltip: a.trendTooltip
42
37
  }));
43
- return (l, y) => (r(), w("div", {
44
- class: B(["chart-header", { "chart-header--compact": e.compact }])
38
+ return (l, b) => (r(), N("div", {
39
+ class: D(["chart-header", { "chart-header--compact": e.compact }])
45
40
  }, [
46
- i("div", z, [
47
- i("div", E, [
48
- f(t(L), {
41
+ n("div", H, [
42
+ n("div", O, [
43
+ f(t(E), {
49
44
  placement: "right",
50
- disabled: !t(k)
45
+ disabled: !t(C)
51
46
  }, {
52
47
  tooltip: o(() => [
53
- P(l.$slots, "subheader-tooltip", {}, () => [
54
- i("div", O, [
55
- e.subheaderTooltipHeader ? (r(), d(t(s), {
48
+ L(l.$slots, "subheader-tooltip", {}, () => [
49
+ n("div", R, [
50
+ e.subheaderTooltip?.header ? (r(), d(t(s), {
56
51
  key: 0,
57
52
  variant: "h5"
58
53
  }, {
59
54
  default: o(() => [
60
- u(c(e.subheaderTooltipHeader), 1)
55
+ u(c(e.subheaderTooltip.header), 1)
61
56
  ]),
62
57
  _: 1
63
- })) : n("", !0),
64
- e.subheaderTooltipText ? (r(), d(t(s), {
58
+ })) : i("", !0),
59
+ e.subheaderTooltip?.text ? (r(), d(t(s), {
65
60
  key: 1,
66
61
  variant: "body2",
67
62
  class: "subheader-tooltip__text"
68
63
  }, {
69
64
  default: o(() => [
70
- u(c(e.subheaderTooltipText), 1)
65
+ u(c(e.subheaderTooltip.text), 1)
71
66
  ]),
72
67
  _: 1
73
- })) : n("", !0)
68
+ })) : i("", !0)
74
69
  ])
75
70
  ], !0)
76
71
  ]),
@@ -88,7 +83,7 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
88
83
  _: 3
89
84
  }, 8, ["disabled"])
90
85
  ]),
91
- i("div", U, [
86
+ n("div", U, [
92
87
  f(t(s), {
93
88
  class: "header-text",
94
89
  variant: e.compact ? "h5" : "chart2"
@@ -98,16 +93,16 @@ const z = { class: "header-texts" }, E = { class: "header-row" }, O = { class: "
98
93
  ]),
99
94
  _: 1
100
95
  }, 8, ["variant"]),
101
- !e.compact && e.trendValue !== null ? (r(), d(V, v(g({ key: 0 }, t(b))), null, 16)) : n("", !0)
96
+ !e.compact && e.trendValue !== null ? (r(), d(k, v(V({ key: 0 }, t(y))), null, 16)) : i("", !0)
102
97
  ]),
103
- e.compact && e.trendValue !== null ? (r(), d(V, v(g({ key: 0 }, t(b))), null, 16)) : n("", !0)
98
+ e.compact && e.trendValue !== null ? (r(), d(k, v(V({ key: 0 }, t(y))), null, 16)) : i("", !0)
104
99
  ]),
105
- e.typeSwitcher ? (r(), d(t(D), {
100
+ e.typeSwitcher ? (r(), d(t(z), {
106
101
  key: 0,
107
102
  modelValue: t(p),
108
- "onUpdate:modelValue": y[0] || (y[0] = (H) => N(p) ? p.value = H : null),
103
+ "onUpdate:modelValue": b[0] || (b[0] = (w) => P(p) ? p.value = w : null),
109
104
  options: T
110
- }, null, 8, ["modelValue"])) : n("", !0)
105
+ }, null, 8, ["modelValue"])) : i("", !0)
111
106
  ], 2));
112
107
  }
113
108
  });
@@ -1,33 +1,31 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  value?: number | string;
3
3
  direction?: 'up' | 'down';
4
- tooltipHeader?: string;
5
- tooltipRangeCurrent?: string;
6
- tooltipRangePrevious?: string;
4
+ trendTooltip?: {
5
+ header?: string;
6
+ rangeCurrent?: string;
7
+ rangePrevious?: string;
8
+ };
7
9
  }>, {
8
10
  value: any;
9
11
  direction: string;
10
- tooltipHeader: any;
11
- tooltipRangeCurrent: any;
12
- tooltipRangePrevious: any;
12
+ trendTooltip: any;
13
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
14
  value?: number | string;
15
15
  direction?: 'up' | 'down';
16
- tooltipHeader?: string;
17
- tooltipRangeCurrent?: string;
18
- tooltipRangePrevious?: string;
16
+ trendTooltip?: {
17
+ header?: string;
18
+ rangeCurrent?: string;
19
+ rangePrevious?: string;
20
+ };
19
21
  }>, {
20
22
  value: any;
21
23
  direction: string;
22
- tooltipHeader: any;
23
- tooltipRangeCurrent: any;
24
- tooltipRangePrevious: any;
24
+ trendTooltip: any;
25
25
  }>>>, {
26
26
  value: number | string;
27
27
  direction: 'up' | 'down';
28
- tooltipHeader: string;
29
- tooltipRangeCurrent: string;
30
- tooltipRangePrevious: string;
28
+ trendTooltip: any;
31
29
  }>;
32
30
  export default _default;
33
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartHeaderTrend.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_d61ed404_lang.css"; //*');
4
- const t = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d61ed404"]]);
3
+ // import "../../ChartHeaderTrend.vue_vue_type_style_index_0_scoped_21ce0774_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-21ce0774"]]);
5
5
  export {
6
- t as default
6
+ s as default
7
7
  };