react-open-source-grid 1.6.7 → 1.7.2

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.
@@ -214,6 +214,36 @@ button {
214
214
  background-color: var(--context-menu-separator, #e0e0e0);
215
215
  margin: 4px 0;
216
216
  }
217
+ .context-menu-item-wrapper {
218
+ position: relative;
219
+ }
220
+ .context-menu-submenu {
221
+ position: absolute;
222
+ left: 100%;
223
+ top: 0;
224
+ background: var(--context-menu-bg, #ffffff);
225
+ border: 1px solid var(--context-menu-border, #d0d0d0);
226
+ border-radius: 6px;
227
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
228
+ min-width: 180px;
229
+ padding: 4px 0;
230
+ z-index: 10001;
231
+ animation: submenuFadeIn 0.15s ease-out;
232
+ margin-left: -4px;
233
+ }
234
+ @keyframes submenuFadeIn {
235
+ from {
236
+ opacity: 0;
237
+ transform: translateX(-8px);
238
+ }
239
+ to {
240
+ opacity: 1;
241
+ transform: translateX(0);
242
+ }
243
+ }
244
+ .context-menu-item.has-submenu {
245
+ padding-right: 24px;
246
+ }
217
247
  @media (prefers-color-scheme: dark) {
218
248
  .context-menu {
219
249
  --context-menu-bg: #2a2a2a;
@@ -1223,3 +1253,218 @@ button {
1223
1253
  white-space: nowrap;
1224
1254
  border-width: 0;
1225
1255
  }
1256
+
1257
+ /* src/charts/QuickChart.css */
1258
+ .quick-chart {
1259
+ display: flex;
1260
+ flex-direction: column;
1261
+ background: white;
1262
+ border-radius: 8px;
1263
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
1264
+ overflow: hidden;
1265
+ font-family:
1266
+ -apple-system,
1267
+ BlinkMacSystemFont,
1268
+ "Segoe UI",
1269
+ Roboto,
1270
+ Oxygen,
1271
+ Ubuntu,
1272
+ Cantarell,
1273
+ sans-serif;
1274
+ }
1275
+ .quick-chart--dark {
1276
+ background: #1a1a1a;
1277
+ color: #ffffff;
1278
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
1279
+ }
1280
+ .quick-chart__header {
1281
+ display: flex;
1282
+ justify-content: space-between;
1283
+ align-items: center;
1284
+ padding: 12px 16px;
1285
+ border-bottom: 1px solid #e0e0e0;
1286
+ background: #f5f5f5;
1287
+ }
1288
+ .quick-chart--dark .quick-chart__header {
1289
+ border-bottom-color: #333;
1290
+ background: #252525;
1291
+ }
1292
+ .quick-chart__title {
1293
+ margin: 0;
1294
+ font-size: 16px;
1295
+ font-weight: 600;
1296
+ color: #333;
1297
+ }
1298
+ .quick-chart--dark .quick-chart__title {
1299
+ color: #ffffff;
1300
+ }
1301
+ .quick-chart__controls {
1302
+ display: flex;
1303
+ gap: 8px;
1304
+ align-items: center;
1305
+ }
1306
+ .quick-chart__type-selector {
1307
+ display: flex;
1308
+ gap: 4px;
1309
+ padding: 4px;
1310
+ background: white;
1311
+ border-radius: 6px;
1312
+ border: 1px solid #ddd;
1313
+ }
1314
+ .quick-chart--dark .quick-chart__type-selector {
1315
+ background: #2a2a2a;
1316
+ border-color: #444;
1317
+ }
1318
+ .quick-chart__type-btn {
1319
+ display: flex;
1320
+ align-items: center;
1321
+ justify-content: center;
1322
+ width: 32px;
1323
+ height: 32px;
1324
+ padding: 0;
1325
+ background: transparent;
1326
+ border: none;
1327
+ border-radius: 4px;
1328
+ cursor: pointer;
1329
+ font-size: 16px;
1330
+ transition: background-color 0.2s;
1331
+ }
1332
+ .quick-chart__type-btn:hover {
1333
+ background: #f0f0f0;
1334
+ }
1335
+ .quick-chart--dark .quick-chart__type-btn:hover {
1336
+ background: #3a3a3a;
1337
+ }
1338
+ .quick-chart__type-btn--active {
1339
+ background: #e3f2fd;
1340
+ }
1341
+ .quick-chart--dark .quick-chart__type-btn--active {
1342
+ background: #1e3a5f;
1343
+ }
1344
+ .quick-chart__btn {
1345
+ display: flex;
1346
+ align-items: center;
1347
+ justify-content: center;
1348
+ width: 32px;
1349
+ height: 32px;
1350
+ padding: 0;
1351
+ background: white;
1352
+ border: 1px solid #ddd;
1353
+ border-radius: 4px;
1354
+ cursor: pointer;
1355
+ font-size: 16px;
1356
+ transition: all 0.2s;
1357
+ }
1358
+ .quick-chart__btn:hover {
1359
+ background: #f0f0f0;
1360
+ border-color: #999;
1361
+ }
1362
+ .quick-chart--dark .quick-chart__btn {
1363
+ background: #2a2a2a;
1364
+ border-color: #444;
1365
+ color: #ffffff;
1366
+ }
1367
+ .quick-chart--dark .quick-chart__btn:hover {
1368
+ background: #3a3a3a;
1369
+ border-color: #666;
1370
+ }
1371
+ .quick-chart__close {
1372
+ font-size: 24px;
1373
+ line-height: 1;
1374
+ color: #666;
1375
+ }
1376
+ .quick-chart__close:hover {
1377
+ color: #d32f2f;
1378
+ background: #ffebee;
1379
+ }
1380
+ .quick-chart--dark .quick-chart__close {
1381
+ color: #aaa;
1382
+ }
1383
+ .quick-chart--dark .quick-chart__close:hover {
1384
+ color: #ff5252;
1385
+ background: #3a1f1f;
1386
+ }
1387
+ .quick-chart__body {
1388
+ flex: 1;
1389
+ padding: 16px;
1390
+ min-height: 0;
1391
+ }
1392
+ @media (max-width: 768px) {
1393
+ .quick-chart__header {
1394
+ flex-direction: column;
1395
+ gap: 8px;
1396
+ align-items: flex-start;
1397
+ }
1398
+ .quick-chart__controls {
1399
+ width: 100%;
1400
+ justify-content: flex-end;
1401
+ }
1402
+ }
1403
+
1404
+ /* src/charts/ChartOverlay.css */
1405
+ .chart-overlay {
1406
+ position: fixed;
1407
+ top: 0;
1408
+ left: 0;
1409
+ right: 0;
1410
+ bottom: 0;
1411
+ z-index: 9999;
1412
+ pointer-events: none;
1413
+ }
1414
+ .chart-overlay__backdrop {
1415
+ position: absolute;
1416
+ top: 0;
1417
+ left: 0;
1418
+ right: 0;
1419
+ bottom: 0;
1420
+ background: rgba(0, 0, 0, 0.3);
1421
+ pointer-events: all;
1422
+ animation: fadeIn 0.2s ease-out;
1423
+ }
1424
+ .chart-overlay__container {
1425
+ position: absolute;
1426
+ pointer-events: all;
1427
+ animation: slideIn 0.3s ease-out;
1428
+ transition: box-shadow 0.2s;
1429
+ }
1430
+ .chart-overlay__container--draggable {
1431
+ cursor: move;
1432
+ }
1433
+ .chart-overlay__container--dragging {
1434
+ cursor: grabbing;
1435
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
1436
+ transition: none;
1437
+ }
1438
+ .chart-overlay__container--draggable .quick-chart__header {
1439
+ cursor: move;
1440
+ }
1441
+ .chart-overlay__container--dragging .quick-chart__header {
1442
+ cursor: grabbing;
1443
+ }
1444
+ @keyframes fadeIn {
1445
+ from {
1446
+ opacity: 0;
1447
+ }
1448
+ to {
1449
+ opacity: 1;
1450
+ }
1451
+ }
1452
+ @keyframes slideIn {
1453
+ from {
1454
+ opacity: 0;
1455
+ transform: scale(0.95) translateY(10px);
1456
+ }
1457
+ to {
1458
+ opacity: 1;
1459
+ transform: scale(1) translateY(0);
1460
+ }
1461
+ }
1462
+ @media (max-width: 768px) {
1463
+ .chart-overlay__container {
1464
+ width: calc(100% - 20px) !important;
1465
+ height: 400px !important;
1466
+ left: 10px !important;
1467
+ top: 50% !important;
1468
+ transform: translateY(-50%);
1469
+ }
1470
+ }
@@ -1,3 +1,4 @@
1
1
  import './index.css';
2
2
  export * from './components/DataGrid/index';
3
3
  export * from './editors';
4
+ export * from './charts';