@ironsource/shared-ui 2.2.0-rc.1 → 2.2.0-rc.10

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 (166) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  4. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  5. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
  6. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
  9. package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
  10. package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
  12. package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +1 -0
  13. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
  14. package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
  15. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  16. package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
  17. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  18. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  19. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  21. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  22. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
  23. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  24. package/SwitchV4.vue_vue_type_style_index_0_scoped_f9f89da2_lang.css +1 -0
  25. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
  26. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  27. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  28. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
  29. package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
  30. package/components/alert/Alert.vue.d.ts +3 -8
  31. package/components/alert/Alert.vue.js +2 -2
  32. package/components/alert/Alert.vue2.js +48 -46
  33. package/components/alert/index.d.ts +8 -27
  34. package/components/appHeader/AppHeader.vue.js +2 -2
  35. package/components/appHeader/AppHeader.vue2.js +44 -45
  36. package/components/button/v3/Button.vue.d.ts +6 -6
  37. package/components/button/v3/index.d.ts +14 -14
  38. package/components/button/v4/ButtonV4.vue.js +4 -4
  39. package/components/button/v4/ButtonV4.vue2.js +1 -1
  40. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  41. package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
  42. package/components/chart/Chart.vue.d.ts +5 -0
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +10 -8
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +73 -49
  48. package/components/chart/ChartPlane.vue.d.ts +5 -0
  49. package/components/chart/ChartPlane.vue.js +2 -2
  50. package/components/chart/ChartPlane.vue2.js +34 -32
  51. package/components/chart/ChartStoryArgs.d.ts +6 -0
  52. package/components/chart/ChartTooltip.vue.js +2 -2
  53. package/components/chart/ChartTooltip.vue2.js +19 -16
  54. package/components/chart/TooltipHeader.vue.js +3 -3
  55. package/components/chart/TooltipHeader.vue2.js +33 -22
  56. package/components/chart/index.d.ts +20 -1
  57. package/components/chart/utils/utils.d.ts +5 -1
  58. package/components/chart/utils/utils.js +32 -22
  59. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  60. package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
  61. package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
  62. package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
  63. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
  64. package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
  65. package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
  66. package/components/chip/v4/ChipV4.vue.js +3 -3
  67. package/components/chip/v4/ChipV4.vue2.js +1 -1
  68. package/components/columnPicker/ColumnPicker.vue.js +2 -2
  69. package/components/columnPicker/ColumnPicker.vue2.js +1 -1
  70. package/components/dialog/v4/DialogV4.vue.js +4 -4
  71. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  72. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  73. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  74. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  75. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  76. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  77. package/components/dropdown/v4/DropdownV4.vue2.js +2 -2
  78. package/components/dropdown/v4/GroupOption.vue.js +3 -3
  79. package/components/dropdown/v4/GroupOption.vue2.js +1 -1
  80. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  81. package/components/emptyState/v3/index.d.ts +7 -7
  82. package/components/helpText/HelpText.vue.d.ts +68 -0
  83. package/components/helpText/HelpText.vue.js +7 -0
  84. package/components/helpText/HelpText.vue2.js +45 -0
  85. package/components/helpText/index.d.ts +190 -0
  86. package/components/helpText/index.js +6 -0
  87. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  88. package/components/icon/v4/IconV4.vue.js +2 -2
  89. package/components/icon/v4/IconV4.vue2.js +27 -26
  90. package/components/icon/v4/index.d.ts +20 -1
  91. package/components/includeExclude/index.d.ts +16 -16
  92. package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
  93. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  94. package/components/inlineCopy/InlineCopy.vue2.js +80 -51
  95. package/components/inlineCopy/index.d.ts +27 -0
  96. package/components/input/v4/TextField.vue.js +2 -2
  97. package/components/input/v4/TextField.vue2.js +1 -1
  98. package/components/link/Link.vue.d.ts +3 -3
  99. package/components/link/Link.vue.js +5 -5
  100. package/components/link/Link.vue2.js +1 -1
  101. package/components/link/index.d.ts +7 -7
  102. package/components/multibar/MultiBar.vue.js +3 -3
  103. package/components/multibar/MultiBar.vue2.js +1 -1
  104. package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
  105. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  106. package/components/snackbar/common/notify.js +25 -25
  107. package/components/snackbar/common/snackbar.common.js +19 -19
  108. package/components/snackbar/common/snackbar.types.d.ts +2 -1
  109. package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
  110. package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
  111. package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
  112. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  113. package/components/switch/v4/SwitchV4.vue.js +3 -3
  114. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  115. package/components/switch/v4/index.d.ts +9 -0
  116. package/components/table/v4/DataGrid.vue.js +4 -4
  117. package/components/table/v4/DataGrid.vue2.js +78 -77
  118. package/components/table-cells/v3/Editable.vue.d.ts +1 -1
  119. package/components/table-cells/v3/index.d.ts +20 -20
  120. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  121. package/components/table-cells/v4/index.d.ts +20 -20
  122. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  123. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  124. package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
  125. package/index.d.ts +153 -42
  126. package/index.js +95 -91
  127. package/package.json +7 -2
  128. package/style/v4/colors.scss +89 -84
  129. package/style/v4/grid.css +1 -1
  130. package/style/v4/grid.css.map +1 -1
  131. package/testids/index.d.ts +4 -0
  132. package/testids/index.js +38 -37
  133. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
  134. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
  135. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
  136. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
  137. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
  138. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
  139. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
  140. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
  141. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
  142. package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
  143. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
  144. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
  145. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css +0 -1
  146. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
  147. package/DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css +0 -1
  148. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
  149. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  150. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
  151. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
  152. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
  153. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
  154. package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
  155. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
  156. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
  157. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
  158. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
  159. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
  160. package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
  161. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
  162. package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
  163. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
  164. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
  165. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
  166. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
