@oanda/labs-crowd-view-widget 1.0.62 → 1.0.64

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 (90) hide show
  1. package/CHANGELOG.md +516 -0
  2. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js +11 -14
  3. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js.map +1 -1
  4. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js +19 -15
  5. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js.map +1 -1
  6. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js +10 -10
  7. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js.map +1 -1
  8. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js +1 -1
  9. package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js.map +1 -1
  10. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js +2 -3
  11. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js.map +1 -1
  12. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js +2 -2
  13. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js.map +1 -1
  14. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js +3 -3
  15. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js.map +1 -1
  16. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +56 -12
  17. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -1
  18. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js +1 -2
  19. package/dist/main/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js.map +1 -1
  20. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js +4 -6
  21. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js.map +1 -1
  22. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js +1 -2
  23. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js.map +1 -1
  24. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js +7 -11
  25. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js.map +1 -1
  26. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/validateData.js +2 -3
  27. package/dist/main/CrowdViewWidget/components/Chart/dataUtils/validateData.js.map +1 -1
  28. package/dist/main/CrowdViewWidget/components/Chart/getOption.js +2 -2
  29. package/dist/main/CrowdViewWidget/components/Chart/getOption.js.map +1 -1
  30. package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js +5 -5
  31. package/dist/main/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -1
  32. package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js +2 -2
  33. package/dist/main/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
  34. package/dist/main/CrowdViewWidget/constants.js +4 -6
  35. package/dist/main/CrowdViewWidget/constants.js.map +1 -1
  36. package/dist/main/gql/getOrderPositionBooks.js +35 -3
  37. package/dist/main/gql/getOrderPositionBooks.js.map +1 -1
  38. package/dist/main/gql/getPriceCandles.js +26 -3
  39. package/dist/main/gql/getPriceCandles.js.map +1 -1
  40. package/dist/main/gql/getSentiments.js +21 -3
  41. package/dist/main/gql/getSentiments.js.map +1 -1
  42. package/dist/main/gql/types/fragment-masking.js +2 -3
  43. package/dist/main/gql/types/fragment-masking.js.map +1 -1
  44. package/dist/main/gql/types/gql.js +1 -2
  45. package/dist/main/gql/types/gql.js.map +1 -1
  46. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js +11 -14
  47. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.js.map +1 -1
  48. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js +19 -15
  49. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getGridLines.js.map +1 -1
  50. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js +10 -10
  51. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getLabelsConfig.js.map +1 -1
  52. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js +1 -1
  53. package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getYAxisConfig.js.map +1 -1
  54. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js +2 -3
  55. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatFullDate.js.map +1 -1
  56. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js +2 -2
  57. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisAdditionalLabel.js.map +1 -1
  58. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js +3 -3
  59. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/formatXAxisLabel.js.map +1 -1
  60. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js +56 -12
  61. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/getTooltipFormatter.js.map +1 -1
  62. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js +1 -2
  63. package/dist/module/CrowdViewWidget/components/Chart/chartUtils/handleLabelUpdate.js.map +1 -1
  64. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js +4 -6
  65. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processOrderPositionBooks.js.map +1 -1
  66. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js +1 -2
  67. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processPriceCandles.js.map +1 -1
  68. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js +7 -11
  69. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/processSentiments.js.map +1 -1
  70. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/validateData.js +2 -3
  71. package/dist/module/CrowdViewWidget/components/Chart/dataUtils/validateData.js.map +1 -1
  72. package/dist/module/CrowdViewWidget/components/Chart/getOption.js +2 -2
  73. package/dist/module/CrowdViewWidget/components/Chart/getOption.js.map +1 -1
  74. package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js +5 -5
  75. package/dist/module/CrowdViewWidget/components/Chart/useCrowdViewData.js.map +1 -1
  76. package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js +2 -2
  77. package/dist/module/CrowdViewWidget/components/Legend/LegendBar.js.map +1 -1
  78. package/dist/module/CrowdViewWidget/constants.js +4 -6
  79. package/dist/module/CrowdViewWidget/constants.js.map +1 -1
  80. package/dist/module/gql/getOrderPositionBooks.js +35 -3
  81. package/dist/module/gql/getOrderPositionBooks.js.map +1 -1
  82. package/dist/module/gql/getPriceCandles.js +26 -3
  83. package/dist/module/gql/getPriceCandles.js.map +1 -1
  84. package/dist/module/gql/getSentiments.js +21 -3
  85. package/dist/module/gql/getSentiments.js.map +1 -1
  86. package/dist/module/gql/types/fragment-masking.js +2 -3
  87. package/dist/module/gql/types/fragment-masking.js.map +1 -1
  88. package/dist/module/gql/types/gql.js +1 -2
  89. package/dist/module/gql/types/gql.js.map +1 -1
  90. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,522 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.0.64 (2026-01-08)
