@oanda/labs-crowd-view-widget 1.0.59 → 1.0.61
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 +492 -0
- package/dist/main/CrowdViewWidget/Main.js +7 -13
- package/dist/main/CrowdViewWidget/Main.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js +16 -7
- package/dist/main/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js +20 -1
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js +19 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js.map +1 -0
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/index.js +4 -4
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/index.js.map +1 -1
- package/dist/main/CrowdViewWidget/components/Chart/getOption.js +2 -1
- package/dist/main/CrowdViewWidget/components/Chart/getOption.js.map +1 -1
- package/dist/main/CrowdViewWidget/selectConfig.js +58 -4
- package/dist/main/CrowdViewWidget/selectConfig.js.map +1 -1
- package/dist/main/translations/index.js +3 -11
- package/dist/main/translations/index.js.map +1 -1
- package/dist/main/translations/sources/en.json +7 -7
- package/dist/main/translations/sources/ja.json +30 -0
- package/dist/module/CrowdViewWidget/Main.js +10 -16
- package/dist/module/CrowdViewWidget/Main.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js +16 -7
- package/dist/module/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js +20 -1
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js +12 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.js.map +1 -0
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/index.js.map +1 -1
- package/dist/module/CrowdViewWidget/components/Chart/getOption.js +2 -1
- package/dist/module/CrowdViewWidget/components/Chart/getOption.js.map +1 -1
- package/dist/module/CrowdViewWidget/selectConfig.js +57 -4
- package/dist/module/CrowdViewWidget/selectConfig.js.map +1 -1
- package/dist/module/translations/index.js +3 -11
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/translations/sources/en.json +7 -7
- package/dist/module/translations/sources/ja.json +30 -0
- package/dist/types/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.d.ts +2 -1
- package/dist/types/CrowdViewWidget/components/Chart/dataUtils/{getInstrumentConfigForDivision.d.ts → getInstrumentConfig.d.ts} +1 -1
- package/dist/types/CrowdViewWidget/components/Chart/dataUtils/index.d.ts +1 -1
- package/dist/types/CrowdViewWidget/selectConfig.d.ts +8 -2
- package/lokalise.config.json +2 -2
- package/package.json +3 -3
- package/src/CrowdViewWidget/Main.tsx +11 -17
- package/src/CrowdViewWidget/components/Chart/chartOptions/getSeriesCandlestickConfig.ts +19 -6
- package/src/CrowdViewWidget/components/Chart/dataUtils/getBucketWidthMultiplayer.ts +26 -1
- package/src/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig.ts +20 -0
- package/src/CrowdViewWidget/components/Chart/dataUtils/index.ts +1 -1
- package/src/CrowdViewWidget/components/Chart/getOption.ts +1 -0
- package/src/CrowdViewWidget/selectConfig.ts +75 -4
- package/src/translations/index.ts +2 -6
- package/src/translations/sources/en.json +7 -7
- package/src/translations/sources/ja.json +30 -0
- package/test/components/Chart/dataUtils/getBucketWidthMultiplayer.test.ts +129 -1
- package/test/utils/instrumentUtils.test.ts +38 -9
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js +0 -13
- package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map +0 -1
- package/dist/main/translations/sources/es.json +0 -2
- package/dist/main/translations/sources/th.json +0 -2
- package/dist/main/translations/sources/zh_TW.json +0 -2
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js +0 -6
- package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map +0 -1
- package/dist/module/translations/sources/es.json +0 -2
- package/dist/module/translations/sources/th.json +0 -2
- package/dist/module/translations/sources/zh_TW.json +0 -2
- package/src/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.ts +0 -11
- package/src/translations/sources/es.json +0 -2
- package/src/translations/sources/th.json +0 -2
- package/src/translations/sources/zh_TW.json +0 -2
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1_hour": "1 hour",
|
|
3
|
-
"15_minutes": "15 minutes",
|
|
4
|
-
"4_hours": "4 hours",
|
|
5
|
-
"5_minutes": "5 minutes",
|
|
6
2
|
"buy": "Buy",
|
|
7
3
|
"buy_overbalance": "Buy overbalance",
|
|
8
4
|
"candle": "Candle",
|
|
@@ -11,16 +7,21 @@
|
|
|
11
7
|
"even_market_demand": "Even market demand",
|
|
12
8
|
"granularity": "Granularity",
|
|
13
9
|
"high": "High",
|
|
10
|
+
"hour": "{{count}} Hour",
|
|
11
|
+
"hour_plural": "{{count}} Hours",
|
|
12
|
+
"hover_chart_to_see_more_details": "Hover over the chart to see more details",
|
|
14
13
|
"instrument": "Instrument",
|
|
15
14
|
"long": "Long",
|
|
16
15
|
"long_overbalance": "Long overbalance",
|
|
17
16
|
"low": "Low",
|
|
17
|
+
"minute": "{{count}} Minute",
|
|
18
|
+
"minute_plural": "{{count}} Minutes",
|
|
18
19
|
"no_matching_results": "No matching results",
|
|
19
20
|
"open": "Open",
|
|
20
|
-
"order_book": "Order
|
|
21
|
+
"order_book": "Order Book",
|
|
21
22
|
"orders": "Orders",
|
|
22
23
|
"pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries",
|
|
23
|
-
"position_book": "Position
|
|
24
|
+
"position_book": "Position Book",
|
|
24
25
|
"price": "Price",
|
|
25
26
|
"price_range": "Price range",
|
|
26
27
|
"search": "Search",
|
|
@@ -30,6 +31,5 @@
|
|
|
30
31
|
"short": "Short",
|
|
31
32
|
"short_overbalance": "Short overbalance",
|
|
32
33
|
"tap_chart_to_see_more_details": "Tap the chart to see more details",
|
|
33
|
-
"hover_chart_to_see_more_details": "Hover over the chart to see more details",
|
|
34
34
|
"trades": "Trades"
|
|
35
35
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"buy": "購入",
|
|
3
|
+
"buy_overbalance": "買い超過",
|
|
4
|
+
"candle": "ローソク足",
|
|
5
|
+
"close": "閉じる",
|
|
6
|
+
"data_unavailable": "データが利用できません",
|
|
7
|
+
"even_market_demand": "均衡需要",
|
|
8
|
+
"granularity": "粒度",
|
|
9
|
+
"high": "高値",
|
|
10
|
+
"hour_plural": "{{count}} 時間",
|
|
11
|
+
"hover_chart_to_see_more_details": "チャートの上にカーソルを合わせると詳細を確認できます",
|
|
12
|
+
"instrument": "金融商品",
|
|
13
|
+
"long": "ロング",
|
|
14
|
+
"long_overbalance": "ロング超過",
|
|
15
|
+
"low": "安値",
|
|
16
|
+
"open": "オープン",
|
|
17
|
+
"order_book": "オーダーブック",
|
|
18
|
+
"orders": "注文",
|
|
19
|
+
"position_book": "ポジションブック",
|
|
20
|
+
"price": "価格",
|
|
21
|
+
"price_range": "価格範囲",
|
|
22
|
+
"search": "検索",
|
|
23
|
+
"sell": "売り",
|
|
24
|
+
"sell_overbalance": "売り超過",
|
|
25
|
+
"sentiment": "センチメント",
|
|
26
|
+
"short": "ショート",
|
|
27
|
+
"short_overbalance": "ショート超過",
|
|
28
|
+
"tap_chart_to_see_more_details": "チャートをタップすると詳細を確認できます",
|
|
29
|
+
"trades": "取引"
|
|
30
|
+
}
|
|
@@ -9,7 +9,7 @@ describe('getBucketWidthMultiplayer', () => {
|
|
|
9
9
|
maxPrice: 1.1,
|
|
10
10
|
instrument: InstrumentId.EUR_USD,
|
|
11
11
|
});
|
|
12
|
-
expect(result).toBe(
|
|
12
|
+
expect(result).toBe(2);
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
it('should calculate multiplier correctly for EUR_JPY with standard price range', () => {
|
|
@@ -30,4 +30,132 @@ describe('getBucketWidthMultiplayer', () => {
|
|
|
30
30
|
});
|
|
31
31
|
expect(result).toBe(1);
|
|
32
32
|
});
|
|
33
|
+
|
|
34
|
+
describe('rounding behavior for 1 < multiplier < 10', () => {
|
|
35
|
+
it('should round to closest value from [1, 2, 4, 5, 10]', () => {
|
|
36
|
+
const result1 = getBucketWidthMultiplayer({
|
|
37
|
+
minPrice: 1.0,
|
|
38
|
+
maxPrice: 1.03,
|
|
39
|
+
instrument: InstrumentId.EUR_USD,
|
|
40
|
+
});
|
|
41
|
+
expect(result1).toBe(2);
|
|
42
|
+
|
|
43
|
+
const result2 = getBucketWidthMultiplayer({
|
|
44
|
+
minPrice: 1.0,
|
|
45
|
+
maxPrice: 1.07,
|
|
46
|
+
instrument: InstrumentId.EUR_USD,
|
|
47
|
+
});
|
|
48
|
+
expect(result2).toBe(4);
|
|
49
|
+
|
|
50
|
+
const result3 = getBucketWidthMultiplayer({
|
|
51
|
+
minPrice: 1.0,
|
|
52
|
+
maxPrice: 1.14,
|
|
53
|
+
instrument: InstrumentId.EUR_USD,
|
|
54
|
+
});
|
|
55
|
+
expect(result3).toBe(5);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('rounding behavior for 10 <= multiplier < 100', () => {
|
|
60
|
+
it('should round to closest value from [10, 20, 40, 50, 100]', () => {
|
|
61
|
+
const result1 = getBucketWidthMultiplayer({
|
|
62
|
+
minPrice: 140.0,
|
|
63
|
+
maxPrice: 164.0,
|
|
64
|
+
instrument: InstrumentId.EUR_JPY,
|
|
65
|
+
});
|
|
66
|
+
expect(result1).toBe(10);
|
|
67
|
+
|
|
68
|
+
const result2 = getBucketWidthMultiplayer({
|
|
69
|
+
minPrice: 140.0,
|
|
70
|
+
maxPrice: 170.0,
|
|
71
|
+
instrument: InstrumentId.EUR_JPY,
|
|
72
|
+
});
|
|
73
|
+
expect(result2).toBe(20);
|
|
74
|
+
|
|
75
|
+
const result3 = getBucketWidthMultiplayer({
|
|
76
|
+
minPrice: 140.0,
|
|
77
|
+
maxPrice: 200.0,
|
|
78
|
+
instrument: InstrumentId.EUR_JPY,
|
|
79
|
+
});
|
|
80
|
+
expect(result3).toBe(40);
|
|
81
|
+
|
|
82
|
+
const result4 = getBucketWidthMultiplayer({
|
|
83
|
+
minPrice: 140.0,
|
|
84
|
+
maxPrice: 210.0,
|
|
85
|
+
instrument: InstrumentId.EUR_JPY,
|
|
86
|
+
});
|
|
87
|
+
expect(result4).toBe(40);
|
|
88
|
+
|
|
89
|
+
const result5 = getBucketWidthMultiplayer({
|
|
90
|
+
minPrice: 140.0,
|
|
91
|
+
maxPrice: 230.0,
|
|
92
|
+
instrument: InstrumentId.EUR_JPY,
|
|
93
|
+
});
|
|
94
|
+
expect(result5).toBe(50);
|
|
95
|
+
|
|
96
|
+
const result6 = getBucketWidthMultiplayer({
|
|
97
|
+
minPrice: 140.0,
|
|
98
|
+
maxPrice: 290.0,
|
|
99
|
+
instrument: InstrumentId.EUR_JPY,
|
|
100
|
+
});
|
|
101
|
+
expect(result6).toBe(100);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
describe('rounding behavior for 100 <= multiplier < 1000', () => {
|
|
106
|
+
it('should round to closest value from [100, 200, 400, 500, 1000]', () => {
|
|
107
|
+
const result1 = getBucketWidthMultiplayer({
|
|
108
|
+
minPrice: 140.0,
|
|
109
|
+
maxPrice: 440.0,
|
|
110
|
+
instrument: InstrumentId.EUR_JPY,
|
|
111
|
+
});
|
|
112
|
+
expect(result1).toBe(200);
|
|
113
|
+
|
|
114
|
+
const result2 = getBucketWidthMultiplayer({
|
|
115
|
+
minPrice: 140.0,
|
|
116
|
+
maxPrice: 640.0,
|
|
117
|
+
instrument: InstrumentId.EUR_JPY,
|
|
118
|
+
});
|
|
119
|
+
expect(result2).toBe(200);
|
|
120
|
+
|
|
121
|
+
const result3 = getBucketWidthMultiplayer({
|
|
122
|
+
minPrice: 140.0,
|
|
123
|
+
maxPrice: 740.0,
|
|
124
|
+
instrument: InstrumentId.EUR_JPY,
|
|
125
|
+
});
|
|
126
|
+
expect(result3).toBe(400);
|
|
127
|
+
|
|
128
|
+
const result4 = getBucketWidthMultiplayer({
|
|
129
|
+
minPrice: 140.0,
|
|
130
|
+
maxPrice: 1040.0,
|
|
131
|
+
instrument: InstrumentId.EUR_JPY,
|
|
132
|
+
});
|
|
133
|
+
expect(result4).toBe(500);
|
|
134
|
+
|
|
135
|
+
const result5 = getBucketWidthMultiplayer({
|
|
136
|
+
minPrice: 140.0,
|
|
137
|
+
maxPrice: 1640.0,
|
|
138
|
+
instrument: InstrumentId.EUR_JPY,
|
|
139
|
+
});
|
|
140
|
+
expect(result5).toBe(1000);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
describe('rounding behavior for multiplier >= 1000', () => {
|
|
145
|
+
it('should round to closest value from [1000, 2000, 4000, 5000, 10000]', () => {
|
|
146
|
+
const result1 = getBucketWidthMultiplayer({
|
|
147
|
+
minPrice: 140.0,
|
|
148
|
+
maxPrice: 3140.0,
|
|
149
|
+
instrument: InstrumentId.EUR_JPY,
|
|
150
|
+
});
|
|
151
|
+
expect(result1).toBe(2000);
|
|
152
|
+
|
|
153
|
+
const result2 = getBucketWidthMultiplayer({
|
|
154
|
+
minPrice: 140.0,
|
|
155
|
+
maxPrice: 7140.0,
|
|
156
|
+
instrument: InstrumentId.EUR_JPY,
|
|
157
|
+
});
|
|
158
|
+
expect(result2).toBe(4000);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
33
161
|
});
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @jest-environment jsdom
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { getInstrumentConfig } from '../../src/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfig';
|
|
6
6
|
import { Division } from '../../src/gql/types/graphql';
|
|
7
7
|
|
|
8
8
|
describe('instrumentUtils', () => {
|
|
9
|
-
describe('
|
|
10
|
-
it('should return OC instrument config for OC division', () => {
|
|
11
|
-
const result =
|
|
9
|
+
describe('getInstrumentConfig', () => {
|
|
10
|
+
it('should return OC instrument config for OC division when not Japanese', () => {
|
|
11
|
+
const result = getInstrumentConfig(Division.Oc, false);
|
|
12
12
|
|
|
13
13
|
expect(result).toBeDefined();
|
|
14
14
|
expect(Array.isArray(result)).toBe(true);
|
|
@@ -23,8 +23,8 @@ describe('instrumentUtils', () => {
|
|
|
23
23
|
expect(firstInstrument.id.length).toBeGreaterThan(0);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
it('should return OAP instrument config for OAP division', () => {
|
|
27
|
-
const result =
|
|
26
|
+
it('should return OAP instrument config for OAP division when not Japanese', () => {
|
|
27
|
+
const result = getInstrumentConfig(Division.Oap, false);
|
|
28
28
|
|
|
29
29
|
expect(result).toBeDefined();
|
|
30
30
|
expect(Array.isArray(result)).toBe(true);
|
|
@@ -39,9 +39,31 @@ describe('instrumentUtils', () => {
|
|
|
39
39
|
expect(firstInstrument.id.length).toBeGreaterThan(0);
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
it('should return
|
|
43
|
-
const
|
|
44
|
-
|
|
42
|
+
it('should return Japanese instrument config when isJapanese is true', () => {
|
|
43
|
+
const result = getInstrumentConfig(Division.Oc, true);
|
|
44
|
+
|
|
45
|
+
expect(result).toBeDefined();
|
|
46
|
+
expect(Array.isArray(result)).toBe(true);
|
|
47
|
+
expect(result.length).toBeGreaterThan(0);
|
|
48
|
+
|
|
49
|
+
// Check that the first instrument has the expected structure
|
|
50
|
+
const firstInstrument = result[0];
|
|
51
|
+
expect(firstInstrument).toHaveProperty('id');
|
|
52
|
+
expect(firstInstrument).toHaveProperty('label');
|
|
53
|
+
expect(typeof firstInstrument.id).toBe('string');
|
|
54
|
+
expect(firstInstrument.id.length).toBeGreaterThan(0);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should return Japanese config regardless of division when isJapanese is true', () => {
|
|
58
|
+
const ocJapaneseConfig = getInstrumentConfig(Division.Oc, true);
|
|
59
|
+
const oapJapaneseConfig = getInstrumentConfig(Division.Oap, true);
|
|
60
|
+
|
|
61
|
+
expect(ocJapaneseConfig).toEqual(oapJapaneseConfig);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('should return different configs for different divisions when not Japanese', () => {
|
|
65
|
+
const ocConfig = getInstrumentConfig(Division.Oc, false);
|
|
66
|
+
const oapConfig = getInstrumentConfig(Division.Oap, false);
|
|
45
67
|
|
|
46
68
|
expect(ocConfig).not.toEqual(oapConfig);
|
|
47
69
|
|
|
@@ -54,5 +76,12 @@ describe('instrumentUtils', () => {
|
|
|
54
76
|
// OAP config includes XAU_USD and XAG_USD which OC doesn't have
|
|
55
77
|
expect(oapConfig.length).toBeGreaterThan(ocConfig.length);
|
|
56
78
|
});
|
|
79
|
+
|
|
80
|
+
it('should return different configs for Japanese vs non-Japanese', () => {
|
|
81
|
+
const japaneseConfig = getInstrumentConfig(Division.Oc, true);
|
|
82
|
+
const nonJapaneseConfig = getInstrumentConfig(Division.Oc, false);
|
|
83
|
+
|
|
84
|
+
expect(japaneseConfig).not.toEqual(nonJapaneseConfig);
|
|
85
|
+
});
|
|
57
86
|
});
|
|
58
87
|
});
|
package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getInstrumentConfigForDivision = void 0;
|
|
7
|
-
var _graphql = require("../../../../gql/types/graphql");
|
|
8
|
-
var _selectConfig = require("../../../selectConfig");
|
|
9
|
-
const getInstrumentConfigForDivision = division => {
|
|
10
|
-
return division === _graphql.Division.Oc ? _selectConfig.instrumentSelectConfigOC : _selectConfig.instrumentSelectConfig;
|
|
11
|
-
};
|
|
12
|
-
exports.getInstrumentConfigForDivision = getInstrumentConfigForDivision;
|
|
13
|
-
//# sourceMappingURL=getInstrumentConfigForDivision.js.map
|
package/dist/main/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInstrumentConfigForDivision.js","names":["_graphql","require","_selectConfig","getInstrumentConfigForDivision","division","Division","Oc","instrumentSelectConfigOC","instrumentSelectConfig","exports"],"sources":["../../../../../../src/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.ts"],"sourcesContent":["import { Division } from '../../../../gql/types/graphql';\nimport {\n instrumentSelectConfig,\n instrumentSelectConfigOC,\n} from '../../../selectConfig';\n\nexport const getInstrumentConfigForDivision = (division: Division) => {\n return division === Division.Oc\n ? instrumentSelectConfigOC\n : instrumentSelectConfig;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAKO,MAAME,8BAA8B,GAAIC,QAAkB,IAAK;EACpE,OAAOA,QAAQ,KAAKC,iBAAQ,CAACC,EAAE,GAC3BC,sCAAwB,GACxBC,oCAAsB;AAC5B,CAAC;AAACC,OAAA,CAAAN,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Division } from '../../../../gql/types/graphql';
|
|
2
|
-
import { instrumentSelectConfig, instrumentSelectConfigOC } from '../../../selectConfig';
|
|
3
|
-
export const getInstrumentConfigForDivision = division => {
|
|
4
|
-
return division === Division.Oc ? instrumentSelectConfigOC : instrumentSelectConfig;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=getInstrumentConfigForDivision.js.map
|
package/dist/module/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInstrumentConfigForDivision.js","names":["Division","instrumentSelectConfig","instrumentSelectConfigOC","getInstrumentConfigForDivision","division","Oc"],"sources":["../../../../../../src/CrowdViewWidget/components/Chart/dataUtils/getInstrumentConfigForDivision.ts"],"sourcesContent":["import { Division } from '../../../../gql/types/graphql';\nimport {\n instrumentSelectConfig,\n instrumentSelectConfigOC,\n} from '../../../selectConfig';\n\nexport const getInstrumentConfigForDivision = (division: Division) => {\n return division === Division.Oc\n ? instrumentSelectConfigOC\n : instrumentSelectConfig;\n};\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,+BAA+B;AACxD,SACEC,sBAAsB,EACtBC,wBAAwB,QACnB,uBAAuB;AAE9B,OAAO,MAAMC,8BAA8B,GAAIC,QAAkB,IAAK;EACpE,OAAOA,QAAQ,KAAKJ,QAAQ,CAACK,EAAE,GAC3BH,wBAAwB,GACxBD,sBAAsB;AAC5B,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Division } from '../../../../gql/types/graphql';
|
|
2
|
-
import {
|
|
3
|
-
instrumentSelectConfig,
|
|
4
|
-
instrumentSelectConfigOC,
|
|
5
|
-
} from '../../../selectConfig';
|
|
6
|
-
|
|
7
|
-
export const getInstrumentConfigForDivision = (division: Division) => {
|
|
8
|
-
return division === Division.Oc
|
|
9
|
-
? instrumentSelectConfigOC
|
|
10
|
-
: instrumentSelectConfig;
|
|
11
|
-
};
|