@@ -3,6 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
3
3
  chartType: ChartType;
4
4
  typeSwitcher: boolean;
5
5
  header?: string;
6
+ headerTooltip?: string;
6
7
  subheader?: string;
7
8
  subheaderTooltip?: {
8
9
  header?: string;
@@ -24,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
24
25
  header: string;
25
26
  subheader: string;
26
27
  subheaderTooltip: any;
28
+ headerTooltip: any;
27
29
  trendTooltip: any;
28
30
  compact: boolean;
29
31
  trendValue: any;
@@ -36,6 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
36
38
  chartType: ChartType;
37
39
  typeSwitcher: boolean;
38
40
  header?: string;
41
+ headerTooltip?: string;
39
42
  subheader?: string;
40
43
  subheaderTooltip?: {
41
44
  header?: string;
@@ -57,6 +60,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
57
60
  header: string;
58
61
  subheader: string;
59
62
  subheaderTooltip: any;
63
+ headerTooltip: any;
60
64
  trendTooltip: any;
61
65
  compact: boolean;
62
66
  trendValue: any;
@@ -74,6 +78,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
74
78
  subheader: string;
75
79
  subheaderTooltip: any;
76
80
  typeSwitcher: boolean;
81
+ headerTooltip: string;
77
82
  trendValue: string | number;
78
83
  trendDirection: TrendDirection;
79
84
  noteText: string;
@@ -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_d90c583e_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d90c583e"]]);
3
+ // import "../../ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css"; //*');
4
+ const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-9a603520"]]);
5
5
  export {
6
- s as default
6
+ r as default
7
7
  };
@@ -1,93 +1,117 @@
1
- import "../../ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css"; import { defineComponent as I, computed as p, openBlock as o, createElementBlock as S, mergeProps as u, unref as t, createElementVNode as c, createVNode as T, createSlots as w, withCtx as y, renderSlot as x, createTextVNode as B, toDisplayString as E, createBlock as d, normalizeProps as b, createCommentVNode as l, isRef as D } from "vue";
2
- import H from "../typography/v4/Typography.vue.js";
1
+ import "../../ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css"; import { defineComponent as g, computed as c, openBlock as r, createElementBlock as B, mergeProps as h, unref as t, createElementVNode as n, createVNode as m, createSlots as E, withCtx as d, renderSlot as H, createBlock as l, createTextVNode as b, toDisplayString as v, createCommentVNode as i, normalizeProps as V, isRef as D } from "vue";
2
+ import k from "../typography/v4/Typography.vue.js";
3
3
  import N from "../switch/v4/SwitchV4.vue.js";
4
- import P from "../chip/v4/ChipV4.vue.js";
5
- import { ChartType as n, TrendDirection as $ } from "./types.js";
6
- import V from "./ChartHeaderTrend.vue.js";
7
- import g from "./SubHeader.vue.js";
8
- import { useTestIdAttrs as A } from "../../utils/testIds.js";
9
- import { ChartTestIdModifiers as s } from "../../testids/index.js";
10
- const L = { class: "header-texts" }, R = { class: "header-row" }, U = { class: "header-actions" }, J = /* @__PURE__ */ I({
4
+ import P from "../tooltip/v4/TooltipV4.vue.js";
5
+ import $ from "../chip/v4/ChipV4.vue.js";
6
+ import { ChartType as u, TrendDirection as A } from "./types.js";
7
+ import C from "./ChartHeaderTrend.vue.js";
8
+ import L from "./SubHeader.vue.js";
9
+ import { useTestIdAttrs as R } from "../../utils/testIds.js";
10
+ import { ChartTestIdModifiers as p } from "../../testids/index.js";
11
+ const U = { class: "header-texts" }, z = { class: "header-row" }, M = { class: "header-tooltip" }, O = { class: "header-actions" }, Z = /* @__PURE__ */ g({
11
12
  __name: "ChartHeader",
12
13
  props: {
13
- chartType: { default: n.Line },
14
+ chartType: { default: u.Line },
14
15
  typeSwitcher: { type: Boolean, default: !0 },
15
16
  header: { default: "" },
17
+ headerTooltip: { default: null },
16
18
  subheader: { default: "" },
17
19
  subheaderTooltip: { default: null },
18
20
  trendTooltip: { default: null },
19
21
  compact: { type: Boolean, default: !1 },
20
22
  trendValue: { default: null },
21
- trendDirection: { default: $.UP },
23
+ trendDirection: { default: A.UP },
22
24
  noteText: { default: "" },
23
25
  testId: { default: "" }
24
26
  },
25
27
  emits: ["update:chartType"],
26
- setup(e, { emit: v }) {
27
- const a = e, h = [
28
- { id: n.Line, icon: "chart-line-up" },
29
- { id: n.Bar, icon: "chart-bar" },
30
- { id: n.StackedLine, icon: "chart-line" }
31
- ], i = p({
28
+ setup(e, { emit: I }) {
29
+ const a = e, f = [
30
+ { id: u.Line, icon: "chart-line-up" },
31
+ { id: u.Bar, icon: "chart-bar" },
32
+ { id: u.StackedLine, icon: "chart-line" }
33
+ ], S = c(() => a.headerTooltip?.length > 0), s = c({
32
34
  get() {
33
- return h.find(({ id: r }) => r === a.chartType);
35
+ return f.find(({ id: o }) => o === a.chartType);
34
36
  },
35
- set(r) {
36
- v("update:chartType", r.id);
37
+ set(o) {
38
+ I("update:chartType", o.id);
37
39
  }
38
- }), m = p(() => ({
40
+ }), T = c(() => ({
39
41
  value: a.trendValue,
40
42
  direction: a.trendDirection,
41
43
  trendTooltip: a.trendTooltip,
42
44
  testId: a.testId
43
- })), k = A(a.testId, s);
44
- return (r, f) => (o(), S("div", u({
45
+ })), x = R(a.testId, p);
46
+ return (o, y) => (r(), B("div", h({
45
47
  class: ["chart-header", { "chart-header--compact": e.compact }]
46
- }, t(k)[t(s).HEADER]), [
47
- c("div", L, [
48
- T(g, {
48
+ }, t(x)[t(p).HEADER]), [
49
+ n("div", U, [
50
+ m(L, {
49
51
  subheader: e.subheader,
50
52
  "subheader-tooltip": e.subheaderTooltip,
51
53
  "show-separator": e.compact && (!!e.header || !!e.trendValue)
52
- }, w({ _: 2 }, [
53
- r.$slots["subheader-tooltip"] ? {
54
+ }, E({ _: 2 }, [
55
+ o.$slots["subheader-tooltip"] ? {
54
56
  name: "subheader-tooltip",
55
- fn: y(() => [
56
- x(r.$slots, "subheader-tooltip", {}, void 0, !0)
57
+ fn: d(() => [
58
+ H(o.$slots, "subheader-tooltip", {}, void 0, !0)
57
59
  ]),
58
60
  key: "0"
59
61
  } : void 0
60
62
  ]), 1032, ["subheader", "subheader-tooltip", "show-separator"]),
61
- c("div", R, [
62
- T(t(H), {
63
- class: "header-text",
64
- variant: e.compact ? "h5" : "chart2"
63
+ n("div", z, [
64
+ m(t(P), {
65
+ placement: "right",
66
+ disabled: !t(S)
65
67
  }, {
66
- default: y(() => [
67
- B(E(e.header), 1)
68
+ tooltip: d(() => [
69
+ n("div", M, [
70
+ e.headerTooltip ? (r(), l(t(k), {
71
+ key: 0,
72
+ variant: "body2",
73
+ class: "header-tooltip__text"
74
+ }, {
75
+ default: d(() => [
76
+ b(v(e.headerTooltip), 1)
77
+ ]),
78
+ _: 1
79
+ })) : i("", !0)
80
+ ])
81
+ ]),
82
+ default: d(() => [
83
+ m(t(k), {
84
+ class: "header-text",
85
+ variant: e.compact ? "h5" : "chart2"
86
+ }, {
87
+ default: d(() => [
88
+ b(v(e.header), 1)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["variant"])
68
92
  ]),
69
93
  _: 1
70
- }, 8, ["variant"]),
71
- !e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
94
+ }, 8, ["disabled"]),
95
+ !e.compact && e.trendValue !== null ? (r(), l(C, V(h({ key: 0 }, t(T))), null, 16)) : i("", !0)
72
96
  ]),
73
- e.compact && e.trendValue !== null ? (o(), d(V, b(u({ key: 0 }, t(m))), null, 16)) : l("", !0)
97
+ e.compact && e.trendValue !== null ? (r(), l(C, V(h({ key: 0 }, t(T))), null, 16)) : i("", !0)
74
98
  ]),
75
- c("div", U, [
76
- e.noteText ? (o(), d(t(P), {
99
+ n("div", O, [
100
+ e.noteText ? (r(), l(t($), {
77
101
  key: 0,
78
102
  label: `Note: ${e.noteText}`
79
- }, null, 8, ["label"])) : l("", !0),
80
- e.typeSwitcher ? (o(), d(t(N), {
103
+ }, null, 8, ["label"])) : i("", !0),
104
+ e.typeSwitcher ? (r(), l(t(N), {
81
105
  key: 1,
82
- modelValue: t(i),
83
- "onUpdate:modelValue": f[0] || (f[0] = (C) => D(i) ? i.value = C : null),
84
- options: h,
85
- "test-id": `${e.testId}-${t(s).TYPE_SWITCHER}`
86
- }, null, 8, ["modelValue", "test-id"])) : l("", !0)
106
+ modelValue: t(s),
107
+ "onUpdate:modelValue": y[0] || (y[0] = (w) => D(s) ? s.value = w : null),
108
+ options: f,
109
+ "test-id": `${e.testId}-${t(p).TYPE_SWITCHER}`
110
+ }, null, 8, ["modelValue", "test-id"])) : i("", !0)
87
111
  ])
88
112
  ], 16));
89
113
  }
90
114
  });
91
115
  export {
92
- J as default
116
+ Z as default
93
117
  };
@@ -12,6 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
12
12
  tickCount?: number;
13
13
  truncateTickLabels?: boolean;
14
14
  header?: string;
15
+ headerTooltip?: string;
15
16
  subheader?: string;
16
17
  subheaderTooltip?: {
17
18
  header?: string;
@@ -58,6 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
58
59
  tickCount: number;
59
60
  truncateTickLabels: boolean;
60
61
  header: string;
62
+ headerTooltip: any;
61
63
  subheader: string;
62
64
  subheaderTooltip: any;
63
65
  keepSubheaderVisible: boolean;
@@ -99,6 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
99
101
  tickCount?: number;
100
102
  truncateTickLabels?: boolean;
101
103
  header?: string;
104
+ headerTooltip?: string;
102
105
  subheader?: string;
103
106
  subheaderTooltip?: {
104
107
  header?: string;
@@ -145,6 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
145
148
  tickCount: number;
146
149
  truncateTickLabels: boolean;
147
150
  header: string;
151
+ headerTooltip: any;
148
152
  subheader: string;
149
153
  subheaderTooltip: any;
150
154
  keepSubheaderVisible: boolean;
@@ -193,6 +197,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
193
197
  subheader: string;
194
198
  subheaderTooltip: any;
195
199
  typeSwitcher: boolean;
200
+ headerTooltip: string;
196
201
  trendValue: string | number;
197
202
  trendDirection: TrendDirection;
198
203
  noteText: string;
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartPlane.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a685cf5e"]]);
3
+ // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-6de5cddb"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
1
+ import "../../ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ue, openBlock as p, createElementBlock as S, createVNode as ce, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
2
2
  import { Chart as V, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Ee, CategoryScale as Se, LinearScale as Le, Filler as Re, Tooltip as Ie } from "chart.js";
3
3
  import { HoverVerticalLine as De } from "./plugins/HoverVerticalLine.js";
4
4
  import { prepareTickLabel as Be, formatValue as Oe } from "./utils/utils.js";
5
- import { DEFAULT_TICK_COUNT as Pe, TOTALS_HELPER_KEY as F, LINE_DASH_STYLE as Ne, BASE_COLOR_KEY as M, CHART_PADDING as He, POINT_BORDER_COLOR as we, TICK_LABEL_COLOR as Y, TICK_LABEL_FONT as K, TICKS_EXTRA_PADDING as Ve, GRID_LINE_COLOR as U, HEADER_HEIGHT as Fe, COMPACT_HEADER_HEIGHT as Me, HOVER_AREA_TRANSPARENCY as Ye, HOVER_TRANSPARENCY as y, CHART_ITEM_TRANSPARENCY as Ke, INCOMPLETE_DATA_BAR_TRANSPARENCY as Ue, STACKED_LINE_TRANSPARENCY as _e } from "./consts.js";
6
- import { ChartType as d, DateInterval as Ge, TooltipOrder as _, TrendDirection as $e } from "./types.js";
5
+ import { DEFAULT_TICK_COUNT as Pe, TOTALS_HELPER_KEY as F, LINE_DASH_STYLE as Ne, BASE_COLOR_KEY as M, CHART_PADDING as He, POINT_BORDER_COLOR as we, TICK_LABEL_COLOR as Y, TICK_LABEL_FONT as K, TICKS_EXTRA_PADDING as Ve, GRID_LINE_COLOR as U, HEADER_HEIGHT as Fe, COMPACT_HEADER_HEIGHT as Me, HOVER_AREA_TRANSPARENCY as Ye, HOVER_TRANSPARENCY as y, CHART_ITEM_TRANSPARENCY as Ke, INCOMPLETE_DATA_BAR_TRANSPARENCY as Ue, STACKED_LINE_TRANSPARENCY as Ge } from "./consts.js";
6
+ import { ChartType as d, DateInterval as _e, TooltipOrder as G, TrendDirection as $e } from "./types.js";
7
7
  import { useTooltipPosition as ze } from "./composables/useTooltipPosition.js";
8
8
  import We from "./ChartTooltip.vue.js";
9
9
  import { hexColorToRgba as h } from "../../utils/color.js";
@@ -12,7 +12,7 @@ import { useMemoize as Xe, useVModel as je } from "@vueuse/core";
12
12
  import qe from "../emptyState/v4/EmptyStateV4.vue.js";
13
13
  import Je from "./ChartLoader.vue.js";
14
14
  import { DEFAULT_CHART_COLOR as Qe } from "./colorPalette.js";
15
- import { TotalType as G, calculateTotal as et } from "../../utils/totals.js";
15
+ import { TotalType as _, calculateTotal as et } from "../../utils/totals.js";
16
16
  import { isNullOrUndefined as tt } from "../../utils/utils.js";
17
17
  import { storeOriginalDatasetColors as at, restoreOriginalDatasetColors as ot } from "./utils/highlightUtils.js";
18
18
  import { useTestIdAttrs as lt } from "../../utils/testIds.js";
@@ -33,10 +33,11 @@ const rt = { class: "chart-plane-container" }, it = {
33
33
  parsing: { default: void 0 },
34
34
  xAxisFormat: { default: "string" },
35
35
  yAxisFormat: { default: "number" },
36
- xAxisDateInterval: { default: Ge.DAILY },
36
+ xAxisDateInterval: { default: _e.DAILY },
37
37
  tickCount: { default: Pe },
38
38
  truncateTickLabels: { type: Boolean, default: !1 },
39
39
  header: { default: "" },
40
+ headerTooltip: { default: null },
40
41
  subheader: { default: "" },
41
42
  subheaderTooltip: { default: null },
42
43
  keepSubheaderVisible: { type: Boolean, default: !1 },
@@ -51,9 +52,9 @@ const rt = { class: "chart-plane-container" }, it = {
51
52
  compactHeader: { type: Boolean, default: !1 },
52
53
  noteText: { default: "" },
53
54
  tooltipRespectsTopEdge: { type: Boolean, default: !0 },
54
- tooltipTotalType: { default: G.Total },
55
+ tooltipTotalType: { default: _.Total },
55
56
  tooltipTotalCalcFn: { type: Function, default: et },
56
- tooltipOrder: { default: _.Legend },
57
+ tooltipOrder: { default: G.Legend },
57
58
  trendValue: { default: null },
58
59
  trendDirection: { default: $e.UP },
59
60
  trendTooltip: { default: null },
@@ -69,8 +70,8 @@ const rt = { class: "chart-plane-container" }, it = {
69
70
  setup(o, { emit: z }) {
70
71
  const e = o;
71
72
  se((t) => ({
72
- "6a964917": n(oe),
73
- "322ee3fc": o.height
73
+ f01f0522: n(oe),
74
+ "77889a5a": o.height
74
75
  }));
75
76
  const W = Xe(Be);
76
77
  V.register(
@@ -92,13 +93,13 @@ const rt = { class: "chart-plane-container" }, it = {
92
93
  () => e.withAnimation ? "" : "none"
93
94
  ), T = E(null);
94
95
  let s = null;
95
- const D = i(() => e.empty || e.dataSets.length === 0), u = i(() => !e.loading && !D.value), g = () => {
96
+ const D = i(() => e.empty || e.dataSets.length === 0), c = i(() => !e.loading && !D.value), g = () => {
96
97
  T.value && (s && s.destroy(), s = new V(T.value, P.value));
97
98
  }, X = () => {
98
99
  s && (s.data.datasets = O.value, s.options = P.value.options, s.update(Z.value));
99
100
  };
100
- de(g), v(() => e.chartType, g), v(u, async (t) => {
101
- t && (await ce(), g());
101
+ de(g), v(() => e.chartType, g), v(c, async (t) => {
102
+ t && (await ue(), g());
102
103
  }), v(
103
104
  [
104
105
  () => e.visibleIds,
@@ -127,7 +128,7 @@ const rt = { class: "chart-plane-container" }, it = {
127
128
  ), Q = (t) => (r) => {
128
129
  const a = r.chart.data.labels.length - 1;
129
130
  let l = Ke;
130
- return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l = Ue : e.chartType === d.StackedLine && (l = _e), h(t, l);
131
+ return e.chartType === d.Bar && e.indicateIncompleteData && r.index === a ? l = Ue : e.chartType === d.StackedLine && (l = Ge), h(t, l);
131
132
  }, O = i(() => A.value.map((t, r) => {
132
133
  const a = J(t.id), l = b.value ? r !== 0 ? "-1" : "start" : void 0, m = e.indicateIncompleteData ? {
133
134
  borderDash: (w) => {
@@ -152,7 +153,7 @@ const rt = { class: "chart-plane-container" }, it = {
152
153
  // store base color for later use
153
154
  };
154
155
  })), ee = i(
155
- () => e.tooltipTotalType === G.Total ? "Total" : "Mean"
156
+ () => e.tooltipTotalType === _.Total ? "Total" : "Mean"
156
157
  ), te = (t) => t.filter(
157
158
  (r) => !r.dataset.isTotal
158
159
  ), P = i(() => ({
@@ -179,7 +180,7 @@ const rt = { class: "chart-plane-container" }, it = {
179
180
  enabled: !1,
180
181
  position: "average",
181
182
  external: ({ tooltip: t }) => {
182
- c.value = { ...t };
183
+ u.value = { ...t };
183
184
  },
184
185
  callbacks: {
185
186
  footer: (t) => {
@@ -191,7 +192,7 @@ const rt = { class: "chart-plane-container" }, it = {
191
192
  }
192
193
  },
193
194
  itemSort: (t, r) => {
194
- if (e.tooltipOrder === _.YAxis) {
195
+ if (e.tooltipOrder === G.YAxis) {
195
196
  const a = t.parsed.y || 0, l = r.parsed.y || 0;
196
197
  return a === l ? 0 : a > l ? -1 : 1;
197
198
  }
@@ -272,7 +273,7 @@ const rt = { class: "chart-plane-container" }, it = {
272
273
  count: e.tickCount + 1,
273
274
  padding: 8,
274
275
  min: 0,
275
- callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, !0) + e.valueSuffix
276
+ callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, { formatLowDigits: !0 }) + e.valueSuffix
276
277
  },
277
278
  // grid lines
278
279
  grid: {
@@ -283,15 +284,15 @@ const rt = { class: "chart-plane-container" }, it = {
283
284
  }
284
285
  }
285
286
  }
286
- })), N = E(null), c = E(null), { position: H } = ze(
287
+ })), N = E(null), u = E(null), { position: H } = ze(
287
288
  T,
288
289
  N,
289
- c,
290
+ u,
290
291
  e.tooltipRespectsTopEdge
291
292
  ), ae = i(() => ({
292
293
  left: `${H.value.left}px`,
293
294
  top: `${H.value.top}px`,
294
- opacity: c.value?.opacity || 0
295
+ opacity: u.value?.opacity || 0
295
296
  })), oe = i(
296
297
  () => (e.compactHeader ? Me : Fe) + "px"
297
298
  );
@@ -314,17 +315,18 @@ const rt = { class: "chart-plane-container" }, it = {
314
315
  (s?.data.datasets || []).forEach(ot);
315
316
  }, ie = lt(e.testId, $);
316
317
  return (t, r) => (p(), S("div", rt, [
317
- n(u) || o.keepSubheaderVisible ? (p(), S("div", it, [
318
- ue(Ze, {
318
+ n(c) || o.keepSubheaderVisible ? (p(), S("div", it, [
319
+ ce(Ze, {
319
320
  "chart-type": n(C),
320
321
  "onUpdate:chart-type": r[0] || (r[0] = (a) => fe(C) ? C.value = a : null),
321
- "type-switcher": n(u) ? o.typeSwitcher : !1,
322
- header: n(u) ? o.header : null,
322
+ "type-switcher": n(c) ? o.typeSwitcher : !1,
323
+ header: n(c) ? o.header : null,
323
324
  subheader: o.subheader,
324
325
  "subheader-tooltip": o.subheaderTooltip,
326
+ "header-tooltip": o.headerTooltip,
325
327
  "trend-tooltip": o.trendTooltip,
326
328
  compact: o.compactHeader,
327
- "trend-value": n(u) ? o.trendValue : null,
329
+ "trend-value": n(c) ? o.trendValue : null,
328
330
  "trend-direction": o.trendDirection,
329
331
  "note-text": o.noteText,
330
332
  "test-id": o.testId
@@ -336,9 +338,9 @@ const rt = { class: "chart-plane-container" }, it = {
336
338
  ]),
337
339
  key: "0"
338
340
  } : void 0
339
- ]), 1032, ["chart-type", "type-switcher", "header", "subheader", "subheader-tooltip", "trend-tooltip", "compact", "trend-value", "trend-direction", "note-text", "test-id"])
341
+ ]), 1032, ["chart-type", "type-switcher", "header", "subheader", "subheader-tooltip", "header-tooltip", "trend-tooltip", "compact", "trend-value", "trend-direction", "note-text", "test-id"])
340
342
  ])) : L("", !0),
341
- n(u) ? (p(), S("section", nt, [
343
+ n(c) ? (p(), S("section", nt, [
342
344
  R("div", st, [
343
345
  R("canvas", {
344
346
  ref_key: "chartRef",
@@ -351,16 +353,16 @@ const rt = { class: "chart-plane-container" }, it = {
351
353
  class: "chart__tooltip",
352
354
  style: Te(n(ae))
353
355
  }, [
354
- c.value ? (p(), I(We, {
356
+ u.value ? (p(), I(We, {
355
357
  key: 0,
356
358
  "totals-chart": n(f),
357
- title: String(c.value.title),
358
- "data-points": c.value.dataPoints,
359
+ title: String(u.value.title),
360
+ "data-points": u.value.dataPoints,
359
361
  "x-axis-format": o.xAxisFormat,
360
362
  "y-axis-format": o.yAxisFormat,
361
363
  "x-axis-date-interval": o.xAxisDateInterval,
362
- "total-label": c.value.footer?.[0],
363
- "total-value": Number(c.value.footer?.[1]),
364
+ "total-label": u.value.footer?.[0],
365
+ "total-value": Number(u.value.footer?.[1]),
364
366
  "value-suffix": o.valueSuffix,
365
367
  "value-prefix": o.valuePrefix,
366
368
  "test-id": o.testId
@@ -68,6 +68,12 @@ export declare const chartStoryArgs: {
68
68
  category: string;
69
69
  };
70
70
  };
71
+ headerTooltip: {
72
+ table: {
73
+ category: string;
74
+ };
75
+ description: string;
76
+ };
71
77
  subheader: {
72
78
  table: {
73
79
  category: string;
@@ -1,7 +1,7 @@
1
1
  import o from "./ChartTooltip.vue2.js";
2
2
  /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9623dbbd"]]);
3
+ // import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc7e6298"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as C, createElementVNode as c, normalizeStyle as k, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
1
+ import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as g, createElementVNode as c, normalizeStyle as C, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
2
2
  import d from "../typography/v4/Typography.vue.js";
3
- import A from "../icon/v4/IconV4.vue.js";
3
+ import k from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
5
  import { formatValue as m } from "./utils/utils.js";
6
- import I from "./TooltipHeader.vue.js";
7
- import { useTestIdAttrs as T } from "../../utils/testIds.js";
6
+ import A from "./TooltipHeader.vue.js";
7
+ import { useTestIdAttrs as I } from "../../utils/testIds.js";
8
8
  import { ChartTooltipTestIdModifiers as x } from "../../testids/index.js";
9
- const g = {
9
+ const T = {
10
10
  key: 1,
11
11
  class: "list"
12
- }, p = { class: "popover-label-wrapper" }, V = {
12
+ }, p = { class: "popover-label-wrapper" }, S = {
13
13
  key: 2,
14
14
  class: "tooltip-footer"
15
15
  }, O = /* @__PURE__ */ v({
@@ -28,9 +28,9 @@ const g = {
28
28
  testId: { default: "" }
29
29
  },
30
30
  setup(t) {
31
- const y = T(t.testId, x);
32
- return (N, S) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
33
- t.title ? (l(), f(I, {
31
+ const y = I(t.testId, x);
32
+ return (w, F) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
33
+ t.title ? (l(), f(A, {
34
34
  key: 0,
35
35
  title: t.title,
36
36
  "data-points": t.dataPoints,
@@ -38,18 +38,18 @@ const g = {
38
38
  "x-axis-format": t.xAxisFormat,
39
39
  "x-axis-date-interval": t.xAxisDateInterval
40
40
  }, null, 8, ["title", "data-points", "totals-chart", "x-axis-format", "x-axis-date-interval"])) : r("", !0),
41
- t.totalsChart ? r("", !0) : (l(), o("ul", g, [
42
- (l(!0), o(b, null, C(t.dataPoints, (a) => (l(), o("li", {
41
+ t.totalsChart ? r("", !0) : (l(), o("ul", T, [
42
+ (l(!0), o(b, null, g(t.dataPoints, (a) => (l(), o("li", {
43
43
  key: a.datasetIndex,
44
44
  class: "list__item"
45
45
  }, [
46
46
  c("span", {
47
47
  class: "color-box",
48
- style: k({
48
+ style: C({
49
49
  backgroundColor: String(a.dataset.pointBackgroundColor)
50
50
  })
51
51
  }, null, 4),
52
- a.dataset.icon ? (l(), f(e(A), {
52
+ a.dataset.icon ? (l(), f(e(k), {
53
53
  key: 0,
54
54
  class: "platform-icon",
55
55
  type: a.dataset.iconType,
@@ -70,13 +70,16 @@ const g = {
70
70
  ]),
71
71
  i(e(d), { variant: "body2" }, {
72
72
  default: s(() => [
73
- u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, !0, !1) + t.valueSuffix), 1)
73
+ u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, {
74
+ formatLowDigits: !0,
75
+ withSuffixSpace: !1
76
+ }) + t.valueSuffix), 1)
74
77
  ]),
75
78
  _: 2
76
79
  }, 1024)
77
80
  ]))), 128))
78
81
  ])),
79
- t.totalValue !== null ? (l(), o("div", V, [
82
+ t.totalValue !== null ? (l(), o("div", S, [
80
83
  i(e(d), {
81
84
  variant: "body2",
82
85
  class: "flex-grow"
@@ -88,7 +91,7 @@ const g = {
88
91
  }),
89
92
  i(e(d), { variant: "body2" }, {
90
93
  default: s(() => [
91
- u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, !0) + t.valueSuffix), 1)
94
+ u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, { formatLowDigits: !0 }) + t.valueSuffix), 1)
92
95
  ]),
93
96
  _: 1
94
97
  })
@@ -1,7 +1,7 @@
1
1
  import o from "./TooltipHeader.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-da3532aa"]]);
3
+ // import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2177211f"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };