mdas-jsview-sdk 1.0.9-uat.0 → 1.0.10-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 +21 -6
- package/dist/mdas-sdk.esm.js.map +1 -1
- package/dist/mdas-sdk.js +21 -6
- package/dist/mdas-sdk.js.map +1 -1
- package/dist/mdas-sdk.min.js +8 -8
- package/dist/mdas-sdk.min.js.map +1 -1
- package/dist/mdas-styles.css +287 -0
- package/package.json +1 -1
package/dist/mdas-sdk.js
CHANGED
|
@@ -1772,7 +1772,7 @@
|
|
|
1772
1772
|
.widget {
|
|
1773
1773
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1774
1774
|
width: 100%;
|
|
1775
|
-
max-width:
|
|
1775
|
+
max-width: 1400px;
|
|
1776
1776
|
}
|
|
1777
1777
|
|
|
1778
1778
|
/* HEADER STYLES */
|
|
@@ -2626,7 +2626,7 @@
|
|
|
2626
2626
|
.options-widget {
|
|
2627
2627
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
2628
2628
|
color: #333;
|
|
2629
|
-
max-width:
|
|
2629
|
+
max-width: 1400px;
|
|
2630
2630
|
width: 100%;
|
|
2631
2631
|
margin: 0 auto;
|
|
2632
2632
|
position: relative;
|
|
@@ -37726,11 +37726,26 @@ ${SharedStyles}
|
|
|
37726
37726
|
});
|
|
37727
37727
|
}
|
|
37728
37728
|
addStyles() {
|
|
37729
|
+
// Skip style injection if external styles are detected or explicitly disabled
|
|
37730
|
+
if (this.options.skipStyleInjection || document.querySelector('link[href*="mdas-styles.css"]')) {
|
|
37731
|
+
if (this.debug) {
|
|
37732
|
+
console.log('[IntradayChartWidget] Skipping style injection - external styles detected');
|
|
37733
|
+
}
|
|
37734
|
+
return;
|
|
37735
|
+
}
|
|
37729
37736
|
if (!document.querySelector('#intraday-chart-styles')) {
|
|
37730
|
-
|
|
37731
|
-
|
|
37732
|
-
|
|
37733
|
-
|
|
37737
|
+
try {
|
|
37738
|
+
const styleSheet = document.createElement('style');
|
|
37739
|
+
styleSheet.id = 'intraday-chart-styles';
|
|
37740
|
+
styleSheet.textContent = IntradayChartStyles;
|
|
37741
|
+
document.head.appendChild(styleSheet);
|
|
37742
|
+
if (this.debug) {
|
|
37743
|
+
console.log('[IntradayChartWidget] Styles injected successfully');
|
|
37744
|
+
}
|
|
37745
|
+
} catch (error) {
|
|
37746
|
+
console.warn('[IntradayChartWidget] Failed to inject styles:', error);
|
|
37747
|
+
console.warn('[IntradayChartWidget] Please add <link rel="stylesheet" href="mdas-styles.css"> to your HTML');
|
|
37748
|
+
}
|
|
37734
37749
|
}
|
|
37735
37750
|
}
|
|
37736
37751
|
async loadChartData() {
|