@oanda/labs-currency-power-balance-widget 1.0.116 → 1.0.118
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.
- package/CHANGELOG.md +948 -0
- package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/getOption.js +5 -5
- package/dist/main/CurrencyPowerBalanceWidget/components/Chart/options/getOption.js.map +1 -1
- package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/getOption.js +6 -6
- package/dist/module/CurrencyPowerBalanceWidget/components/Chart/options/getOption.js.map +1 -1
- package/dist/types/CurrencyPowerBalanceWidget/components/Chart/options/getOption.d.ts +1 -1
- package/package.json +3 -3
- package/src/CurrencyPowerBalanceWidget/components/Chart/options/getOption.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,954 @@
|
|
|
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.118 (2025-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## 1.0.178 (2025-01-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.0.177 (2025-01-10)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 1.0.176 (2025-01-10)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.0.175 (2025-01-08)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1.0.174 (2024-12-16)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 1.0.173 (2024-12-11)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## 1.0.172 (2024-11-29)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## 1.0.171 (2024-11-28)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 1.0.170 (2024-11-28)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 1.0.169 (2024-11-20)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## 1.0.168 (2024-11-19)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 1.0.167 (2024-10-14)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 1.0.166 (2024-10-07)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## 1.0.165 (2024-10-03)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 1.0.164 (2024-09-26)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## 1.0.163 (2024-09-18)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## 1.0.162 (2024-09-12)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## 1.0.161 (2024-09-11)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## 1.0.160 (2024-09-10)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 1.0.159 (2024-09-09)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## 1.0.158 (2024-09-04)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## 1.0.157 (2024-09-04)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## 1.0.156 (2024-09-02)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## 1.0.155 (2024-08-29)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## 1.0.154 (2024-08-29)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## 1.0.153 (2024-08-23)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## 1.0.152 (2024-08-23)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## 1.0.151 (2024-08-20)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## 1.0.150 (2024-08-19)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## 1.0.149 (2024-08-07)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## 1.0.148 (2024-08-01)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## 1.0.147 (2024-08-01)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## 1.0.146 (2024-07-26)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## 1.0.145 (2024-07-25)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## 1.0.144 (2024-07-22)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## 1.0.143 (2024-07-19)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## 1.0.142 (2024-07-16)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## 1.0.141 (2024-07-16)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 1.0.140 (2024-07-12)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## 1.0.139 (2024-07-12)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## 1.0.138 (2024-07-10)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## 1.0.137 (2024-07-05)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## 1.0.136 (2024-07-03)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## 1.0.135 (2024-07-03)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## 1.0.134 (2024-07-03)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## 1.0.133 (2024-06-28)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
## 1.0.132 (2024-06-27)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## 1.0.131 (2024-06-27)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
## 1.0.130 (2024-06-26)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## 1.0.129 (2024-06-17)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## 1.0.128 (2024-06-17)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## 1.0.127 (2024-06-10)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## 1.0.126 (2024-05-29)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## 1.0.125 (2024-05-29)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## 1.0.124 (2024-05-29)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## 1.0.123 (2024-05-28)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## 1.0.122 (2024-05-27)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## 1.0.121 (2024-05-27)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## 1.0.120 (2024-05-24)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## 1.0.119 (2024-05-17)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## 1.0.118 (2024-05-09)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## 1.0.117 (2024-05-07)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## 1.0.116 (2024-04-23)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## 1.0.115 (2024-04-22)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## 1.0.114 (2024-04-19)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
## 1.0.113 (2024-04-19)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## 1.0.112 (2024-04-15)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## 1.0.111 (2024-04-11)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
## 1.0.110 (2024-04-05)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## 1.0.109 (2024-04-05)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## 1.0.108 (2024-04-04)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## 1.0.107 (2024-04-03)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## 1.0.106 (2024-03-29)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## 1.0.105 (2024-03-28)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## 1.0.104 (2024-03-21)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
## 1.0.103 (2024-03-20)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## 1.0.102 (2024-03-20)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
## 1.0.101 (2024-03-13)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## 1.0.100 (2024-03-12)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## 1.0.99 (2024-03-11)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## 1.0.98 (2024-03-07)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## 1.0.97 (2024-03-06)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
## 1.0.96 (2024-03-06)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## 1.0.95 (2024-03-04)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
## 1.0.94 (2024-02-29)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## 1.0.93 (2024-02-28)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## 1.0.92 (2024-02-28)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## 1.0.91 (2024-02-23)
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
## 1.0.90 (2024-02-23)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
## 1.0.89 (2024-02-21)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
## 1.0.88 (2024-02-21)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
## 1.0.87 (2024-02-20)
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
## 1.0.86 (2024-02-20)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
## 1.0.85 (2024-02-13)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
## 1.0.84 (2024-02-13)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## 1.0.83 (2024-02-09)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## 1.0.82 (2024-02-05)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
## 1.0.81 (2024-02-05)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
## 1.0.80 (2024-02-05)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
## 1.0.79 (2024-02-05)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
## 1.0.78 (2024-01-30)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
## 1.0.77 (2024-01-25)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
## 1.0.76 (2024-01-25)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
## 1.0.75 (2024-01-22)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
## 1.0.74 (2024-01-22)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
## 1.0.73 (2024-01-22)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
## 1.0.72 (2024-01-19)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
## 1.0.71 (2024-01-18)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
## 1.0.70 (2024-01-17)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
## 1.0.69 (2024-01-17)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
## 1.0.68 (2024-01-15)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
## 1.0.67 (2024-01-15)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
## 1.0.66 (2024-01-12)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
## 1.0.65 (2024-01-11)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## 1.0.64 (2024-01-11)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
## 1.0.63 (2024-01-11)
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
## 1.0.62 (2024-01-10)
|
|
475
|
+
|
|
476
|
+
**Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
## 1.0.117 (2025-01-12)
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
## 1.0.177 (2025-01-10)
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
## 1.0.176 (2025-01-10)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
## 1.0.175 (2025-01-08)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
## 1.0.174 (2024-12-16)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
## 1.0.173 (2024-12-11)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
## 1.0.172 (2024-11-29)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## 1.0.171 (2024-11-28)
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
## 1.0.170 (2024-11-28)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
## 1.0.169 (2024-11-20)
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
## 1.0.168 (2024-11-19)
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
## 1.0.167 (2024-10-14)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
## 1.0.166 (2024-10-07)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
## 1.0.165 (2024-10-03)
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
## 1.0.164 (2024-09-26)
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
## 1.0.163 (2024-09-18)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
## 1.0.162 (2024-09-12)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
## 1.0.161 (2024-09-11)
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
## 1.0.160 (2024-09-10)
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## 1.0.159 (2024-09-09)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
## 1.0.158 (2024-09-04)
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
## 1.0.157 (2024-09-04)
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
## 1.0.156 (2024-09-02)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## 1.0.155 (2024-08-29)
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
## 1.0.154 (2024-08-29)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
## 1.0.153 (2024-08-23)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
## 1.0.152 (2024-08-23)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
## 1.0.151 (2024-08-20)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
## 1.0.150 (2024-08-19)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
## 1.0.149 (2024-08-07)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
## 1.0.148 (2024-08-01)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
## 1.0.147 (2024-08-01)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
## 1.0.146 (2024-07-26)
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
## 1.0.145 (2024-07-25)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
## 1.0.144 (2024-07-22)
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
## 1.0.143 (2024-07-19)
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
## 1.0.142 (2024-07-16)
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
## 1.0.141 (2024-07-16)
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
## 1.0.140 (2024-07-12)
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
## 1.0.139 (2024-07-12)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
## 1.0.138 (2024-07-10)
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
## 1.0.137 (2024-07-05)
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
## 1.0.136 (2024-07-03)
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
## 1.0.135 (2024-07-03)
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
## 1.0.134 (2024-07-03)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
## 1.0.133 (2024-06-28)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
## 1.0.132 (2024-06-27)
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
## 1.0.131 (2024-06-27)
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
## 1.0.130 (2024-06-26)
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
## 1.0.129 (2024-06-17)
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
## 1.0.128 (2024-06-17)
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
## 1.0.127 (2024-06-10)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
## 1.0.126 (2024-05-29)
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
## 1.0.125 (2024-05-29)
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
## 1.0.124 (2024-05-29)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
## 1.0.123 (2024-05-28)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
## 1.0.122 (2024-05-27)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
## 1.0.121 (2024-05-27)
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
## 1.0.120 (2024-05-24)
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
## 1.0.119 (2024-05-17)
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
## 1.0.118 (2024-05-09)
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
## 1.0.117 (2024-05-07)
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
## 1.0.116 (2024-04-23)
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
## 1.0.115 (2024-04-22)
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
## 1.0.114 (2024-04-19)
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
## 1.0.113 (2024-04-19)
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
## 1.0.112 (2024-04-15)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
## 1.0.111 (2024-04-11)
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
## 1.0.110 (2024-04-05)
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
## 1.0.109 (2024-04-05)
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
## 1.0.108 (2024-04-04)
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
## 1.0.107 (2024-04-03)
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
## 1.0.106 (2024-03-29)
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
## 1.0.105 (2024-03-28)
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
## 1.0.104 (2024-03-21)
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
## 1.0.103 (2024-03-20)
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
## 1.0.102 (2024-03-20)
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
## 1.0.101 (2024-03-13)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
## 1.0.100 (2024-03-12)
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
## 1.0.99 (2024-03-11)
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
## 1.0.98 (2024-03-07)
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
## 1.0.97 (2024-03-06)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
## 1.0.96 (2024-03-06)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
## 1.0.95 (2024-03-04)
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
## 1.0.94 (2024-02-29)
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
## 1.0.93 (2024-02-28)
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
## 1.0.92 (2024-02-28)
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
## 1.0.91 (2024-02-23)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
## 1.0.90 (2024-02-23)
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
## 1.0.89 (2024-02-21)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
## 1.0.88 (2024-02-21)
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
## 1.0.87 (2024-02-20)
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
## 1.0.86 (2024-02-20)
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
## 1.0.85 (2024-02-13)
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
## 1.0.84 (2024-02-13)
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
## 1.0.83 (2024-02-09)
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
## 1.0.82 (2024-02-05)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
## 1.0.81 (2024-02-05)
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
## 1.0.80 (2024-02-05)
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
## 1.0.79 (2024-02-05)
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
## 1.0.78 (2024-01-30)
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
## 1.0.77 (2024-01-25)
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
## 1.0.76 (2024-01-25)
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
## 1.0.75 (2024-01-22)
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
## 1.0.74 (2024-01-22)
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
## 1.0.73 (2024-01-22)
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
## 1.0.72 (2024-01-19)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
## 1.0.71 (2024-01-18)
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
## 1.0.70 (2024-01-17)
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
## 1.0.69 (2024-01-17)
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
## 1.0.68 (2024-01-15)
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
## 1.0.67 (2024-01-15)
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
## 1.0.66 (2024-01-12)
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
## 1.0.65 (2024-01-11)
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
## 1.0.64 (2024-01-11)
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
## 1.0.63 (2024-01-11)
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
## 1.0.62 (2024-01-10)
|
|
947
|
+
|
|
948
|
+
**Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
6
954
|
## 1.0.116 (2025-01-10)
|
|
7
955
|
|
|
8
956
|
|
|
@@ -10,7 +10,7 @@ var _constants = require("./constants");
|
|
|
10
10
|
var _formatters = require("./formatters");
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
13
|
-
const currentTheme = isDark ? _labsWidgetCommon.
|
|
13
|
+
const currentTheme = isDark ? _labsWidgetCommon.Theme.Dark : _labsWidgetCommon.Theme.Light;
|
|
14
14
|
const dataTimestamps = chartData[0].power.map(x => new Date(x.point).getTime());
|
|
15
15
|
const weekendsIndexes = (0, _utils.findLastIndexesBeforeWeekend)(dataTimestamps);
|
|
16
16
|
const disableWeekendsIndicator = [_graphql.CurrencyPowerBalanceTimeUnit.CurrentDay, _graphql.CurrencyPowerBalanceTimeUnit.PreviousDay, _graphql.CurrencyPowerBalanceTimeUnit.M3].includes(timeUnit) || weekendsIndexes.length === 0;
|
|
@@ -52,10 +52,10 @@ const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
|
52
52
|
shadowOffsetX: 0,
|
|
53
53
|
shadowOffsetY: 6,
|
|
54
54
|
borderWidth: 0,
|
|
55
|
-
color:
|
|
55
|
+
color: _labsWidgetCommon.themeColors.textPrimary,
|
|
56
56
|
shadowColor: 'rgba(0,0,0,0.1)',
|
|
57
57
|
borderRadius: 4,
|
|
58
|
-
backgroundColor: isDark ?
|
|
58
|
+
backgroundColor: isDark ? _labsWidgetCommon.themeColors.borderPrimary[currentTheme] : _labsWidgetCommon.themeColors.bgSecondary[currentTheme]
|
|
59
59
|
},
|
|
60
60
|
show: false,
|
|
61
61
|
emphasis: {
|
|
@@ -65,12 +65,12 @@ const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
|
65
65
|
lineStyle: {
|
|
66
66
|
width: 1,
|
|
67
67
|
opacity: 0,
|
|
68
|
-
color:
|
|
68
|
+
color: _labsWidgetCommon.themeColors.borderPrimary[currentTheme]
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
symbol: ['none', 'none'],
|
|
72
72
|
itemStyle: {
|
|
73
|
-
color:
|
|
73
|
+
color: _labsWidgetCommon.themeColors.borderPrimary[currentTheme]
|
|
74
74
|
},
|
|
75
75
|
data: weekendsMarks
|
|
76
76
|
} : undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOption.js","names":["_labsWidgetCommon","require","_graphql","_constants","_formatters","_utils","getOption","chartData","timeUnit","isDark","lang","currentTheme","
|
|
1
|
+
{"version":3,"file":"getOption.js","names":["_labsWidgetCommon","require","_graphql","_constants","_formatters","_utils","getOption","chartData","timeUnit","isDark","lang","currentTheme","Theme","Dark","Light","dataTimestamps","power","map","x","Date","point","getTime","weekendsIndexes","findLastIndexesBeforeWeekend","disableWeekendsIndicator","CurrencyPowerBalanceTimeUnit","CurrentDay","PreviousDay","M3","includes","length","weekendsMarks","item","xAxis","label","formatter","seriesData","_ref","index","currency","name","type","symbol","showSymbol","itemStyle","color","COLOR_CONFIG","data","_ref2","price","markLine","show","position","align","distance","padding","fontSize","shadowBlur","shadowOffsetX","shadowOffsetY","borderWidth","themeColors","textPrimary","shadowColor","borderRadius","backgroundColor","borderPrimary","bgSecondary","emphasis","lineStyle","width","opacity","undefined","legendData","formatLegendData","animation","legend","bottom","icon","tooltip","trigger","axisPointer","axis","z","TOOLTIP_LINE_COLOR_CONFIG","DARK","LIGHT","tooltipFormatter","extraCssText","axisTick","axisLine","splitLine","axisLabel","margin","rotate","interval","intervalFormatter","xAxisLabelFormatter","yAxis","splitNumber","boundaryGap","showMaxLabel","showMinLabel","series","exports"],"sources":["../../../../../../src/CurrencyPowerBalanceWidget/components/Chart/options/getOption.ts"],"sourcesContent":["import { Theme, themeColors } from '@oanda/labs-widget-common';\n\nimport type { CurrencyPowerBalance } from '../../../../gql/types/graphql';\nimport { CurrencyPowerBalanceTimeUnit } from '../../../../gql/types/graphql';\nimport { COLOR_CONFIG, TOOLTIP_LINE_COLOR_CONFIG } from './constants';\nimport {\n formatLegendData,\n intervalFormatter,\n tooltipFormatter,\n xAxisLabelFormatter,\n} from './formatters';\nimport { findLastIndexesBeforeWeekend } from './utils';\n\nconst getOption = (\n chartData: CurrencyPowerBalance[],\n timeUnit: CurrencyPowerBalanceTimeUnit,\n isDark: boolean,\n lang: (key: string) => string\n) => {\n const currentTheme = isDark ? Theme.Dark : Theme.Light;\n const dataTimestamps = chartData[0].power.map((x) =>\n new Date(x.point).getTime()\n );\n const weekendsIndexes = findLastIndexesBeforeWeekend(dataTimestamps);\n const disableWeekendsIndicator =\n [\n CurrencyPowerBalanceTimeUnit.CurrentDay,\n CurrencyPowerBalanceTimeUnit.PreviousDay,\n CurrencyPowerBalanceTimeUnit.M3,\n ].includes(timeUnit) || weekendsIndexes.length === 0;\n\n const weekendsMarks = weekendsIndexes.map((item) => ({\n xAxis: item,\n label: {\n formatter: () => lang('market_closed'),\n },\n }));\n\n const seriesData = chartData.map(({ currency, power }, index) => ({\n name: currency,\n type: 'line',\n symbol: 'circle',\n showSymbol: false,\n itemStyle: {\n color: COLOR_CONFIG[currency],\n },\n data: power.map(({ point, price }) => [point, price]),\n markLine:\n index === chartData.length - 1 && !disableWeekendsIndicator\n ? {\n label: {\n show: false,\n position: 'end',\n align: 'center',\n distance: -32,\n padding: [8, 8],\n fontSize: 12,\n shadowBlur: 24,\n shadowOffsetX: 0,\n shadowOffsetY: 6,\n borderWidth: 0,\n color: themeColors.textPrimary,\n shadowColor: 'rgba(0,0,0,0.1)',\n borderRadius: 4,\n backgroundColor: isDark\n ? themeColors.borderPrimary[currentTheme]\n : themeColors.bgSecondary[currentTheme],\n },\n show: false,\n emphasis: {\n label: {\n show: true,\n },\n lineStyle: {\n width: 1,\n opacity: 0,\n color: themeColors.borderPrimary[currentTheme],\n },\n },\n symbol: ['none', 'none'],\n itemStyle: {\n color: themeColors.borderPrimary[currentTheme],\n },\n data: weekendsMarks,\n }\n : undefined,\n }));\n\n const legendData = formatLegendData(chartData);\n\n return {\n animation: false,\n legend: {\n data: legendData,\n bottom: 10,\n icon: 'circle',\n },\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n axis: 'x',\n z: 0,\n lineStyle: {\n color: isDark\n ? TOOLTIP_LINE_COLOR_CONFIG.DARK\n : TOOLTIP_LINE_COLOR_CONFIG.LIGHT,\n },\n },\n formatter: tooltipFormatter,\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n axisTick: {\n show: false,\n },\n axisLine: { show: false },\n splitLine: {\n show: true,\n },\n axisLabel: {\n padding: [0, 0, 0, 4],\n align: 'left',\n margin: 10,\n rotate: -45,\n interval: intervalFormatter(seriesData[0].data.length),\n formatter: (label: string) => xAxisLabelFormatter(label, timeUnit),\n },\n },\n yAxis: {\n type: 'value',\n position: 'right',\n splitNumber: 5,\n axisLine: { show: false },\n axisTick: { show: false },\n boundaryGap: ['10%', '10%'],\n axisLabel: {\n showMaxLabel: false,\n showMinLabel: false,\n },\n },\n series: seriesData,\n };\n};\n\nexport { getOption };\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,MAAMK,SAAS,GAAGA,CAChBC,SAAiC,EACjCC,QAAsC,EACtCC,MAAe,EACfC,IAA6B,KAC1B;EACH,MAAMC,YAAY,GAAGF,MAAM,GAAGG,uBAAK,CAACC,IAAI,GAAGD,uBAAK,CAACE,KAAK;EACtD,MAAMC,cAAc,GAAGR,SAAS,CAAC,CAAC,CAAC,CAACS,KAAK,CAACC,GAAG,CAAEC,CAAC,IAC9C,IAAIC,IAAI,CAACD,CAAC,CAACE,KAAK,CAAC,CAACC,OAAO,CAAC,CAC5B,CAAC;EACD,MAAMC,eAAe,GAAG,IAAAC,mCAA4B,EAACR,cAAc,CAAC;EACpE,MAAMS,wBAAwB,GAC5B,CACEC,qCAA4B,CAACC,UAAU,EACvCD,qCAA4B,CAACE,WAAW,EACxCF,qCAA4B,CAACG,EAAE,CAChC,CAACC,QAAQ,CAACrB,QAAQ,CAAC,IAAIc,eAAe,CAACQ,MAAM,KAAK,CAAC;EAEtD,MAAMC,aAAa,GAAGT,eAAe,CAACL,GAAG,CAAEe,IAAI,KAAM;IACnDC,KAAK,EAAED,IAAI;IACXE,KAAK,EAAE;MACLC,SAAS,EAAEA,CAAA,KAAMzB,IAAI,CAAC,eAAe;IACvC;EACF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EAAC5D,UAAU,CAAC,CAAC,CAAC,CAACW,IAAI,CAACjB,MAAM,CAAC;QACtDK,SAAS,EAAGD,KAAa,IAAK,IAAA+D,+BAAmB,EAAC/D,KAAK,EAAE1B,QAAQ;MACnE;IACF,CAAC;IACD0F,KAAK,EAAE;MACLzD,IAAI,EAAE,OAAO;MACbW,QAAQ,EAAE,OAAO;MACjB+C,WAAW,EAAE,CAAC;MACdT,QAAQ,EAAE;QAAEvC,IAAI,EAAE;MAAM,CAAC;MACzBsC,QAAQ,EAAE;QAAEtC,IAAI,EAAE;MAAM,CAAC;MACzBiD,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;MAC3BR,SAAS,EAAE;QACTS,YAAY,EAAE,KAAK;QACnBC,YAAY,EAAE;MAChB;IACF,CAAC;IACDC,MAAM,EAAEnE;EACV,CAAC;AACH,CAAC;AAACoE,OAAA,CAAAlG,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme, themeColors } from '@oanda/labs-widget-common';
|
|
2
2
|
import { CurrencyPowerBalanceTimeUnit } from '../../../../gql/types/graphql';
|
|
3
3
|
import { COLOR_CONFIG, TOOLTIP_LINE_COLOR_CONFIG } from './constants';
|
|
4
4
|
import { formatLegendData, intervalFormatter, tooltipFormatter, xAxisLabelFormatter } from './formatters';
|
|
5
5
|
import { findLastIndexesBeforeWeekend } from './utils';
|
|
6
6
|
const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
7
|
-
const currentTheme = isDark ?
|
|
7
|
+
const currentTheme = isDark ? Theme.Dark : Theme.Light;
|
|
8
8
|
const dataTimestamps = chartData[0].power.map(x => new Date(x.point).getTime());
|
|
9
9
|
const weekendsIndexes = findLastIndexesBeforeWeekend(dataTimestamps);
|
|
10
10
|
const disableWeekendsIndicator = [CurrencyPowerBalanceTimeUnit.CurrentDay, CurrencyPowerBalanceTimeUnit.PreviousDay, CurrencyPowerBalanceTimeUnit.M3].includes(timeUnit) || weekendsIndexes.length === 0;
|
|
@@ -46,10 +46,10 @@ const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
|
46
46
|
shadowOffsetX: 0,
|
|
47
47
|
shadowOffsetY: 6,
|
|
48
48
|
borderWidth: 0,
|
|
49
|
-
color:
|
|
49
|
+
color: themeColors.textPrimary,
|
|
50
50
|
shadowColor: 'rgba(0,0,0,0.1)',
|
|
51
51
|
borderRadius: 4,
|
|
52
|
-
backgroundColor: isDark ?
|
|
52
|
+
backgroundColor: isDark ? themeColors.borderPrimary[currentTheme] : themeColors.bgSecondary[currentTheme]
|
|
53
53
|
},
|
|
54
54
|
show: false,
|
|
55
55
|
emphasis: {
|
|
@@ -59,12 +59,12 @@ const getOption = (chartData, timeUnit, isDark, lang) => {
|
|
|
59
59
|
lineStyle: {
|
|
60
60
|
width: 1,
|
|
61
61
|
opacity: 0,
|
|
62
|
-
color:
|
|
62
|
+
color: themeColors.borderPrimary[currentTheme]
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
symbol: ['none', 'none'],
|
|
66
66
|
itemStyle: {
|
|
67
|
-
color:
|
|
67
|
+
color: themeColors.borderPrimary[currentTheme]
|
|
68
68
|
},
|
|
69
69
|
data: weekendsMarks
|
|
70
70
|
} : undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOption.js","names":["
|
|
1
|
+
{"version":3,"file":"getOption.js","names":["Theme","themeColors","CurrencyPowerBalanceTimeUnit","COLOR_CONFIG","TOOLTIP_LINE_COLOR_CONFIG","formatLegendData","intervalFormatter","tooltipFormatter","xAxisLabelFormatter","findLastIndexesBeforeWeekend","getOption","chartData","timeUnit","isDark","lang","currentTheme","Dark","Light","dataTimestamps","power","map","x","Date","point","getTime","weekendsIndexes","disableWeekendsIndicator","CurrentDay","PreviousDay","M3","includes","length","weekendsMarks","item","xAxis","label","formatter","seriesData","_ref","index","currency","name","type","symbol","showSymbol","itemStyle","color","data","_ref2","price","markLine","show","position","align","distance","padding","fontSize","shadowBlur","shadowOffsetX","shadowOffsetY","borderWidth","textPrimary","shadowColor","borderRadius","backgroundColor","borderPrimary","bgSecondary","emphasis","lineStyle","width","opacity","undefined","legendData","animation","legend","bottom","icon","tooltip","trigger","axisPointer","axis","z","DARK","LIGHT","extraCssText","axisTick","axisLine","splitLine","axisLabel","margin","rotate","interval","yAxis","splitNumber","boundaryGap","showMaxLabel","showMinLabel","series"],"sources":["../../../../../../src/CurrencyPowerBalanceWidget/components/Chart/options/getOption.ts"],"sourcesContent":["import { Theme, themeColors } from '@oanda/labs-widget-common';\n\nimport type { CurrencyPowerBalance } from '../../../../gql/types/graphql';\nimport { CurrencyPowerBalanceTimeUnit } from '../../../../gql/types/graphql';\nimport { COLOR_CONFIG, TOOLTIP_LINE_COLOR_CONFIG } from './constants';\nimport {\n formatLegendData,\n intervalFormatter,\n tooltipFormatter,\n xAxisLabelFormatter,\n} from './formatters';\nimport { findLastIndexesBeforeWeekend } from './utils';\n\nconst getOption = (\n chartData: CurrencyPowerBalance[],\n timeUnit: CurrencyPowerBalanceTimeUnit,\n isDark: boolean,\n lang: (key: string) => string\n) => {\n const currentTheme = isDark ? Theme.Dark : Theme.Light;\n const dataTimestamps = chartData[0].power.map((x) =>\n new Date(x.point).getTime()\n );\n const weekendsIndexes = findLastIndexesBeforeWeekend(dataTimestamps);\n const disableWeekendsIndicator =\n [\n CurrencyPowerBalanceTimeUnit.CurrentDay,\n CurrencyPowerBalanceTimeUnit.PreviousDay,\n CurrencyPowerBalanceTimeUnit.M3,\n ].includes(timeUnit) || weekendsIndexes.length === 0;\n\n const weekendsMarks = weekendsIndexes.map((item) => ({\n xAxis: item,\n label: {\n formatter: () => lang('market_closed'),\n },\n }));\n\n const seriesData = chartData.map(({ currency, power }, index) => ({\n name: currency,\n type: 'line',\n symbol: 'circle',\n showSymbol: false,\n itemStyle: {\n color: COLOR_CONFIG[currency],\n },\n data: power.map(({ point, price }) => [point, price]),\n markLine:\n index === chartData.length - 1 && !disableWeekendsIndicator\n ? {\n label: {\n show: false,\n position: 'end',\n align: 'center',\n distance: -32,\n padding: [8, 8],\n fontSize: 12,\n shadowBlur: 24,\n shadowOffsetX: 0,\n shadowOffsetY: 6,\n borderWidth: 0,\n color: themeColors.textPrimary,\n shadowColor: 'rgba(0,0,0,0.1)',\n borderRadius: 4,\n backgroundColor: isDark\n ? themeColors.borderPrimary[currentTheme]\n : themeColors.bgSecondary[currentTheme],\n },\n show: false,\n emphasis: {\n label: {\n show: true,\n },\n lineStyle: {\n width: 1,\n opacity: 0,\n color: themeColors.borderPrimary[currentTheme],\n },\n },\n symbol: ['none', 'none'],\n itemStyle: {\n color: themeColors.borderPrimary[currentTheme],\n },\n data: weekendsMarks,\n }\n : undefined,\n }));\n\n const legendData = formatLegendData(chartData);\n\n return {\n animation: false,\n legend: {\n data: legendData,\n bottom: 10,\n icon: 'circle',\n },\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n axis: 'x',\n z: 0,\n lineStyle: {\n color: isDark\n ? TOOLTIP_LINE_COLOR_CONFIG.DARK\n : TOOLTIP_LINE_COLOR_CONFIG.LIGHT,\n },\n },\n formatter: tooltipFormatter,\n extraCssText: 'z-index: 1',\n },\n xAxis: {\n type: 'category',\n axisTick: {\n show: false,\n },\n axisLine: { show: false },\n splitLine: {\n show: true,\n },\n axisLabel: {\n padding: [0, 0, 0, 4],\n align: 'left',\n margin: 10,\n rotate: -45,\n interval: intervalFormatter(seriesData[0].data.length),\n formatter: (label: string) => xAxisLabelFormatter(label, timeUnit),\n },\n },\n yAxis: {\n type: 'value',\n position: 'right',\n splitNumber: 5,\n axisLine: { show: false },\n axisTick: { show: false },\n boundaryGap: ['10%', '10%'],\n axisLabel: {\n showMaxLabel: false,\n showMinLabel: false,\n },\n },\n series: seriesData,\n };\n};\n\nexport { getOption };\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,WAAW,QAAQ,2BAA2B;AAG9D,SAASC,4BAA4B,QAAQ,+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AAQ,EAAE;QAAElC,IAAI,EAAE;MAAM,CAAC;MACzB2C,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;MAC3BN,SAAS,EAAE;QACTO,YAAY,EAAE,KAAK;QACnBC,YAAY,EAAE;MAChB;IACF,CAAC;IACDC,MAAM,EAAE5D;EACV,CAAC;AACH,CAAC;AAED,SAAS3B,SAAS","ignoreList":[]}
|
|
@@ -81,7 +81,7 @@ declare const getOption: (chartData: CurrencyPowerBalance[], timeUnit: CurrencyP
|
|
|
81
81
|
shadowOffsetX: number;
|
|
82
82
|
shadowOffsetY: number;
|
|
83
83
|
borderWidth: number;
|
|
84
|
-
color:
|
|
84
|
+
color: import("@oanda/labs-widget-common/src/tailwind/types").ThemeColor;
|
|
85
85
|
shadowColor: string;
|
|
86
86
|
borderRadius: number;
|
|
87
87
|
backgroundColor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oanda/labs-currency-power-balance-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.118",
|
|
4
4
|
"description": "Labs Currency Power Balance Widget",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "OANDA",
|
|
13
13
|
"license": "UNLICENSED",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@oanda/labs-widget-common": "^1.0.
|
|
15
|
+
"@oanda/labs-widget-common": "^1.0.179",
|
|
16
16
|
"@oanda/mono-i18n": "10.0.1",
|
|
17
17
|
"echarts": "5.5.0",
|
|
18
18
|
"echarts-for-react": "3.0.2",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"@graphql-codegen/cli": "5.0.0",
|
|
23
23
|
"@graphql-codegen/client-preset": "4.1.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "3a1843166935a46ac099a9807d381f0db743b4b3"
|
|
26
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme, themeColors } from '@oanda/labs-widget-common';
|
|
2
2
|
|
|
3
3
|
import type { CurrencyPowerBalance } from '../../../../gql/types/graphql';
|
|
4
4
|
import { CurrencyPowerBalanceTimeUnit } from '../../../../gql/types/graphql';
|
|
@@ -17,7 +17,7 @@ const getOption = (
|
|
|
17
17
|
isDark: boolean,
|
|
18
18
|
lang: (key: string) => string
|
|
19
19
|
) => {
|
|
20
|
-
const currentTheme = isDark ?
|
|
20
|
+
const currentTheme = isDark ? Theme.Dark : Theme.Light;
|
|
21
21
|
const dataTimestamps = chartData[0].power.map((x) =>
|
|
22
22
|
new Date(x.point).getTime()
|
|
23
23
|
);
|
|
@@ -59,12 +59,12 @@ const getOption = (
|
|
|
59
59
|
shadowOffsetX: 0,
|
|
60
60
|
shadowOffsetY: 6,
|
|
61
61
|
borderWidth: 0,
|
|
62
|
-
color:
|
|
62
|
+
color: themeColors.textPrimary,
|
|
63
63
|
shadowColor: 'rgba(0,0,0,0.1)',
|
|
64
64
|
borderRadius: 4,
|
|
65
65
|
backgroundColor: isDark
|
|
66
|
-
?
|
|
67
|
-
: currentTheme
|
|
66
|
+
? themeColors.borderPrimary[currentTheme]
|
|
67
|
+
: themeColors.bgSecondary[currentTheme],
|
|
68
68
|
},
|
|
69
69
|
show: false,
|
|
70
70
|
emphasis: {
|
|
@@ -74,12 +74,12 @@ const getOption = (
|
|
|
74
74
|
lineStyle: {
|
|
75
75
|
width: 1,
|
|
76
76
|
opacity: 0,
|
|
77
|
-
color:
|
|
77
|
+
color: themeColors.borderPrimary[currentTheme],
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
symbol: ['none', 'none'],
|
|
81
81
|
itemStyle: {
|
|
82
|
-
color:
|
|
82
|
+
color: themeColors.borderPrimary[currentTheme],
|
|
83
83
|
},
|
|
84
84
|
data: weekendsMarks,
|
|
85
85
|
}
|