@dashboard-designer/ui 0.1.27 → 0.2.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/README.md +132 -0
- package/dist/index.d.ts +56 -20
- package/dist/index.js +2022 -1160
- package/dist/styles.css +73 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -421,6 +421,67 @@
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
/* Modal */
|
|
424
|
+
.dd-chart-data-popup {
|
|
425
|
+
font-family: var(--dd-font);
|
|
426
|
+
color: var(--dd-ink);
|
|
427
|
+
}
|
|
428
|
+
.dd-chart-data-popup,
|
|
429
|
+
.dd-chart-data-popup * {
|
|
430
|
+
box-sizing: border-box;
|
|
431
|
+
}
|
|
432
|
+
.dd-chart-data-popup .dd-modal {
|
|
433
|
+
height: min(760px, calc(100dvh - 48px));
|
|
434
|
+
}
|
|
435
|
+
.dd-chart-data-body {
|
|
436
|
+
display: flex;
|
|
437
|
+
flex-direction: column;
|
|
438
|
+
flex: 1;
|
|
439
|
+
min-height: 0;
|
|
440
|
+
padding: 16px 18px;
|
|
441
|
+
overflow: hidden;
|
|
442
|
+
}
|
|
443
|
+
.dd-chart-data-body .dd-query-data {
|
|
444
|
+
flex: 1;
|
|
445
|
+
height: auto;
|
|
446
|
+
gap: 0;
|
|
447
|
+
}
|
|
448
|
+
.dd-chart-data-body .dd-query-data-scroll {
|
|
449
|
+
max-height: none;
|
|
450
|
+
}
|
|
451
|
+
.dd-chart-data-body .dd-query-data-table th,
|
|
452
|
+
.dd-chart-data-body .dd-query-data-table td {
|
|
453
|
+
padding: 10px 12px;
|
|
454
|
+
}
|
|
455
|
+
.dd-chart-data-popup .dd-chart-data-footer {
|
|
456
|
+
justify-content: space-between;
|
|
457
|
+
align-items: center;
|
|
458
|
+
flex-wrap: wrap;
|
|
459
|
+
gap: 12px 24px;
|
|
460
|
+
}
|
|
461
|
+
.dd-chart-data-stats,
|
|
462
|
+
.dd-chart-data-time,
|
|
463
|
+
.dd-chart-data-pagination {
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
gap: 8px;
|
|
467
|
+
font-size: 12px;
|
|
468
|
+
font-variant-numeric: tabular-nums;
|
|
469
|
+
}
|
|
470
|
+
.dd-chart-data-stats {
|
|
471
|
+
flex-wrap: wrap;
|
|
472
|
+
gap: 8px 20px;
|
|
473
|
+
color: var(--dd-muted);
|
|
474
|
+
}
|
|
475
|
+
.dd-chart-data-stats strong,
|
|
476
|
+
.dd-chart-data-pagination strong {
|
|
477
|
+
color: var(--dd-ink);
|
|
478
|
+
font-weight: 600;
|
|
479
|
+
}
|
|
480
|
+
.dd-chart-data-pagination {
|
|
481
|
+
gap: 12px;
|
|
482
|
+
margin-left: auto;
|
|
483
|
+
white-space: nowrap;
|
|
484
|
+
}
|
|
424
485
|
.dd-modal-backdrop {
|
|
425
486
|
position: fixed;
|
|
426
487
|
inset: 0;
|
|
@@ -531,6 +592,18 @@
|
|
|
531
592
|
flex-direction: column;
|
|
532
593
|
}
|
|
533
594
|
|
|
595
|
+
.dd-query-spinner {
|
|
596
|
+
animation: dd-query-spin 0.8s linear infinite;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
@keyframes dd-query-spin {
|
|
600
|
+
to { transform: rotate(360deg); }
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
@media (prefers-reduced-motion: reduce) {
|
|
604
|
+
.dd-query-spinner { animation: none; }
|
|
605
|
+
}
|
|
606
|
+
|
|
534
607
|
.dd-modal-preview-chart.is-loading {
|
|
535
608
|
opacity: 0.85;
|
|
536
609
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashboard-designer/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-i18next": "^15.4.1",
|
|
29
29
|
"react-resizable": "^3.0.5",
|
|
30
30
|
"recharts": "^2.15.1",
|
|
31
|
-
"@dashboard-designer/core": "0.
|
|
31
|
+
"@dashboard-designer/core": "0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "^19.0.10",
|