@oanda/labs-currency-power-balance-widget 1.0.135 → 1.0.137
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 +1100 -0
- package/dist/main/CurrencyPowerBalanceWidget/components/Chart/Chart.js +4 -9
- package/dist/main/CurrencyPowerBalanceWidget/components/Chart/Chart.js.map +1 -1
- package/dist/main/translations/sources/en.json +1 -0
- package/dist/module/CurrencyPowerBalanceWidget/components/Chart/Chart.js +5 -9
- package/dist/module/CurrencyPowerBalanceWidget/components/Chart/Chart.js.map +1 -1
- package/dist/module/translations/sources/en.json +1 -0
- package/package.json +3 -3
- package/src/CurrencyPowerBalanceWidget/components/Chart/Chart.tsx +6 -8
- package/src/translations/sources/en.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,1106 @@
|
|
|
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.137 (2025-05-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## 1.0.197 (2025-05-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.0.196 (2025-05-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 1.0.195 (2025-05-21)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.0.194 (2025-05-21)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 1.0.193 (2025-05-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 1.0.192 (2025-05-14)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## 1.0.191 (2025-04-30)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## 1.0.190 (2025-04-28)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 1.0.189 (2025-04-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## 1.0.188 (2025-04-22)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## 1.0.187 (2025-04-18)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 1.0.186 (2025-04-10)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## 1.0.185 (2025-04-09)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## 1.0.184 (2025-04-08)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 1.0.183 (2025-04-04)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## 1.0.182 (2025-03-21)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## 1.0.181 (2025-03-13)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## 1.0.180 (2025-01-30)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## 1.0.179 (2025-01-29)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## 1.0.178 (2025-01-12)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## 1.0.177 (2025-01-10)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## 1.0.176 (2025-01-10)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## 1.0.175 (2025-01-08)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## 1.0.174 (2024-12-16)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## 1.0.173 (2024-12-11)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
## 1.0.172 (2024-11-29)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## 1.0.171 (2024-11-28)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## 1.0.170 (2024-11-28)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## 1.0.169 (2024-11-20)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## 1.0.168 (2024-11-19)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## 1.0.167 (2024-10-14)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## 1.0.166 (2024-10-07)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## 1.0.165 (2024-10-03)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## 1.0.164 (2024-09-26)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## 1.0.163 (2024-09-18)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## 1.0.162 (2024-09-12)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## 1.0.161 (2024-09-11)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## 1.0.160 (2024-09-10)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 1.0.159 (2024-09-09)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## 1.0.158 (2024-09-04)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## 1.0.157 (2024-09-04)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## 1.0.156 (2024-09-02)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## 1.0.155 (2024-08-29)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
## 1.0.154 (2024-08-29)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## 1.0.153 (2024-08-23)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## 1.0.152 (2024-08-23)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
## 1.0.151 (2024-08-20)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## 1.0.150 (2024-08-19)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
## 1.0.149 (2024-08-07)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## 1.0.148 (2024-08-01)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## 1.0.147 (2024-08-01)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## 1.0.146 (2024-07-26)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## 1.0.145 (2024-07-25)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## 1.0.144 (2024-07-22)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## 1.0.143 (2024-07-19)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## 1.0.142 (2024-07-16)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## 1.0.141 (2024-07-16)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## 1.0.140 (2024-07-12)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## 1.0.139 (2024-07-12)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## 1.0.138 (2024-07-10)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## 1.0.137 (2024-07-05)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## 1.0.136 (2024-07-03)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## 1.0.135 (2024-07-03)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## 1.0.134 (2024-07-03)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
## 1.0.133 (2024-06-28)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
## 1.0.132 (2024-06-27)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## 1.0.131 (2024-06-27)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
## 1.0.130 (2024-06-26)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
## 1.0.129 (2024-06-17)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## 1.0.128 (2024-06-17)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## 1.0.127 (2024-06-10)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## 1.0.126 (2024-05-29)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## 1.0.125 (2024-05-29)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
## 1.0.124 (2024-05-29)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
## 1.0.123 (2024-05-28)
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
## 1.0.122 (2024-05-27)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## 1.0.121 (2024-05-27)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
## 1.0.120 (2024-05-24)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## 1.0.119 (2024-05-17)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
## 1.0.118 (2024-05-09)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## 1.0.117 (2024-05-07)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## 1.0.116 (2024-04-23)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
## 1.0.115 (2024-04-22)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## 1.0.114 (2024-04-19)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
## 1.0.113 (2024-04-19)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## 1.0.112 (2024-04-15)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## 1.0.111 (2024-04-11)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## 1.0.110 (2024-04-05)
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
## 1.0.109 (2024-04-05)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
## 1.0.108 (2024-04-04)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
## 1.0.107 (2024-04-03)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
## 1.0.106 (2024-03-29)
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
## 1.0.105 (2024-03-28)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
## 1.0.104 (2024-03-21)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
## 1.0.103 (2024-03-20)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
## 1.0.102 (2024-03-20)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## 1.0.101 (2024-03-13)
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
## 1.0.100 (2024-03-12)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
## 1.0.99 (2024-03-11)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
## 1.0.98 (2024-03-07)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
## 1.0.97 (2024-03-06)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
## 1.0.96 (2024-03-06)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
## 1.0.95 (2024-03-04)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
## 1.0.94 (2024-02-29)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
## 1.0.93 (2024-02-28)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
## 1.0.92 (2024-02-28)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
## 1.0.91 (2024-02-23)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
## 1.0.90 (2024-02-23)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
## 1.0.89 (2024-02-21)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
## 1.0.88 (2024-02-21)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
## 1.0.87 (2024-02-20)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
## 1.0.86 (2024-02-20)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
## 1.0.85 (2024-02-13)
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
## 1.0.84 (2024-02-13)
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## 1.0.83 (2024-02-09)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
## 1.0.82 (2024-02-05)
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
## 1.0.81 (2024-02-05)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
## 1.0.80 (2024-02-05)
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
## 1.0.79 (2024-02-05)
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
## 1.0.78 (2024-01-30)
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
## 1.0.77 (2024-01-25)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
## 1.0.76 (2024-01-25)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
## 1.0.75 (2024-01-22)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
## 1.0.74 (2024-01-22)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
## 1.0.73 (2024-01-22)
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## 1.0.72 (2024-01-19)
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
## 1.0.71 (2024-01-18)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
## 1.0.70 (2024-01-17)
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
## 1.0.69 (2024-01-17)
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
## 1.0.68 (2024-01-15)
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
## 1.0.67 (2024-01-15)
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
## 1.0.66 (2024-01-12)
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
## 1.0.65 (2024-01-11)
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
## 1.0.64 (2024-01-11)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
## 1.0.63 (2024-01-11)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
## 1.0.62 (2024-01-10)
|
|
551
|
+
|
|
552
|
+
**Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## 1.0.136 (2025-05-23)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
## 1.0.196 (2025-05-22)
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
## 1.0.195 (2025-05-21)
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
## 1.0.194 (2025-05-21)
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## 1.0.193 (2025-05-15)
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
## 1.0.192 (2025-05-14)
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
## 1.0.191 (2025-04-30)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
## 1.0.190 (2025-04-28)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
## 1.0.189 (2025-04-23)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
## 1.0.188 (2025-04-22)
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
## 1.0.187 (2025-04-18)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
## 1.0.186 (2025-04-10)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
## 1.0.185 (2025-04-09)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
## 1.0.184 (2025-04-08)
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
## 1.0.183 (2025-04-04)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
## 1.0.182 (2025-03-21)
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
## 1.0.181 (2025-03-13)
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
## 1.0.180 (2025-01-30)
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
## 1.0.179 (2025-01-29)
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
## 1.0.178 (2025-01-12)
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
## 1.0.177 (2025-01-10)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
## 1.0.176 (2025-01-10)
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
## 1.0.175 (2025-01-08)
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
## 1.0.174 (2024-12-16)
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
## 1.0.173 (2024-12-11)
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
## 1.0.172 (2024-11-29)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
## 1.0.171 (2024-11-28)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
## 1.0.170 (2024-11-28)
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
## 1.0.169 (2024-11-20)
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
## 1.0.168 (2024-11-19)
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
## 1.0.167 (2024-10-14)
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
## 1.0.166 (2024-10-07)
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
## 1.0.165 (2024-10-03)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
## 1.0.164 (2024-09-26)
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
## 1.0.163 (2024-09-18)
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
## 1.0.162 (2024-09-12)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
## 1.0.161 (2024-09-11)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
## 1.0.160 (2024-09-10)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
## 1.0.159 (2024-09-09)
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
## 1.0.158 (2024-09-04)
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
## 1.0.157 (2024-09-04)
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
## 1.0.156 (2024-09-02)
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
## 1.0.155 (2024-08-29)
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
## 1.0.154 (2024-08-29)
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
## 1.0.153 (2024-08-23)
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
## 1.0.152 (2024-08-23)
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
## 1.0.151 (2024-08-20)
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
## 1.0.150 (2024-08-19)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
## 1.0.149 (2024-08-07)
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
## 1.0.148 (2024-08-01)
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
## 1.0.147 (2024-08-01)
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
## 1.0.146 (2024-07-26)
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
## 1.0.145 (2024-07-25)
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
## 1.0.144 (2024-07-22)
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
## 1.0.143 (2024-07-19)
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
## 1.0.142 (2024-07-16)
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
## 1.0.141 (2024-07-16)
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
## 1.0.140 (2024-07-12)
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
## 1.0.139 (2024-07-12)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
## 1.0.138 (2024-07-10)
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
## 1.0.137 (2024-07-05)
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
## 1.0.136 (2024-07-03)
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
## 1.0.135 (2024-07-03)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
## 1.0.134 (2024-07-03)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
## 1.0.133 (2024-06-28)
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
## 1.0.132 (2024-06-27)
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
## 1.0.131 (2024-06-27)
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
## 1.0.130 (2024-06-26)
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
## 1.0.129 (2024-06-17)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
## 1.0.128 (2024-06-17)
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
## 1.0.127 (2024-06-10)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
## 1.0.126 (2024-05-29)
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
## 1.0.125 (2024-05-29)
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
## 1.0.124 (2024-05-29)
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
## 1.0.123 (2024-05-28)
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
## 1.0.122 (2024-05-27)
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
## 1.0.121 (2024-05-27)
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
## 1.0.120 (2024-05-24)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
## 1.0.119 (2024-05-17)
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
## 1.0.118 (2024-05-09)
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
## 1.0.117 (2024-05-07)
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
## 1.0.116 (2024-04-23)
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
## 1.0.115 (2024-04-22)
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
## 1.0.114 (2024-04-19)
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
## 1.0.113 (2024-04-19)
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
## 1.0.112 (2024-04-15)
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
## 1.0.111 (2024-04-11)
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
## 1.0.110 (2024-04-05)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
## 1.0.109 (2024-04-05)
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
## 1.0.108 (2024-04-04)
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
## 1.0.107 (2024-04-03)
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
## 1.0.106 (2024-03-29)
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
## 1.0.105 (2024-03-28)
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
## 1.0.104 (2024-03-21)
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
## 1.0.103 (2024-03-20)
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
## 1.0.102 (2024-03-20)
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
## 1.0.101 (2024-03-13)
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
## 1.0.100 (2024-03-12)
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
## 1.0.99 (2024-03-11)
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
## 1.0.98 (2024-03-07)
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
## 1.0.97 (2024-03-06)
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
## 1.0.96 (2024-03-06)
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
## 1.0.95 (2024-03-04)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
## 1.0.94 (2024-02-29)
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
## 1.0.93 (2024-02-28)
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
## 1.0.92 (2024-02-28)
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
## 1.0.91 (2024-02-23)
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
## 1.0.90 (2024-02-23)
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
## 1.0.89 (2024-02-21)
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
## 1.0.88 (2024-02-21)
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
## 1.0.87 (2024-02-20)
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
## 1.0.86 (2024-02-20)
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
## 1.0.85 (2024-02-13)
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
## 1.0.84 (2024-02-13)
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
## 1.0.83 (2024-02-09)
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
## 1.0.82 (2024-02-05)
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
## 1.0.81 (2024-02-05)
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
## 1.0.80 (2024-02-05)
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
## 1.0.79 (2024-02-05)
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
## 1.0.78 (2024-01-30)
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
## 1.0.77 (2024-01-25)
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
## 1.0.76 (2024-01-25)
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
## 1.0.75 (2024-01-22)
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
## 1.0.74 (2024-01-22)
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
## 1.0.73 (2024-01-22)
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
## 1.0.72 (2024-01-19)
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
## 1.0.71 (2024-01-18)
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
## 1.0.70 (2024-01-17)
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
## 1.0.69 (2024-01-17)
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
## 1.0.68 (2024-01-15)
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
## 1.0.67 (2024-01-15)
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
## 1.0.66 (2024-01-12)
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
## 1.0.65 (2024-01-11)
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
## 1.0.64 (2024-01-11)
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
## 1.0.63 (2024-01-11)
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
## 1.0.62 (2024-01-10)
|
|
1099
|
+
|
|
1100
|
+
**Note:** Version bump only for package @oanda/labs-currency-power-balance-widget
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
6
1106
|
## 1.0.135 (2025-05-22)
|
|
7
1107
|
|
|
8
1108
|
|
|
@@ -10,11 +10,9 @@ var _charts = require("echarts/charts");
|
|
|
10
10
|
var _components = require("echarts/components");
|
|
11
11
|
var echarts = _interopRequireWildcard(require("echarts/core"));
|
|
12
12
|
var _renderers = require("echarts/renderers");
|
|
13
|
-
var _core2 = _interopRequireDefault(require("echarts-for-react/lib/core"));
|
|
14
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
14
|
var _options = require("./options");
|
|
16
15
|
var _constants = require("./options/constants");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
18
|
echarts.use([_components.GridSimpleComponent, _components.GraphicComponent, _components.TooltipComponent, _components.LegendPlainComponent, _charts.LineChart, _renderers.CanvasRenderer, _components.MarkLineComponent]);
|
|
@@ -48,15 +46,12 @@ const Chart = _ref => {
|
|
|
48
46
|
echartInstance.setOption((0, _options.getResponsiveOption)(isDesktop, isMobile, isDark));
|
|
49
47
|
}
|
|
50
48
|
}, [echartRef, isDesktop, isMobile, isDark]);
|
|
51
|
-
return _react.default.createElement(
|
|
49
|
+
return _react.default.createElement(_labsWidgetCommon.BaseChart, {
|
|
52
50
|
ref: echartRef,
|
|
51
|
+
chartHeight: _constants.CHART_HEIGHT,
|
|
53
52
|
echarts: echarts,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
height: `${_constants.CHART_HEIGHT}px`,
|
|
57
|
-
width: '100%'
|
|
58
|
-
},
|
|
59
|
-
theme: isDark ? 'dark_theme' : 'light_theme'
|
|
53
|
+
isDark: isDark,
|
|
54
|
+
option: (0, _options.getOption)(chartData, timeUnit, isDark, lang)
|
|
60
55
|
});
|
|
61
56
|
};
|
|
62
57
|
exports.Chart = Chart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.js","names":["_labsWidgetCommon","require","_monoI18n","_charts","_components","echarts","_interopRequireWildcard","_renderers","
|
|
1
|
+
{"version":3,"file":"Chart.js","names":["_labsWidgetCommon","require","_monoI18n","_charts","_components","echarts","_interopRequireWildcard","_renderers","_react","_options","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","use","GridSimpleComponent","GraphicComponent","TooltipComponent","LegendPlainComponent","LineChart","CanvasRenderer","MarkLineComponent","registerTheme","getChartTheme","Theme","Dark","Light","Chart","_ref","values","timeUnit","currencies","lang","useLocale","isDark","size","useLayoutProvider","isDesktop","Size","DESKTOP","isMobile","MOBILE","echartRef","useRef","chartData","filter","_ref2","currency","includes","useEffect","current","echartInstance","getEchartsInstance","setOption","getResponsiveOption","createElement","BaseChart","ref","chartHeight","CHART_HEIGHT","option","getOption","exports"],"sources":["../../../../../src/CurrencyPowerBalanceWidget/components/Chart/Chart.tsx"],"sourcesContent":["import type { BaseChartRef } from '@oanda/labs-widget-common';\nimport {\n BaseChart,\n getChartTheme,\n Size,\n Theme,\n useLayoutProvider,\n} from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport { LineChart } from 'echarts/charts';\nimport {\n GraphicComponent,\n GridSimpleComponent,\n LegendPlainComponent,\n MarkLineComponent,\n TooltipComponent,\n} from 'echarts/components';\nimport * as echarts from 'echarts/core';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport React, { useEffect, useRef } from 'react';\n\nimport { getOption, getResponsiveOption } from './options';\nimport { CHART_HEIGHT } from './options/constants';\nimport type { ChartProps } from './types';\n\necharts.use([\n GridSimpleComponent,\n GraphicComponent,\n TooltipComponent,\n LegendPlainComponent,\n LineChart,\n CanvasRenderer,\n MarkLineComponent,\n]);\n\necharts.registerTheme('dark_theme', getChartTheme(Theme.Dark));\necharts.registerTheme('light_theme', getChartTheme(Theme.Light));\n\nconst Chart = ({ values, timeUnit, currencies }: ChartProps) => {\n const { lang } = useLocale();\n const { isDark, size } = useLayoutProvider();\n const isDesktop = size === Size.DESKTOP;\n const isMobile = size === Size.MOBILE;\n\n const echartRef = useRef<BaseChartRef | null>(null);\n\n const chartData = currencies\n ? values.filter(({ currency }) => currencies.includes(currency))\n : values;\n\n useEffect(() => {\n if (echartRef.current) {\n const echartInstance = echartRef.current.getEchartsInstance();\n\n echartInstance.setOption(\n getResponsiveOption(isDesktop, isMobile, isDark)\n );\n }\n }, [echartRef, isDesktop, isMobile, isDark]);\n\n return (\n <BaseChart\n ref={echartRef}\n chartHeight={CHART_HEIGHT}\n echarts={echarts}\n isDark={isDark}\n option={getOption(chartData, timeUnit, isDark, lang)}\n />\n );\n};\n\nexport { Chart };\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAOA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAOA,IAAAI,OAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAF,uBAAA,CAAAL,OAAA;AAEA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAAmD,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,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,MAAO;IACf0B,MAAM,EAAE,IAAAC,kBAAS,EAACjB,SAAS,EAAEd,QAAQ,EAAEI,MAAM,EAAEF,IAAI;EAAE,CACtD,CAAC;AAEN,CAAC;AAAC8B,OAAA,CAAAnC,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"market_closed": "market closed",
|
|
14
14
|
"month": "{{count}} Month",
|
|
15
15
|
"month_plural": "{{count}} Months",
|
|
16
|
+
"no_matching_results": "No matching results",
|
|
16
17
|
"pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries",
|
|
17
18
|
"previous_business_day": "Previous Business Day",
|
|
18
19
|
"search": "Search",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { getChartTheme, Size, Theme, useLayoutProvider } from '@oanda/labs-widget-common';
|
|
1
|
+
import { BaseChart, getChartTheme, Size, Theme, useLayoutProvider } from '@oanda/labs-widget-common';
|
|
2
2
|
import { useLocale } from '@oanda/mono-i18n';
|
|
3
3
|
import { LineChart } from 'echarts/charts';
|
|
4
4
|
import { GraphicComponent, GridSimpleComponent, LegendPlainComponent, MarkLineComponent, TooltipComponent } from 'echarts/components';
|
|
5
5
|
import * as echarts from 'echarts/core';
|
|
6
6
|
import { CanvasRenderer } from 'echarts/renderers';
|
|
7
|
-
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
8
7
|
import React, { useEffect, useRef } from 'react';
|
|
9
8
|
import { getOption, getResponsiveOption } from './options';
|
|
10
9
|
import { CHART_HEIGHT } from './options/constants';
|
|
@@ -39,15 +38,12 @@ const Chart = _ref => {
|
|
|
39
38
|
echartInstance.setOption(getResponsiveOption(isDesktop, isMobile, isDark));
|
|
40
39
|
}
|
|
41
40
|
}, [echartRef, isDesktop, isMobile, isDark]);
|
|
42
|
-
return React.createElement(
|
|
41
|
+
return React.createElement(BaseChart, {
|
|
43
42
|
ref: echartRef,
|
|
43
|
+
chartHeight: CHART_HEIGHT,
|
|
44
44
|
echarts: echarts,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
height: `${CHART_HEIGHT}px`,
|
|
48
|
-
width: '100%'
|
|
49
|
-
},
|
|
50
|
-
theme: isDark ? 'dark_theme' : 'light_theme'
|
|
45
|
+
isDark: isDark,
|
|
46
|
+
option: getOption(chartData, timeUnit, isDark, lang)
|
|
51
47
|
});
|
|
52
48
|
};
|
|
53
49
|
export { Chart };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.js","names":["getChartTheme","Size","Theme","useLayoutProvider","useLocale","LineChart","GraphicComponent","GridSimpleComponent","LegendPlainComponent","MarkLineComponent","TooltipComponent","echarts","CanvasRenderer","
|
|
1
|
+
{"version":3,"file":"Chart.js","names":["BaseChart","getChartTheme","Size","Theme","useLayoutProvider","useLocale","LineChart","GraphicComponent","GridSimpleComponent","LegendPlainComponent","MarkLineComponent","TooltipComponent","echarts","CanvasRenderer","React","useEffect","useRef","getOption","getResponsiveOption","CHART_HEIGHT","use","registerTheme","Dark","Light","Chart","_ref","values","timeUnit","currencies","lang","isDark","size","isDesktop","DESKTOP","isMobile","MOBILE","echartRef","chartData","filter","_ref2","currency","includes","current","echartInstance","getEchartsInstance","setOption","createElement","ref","chartHeight","option"],"sources":["../../../../../src/CurrencyPowerBalanceWidget/components/Chart/Chart.tsx"],"sourcesContent":["import type { BaseChartRef } from '@oanda/labs-widget-common';\nimport {\n BaseChart,\n getChartTheme,\n Size,\n Theme,\n useLayoutProvider,\n} from '@oanda/labs-widget-common';\nimport { useLocale } from '@oanda/mono-i18n';\nimport { LineChart } from 'echarts/charts';\nimport {\n GraphicComponent,\n GridSimpleComponent,\n LegendPlainComponent,\n MarkLineComponent,\n TooltipComponent,\n} from 'echarts/components';\nimport * as echarts from 'echarts/core';\nimport { CanvasRenderer } from 'echarts/renderers';\nimport React, { useEffect, useRef } from 'react';\n\nimport { getOption, getResponsiveOption } from './options';\nimport { CHART_HEIGHT } from './options/constants';\nimport type { ChartProps } from './types';\n\necharts.use([\n GridSimpleComponent,\n GraphicComponent,\n TooltipComponent,\n LegendPlainComponent,\n LineChart,\n CanvasRenderer,\n MarkLineComponent,\n]);\n\necharts.registerTheme('dark_theme', getChartTheme(Theme.Dark));\necharts.registerTheme('light_theme', getChartTheme(Theme.Light));\n\nconst Chart = ({ values, timeUnit, currencies }: ChartProps) => {\n const { lang } = useLocale();\n const { isDark, size } = useLayoutProvider();\n const isDesktop = size === Size.DESKTOP;\n const isMobile = size === Size.MOBILE;\n\n const echartRef = useRef<BaseChartRef | null>(null);\n\n const chartData = currencies\n ? values.filter(({ currency }) => currencies.includes(currency))\n : values;\n\n useEffect(() => {\n if (echartRef.current) {\n const echartInstance = echartRef.current.getEchartsInstance();\n\n echartInstance.setOption(\n getResponsiveOption(isDesktop, isMobile, isDark)\n );\n }\n }, [echartRef, isDesktop, isMobile, isDark]);\n\n return (\n <BaseChart\n ref={echartRef}\n chartHeight={CHART_HEIGHT}\n echarts={echarts}\n isDark={isDark}\n option={getOption(chartData, timeUnit, isDark, lang)}\n />\n );\n};\n\nexport { Chart };\n"],"mappings":"AACA,SACEA,SAAS,EACTC,aAAa,EACbC,IAAI,EACJC,KAAK,EACLC,iBAAiB,QACZ,2BAA2B;AAClC,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,SAAS,QAAQ,gBAAgB;AAC1C,SACEC,gBAAgB,EAChBC,mBAAmB,EACnBC,oBAAoB,EACpBC,iBAAiB,EACjBC,gBAAgB,QACX,oBAAoB;AAC3B,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,SAASC,cAAc,QAAQ,mBAAmB;AAClD,OAAOC,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEhD,SAASC,SAAS,EAAEC,mBAAmB,QAAQ,WAAW;AAC1D,SAASC,YAAY,QAAQ,qBAAqB;AAGlDP,OAAO,CAACQ,GAAG,CAAC,CACVZ,mBAAmB,EACnBD,gBAAgB,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,aAAA,CAAC9C,SAAS;IACR+C,GAAG,EAAEX,SAAU;IACfY,WAAW,EAAE7B,YAAa;IAC1BP,OAAO,EAAEA,OAAQ;IACjBkB,MAAM,EAAEA,MAAO;IACfmB,MAAM,EAAEhC,SAAS,CAACoB,SAAS,EAAEV,QAAQ,EAAEG,MAAM,EAAED,IAAI;EAAE,CACtD,CAAC;AAEN,CAAC;AAED,SAASL,KAAK","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"market_closed": "market closed",
|
|
14
14
|
"month": "{{count}} Month",
|
|
15
15
|
"month_plural": "{{count}} Months",
|
|
16
|
+
"no_matching_results": "No matching results",
|
|
16
17
|
"pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries",
|
|
17
18
|
"previous_business_day": "Previous Business Day",
|
|
18
19
|
"search": "Search",
|
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.137",
|
|
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.198",
|
|
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": "083781981c17b38576e6e46122dca29abd250b34"
|
|
26
26
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { BaseChartRef } from '@oanda/labs-widget-common';
|
|
1
2
|
import {
|
|
3
|
+
BaseChart,
|
|
2
4
|
getChartTheme,
|
|
3
5
|
Size,
|
|
4
6
|
Theme,
|
|
@@ -15,7 +17,6 @@ import {
|
|
|
15
17
|
} from 'echarts/components';
|
|
16
18
|
import * as echarts from 'echarts/core';
|
|
17
19
|
import { CanvasRenderer } from 'echarts/renderers';
|
|
18
|
-
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
19
20
|
import React, { useEffect, useRef } from 'react';
|
|
20
21
|
|
|
21
22
|
import { getOption, getResponsiveOption } from './options';
|
|
@@ -41,7 +42,7 @@ const Chart = ({ values, timeUnit, currencies }: ChartProps) => {
|
|
|
41
42
|
const isDesktop = size === Size.DESKTOP;
|
|
42
43
|
const isMobile = size === Size.MOBILE;
|
|
43
44
|
|
|
44
|
-
const echartRef = useRef<
|
|
45
|
+
const echartRef = useRef<BaseChartRef | null>(null);
|
|
45
46
|
|
|
46
47
|
const chartData = currencies
|
|
47
48
|
? values.filter(({ currency }) => currencies.includes(currency))
|
|
@@ -58,15 +59,12 @@ const Chart = ({ values, timeUnit, currencies }: ChartProps) => {
|
|
|
58
59
|
}, [echartRef, isDesktop, isMobile, isDark]);
|
|
59
60
|
|
|
60
61
|
return (
|
|
61
|
-
<
|
|
62
|
+
<BaseChart
|
|
62
63
|
ref={echartRef}
|
|
64
|
+
chartHeight={CHART_HEIGHT}
|
|
63
65
|
echarts={echarts}
|
|
66
|
+
isDark={isDark}
|
|
64
67
|
option={getOption(chartData, timeUnit, isDark, lang)}
|
|
65
|
-
style={{
|
|
66
|
-
height: `${CHART_HEIGHT}px`,
|
|
67
|
-
width: '100%',
|
|
68
|
-
}}
|
|
69
|
-
theme={isDark ? 'dark_theme' : 'light_theme'}
|
|
70
68
|
/>
|
|
71
69
|
);
|
|
72
70
|
};
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"market_closed": "market closed",
|
|
14
14
|
"month": "{{count}} Month",
|
|
15
15
|
"month_plural": "{{count}} Months",
|
|
16
|
+
"no_matching_results": "No matching results",
|
|
16
17
|
"pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries",
|
|
17
18
|
"previous_business_day": "Previous Business Day",
|
|
18
19
|
"search": "Search",
|