7
+
8
+
9
+
10
+ ## 1.0.245 (2026-01-07)
11
+
12
+
13
+
14
+ ## 1.0.244 (2026-01-02)
15
+
16
+
17
+
18
+ ## 1.0.243 (2025-12-30)
19
+
20
+
21
+
22
+ ## 1.0.242 (2025-12-16)
23
+
24
+
25
+
26
+ ## 1.0.241 (2025-12-16)
27
+
28
+
29
+
30
+ ## 1.0.240 (2025-12-15)
31
+
32
+
33
+
34
+ ## 1.0.239 (2025-12-12)
35
+
36
+
37
+
38
+ ## 1.0.238 (2025-12-11)
39
+
40
+
41
+
42
+ ## 1.0.237 (2025-12-09)
43
+
44
+
45
+
46
+ ## 1.0.236 (2025-12-05)
47
+
48
+
49
+
50
+ ## 1.0.235 (2025-12-04)
51
+
52
+
53
+
54
+ ## 1.0.234 (2025-11-27)
55
+
56
+
57
+
58
+ ## 1.0.233 (2025-11-27)
59
+
60
+
61
+
62
+ ## 1.0.232 (2025-11-27)
63
+
64
+
65
+
66
+ ## 1.0.231 (2025-11-07)
67
+
68
+
69
+
70
+ ## 1.0.230 (2025-11-05)
71
+
72
+
73
+
74
+ ## 1.0.229 (2025-11-05)
75
+
76
+
77
+
78
+ ## 1.0.228 (2025-11-05)
79
+
80
+
81
+
82
+ ## 1.0.227 (2025-10-31)
83
+
84
+
85
+
86
+ ## 1.0.226 (2025-10-29)
87
+
88
+
89
+
90
+ ## 1.0.225 (2025-10-09)
91
+
92
+
93
+
94
+ ## 1.0.224 (2025-09-29)
95
+
96
+
97
+
98
+ ## 1.0.223 (2025-09-29)
99
+
100
+
101
+
102
+ ## 1.0.222 (2025-09-17)
103
+
104
+
105
+
106
+ ## 1.0.221 (2025-09-11)
107
+
108
+
109
+
110
+ ## 1.0.220 (2025-09-09)
111
+
112
+
113
+
114
+ ## 1.0.219 (2025-09-02)
115
+
116
+
117
+
118
+ ## 1.0.218 (2025-09-01)
119
+
120
+
121
+
122
+ ## 1.0.217 (2025-08-25)
123
+
124
+
125
+
126
+ ## 1.0.216 (2025-08-18)
127
+
128
+
129
+
130
+ ## 1.0.215 (2025-08-18)
131
+
132
+
133
+
134
+ ## 1.0.214 (2025-08-14)
135
+
136
+
137
+
138
+ ## 1.0.213 (2025-08-12)
139
+
140
+
141
+
142
+ ## 1.0.212 (2025-08-05)
143
+
144
+
145
+
146
+ ## 1.0.211 (2025-08-05)
147
+
148
+
149
+
150
+ ## 1.0.210 (2025-07-31)
151
+
152
+
153
+
154
+ ## 1.0.209 (2025-07-31)
155
+
156
+
157
+
158
+ ## 1.0.208 (2025-07-24)
159
+
160
+
161
+
162
+ ## 1.0.207 (2025-07-18)
163
+
164
+
165
+
166
+ ## 1.0.206 (2025-07-18)
167
+
168
+
169
+
170
+ ## 1.0.205 (2025-07-17)
171
+
172
+
173
+
174
+ ## 1.0.204 (2025-07-09)
175
+
176
+
177
+
178
+ ## 1.0.203 (2025-06-16)
179
+
180
+
181
+
182
+ ## 1.0.202 (2025-06-04)
183
+
184
+
185
+
186
+ ## 1.0.201 (2025-06-02)
187
+
188
+
189
+
190
+ ## 1.0.200 (2025-05-30)
191
+
192
+
193
+
194
+ ## 1.0.199 (2025-05-29)
195
+
196
+
197
+
198
+ ## 1.0.198 (2025-05-26)
199
+
200
+
201
+
202
+ ## 1.0.197 (2025-05-23)
203
+
204
+
205
+
206
+ ## 1.0.196 (2025-05-22)
207
+
208
+
209
+
210
+ ## 1.0.195 (2025-05-21)
211
+
212
+
213
+
214
+ ## 1.0.194 (2025-05-21)
215
+
216
+
217
+
218
+ ## 1.0.193 (2025-05-15)
219
+
220
+
221
+
222
+ ## 1.0.192 (2025-05-14)
223
+
224
+
225
+
226
+ ## 1.0.191 (2025-04-30)
227
+
228
+
229
+
230
+ ## 1.0.190 (2025-04-28)
231
+
232
+
233
+
234
+ ## 1.0.189 (2025-04-23)
235
+
236
+
237
+
238
+ ## 1.0.188 (2025-04-22)
239
+
240
+
241
+
242
+ ## 1.0.187 (2025-04-18)
243
+
244
+
245
+
246
+ ## 1.0.186 (2025-04-10)
247
+
248
+
249
+
250
+ ## 1.0.185 (2025-04-09)
251
+
252
+
253
+
254
+ ## 1.0.184 (2025-04-08)
255
+
256
+
257
+
258
+ ## 1.0.183 (2025-04-04)
259
+
260
+ **Note:** Version bump only for package @oanda/labs-crowd-view-widget
261
+
262
+
263
+
264
+
265
+
266
+ ## 1.0.63 (2026-01-07)
267
+
268
+
269
+
270
+ ## 1.0.244 (2026-01-02)
271
+
272
+
273
+
274
+ ## 1.0.243 (2025-12-30)
275
+
276
+
277
+
278
+ ## 1.0.242 (2025-12-16)
279
+
280
+
281
+
282
+ ## 1.0.241 (2025-12-16)
283
+
284
+
285
+
286
+ ## 1.0.240 (2025-12-15)
287
+
288
+
289
+
290
+ ## 1.0.239 (2025-12-12)
291
+
292
+
293
+
294
+ ## 1.0.238 (2025-12-11)
295
+
296
+
297
+
298
+ ## 1.0.237 (2025-12-09)
299
+
300
+
301
+
302
+ ## 1.0.236 (2025-12-05)
303
+
304
+
305
+
306
+ ## 1.0.235 (2025-12-04)
307
+
308
+
309
+
310
+ ## 1.0.234 (2025-11-27)
311
+
312
+
313
+
314
+ ## 1.0.233 (2025-11-27)
315
+
316
+
317
+
318
+ ## 1.0.232 (2025-11-27)
319
+
320
+
321
+
322
+ ## 1.0.231 (2025-11-07)
323
+
324
+
325
+
326
+ ## 1.0.230 (2025-11-05)
327
+
328
+
329
+
330
+ ## 1.0.229 (2025-11-05)
331
+
332
+
333
+
334
+ ## 1.0.228 (2025-11-05)
335
+
336
+
337
+
338
+ ## 1.0.227 (2025-10-31)
339
+
340
+
341
+
342
+ ## 1.0.226 (2025-10-29)
343
+
344
+
345
+
346
+ ## 1.0.225 (2025-10-09)
347
+
348
+
349
+
350
+ ## 1.0.224 (2025-09-29)
351
+
352
+
353
+
354
+ ## 1.0.223 (2025-09-29)
355
+
356
+
357
+
358
+ ## 1.0.222 (2025-09-17)
359
+
360
+
361
+
362
+ ## 1.0.221 (2025-09-11)
363
+
364
+
365
+
366
+ ## 1.0.220 (2025-09-09)
367
+
368
+
369
+
370
+ ## 1.0.219 (2025-09-02)
371
+
372
+
373
+
374
+ ## 1.0.218 (2025-09-01)
375
+
376
+
377
+
378
+ ## 1.0.217 (2025-08-25)
379
+
380
+
381
+
382
+ ## 1.0.216 (2025-08-18)
383
+
384
+
385
+
386
+ ## 1.0.215 (2025-08-18)
387
+
388
+
389
+
390
+ ## 1.0.214 (2025-08-14)
391
+
392
+
393
+
394
+ ## 1.0.213 (2025-08-12)
395
+
396
+
397
+
398
+ ## 1.0.212 (2025-08-05)
399
+
400
+
401
+
402
+ ## 1.0.211 (2025-08-05)
403
+
404
+
405
+
406
+ ## 1.0.210 (2025-07-31)
407
+
408
+
409
+
410
+ ## 1.0.209 (2025-07-31)
411
+
412
+
413
+
414
+ ## 1.0.208 (2025-07-24)
415
+
416
+
417
+
418
+ ## 1.0.207 (2025-07-18)
419
+
420
+
421
+
422
+ ## 1.0.206 (2025-07-18)
423
+
424
+
425
+
426
+ ## 1.0.205 (2025-07-17)
427
+
428
+
429
+
430
+ ## 1.0.204 (2025-07-09)
431
+
432
+
433
+
434
+ ## 1.0.203 (2025-06-16)
435
+
436
+
437
+
438
+ ## 1.0.202 (2025-06-04)
439
+
440
+
441
+
442
+ ## 1.0.201 (2025-06-02)
443
+
444
+
445
+
446
+ ## 1.0.200 (2025-05-30)
447
+
448
+
449
+
450
+ ## 1.0.199 (2025-05-29)
451
+
452
+
453
+
454
+ ## 1.0.198 (2025-05-26)
455
+
456
+
457
+
458
+ ## 1.0.197 (2025-05-23)
459
+
460
+
461
+
462
+ ## 1.0.196 (2025-05-22)
463
+
464
+
465
+
466
+ ## 1.0.195 (2025-05-21)
467
+
468
+
469
+
470
+ ## 1.0.194 (2025-05-21)
471
+
472
+
473
+
474
+ ## 1.0.193 (2025-05-15)
475
+
476
+
477
+
478
+ ## 1.0.192 (2025-05-14)
479
+
480
+
481
+
482
+ ## 1.0.191 (2025-04-30)
483
+
484
+
485
+
486
+ ## 1.0.190 (2025-04-28)
487
+
488
+
489
+
490
+ ## 1.0.189 (2025-04-23)
491
+
492
+
493
+
494
+ ## 1.0.188 (2025-04-22)
495
+
496
+
497
+
498
+ ## 1.0.187 (2025-04-18)
499
+
500
+
501
+
502
+ ## 1.0.186 (2025-04-10)
503
+
504
+
505
+
506
+ ## 1.0.185 (2025-04-09)
507
+
508
+
509
+
510
+ ## 1.0.184 (2025-04-08)
511
+
512
+
513
+
514
+ ## 1.0.183 (2025-04-04)
515
+
516
+ **Note:** Version bump only for package @oanda/labs-crowd-view-widget
517
+
518
+
519
+
520
+
521
+
6
522
  ## 1.0.62 (2026-01-02)
