@gravity-ui/chartkit 0.9.1 → 0.10.1

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 (189) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/build/components/ChartKit.css +23 -0
  3. package/build/components/ChartKit.d.ts +0 -1
  4. package/build/components/ChartKit.js +4 -5
  5. package/build/i18n/keysets/en.json +60 -0
  6. package/build/i18n/keysets/ru.json +62 -0
  7. package/build/libs/chartkit-error/chartkit-error.d.ts +1 -0
  8. package/build/libs/chartkit-error/chartkit-error.js +1 -0
  9. package/build/libs/settings/__tests__/settings.test.js +1 -1
  10. package/build/libs/settings/settings.d.ts +6 -3
  11. package/build/libs/settings/settings.js +4 -2
  12. package/build/plugins/highcharts/__stories__/AreaRange.stories.d.ts +4 -0
  13. package/build/plugins/highcharts/__stories__/AreaRange.stories.js +22 -0
  14. package/build/plugins/highcharts/__stories__/Line.stories.d.ts +4 -0
  15. package/build/plugins/highcharts/__stories__/Line.stories.js +21 -0
  16. package/build/plugins/highcharts/__stories__/mocks/area-range.d.ts +2 -0
  17. package/build/plugins/highcharts/__stories__/mocks/area-range.js +61 -0
  18. package/build/plugins/highcharts/__stories__/mocks/holidays.d.ts +7070 -0
  19. package/build/plugins/highcharts/__stories__/mocks/holidays.js +7065 -0
  20. package/build/plugins/highcharts/__stories__/mocks/line.d.ts +2 -0
  21. package/build/plugins/highcharts/__stories__/mocks/line.js +129 -0
  22. package/build/plugins/highcharts/index.d.ts +2 -0
  23. package/build/plugins/highcharts/index.js +5 -0
  24. package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +23 -0
  25. package/build/plugins/highcharts/renderer/HighchartsWidget.js +6 -0
  26. package/build/plugins/highcharts/renderer/components/HighchartsComponent.css +4 -0
  27. package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +575 -0
  28. package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +115 -0
  29. package/build/plugins/highcharts/renderer/components/StyledSplitPane/StyledSplitPane.css +50 -0
  30. package/build/plugins/highcharts/renderer/components/StyledSplitPane/StyledSplitPane.d.ts +10 -0
  31. package/build/plugins/highcharts/renderer/components/StyledSplitPane/StyledSplitPane.js +32 -0
  32. package/build/plugins/highcharts/renderer/components/withSplitPane/WithSplitPane.css +4 -0
  33. package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +10 -0
  34. package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +207 -0
  35. package/build/plugins/highcharts/renderer/helpers/add-holidays.d.ts +1 -0
  36. package/build/plugins/highcharts/renderer/helpers/add-holidays.js +43 -0
  37. package/build/plugins/highcharts/renderer/helpers/comments/drawing.d.ts +11 -0
  38. package/build/plugins/highcharts/renderer/helpers/comments/drawing.js +571 -0
  39. package/build/plugins/highcharts/renderer/helpers/config/config.d.ts +575 -0
  40. package/build/plugins/highcharts/renderer/helpers/config/config.js +1483 -0
  41. package/build/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.d.ts +1 -0
  42. package/build/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +57 -0
  43. package/build/plugins/highcharts/renderer/helpers/config/options.d.ts +465 -0
  44. package/build/plugins/highcharts/renderer/helpers/config/options.js +350 -0
  45. package/build/plugins/highcharts/renderer/helpers/config/types.d.ts +6 -0
  46. package/build/plugins/highcharts/renderer/helpers/config/types.js +1 -0
  47. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
  48. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +42 -0
  49. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.test.d.ts +1 -0
  50. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.test.js +99 -0
  51. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +1 -0
  52. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +17 -0
  53. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.test.d.ts +1 -0
  54. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.test.js +28 -0
  55. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +5 -0
  56. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +20 -0
  57. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.test.d.ts +1 -0
  58. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.test.js +27 -0
  59. package/build/plugins/highcharts/renderer/helpers/config/utils/concatStrings.d.ts +1 -0
  60. package/build/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +1 -0
  61. package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +2 -0
  62. package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +15 -0
  63. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +3 -0
  64. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +15 -0
  65. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.test.d.ts +1 -0
  66. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.test.js +11 -0
  67. package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.d.ts +1 -0
  68. package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +9 -0
  69. package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.test.d.ts +1 -0
  70. package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.test.js +20 -0
  71. package/build/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +13 -0
  72. package/build/plugins/highcharts/renderer/helpers/config/utils/index.js +13 -0
  73. package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +2 -0
  74. package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +3 -0
  75. package/build/plugins/highcharts/renderer/helpers/config/utils/isSafari.d.ts +1 -0
  76. package/build/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +12 -0
  77. package/build/plugins/highcharts/renderer/helpers/config/utils/isTooltipShared.d.ts +1 -0
  78. package/build/plugins/highcharts/renderer/helpers/config/utils/isTooltipShared.js +8 -0
  79. package/build/plugins/highcharts/renderer/helpers/config/utils/isTooltipShared.test.d.ts +1 -0
  80. package/build/plugins/highcharts/renderer/helpers/config/utils/isTooltipShared.test.js +31 -0
  81. package/build/plugins/highcharts/renderer/helpers/config/utils/localStorage.d.ts +5 -0
  82. package/build/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +23 -0
  83. package/build/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.d.ts +1 -0
  84. package/build/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +10 -0
  85. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +2 -0
  86. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +19 -0
  87. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.test.d.ts +1 -0
  88. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.test.js +20 -0
  89. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
  90. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +27 -0
  91. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.test.d.ts +1 -0
  92. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.test.js +45 -0
  93. package/build/plugins/highcharts/renderer/helpers/constants.d.ts +28 -0
  94. package/build/plugins/highcharts/renderer/helpers/constants.js +30 -0
  95. package/build/plugins/highcharts/renderer/helpers/graph.css +89 -0
  96. package/build/plugins/highcharts/renderer/helpers/graph.d.ts +552 -0
  97. package/build/plugins/highcharts/renderer/helpers/graph.js +85 -0
  98. package/build/plugins/highcharts/renderer/helpers/highcharts/colors.d.ts +2 -0
  99. package/build/plugins/highcharts/renderer/helpers/highcharts/colors.js +17 -0
  100. package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.d.ts +4 -0
  101. package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +346 -0
  102. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.d.ts +1 -0
  103. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +19 -0
  104. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calculateClosestPointManually.test.d.ts +1 -0
  105. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calculateClosestPointManually.test.js +42 -0
  106. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +1 -0
  107. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +1 -0
  108. package/build/plugins/highcharts/renderer/helpers/init-highcharts-modules.d.ts +1 -0
  109. package/build/plugins/highcharts/renderer/helpers/init-highcharts-modules.js +49 -0
  110. package/build/plugins/highcharts/renderer/helpers/prepare-data.d.ts +1 -0
  111. package/build/plugins/highcharts/renderer/helpers/prepare-data.js +175 -0
  112. package/build/plugins/highcharts/renderer/helpers/tooltip/constants.d.ts +13 -0
  113. package/build/plugins/highcharts/renderer/helpers/tooltip/constants.js +14 -0
  114. package/build/plugins/highcharts/renderer/helpers/tooltip/helpers.d.ts +1 -0
  115. package/build/plugins/highcharts/renderer/helpers/tooltip/helpers.js +5 -0
  116. package/build/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +13 -0
  117. package/build/plugins/highcharts/renderer/helpers/tooltip/index.js +253 -0
  118. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +6 -0
  119. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +22 -0
  120. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +2 -0
  121. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +20 -0
  122. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +2 -0
  123. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +25 -0
  124. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +2 -0
  125. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +20 -0
  126. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
  127. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +18 -0
  128. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +2 -0
  129. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +18 -0
  130. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +2 -0
  131. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +15 -0
  132. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
  133. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +18 -0
  134. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +2 -0
  135. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +18 -0
  136. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +2 -0
  137. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +18 -0
  138. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +2 -0
  139. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +20 -0
  140. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +2 -0
  141. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +13 -0
  142. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +11 -0
  143. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +11 -0
  144. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +4 -0
  145. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +1 -0
  146. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.d.ts +7 -0
  147. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +5 -0
  148. package/build/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +367 -0
  149. package/build/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +85 -0
  150. package/build/plugins/highcharts/renderer/helpers/tooltip/types.js +1 -0
  151. package/build/plugins/highcharts/renderer/helpers/types.d.ts +22 -0
  152. package/build/plugins/highcharts/renderer/helpers/types.js +1 -0
  153. package/build/plugins/highcharts/types/comments.d.ts +51 -0
  154. package/build/plugins/highcharts/types/comments.js +1 -0
  155. package/build/plugins/highcharts/types/highcharts-extends.d.ts +38 -0
  156. package/build/plugins/highcharts/types/index.d.ts +4 -0
  157. package/build/plugins/highcharts/types/index.js +1 -0
  158. package/build/plugins/highcharts/types/lib.d.ts +1 -0
  159. package/build/plugins/highcharts/types/lib.js +1 -0
  160. package/build/plugins/highcharts/types/misc.d.ts +19 -0
  161. package/build/plugins/highcharts/types/misc.js +1 -0
  162. package/build/plugins/highcharts/types/widget.d.ts +47 -0
  163. package/build/plugins/highcharts/types/widget.js +1 -0
  164. package/build/plugins/index.d.ts +4 -2
  165. package/build/plugins/index.js +1 -0
  166. package/build/plugins/indicator/renderer/IndicatorItem.d.ts +3 -2
  167. package/build/plugins/indicator/renderer/IndicatorWidget.d.ts +10 -2
  168. package/build/plugins/indicator/renderer/IndicatorWidget.js +1 -1
  169. package/build/plugins/indicator/types.d.ts +0 -6
  170. package/build/plugins/shared/format-number/format-number.d.ts +4 -0
  171. package/build/plugins/shared/format-number/format-number.js +88 -0
  172. package/build/plugins/shared/format-number/format-number.test.d.ts +1 -0
  173. package/build/plugins/shared/format-number/format-number.test.js +14 -0
  174. package/build/plugins/shared/format-number/i18n/en.json +17 -0
  175. package/build/plugins/shared/format-number/i18n/i18n.d.ts +5 -0
  176. package/build/plugins/shared/format-number/i18n/i18n.js +8 -0
  177. package/build/plugins/shared/format-number/i18n/ru.json +17 -0
  178. package/build/plugins/shared/format-number/types.d.ts +14 -0
  179. package/build/plugins/shared/format-number/types.js +1 -0
  180. package/build/plugins/shared/index.d.ts +2 -0
  181. package/build/plugins/shared/index.js +1 -0
  182. package/build/plugins/yagr/renderer/YagrWidget.d.ts +11 -3
  183. package/build/plugins/yagr/renderer/YagrWidget.js +2 -1
  184. package/build/plugins/yagr/types.d.ts +0 -7
  185. package/build/types/index.d.ts +1 -2
  186. package/build/types/misc.d.ts +4 -0
  187. package/build/types/misc.js +1 -0
  188. package/build/types/widget.d.ts +17 -0
  189. package/package.json +4 -1
