mdas-jsview-sdk 1.0.13-uat.0 → 1.0.14-uat.0
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/dist/mdas-sdk.esm.js +18 -6
- package/dist/mdas-sdk.esm.js.map +1 -1
- package/dist/mdas-sdk.js +18 -6
- package/dist/mdas-sdk.js.map +1 -1
- package/dist/mdas-sdk.min.js +1 -1
- package/dist/mdas-sdk.min.js.map +1 -1
- package/package.json +1 -1
package/dist/mdas-sdk.esm.js
CHANGED
|
@@ -4037,9 +4037,11 @@ class NightSessionModel {
|
|
|
4037
4037
|
} else {
|
|
4038
4038
|
return 'BlueOcean 20 mins delayed';
|
|
4039
4039
|
}
|
|
4040
|
-
} else if (this.source.toLowerCase().includes('bruce') || this.source.toLowerCase().includes('blueocean')) {
|
|
4040
|
+
} else if (this.source.toLowerCase().includes('bruce') || this.source.toLowerCase().includes('blueocean') || this.source.toLowerCase().includes('onbbo')) {
|
|
4041
4041
|
if (this.source.toLowerCase() === 'bruce') {
|
|
4042
4042
|
return 'Bruce Real-time';
|
|
4043
|
+
} else if (this.source.toLowerCase() === 'onbbo') {
|
|
4044
|
+
return 'ONBBO Real-time';
|
|
4043
4045
|
} else {
|
|
4044
4046
|
return 'BlueOcean Real-time';
|
|
4045
4047
|
}
|
|
@@ -4075,8 +4077,8 @@ class NightSessionWidget extends BaseWidget {
|
|
|
4075
4077
|
if (!options.wsManager) {
|
|
4076
4078
|
throw new Error('WebSocketManager is required for NightSessionWidget');
|
|
4077
4079
|
}
|
|
4078
|
-
if (!options.source || options.source.toLowerCase() !== 'blueocean' && options.source.toLowerCase() !== 'bruce') {
|
|
4079
|
-
throw new Error('Source should be either "blueocean" or "
|
|
4080
|
+
if (!options.source || options.source.toLowerCase() !== 'blueocean' && options.source.toLowerCase() !== 'bruce' && options.source.toLowerCase() !== 'onbbo') {
|
|
4081
|
+
throw new Error('Source should be either "blueocean", "bruce", or "onbbo"');
|
|
4080
4082
|
}
|
|
4081
4083
|
this.type = 'nightsession ' + options.source;
|
|
4082
4084
|
|
|
@@ -4296,7 +4298,14 @@ class NightSessionWidget extends BaseWidget {
|
|
|
4296
4298
|
}
|
|
4297
4299
|
}
|
|
4298
4300
|
subscribeToData() {
|
|
4299
|
-
|
|
4301
|
+
let subscriptionType;
|
|
4302
|
+
if (this.source === 'bruce') {
|
|
4303
|
+
subscriptionType = 'querybrucel1';
|
|
4304
|
+
} else if (this.source === 'onbbo') {
|
|
4305
|
+
subscriptionType = 'queryonbbol1';
|
|
4306
|
+
} else {
|
|
4307
|
+
subscriptionType = 'queryblueoceanl1';
|
|
4308
|
+
}
|
|
4300
4309
|
|
|
4301
4310
|
// Subscribe with symbol for routing
|
|
4302
4311
|
this.unsubscribe = this.wsManager.subscribe(this.widgetId, [subscriptionType], this.handleMessage.bind(this), this.symbol // Pass symbol for routing
|
|
@@ -4410,9 +4419,12 @@ class NightSessionWidget extends BaseWidget {
|
|
|
4410
4419
|
}
|
|
4411
4420
|
}
|
|
4412
4421
|
// Handle wrapped format
|
|
4413
|
-
else if (message.type === 'queryblueoceanl1' || message.type === 'querybrucel1') {
|
|
4422
|
+
else if (message.type === 'queryblueoceanl1' || message.type === 'querybrucel1' || message.type === 'queryonbbol1') {
|
|
4414
4423
|
if (message['0']?.Symbol === this.symbol) {
|
|
4415
|
-
|
|
4424
|
+
// For onbbo source, skip MarketName check
|
|
4425
|
+
const isOnbbo = message.type === 'queryonbbol1';
|
|
4426
|
+
const shouldShowNoData = message['0'].NotFound === true || !isOnbbo && (!message['0'].MarketName || message['0'].MarketName !== 'BLUE');
|
|
4427
|
+
if (shouldShowNoData) {
|
|
4416
4428
|
// Only show no data state if we don't have cached data
|
|
4417
4429
|
if (!this.data) {
|
|
4418
4430
|
this.showNoDataState(message['0']);
|