7
523
 
8
524
 
@@ -5,11 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getGridConfig = void 0;
7
7
  var _constants = require("../../../constants");
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
12
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
8
  const getGridConfig = _ref => {
14
9
  let {
15
10
  isDesktop
@@ -28,18 +23,20 @@ const getGridConfig = _ref => {
28
23
  } = _constants.CHART_CONFIG;
29
24
  const mainHeight = isDesktop ? MAIN_HEIGHT_DESKTOP : MAIN_HEIGHT_MOBILE;
30
25
  const position = {
31
- left: "".concat(isDesktop ? Y_SENTIMENT_LABEL_DESKTOP_SIZE : Y_SENTIMENT_LABEL_MOBILE_SIZE, "px"),
32
- right: "".concat(isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE, "px"),
33
- top: "".concat(isDesktop ? TOP_LABEL_SPACE_DESKTOP + TOOLTIP_HEIGHT_DESKTOP : TOP_LABEL_SPACE_MOBILE + TOOLTIP_HEIGHT_MOBILE, "px"),
34
- height: "".concat(mainHeight, "px")
26
+ left: `${isDesktop ? Y_SENTIMENT_LABEL_DESKTOP_SIZE : Y_SENTIMENT_LABEL_MOBILE_SIZE}px`,
27
+ right: `${isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE}px`,
28
+ top: `${isDesktop ? TOP_LABEL_SPACE_DESKTOP + TOOLTIP_HEIGHT_DESKTOP : TOP_LABEL_SPACE_MOBILE + TOOLTIP_HEIGHT_MOBILE}px`,
29
+ height: `${mainHeight}px`
35
30
  };
36
- return [_objectSpread({
31
+ return [{
37
32
  id: 'main-grid',
38
- name: 'main-grid'
39
- }, position), _objectSpread({
33
+ name: 'main-grid',
34
+ ...position
35
+ }, {
40
36
  id: 'sentiment-grid',
41
- name: 'sentiment-grid'
42
- }, position)];
37
+ name: 'sentiment-grid',
38
+ ...position
39
+ }];
43
40
  };
44
41
  exports.getGridConfig = getGridConfig;
45
42
  //# sourceMappingURL=getGridConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGridConfig.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","getGridConfig","_ref","isDesktop","Y_SENTIMENT_LABEL_DESKTOP_SIZE","Y_SENTIMENT_LABEL_MOBILE_SIZE","Y_LABEL_SIZE_DESKTOP","Y_LABEL_SIZE_MOBILE","TOP_LABEL_SPACE_DESKTOP","TOP_LABEL_SPACE_MOBILE","MAIN_HEIGHT_DESKTOP","MAIN_HEIGHT_MOBILE","TOOLTIP_HEIGHT_MOBILE","TOOLTIP_HEIGHT_DESKTOP","CHART_CONFIG","mainHeight","position","left","concat","right","top","height","id","name","exports"],"sources":["../../../../../../src/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.ts"],"sourcesContent":["import type { GridComponentOption } from 'echarts';\n\nimport { CHART_CONFIG } from '../../../constants';\n\ninterface GetGridConfigParams {\n isDesktop: boolean;\n}\n\nexport const getGridConfig = ({\n isDesktop,\n}: GetGridConfigParams): GridComponentOption[] => {\n const {\n Y_SENTIMENT_LABEL_DESKTOP_SIZE,\n Y_SENTIMENT_LABEL_MOBILE_SIZE,\n Y_LABEL_SIZE_DESKTOP,\n Y_LABEL_SIZE_MOBILE,\n TOP_LABEL_SPACE_DESKTOP,\n TOP_LABEL_SPACE_MOBILE,\n MAIN_HEIGHT_DESKTOP,\n MAIN_HEIGHT_MOBILE,\n TOOLTIP_HEIGHT_MOBILE,\n TOOLTIP_HEIGHT_DESKTOP,\n } = CHART_CONFIG;\n\n const mainHeight = isDesktop ? MAIN_HEIGHT_DESKTOP : MAIN_HEIGHT_MOBILE;\n\n const position = {\n left: `${isDesktop ? Y_SENTIMENT_LABEL_DESKTOP_SIZE : Y_SENTIMENT_LABEL_MOBILE_SIZE}px`,\n right: `${isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE}px`,\n top: `${isDesktop ? TOP_LABEL_SPACE_DESKTOP + TOOLTIP_HEIGHT_DESKTOP : TOP_LABEL_SPACE_MOBILE + TOOLTIP_HEIGHT_MOBILE}px`,\n height: `${mainHeight}px`,\n };\n return [\n {\n id: 'main-grid',\n name: 'main-grid',\n ...position,\n },\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I;IACzHS,MAAM,KAAAH,MAAA,CAAKH,UAAU;EACvB,CAAC;EACD,OAAO,CAAAlC,aAAA;IAEHyC,EAAE,EAAE,WAAW;IACfC,IAAI,EAAE;EAAW,GACdP,QAAQ,GAAAnC,aAAA;IAGXyC,EAAE,EAAE,gBAAgB;IACpBC,IAAI,EAAE;EAAgB,GACnBP,QAAQ,EAEd;AACH,CAAC;AAACQ,OAAA,CAAAvB,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"getGridConfig.js","names":["_constants","require","getGridConfig","_ref","isDesktop","Y_SENTIMENT_LABEL_DESKTOP_SIZE","Y_SENTIMENT_LABEL_MOBILE_SIZE","Y_LABEL_SIZE_DESKTOP","Y_LABEL_SIZE_MOBILE","TOP_LABEL_SPACE_DESKTOP","TOP_LABEL_SPACE_MOBILE","MAIN_HEIGHT_DESKTOP","MAIN_HEIGHT_MOBILE","TOOLTIP_HEIGHT_MOBILE","TOOLTIP_HEIGHT_DESKTOP","CHART_CONFIG","mainHeight","position","left","right","top","height","id","name","exports"],"sources":["../../../../../../src/CrowdViewWidget/components/Chart/chartOptions/getGridConfig.ts"],"sourcesContent":["import type { GridComponentOption } from 'echarts';\n\nimport { CHART_CONFIG } from '../../../constants';\n\ninterface GetGridConfigParams {\n isDesktop: boolean;\n}\n\nexport const getGridConfig = ({\n isDesktop,\n}: GetGridConfigParams): GridComponentOption[] => {\n const {\n Y_SENTIMENT_LABEL_DESKTOP_SIZE,\n Y_SENTIMENT_LABEL_MOBILE_SIZE,\n Y_LABEL_SIZE_DESKTOP,\n Y_LABEL_SIZE_MOBILE,\n TOP_LABEL_SPACE_DESKTOP,\n TOP_LABEL_SPACE_MOBILE,\n MAIN_HEIGHT_DESKTOP,\n MAIN_HEIGHT_MOBILE,\n TOOLTIP_HEIGHT_MOBILE,\n TOOLTIP_HEIGHT_DESKTOP,\n } = CHART_CONFIG;\n\n const mainHeight = isDesktop ? MAIN_HEIGHT_DESKTOP : MAIN_HEIGHT_MOBILE;\n\n const position = {\n left: `${isDesktop ? Y_SENTIMENT_LABEL_DESKTOP_SIZE : Y_SENTIMENT_LABEL_MOBILE_SIZE}px`,\n right: `${isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE}px`,\n top: `${isDesktop ? TOP_LABEL_SPACE_DESKTOP + TOOLTIP_HEIGHT_DESKTOP : TOP_LABEL_SPACE_MOBILE + TOOLTIP_HEIGHT_MOBILE}px`,\n height: `${mainHeight}px`,\n };\n return [\n {\n id: 'main-grid',\n name: 'main-grid',\n ...position,\n },\n {\n id: 'sentiment-grid',\n name: 'sentiment-grid',\n ...position,\n },\n ];\n};\n"],"mappings":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAMO,MAAMC,aAAa,GAAGC,IAAA,IAEqB;EAAA,IAFpB;IAC5BC;EACmB,CAAC,GAAAD,IAAA;EACpB,MAAM;IACJE,8BAA8B;IAC9BC,6BAA6B;IAC7BC,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;IACtBC,mBAAmB;IACnBC,kBAAkB;IAClBC,qBAAqB;IACrBC;EACF,CAAC,GAAGC,uBAAY;EAEhB,MAAMC,UAAU,GAAGZ,SAAS,GAAGO,mBAAmB,GAAGC,kBAAkB;EAEvE,MAAMK,QAAQ,GAAG;IACfC,IAAI,EAAE,GAAGd,SAAS,GAAGC,8BAA8B,GAAGC,6BAA6B,IAAI;IACvFa,KAAK,EAAE,GAAGf,SAAS,GAAGG,oBAAoB,GAAGC,mBAAmB,IAAI;IACpEY,GAAG,EAAE,GAAGhB,SAAS,GAAGK,uBAAuB,GAAGK,sBAAsB,GAAGJ,sBAAsB,GAAGG,qBAAqB,IAAI;IACzHQ,MAAM,EAAE,GAAGL,UAAU;EACvB,CAAC;EACD,OAAO,CACL;IACEM,EAAE,EAAE,WAAW;IACfC,IAAI,EAAE,WAAW;IACjB,GAAGN;EACL,CAAC,EACD;IACEK,EAAE,EAAE,gBAAgB;IACpBC,IAAI,EAAE,gBAAgB;IACtB,GAAGN;EACL,CAAC,CACF;AACH,CAAC;AAACO,OAAA,CAAAtB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getGridLines = void 0;
7
7
  var _labsWidgetCommon = require("@oanda/labs-widget-common");
8
8
  var _constants = require("../../../constants");
9
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
13
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
9
  const getGridLines = _ref => {
15
10
  let {
16
11
  isDark,
@@ -34,7 +29,8 @@ const getGridLines = _ref => {
34
29
  const yLabelSize = isDesktop ? Y_LABEL_SIZE_DESKTOP : Y_LABEL_SIZE_MOBILE;
35
30
  const topMargin = isDesktop ? _constants.CHART_CONFIG.TOP_LABEL_SPACE_DESKTOP + TOOLTIP_HEIGHT_DESKTOP : TOP_LABEL_SPACE_MOBILE + TOOLTIP_HEIGHT_MOBILE;
36
31
  const tooltipHeight = isDesktop ? TOOLTIP_HEIGHT_DESKTOP : TOOLTIP_HEIGHT_MOBILE;
37
- return [_objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
32
+ return [{
33
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
38
34
  top: -2,
39
35
  shape: {
40
36
  x1: 0,
@@ -43,7 +39,8 @@ const getGridLines = _ref => {
43
39
  y2: 0
44
40
  },
45
41
  z: 30
46
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
42
+ }, {
43
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
47
44
  right: -2,
48
45
  shape: {
49
46
  x1: 0,
@@ -52,7 +49,8 @@ const getGridLines = _ref => {
52
49
  y2: mainHeight + topMargin + X_LABEL_SIZE + 2
53
50
  },
54
51
  z: 30
55
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
52
+ }, {
53
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
56
54
  bottom: -2,
57
55
  shape: {
58
56
  x1: 0,
@@ -61,7 +59,8 @@ const getGridLines = _ref => {
61
59
  y2: 0
62
60
  },
63
61
  z: 30
64
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
62
+ }, {
63
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
65
64
  left: -2,
66
65
  shape: {
67
66
  x1: 0,
@@ -70,7 +69,8 @@ const getGridLines = _ref => {
70
69
  y2: mainHeight + X_LABEL_SIZE + topMargin + 2
71
70
  },
72
71
  z: 30
73
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
72
+ }, {
73
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
74
74
  right: yLabelSize - 3,
75
75
  top: topMargin - 2,
76
76
  shape: {
@@ -80,7 +80,8 @@ const getGridLines = _ref => {
80
80
  y2: mainHeight
81
81
  },
82
82
  z: 30
83
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
83
+ }, {
84
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
84
85
  left: ySentimentLabelSize - 2,
85
86
  top: topMargin - 2,
86
87
  shape: {
@@ -90,7 +91,8 @@ const getGridLines = _ref => {
90
91
  y2: mainHeight
91
92
  },
92
93
  z: 30
93
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
94
+ }, {
95
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
94
96
  bottom: X_LABEL_SIZE - 3,
95
97
  shape: {
96
98
  x1: 0,
@@ -99,7 +101,8 @@ const getGridLines = _ref => {
99
101
  y2: 0
100
102
  },
101
103
  z: 30
102
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
104
+ }, {
105
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
103
106
  top: topMargin - 3,
104
107
  shape: {
105
108
  x1: 0,
@@ -108,7 +111,8 @@ const getGridLines = _ref => {
108
111
  y2: 0
109
112
  },
110
113
  z: 30
111
- }), _objectSpread(_objectSpread({}, (0, _labsWidgetCommon.getLineCommons)(isDark)), {}, {
114
+ }, {
115
+ ...(0, _labsWidgetCommon.getLineCommons)(isDark),
112
116
  top: tooltipHeight - 3,
113
117
  shape: {
114
118
  x1: 0,
@@ -117,7 +121,7 @@ const getGridLines = _ref => {
117
121
  y2: 0
118
122
  },
119
123
  z: 30
120
- })];
124
+ }];
121
125
  };
122
126
  exports.getGridLines = getGridLines;
123
127
  //# sourceMappingURL=getGridLines.js.map