mdas-jsview-sdk 1.0.9-uat.0 → 1.0.11-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.
@@ -0,0 +1,287 @@
1
+ /* MDAS SDK Styles */
2
+
3
+ /* Intraday Chart Widget */
4
+ .intraday-chart-widget {
5
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
6
+ background: white;
7
+ border-radius: 12px;
8
+ padding: 20px;
9
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
10
+ position: relative;
11
+ width: 100%;
12
+ min-width: 600px;
13
+ max-width: 1400px;
14
+ margin: 0 auto;
15
+ }
16
+
17
+ .chart-header {
18
+ display: flex;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+ margin-bottom: 20px;
22
+ padding-bottom: 15px;
23
+ border-bottom: 1px solid #e5e7eb;
24
+ }
25
+
26
+ .chart-title-section {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 4px;
30
+ }
31
+
32
+ .company-market-info {
33
+ display: flex;
34
+ gap: 8px;
35
+ align-items: center;
36
+ font-size: 0.75em;
37
+ color: #6b7280;
38
+ }
39
+
40
+ .intraday-company-name {
41
+ font-weight: 500;
42
+ }
43
+
44
+ .intraday-chart-symbol {
45
+ font-size: 1.5em;
46
+ font-weight: 700;
47
+ color: #1f2937;
48
+ margin: 0;
49
+ }
50
+
51
+ .intraday-chart-source {
52
+ font-size: 0.75em;
53
+ padding: 4px 8px;
54
+ border-radius: 4px;
55
+ background: #e0e7ff;
56
+ color: #4338ca;
57
+ font-weight: 600;
58
+ }
59
+
60
+ .chart-change {
61
+ font-size: 1.1em;
62
+ font-weight: 600;
63
+ padding: 6px 12px;
64
+ border-radius: 6px;
65
+ }
66
+
67
+ .chart-change.positive {
68
+ color: #059669;
69
+ background: #d1fae5;
70
+ }
71
+
72
+ .chart-change.negative {
73
+ color: #dc2626;
74
+ background: #fee2e2;
75
+ }
76
+
77
+ .chart-controls {
78
+ display: flex;
79
+ justify-content: space-between;
80
+ align-items: center;
81
+ margin-bottom: 15px;
82
+ }
83
+
84
+ .chart-range-selector {
85
+ display: flex;
86
+ gap: 8px;
87
+ }
88
+
89
+ .range-btn {
90
+ padding: 8px 16px;
91
+ border: 1px solid #e5e7eb;
92
+ background: white;
93
+ border-radius: 6px;
94
+ font-size: 0.875em;
95
+ font-weight: 600;
96
+ color: #6b7280;
97
+ cursor: pointer;
98
+ transition: all 0.2s ease;
99
+ }
100
+
101
+ .range-btn:hover {
102
+ background: #f9fafb;
103
+ border-color: #d1d5db;
104
+ }
105
+
106
+ .range-btn.active {
107
+ background: #667eea;
108
+ color: white;
109
+ border-color: #667eea;
110
+ }
111
+
112
+ .range-btn:focus {
113
+ outline: none;
114
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
115
+ }
116
+
117
+ .chart-type-selector {
118
+ display: flex;
119
+ gap: 8px;
120
+ }
121
+
122
+ .type-btn {
123
+ padding: 8px 16px;
124
+ border: 1px solid #e5e7eb;
125
+ background: white;
126
+ border-radius: 6px;
127
+ font-size: 0.875em;
128
+ font-weight: 600;
129
+ color: #6b7280;
130
+ cursor: pointer;
131
+ transition: all 0.2s ease;
132
+ }
133
+
134
+ .type-btn:hover {
135
+ background: #f9fafb;
136
+ border-color: #d1d5db;
137
+ }
138
+
139
+ .type-btn.active {
140
+ background: #10b981;
141
+ color: white;
142
+ border-color: #10b981;
143
+ }
144
+
145
+ .type-btn:focus {
146
+ outline: none;
147
+ box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
148
+ }
149
+
150
+ .zoom-reset-btn {
151
+ display: flex;
152
+ align-items: center;
153
+ gap: 6px;
154
+ padding: 8px 12px;
155
+ border: 1px solid #e5e7eb;
156
+ background: white;
157
+ border-radius: 6px;
158
+ font-size: 0.875em;
159
+ font-weight: 500;
160
+ color: #6b7280;
161
+ cursor: pointer;
162
+ transition: all 0.2s ease;
163
+ }
164
+
165
+ .zoom-reset-btn:hover {
166
+ background: #f9fafb;
167
+ border-color: #667eea;
168
+ color: #667eea;
169
+ }
170
+
171
+ .zoom-reset-btn:focus {
172
+ outline: none;
173
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
174
+ }
175
+
176
+ .zoom-reset-btn svg {
177
+ flex-shrink: 0;
178
+ }
179
+
180
+ .chart-container {
181
+ height: 500px;
182
+ margin-bottom: 20px;
183
+ position: relative;
184
+ }
185
+
186
+ .chart-stats {
187
+ display: grid;
188
+ grid-template-columns: repeat(5, 1fr);
189
+ gap: 15px;
190
+ padding: 15px;
191
+ background: #f9fafb;
192
+ border-radius: 8px;
193
+ }
194
+
195
+ .stat-item {
196
+ display: flex;
197
+ flex-direction: column;
198
+ gap: 4px;
199
+ }
200
+
201
+ .stat-label {
202
+ font-size: 0.75em;
203
+ color: #6b7280;
204
+ font-weight: 600;
205
+ text-transform: uppercase;
206
+ letter-spacing: 0.5px;
207
+ }
208
+
209
+ .stat-value {
210
+ font-size: 1.1em;
211
+ font-weight: 700;
212
+ color: #1f2937;
213
+ }
214
+
215
+ .widget-loading-overlay {
216
+ position: absolute;
217
+ top: 0;
218
+ left: 0;
219
+ right: 0;
220
+ bottom: 0;
221
+ background: rgba(255, 255, 255, 0.4);
222
+ display: flex;
223
+ flex-direction: row;
224
+ align-items: center;
225
+ justify-content: center;
226
+ gap: 10px;
227
+ padding: 10px 16px;
228
+ border-radius: 12px;
229
+ z-index: 10;
230
+ pointer-events: none;
231
+ backdrop-filter: blur(1px);
232
+ }
233
+
234
+ .widget-loading-overlay.hidden {
235
+ display: none;
236
+ }
237
+
238
+ .loading-spinner {
239
+ width: 20px;
240
+ height: 20px;
241
+ border: 3px solid #e5e7eb;
242
+ border-top-color: #667eea;
243
+ border-radius: 50%;
244
+ animation: spin 0.8s linear infinite;
245
+ }
246
+
247
+ .loading-text {
248
+ color: #6b7280;
249
+ font-size: 0.875em;
250
+ font-weight: 500;
251
+ }
252
+
253
+ @keyframes spin {
254
+ to { transform: rotate(360deg); }
255
+ }
256
+
257
+ @media (max-width: 768px) {
258
+ .intraday-chart-widget {
259
+ min-width: unset;
260
+ padding: 15px;
261
+ }
262
+
263
+ .chart-stats {
264
+ grid-template-columns: repeat(3, 1fr);
265
+ gap: 10px;
266
+ }
267
+
268
+ .chart-container {
269
+ height: 350px;
270
+ }
271
+
272
+ .intraday-chart-symbol {
273
+ font-size: 1.2em;
274
+ }
275
+ }
276
+
277
+ .widget-error {
278
+ padding: 15px;
279
+ background: #fee2e2;
280
+ border: 1px solid #fecaca;
281
+ border-radius: 8px;
282
+ color: #dc2626;
283
+ font-size: 0.9em;
284
+ margin-top: 10px;
285
+ }
286
+
287
+ /* Night Session Widget and other common widget styles can be added here */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdas-jsview-sdk",
3
- "version": "1.0.9-uat.0",
3
+ "version": "1.0.11-uat.0",
4
4
  "type": "module",
5
5
  "main": "./dist/mdas-sdk.js",
6
6
  "module": "./dist/mdas-sdk.esm.js",