@@ -0,0 +1,367 @@
1
+ .chartkit-highcharts-tooltip-container_type_timeline {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
6
+ .chartkit-highcharts-tooltip-container._tooltip-with-scroll ._tooltip-header td:last-child {
7
+ padding-right: calc(18px + var(--yc-scrollbar-width, 15px));
8
+ }
9
+
10
+ .chartkit-highcharts-tooltip-container._tooltip-with-scroll ._tooltip-footer td:last-child {
11
+ padding-right: calc(18px + var(--yc-scrollbar-width, 15px));
12
+ }
13
+
14
+ .chartkit-highcharts-tooltip-container._tooltip-with-scroll-in-safari ._tooltip-row td:last-child {
15
+ padding-right: calc(18px + var(--yc-scrollbar-width, 15px));
16
+ }
17
+
18
+ .chartkit-highcharts-tooltip-container._tooltip-with-scroll-in-safari ._tooltip-rows__summ-tr td:last-child {
19
+ padding-right: calc(18px + var(--yc-scrollbar-width, 15px));
20
+ }
21
+
22
+ ._tooltip {
23
+ border-radius: 5px;
24
+ background: var(--highcharts-tooltip-bg);
25
+ color: var(--highcharts-tooltip-text);
26
+ font-size: 12px;
27
+ overflow: hidden;
28
+ box-sizing: border-box;
29
+ box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.15);
30
+ }
31
+
32
+ ._tooltip_split-tooltip {
33
+ border: none;
34
+ border-radius: 0;
35
+ box-shadow: none;
36
+ padding-bottom: 12px;
37
+ }
38
+
39
+ ._tooltip_split-tooltip table {
40
+ table-layout: fixed;
41
+ }
42
+
43
+ ._tooltip_split-tooltip ._tooltip-rows__table tbody {
44
+ display: table-row-group;
45
+ }
46
+
47
+ @supports (padding: max(0px)) {
48
+ ._tooltip_split-tooltip {
49
+ padding-bottom: max(12px, env(safe-area-inset-bottom));
50
+ }
51
+ }
52
+ ._tooltip table {
53
+ width: 100%;
54
+ }
55
+
56
+ ._tooltip table td {
57
+ box-sizing: border-box;
58
+ }
59
+
60
+ ._tooltip table td:last-child {
61
+ text-align: right;
62
+ }
63
+
64
+ ._tooltip-fake-row {
65
+ height: 5px;
66
+ }
67
+
68
+ ._tooltip-fake-row-heightless {
69
+ height: 0;
70
+ }
71
+
72
+ ._tooltip-fake-row-heightless td {
73
+ padding: 0;
74
+ }
75
+
76
+ ._tooltip-fake-row td:first-child {
77
+ width: 28px;
78
+ }
79
+
80
+ ._tooltip-row {
81
+ width: 100%;
82
+ }
83
+
84
+ ._tooltip-row td:first-child {
85
+ padding-left: 14px;
86
+ }
87
+
88
+ ._tooltip-row td:last-child {
89
+ padding-right: 18px;
90
+ }
91
+
92
+ ._tooltip-row td {
93
+ padding: 2px 4px;
94
+ }
95
+
96
+ ._tooltip-row td._tooltip-rows__value-td, ._tooltip-row td._tooltip-rows__diff-td {
97
+ padding-bottom: 1px;
98
+ }
99
+
100
+ ._tooltip-selected-row {
101
+ font-weight: 600;
102
+ }
103
+
104
+ ._tooltip-comment-row td:last-child {
105
+ padding-right: 18px;
106
+ }
107
+
108
+ ._tooltip-right__td {
109
+ padding-right: 14px;
110
+ }
111
+
112
+ ._tooltip-right__td_with-split-tooltip {
113
+ border: none;
114
+ }
115
+
116
+ ._tooltip-date {
117
+ padding: 10px 14px 4px;
118
+ max-width: 450px;
119
+ overflow: hidden;
120
+ text-overflow: ellipsis;
121
+ white-space: nowrap;
122
+ font-size: 13px;
123
+ font-weight: bold;
124
+ }
125
+
126
+ ._tooltip-date-dayofweek {
127
+ display: inline-block;
128
+ }
129
+
130
+ ._tooltip-date-dayofweek_weekend {
131
+ color: #ff0000;
132
+ }
133
+
134
+ ._tooltip-rows__table {
135
+ border-spacing: 0;
136
+ width: 10px;
137
+ }
138
+
139
+ ._tooltip-rows__table-footer {
140
+ display: table;
141
+ width: 100%;
142
+ }
143
+
144
+ ._tooltip-rows__table thead {
145
+ display: table;
146
+ width: 100%;
147
+ }
148
+
149
+ ._tooltip-rows__table thead._tooltip-header tr:not(._tooltip-fake-row):first-child td {
150
+ padding-top: 6px;
151
+ padding-bottom: 6px;
152
+ border-bottom: 1px solid var(--highcharts-grid-line);
153
+ }
154
+
155
+ ._tooltip-rows__table tbody {
156
+ display: block;
157
+ overflow-y: auto;
158
+ overflow-x: hidden;
159
+ }
160
+
161
+ ._tooltip-rows__table tbody._tooltip-footer {
162
+ width: 100%;
163
+ display: table;
164
+ }
165
+
166
+ ._tooltip-rows__table tbody._tooltip-list {
167
+ overflow-x: hidden;
168
+ }
169
+
170
+ ._tooltip-rows__table tbody._tooltip-list ._tooltip-row-dark-bg {
171
+ background-color: var(--highcharts-tooltip-alternate-bg);
172
+ }
173
+
174
+ ._tooltip-rows__table tbody ._hidden-rows-sum._hidden-rows-sum-dark-bg {
175
+ background-color: var(--highcharts-tooltip-alternate-bg);
176
+ }
177
+
178
+ ._tooltip-rows__table tbody ._hidden-rows-sum td {
179
+ padding-top: 2px;
180
+ padding-bottom: 2px;
181
+ }
182
+
183
+ ._tooltip-rows__table tbody td._hidden-rows-number {
184
+ text-align: left;
185
+ padding-right: 20px;
186
+ }
187
+
188
+ ._tooltip-rows__table tbody td._hidden-rows-value {
189
+ font-family: "Consolas", "Menlo", "Ubuntu Mono", monospace;
190
+ word-spacing: -3px;
191
+ }
192
+
193
+ ._tooltip-rows__bubble-div {
194
+ display: inline-block;
195
+ width: 12px;
196
+ height: 6px;
197
+ margin-left: 1px;
198
+ margin-bottom: 1px;
199
+ border-radius: 1px;
200
+ }
201
+
202
+ ._tooltip-rows__shape-div {
203
+ width: 38px;
204
+ display: flex;
205
+ align-items: center;
206
+ height: 100%;
207
+ }
208
+
209
+ ._tooltip-rows__shape-td {
210
+ height: 20px;
211
+ }
212
+
213
+ ._tooltip-rows__percent-td {
214
+ font-family: "Consolas", "Menlo", "Ubuntu Mono", monospace;
215
+ word-spacing: -3px;
216
+ padding-left: 12px;
217
+ white-space: nowrap;
218
+ }
219
+
220
+ ._tooltip-rows__diff-td {
221
+ font-family: "Consolas", "Menlo", "Ubuntu Mono", monospace;
222
+ word-spacing: -3px;
223
+ padding-left: 3px;
224
+ padding-right: 3px;
225
+ white-space: nowrap;
226
+ }
227
+
228
+ ._tooltip-rows__comment-left-td {
229
+ position: relative;
230
+ }
231
+
232
+ ._tooltip-rows__comment-left-div {
233
+ left: 2px;
234
+ position: absolute;
235
+ top: -7px;
236
+ bottom: 6px;
237
+ width: 10px;
238
+ }
239
+
240
+ ._tooltip-rows__comment-div {
241
+ position: relative;
242
+ padding-left: 14px;
243
+ text-align: left;
244
+ font-size: 10px;
245
+ width: auto;
246
+ white-space: normal;
247
+ letter-spacing: 0.2px;
248
+ font-weight: normal;
249
+ line-height: 1.3;
250
+ color: #aaaaaa;
251
+ }
252
+
253
+ ._tooltip-rows__bubble-td {
254
+ width: 28px;
255
+ }
256
+
257
+ ._tooltip-rows__value-td {
258
+ font-family: "Consolas", "Menlo", "Ubuntu Mono", monospace;
259
+ word-spacing: -3px;
260
+ white-space: nowrap;
261
+ padding-left: 12px;
262
+ }
263
+
264
+ ._tooltip-rows__value-td_selected {
265
+ text-decoration: underline;
266
+ }
267
+
268
+ ._tooltip-rows__name-td {
269
+ text-align: left;
270
+ white-space: nowrap;
271
+ padding-left: 10px;
272
+ max-width: 400px;
273
+ overflow: hidden;
274
+ text-overflow: ellipsis;
275
+ }
276
+
277
+ ._tooltip-rows__name-td_selected {
278
+ text-decoration: underline;
279
+ }
280
+
281
+ ._tooltip-rows__summ-td {
282
+ padding: 6px 0 6px 3px;
283
+ color: var(--highcharts-tooltip-text-complementary);
284
+ font-size: 12px;
285
+ border-top: 1px solid var(--highcharts-grid-line);
286
+ }
287
+
288
+ ._tooltip-rows__summ-td-value {
289
+ font-family: "Consolas", "Menlo", "Ubuntu Mono", monospace;
290
+ word-spacing: -3px;
291
+ }
292
+
293
+ ._tooltip-rows__summ-td:first-child {
294
+ padding-left: 15px;
295
+ text-align: left;
296
+ }
297
+
298
+ ._tooltip-rows__summ-td:last-child {
299
+ padding-right: 18px;
300
+ text-align: right;
301
+ }
302
+
303
+ ._tooltip-left__td {
304
+ vertical-align: top;
305
+ }
306
+
307
+ ._tooltip-right__td {
308
+ vertical-align: top;
309
+ opacity: 0.9;
310
+ border-left: 1px solid var(--highcharts-grid-line);
311
+ white-space: normal;
312
+ font-size: 8pt;
313
+ position: relative;
314
+ min-width: 120px;
315
+ max-width: 150px;
316
+ padding-left: 10px;
317
+ }
318
+
319
+ ._tooltip-right__holiday-div {
320
+ padding-bottom: 5px;
321
+ display: flex;
322
+ align-items: center;
323
+ text-align: left;
324
+ }
325
+
326
+ ._tooltip-right__holiday-emoji {
327
+ font-size: 20px;
328
+ }
329
+
330
+ ._tooltip-right__holiday-region {
331
+ color: #ffffff;
332
+ letter-spacing: 1px;
333
+ display: inline-block;
334
+ padding-left: 5px;
335
+ }
336
+
337
+ ._tooltip-right__traf-div {
338
+ text-align: left;
339
+ border-top: 3px solid;
340
+ padding-top: 3px;
341
+ font-size: 10px;
342
+ line-height: 1.3;
343
+ white-space: pre-line;
344
+ padding-bottom: 10px;
345
+ margin-top: 9px;
346
+ word-break: break-word;
347
+ }
348
+
349
+ ._tooltip-right__traf-div_for-split-tooltip {
350
+ color: var(--yc-color-text-secondary);
351
+ padding-left: 8px;
352
+ border-top: none;
353
+ border-left: 2px solid;
354
+ margin-left: 6px;
355
+ margin-top: 0;
356
+ padding-top: 0;
357
+ padding-bottom: 0;
358
+ margin-bottom: 5px;
359
+ }
360
+
361
+ ._tooltip-right__traf-div:not(:first-child) {
362
+ margin-top: 7px;
363
+ }
364
+
365
+ ._tooltip-right__margin-bot {
366
+ margin-bottom: 7px;
367
+ }
@@ -0,0 +1,85 @@
1
+ import type { FormatNumberOptions } from '../../../../shared';
2
+ import type { LineShapeType } from './constants';
3
+ export declare type TooltipData = {
4
+ /** Tooltip lines data */
5
+ lines: Array<TooltipLine>;
6
+ /** Tooltip comments */
7
+ xComments?: Array<{
8
+ text: string;
9
+ color: string;
10
+ }>;
11
+ /** Comment text (set via manageTooltipConfig) */
12
+ commentDateText?: string;
13
+ /**
14
+ * Indicating that active line duplicated by displaying it on top of the main list
15
+ * default behavior - the active line is displayed on top of the main list only if it"does not fit" in the tooltip
16
+ */
17
+ activeRowAlwaysFirstInTooltip?: boolean;
18
+ /** Indicating that the chart is displayed in "split tooltip" mode */
19
+ splitTooltip?: boolean;
20
+ /** Text of the header of the tooltip */
21
+ tooltipHeader?: string;
22
+ /** Indicating that a column with the line name is displayed in the tooltip */
23
+ shared?: boolean;
24
+ /** Indicating that a column with a percentage value is displayed in the tooltip */
25
+ withPercent?: boolean;
26
+ /** Indicating that a column with a diff is displayed in the tooltip */
27
+ useCompareFrom?: boolean;
28
+ /** Indicating that the tooltip displays a block with information about the holiday */
29
+ holiday?: boolean;
30
+ /** Name of the holiday */
31
+ holidayText?: string;
32
+ /** Region for which the holiday is relevant */
33
+ region?: string;
34
+ /** Sum of the values of the rows displayed in the tooltip */
35
+ sum?: number | string;
36
+ /** Number of hidden lines "not fit" in the tooltip */
37
+ hiddenRowsNumber: number;
38
+ /** Sum of the values of the hidden ("not fit" in the tooltip) rows */
39
+ hiddenRowsSum?: number | string;
40
+ unsafe?: boolean;
41
+ };
42
+ export declare type TooltipLine = {
43
+ /** Color displayed in a separate cell */
44
+ seriesColor: string;
45
+ /** Series name */
46
+ seriesName: string;
47
+ /** Series index */
48
+ seriesIdx?: number;
49
+ /** Indicating whether the series name should be displayed */
50
+ hideSeriesName?: boolean;
51
+ /** Percentage value displayed in a separate cell */
52
+ percentValue?: number | string;
53
+ /** Diff value displayed in the separate cell */
54
+ diff?: string;
55
+ /** Formatted numeric value for the current series displayed in a separate cell */
56
+ value: string;
57
+ originalValue: number;
58
+ /** Comment to the line (displayed under the corresponding line), set via manageTooltipConfig */
59
+ commentText?: string;
60
+ /** Comment to the line (displayed under the corresponding line) */
61
+ xyCommentText?: string;
62
+ /** Indicating that line is active */
63
+ selectedSeries?: boolean;
64
+ /** Custom renderer of the line (a string with text or html markup) */
65
+ customRender?: string;
66
+ replaceCellAt?: Record<number, (line: TooltipLine) => string>;
67
+ insertCellAt?: Record<number, (line: TooltipLine) => string>;
68
+ /** Line shape displayed in the corresponding cell, instead of seriesColor */
69
+ seriesShape?: LineShapeType;
70
+ chartKitFormatting?: boolean;
71
+ chartKitFormat?: FormatNumberOptions['format'];
72
+ chartKitPostfix?: FormatNumberOptions['postfix'];
73
+ chartKitPrecision?: FormatNumberOptions['precision'];
74
+ chartKitPrefix?: FormatNumberOptions['prefix'];
75
+ chartKitShowRankDelimiter?: FormatNumberOptions['showRankDelimiter'];
76
+ chartKitUnit?: FormatNumberOptions['unit'];
77
+ };
78
+ export declare type RowRenderingConfig = {
79
+ cellsRenderers: Array<(line: TooltipLine) => string>;
80
+ isSelectedLine?: boolean;
81
+ allowComment?: boolean;
82
+ withDarkBackground?: boolean;
83
+ isSingleLine?: boolean;
84
+ rowIndex?: number;
85
+ };
@@ -0,0 +1,22 @@
1
+ import type { FormatNumberOptions } from '../../../shared';
2
+ import type { DrillDownConfig, HighchartsWidgetData } from '../../types';
3
+ export declare type ConfigOptions = {
4
+ highcharts: HighchartsWidgetData['libraryConfig'];
5
+ nonBodyScroll?: boolean;
6
+ splitTooltip?: boolean;
7
+ drillDownData?: DrillDownConfig;
8
+ extremes?: {
9
+ min?: number;
10
+ max?: number;
11
+ };
12
+ } & HighchartsWidgetData['config'];
13
+ export declare type ChartKitFormatNumberSettings = {
14
+ chartKitFormatting?: boolean;
15
+ chartKitFormat?: FormatNumberOptions['format'];
16
+ chartKitPostfix?: FormatNumberOptions['postfix'];
17
+ chartKitPrecision?: FormatNumberOptions['precision'];
18
+ chartKitPrefix?: FormatNumberOptions['prefix'];
19
+ chartKitShowRankDelimiter?: FormatNumberOptions['showRankDelimiter'];
20
+ chartKitUnit?: FormatNumberOptions['unit'];
21
+ chartKitLabelMode?: FormatNumberOptions['labelMode'];
22
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ interface CommentBase {
2
+ id: string;
3
+ feed: string;
4
+ creatorLogin: string;
5
+ createdDate: string;
6
+ modifierLogin: string;
7
+ modifiedDate: string;
8
+ data: string;
9
+ dateUntil: string | null;
10
+ type: 'band-x' | 'dot-x-y' | 'flag-x' | 'line-x';
11
+ text: string;
12
+ params: object | null;
13
+ meta: object;
14
+ }
15
+ interface CommentDotXY extends CommentBase {
16
+ type: 'dot-x-y';
17
+ meta: {
18
+ color: string;
19
+ graphId: string;
20
+ visible: boolean;
21
+ fillColor: string;
22
+ textColor: string;
23
+ };
24
+ }
25
+ interface CommentLineX extends CommentBase {
26
+ type: 'line-x';
27
+ meta: {
28
+ color: string;
29
+ width: number;
30
+ dashStyle: string;
31
+ };
32
+ }
33
+ interface CommentBandX extends CommentBase {
34
+ dateUntil: string;
35
+ type: 'band-x';
36
+ meta: {
37
+ color: string;
38
+ zIndex: number;
39
+ visible: boolean;
40
+ };
41
+ }
42
+ interface CommentFlagX extends CommentBase {
43
+ type: 'flag-x';
44
+ meta: {
45
+ y: number;
46
+ color: string;
47
+ shape: string;
48
+ };
49
+ }
50
+ export declare type ChartKitComment = CommentDotXY | CommentBandX | CommentLineX | CommentFlagX;
51
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,38 @@
1
+ import 'highcharts';
2
+ import type {StringParams} from './misc';
3
+
4
+ declare module 'highcharts' {
5
+ interface Axis {
6
+ closestPointRange: number;
7
+ }
8
+
9
+ interface Chart {
10
+ afterRedrawCallback: () => void;
11
+ updateParams: (params: StringParams) => void;
12
+ getParams: () => StringParams;
13
+ plotSizeY: number;
14
+ pointsForInitialRefresh: Highcharts.Point[] | Highcharts.Point;
15
+ }
16
+
17
+ interface Tooltip {
18
+ fixed: boolean;
19
+ splitTooltip: boolean;
20
+ isHidden: boolean;
21
+ lastVisibleRowIndex: number;
22
+ preFixationHeight?: number;
23
+ getTooltipContainer: Function;
24
+ hideFixedTooltip: Function;
25
+ yagrChart?: {height: number};
26
+ }
27
+
28
+ interface PointOptionsObject extends Record<string, string> {
29
+ url?: string;
30
+ params?: Array<string>;
31
+ }
32
+
33
+ interface Options extends Record<string, unknown> {
34
+ url?: string;
35
+ }
36
+
37
+ interface SeriesOptionsRegistry extends Record<string, Record<string, unknown>> {}
38
+ }
@@ -0,0 +1,4 @@
1
+ export type { Highcharts } from './lib';
2
+ export type { HighchartsWidgetData } from './widget';
3
+ export type { DrillDownConfig, ExtendedHChart, StringParams, XAxisItem } from './misc';
4
+ export type { ChartKitComment } from './comments';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { default as Highcharts } from 'highcharts';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { ChartKitComment } from './comments';
2
+ export declare type StringParams = Record<string, string | string[]>;
3
+ export declare type DrillDownConfig = {
4
+ breadcrumbs: string[];
5
+ };
6
+ export declare type XAxisItem = Highcharts.Axis & {
7
+ dataMin: number;
8
+ dataMax: number;
9
+ setExtremes: (...args: any[]) => void;
10
+ };
11
+ export declare type ExtendedHChart = Highcharts.Chart & {
12
+ userOptions: Highcharts.Options & {
13
+ _internalComments: ChartKitComment[];
14
+ _externalComments: ChartKitComment[];
15
+ _getComments: () => ChartKitComment[];
16
+ };
17
+ xAxis: XAxisItem[];
18
+ navigator?: Highcharts.Options['navigator'];
19
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { Highcharts } from './lib';
2
+ import type { ChartKitComment } from './comments';
3
+ import type { DrillDownConfig, StringParams } from './misc';
4
+ declare type GraphWidgetSeriesOptions = Highcharts.SeriesOptionsType & {
5
+ title?: string;
6
+ sname?: string;
7
+ fname?: string;
8
+ };
9
+ export declare type HighchartsWidgetData = {
10
+ data: (GraphWidgetSeriesOptions[] | {
11
+ graphs: GraphWidgetSeriesOptions[];
12
+ categories_ms: number[];
13
+ } | {
14
+ graphs: GraphWidgetSeriesOptions[];
15
+ categories: string[];
16
+ } | {
17
+ graphs: GraphWidgetSeriesOptions[];
18
+ }) & {
19
+ comments?: ChartKitComment[];
20
+ };
21
+ config: {
22
+ hideComments?: boolean;
23
+ hideHolidaysBands?: boolean;
24
+ disableExternalComments?: boolean;
25
+ hideHolidays?: boolean;
26
+ normalizeDiv?: boolean;
27
+ normalizeSub?: boolean;
28
+ withoutLineLimit?: boolean;
29
+ precision?: number;
30
+ title?: string;
31
+ subtitle?: string;
32
+ highstock?: {
33
+ override_range_min: number | string;
34
+ override_range_max: number | string;
35
+ range_min?: number | string;
36
+ range_max?: number | string;
37
+ };
38
+ drillDown?: DrillDownConfig;
39
+ enableSum?: boolean;
40
+ unsafe?: boolean;
41
+ };
42
+ libraryConfig: Highcharts.Options;
43
+ params?: StringParams;
44
+ comments?: ChartKitComment[];
45
+ sideMarkdown?: string;
46
+ };
47
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,6 @@
1
1
  export { YagrPlugin } from './yagr';
2
- export type { Yagr, YagrWidgetData, YagrWidgetProps } from './yagr/types';
2
+ export type { Yagr, YagrWidgetData } from './yagr/types';
3
3
  export { IndicatorPlugin } from './indicator';
4
- export type { IndicatorWidgetData, IndicatorWidgetProps } from './indicator/types';
4
+ export type { IndicatorWidgetData } from './indicator/types';
5
+ export { HighchartsPlugin } from './highcharts';
6
+ export type { Highcharts, HighchartsWidgetData } from './highcharts/types';
@@ -1,2 +1,3 @@
1
1
  export { YagrPlugin } from './yagr';
2
2
  export { IndicatorPlugin } from './indicator';
3
+ export { HighchartsPlugin } from './highcharts';
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import type { IndicatorWidgetProps, IndicatorWidgetDataItem } from '../types';
2
+ import type { ChartKitProps } from '../../../types';
3
+ import type { IndicatorWidgetDataItem } from '../types';
3
4
  export declare const IndicatorItem: (props: IndicatorWidgetDataItem & {
4
5
  defaultColor?: string;
5
- formatNumber?: IndicatorWidgetProps['formatNumber'];
6
+ formatNumber?: ChartKitProps<'indicator'>['formatNumber'];
6
7
  }) => JSX.Element;