@dashboard-designer/ui 0.1.2 → 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 +61 -20
- package/dist/index.js +4505 -1317
- package/dist/styles.css +468 -4
- package/package.json +9 -9
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
|
}
|
|
@@ -589,9 +662,90 @@
|
|
|
589
662
|
transition: box-shadow 120ms ease;
|
|
590
663
|
}
|
|
591
664
|
|
|
665
|
+
/* Never show resize grips in view / readonly mode */
|
|
666
|
+
.dd-root.dd-readonly .dd-canvas .react-resizable-handle,
|
|
667
|
+
.dd-root.dd-readonly .dd-canvas .dd-grid-resize-handle {
|
|
668
|
+
display: none !important;
|
|
669
|
+
visibility: hidden !important;
|
|
670
|
+
pointer-events: none !important;
|
|
671
|
+
opacity: 0 !important;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item {
|
|
675
|
+
overflow: visible;
|
|
676
|
+
}
|
|
677
|
+
|
|
592
678
|
.dd-canvas .react-grid-item > .dd-widget,
|
|
593
|
-
.dd-canvas .react-grid-item > div {
|
|
679
|
+
.dd-canvas .react-grid-item > div:not(.react-resizable-handle) {
|
|
594
680
|
height: 100%;
|
|
681
|
+
position: relative;
|
|
682
|
+
z-index: 1;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/* Pass clicks through widget corner to the resize handle */
|
|
686
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item > .dd-widget {
|
|
687
|
+
pointer-events: none;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item > .dd-widget > * {
|
|
691
|
+
pointer-events: auto;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item > .dd-widget .dd-widget-body {
|
|
695
|
+
clip-path: polygon(
|
|
696
|
+
0 0,
|
|
697
|
+
100% 0,
|
|
698
|
+
100% calc(100% - 28px),
|
|
699
|
+
calc(100% - 28px) calc(100% - 28px),
|
|
700
|
+
calc(100% - 28px) 100%,
|
|
701
|
+
0 100%
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/* Bottom-right resize handle (edit mode); left calc keeps physical right in RTL */
|
|
706
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item .dd-grid-resize-handle {
|
|
707
|
+
position: absolute !important;
|
|
708
|
+
z-index: 100;
|
|
709
|
+
pointer-events: auto;
|
|
710
|
+
display: flex !important;
|
|
711
|
+
visibility: visible !important;
|
|
712
|
+
opacity: 1 !important;
|
|
713
|
+
align-items: center;
|
|
714
|
+
justify-content: center;
|
|
715
|
+
background-image: none;
|
|
716
|
+
padding: 0;
|
|
717
|
+
box-sizing: border-box;
|
|
718
|
+
touch-action: none;
|
|
719
|
+
margin: 0 !important;
|
|
720
|
+
transform: none !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item .dd-grid-resize-handle.react-resizable-handle-se {
|
|
724
|
+
width: 20px;
|
|
725
|
+
height: 20px;
|
|
726
|
+
top: auto !important;
|
|
727
|
+
right: auto !important;
|
|
728
|
+
left: calc(100% - 30px) !important;
|
|
729
|
+
bottom: 10px !important;
|
|
730
|
+
cursor: se-resize;
|
|
731
|
+
background: var(--dd-surface);
|
|
732
|
+
border: 1px solid var(--dd-border);
|
|
733
|
+
border-radius: 4px;
|
|
734
|
+
color: var(--dd-muted);
|
|
735
|
+
box-shadow: 0 1px 3px color-mix(in srgb, var(--dd-shadow) 65%, transparent);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item .dd-grid-resize-handle-icon {
|
|
739
|
+
flex-shrink: 0;
|
|
740
|
+
pointer-events: none;
|
|
741
|
+
opacity: 0.85;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item .dd-grid-resize-handle:hover,
|
|
745
|
+
.dd-root:not(.dd-readonly) .dd-canvas .react-grid-item.resizing .dd-grid-resize-handle {
|
|
746
|
+
color: var(--dd-accent);
|
|
747
|
+
border-color: color-mix(in srgb, var(--dd-accent) 50%, var(--dd-border));
|
|
748
|
+
box-shadow: 0 1px 4px color-mix(in srgb, var(--dd-accent) 25%, transparent);
|
|
595
749
|
}
|
|
596
750
|
|
|
597
751
|
.dd-canvas .react-resizable-handle::after {
|
|
@@ -614,6 +768,34 @@
|
|
|
614
768
|
box-shadow: 0 0 0 2px var(--dd-accent-soft), var(--dd-shadow);
|
|
615
769
|
}
|
|
616
770
|
|
|
771
|
+
.dd-widget-headerless {
|
|
772
|
+
position: relative;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.dd-widget-headerless .dd-widget-body {
|
|
776
|
+
flex: 1;
|
|
777
|
+
min-height: 0;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.dd-widget-floating-actions {
|
|
781
|
+
position: absolute;
|
|
782
|
+
top: 6px;
|
|
783
|
+
right: 6px;
|
|
784
|
+
z-index: 3;
|
|
785
|
+
display: flex;
|
|
786
|
+
gap: 2px;
|
|
787
|
+
pointer-events: auto;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.dd-widget-headerless .dd-widget-body.dd-widget-drag {
|
|
791
|
+
cursor: grab;
|
|
792
|
+
user-select: none;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.dd-widget-headerless .dd-widget-body.dd-widget-drag:active {
|
|
796
|
+
cursor: grabbing;
|
|
797
|
+
}
|
|
798
|
+
|
|
617
799
|
.dd-widget-header {
|
|
618
800
|
display: flex;
|
|
619
801
|
justify-content: space-between;
|
|
@@ -1241,10 +1423,23 @@ select.dd-input[multiple] {
|
|
|
1241
1423
|
background: #64748b;
|
|
1242
1424
|
}
|
|
1243
1425
|
|
|
1426
|
+
.dd-filters-popover-arrow {
|
|
1427
|
+
position: fixed;
|
|
1428
|
+
z-index: 41;
|
|
1429
|
+
width: 10px;
|
|
1430
|
+
height: 10px;
|
|
1431
|
+
margin: -5px 0 0 -5px;
|
|
1432
|
+
transform: rotate(45deg);
|
|
1433
|
+
background: var(--dd-surface);
|
|
1434
|
+
border-left: 1px solid var(--dd-border);
|
|
1435
|
+
border-top: 1px solid var(--dd-border);
|
|
1436
|
+
border-top-left-radius: 2px;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1244
1439
|
.dd-filters-popover-panel {
|
|
1245
|
-
position:
|
|
1246
|
-
top:
|
|
1247
|
-
|
|
1440
|
+
position: fixed;
|
|
1441
|
+
top: 0;
|
|
1442
|
+
left: 0;
|
|
1248
1443
|
z-index: 40;
|
|
1249
1444
|
width: min(640px, calc(100vw - 32px));
|
|
1250
1445
|
max-height: min(420px, 70vh);
|
|
@@ -1506,6 +1701,257 @@ select.dd-input[multiple] {
|
|
|
1506
1701
|
font-size: 13px;
|
|
1507
1702
|
}
|
|
1508
1703
|
|
|
1704
|
+
.dd-label-widget {
|
|
1705
|
+
width: 100%;
|
|
1706
|
+
height: 100%;
|
|
1707
|
+
display: flex;
|
|
1708
|
+
align-items: center;
|
|
1709
|
+
justify-content: center;
|
|
1710
|
+
padding: 12px 16px;
|
|
1711
|
+
border: none;
|
|
1712
|
+
border-radius: var(--dd-radius-sm);
|
|
1713
|
+
text-align: center;
|
|
1714
|
+
line-height: 1.35;
|
|
1715
|
+
font-weight: 600;
|
|
1716
|
+
font-family: inherit;
|
|
1717
|
+
box-sizing: border-box;
|
|
1718
|
+
appearance: none;
|
|
1719
|
+
-webkit-appearance: none;
|
|
1720
|
+
color: var(--dd-on-accent, #fff);
|
|
1721
|
+
background-color: var(--dd-accent);
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
.dd-label-widget-text {
|
|
1725
|
+
display: block;
|
|
1726
|
+
white-space: pre-wrap;
|
|
1727
|
+
word-break: break-word;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.dd-label-widget-link:not(:disabled) {
|
|
1731
|
+
cursor: pointer;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.dd-label-widget-link:not(:disabled):hover {
|
|
1735
|
+
filter: brightness(0.95);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.dd-label-widget:disabled {
|
|
1739
|
+
cursor: default;
|
|
1740
|
+
opacity: 1;
|
|
1741
|
+
color: var(--dd-on-accent, #fff);
|
|
1742
|
+
background-color: var(--dd-accent);
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
.dd-label-container {
|
|
1746
|
+
width: 100%;
|
|
1747
|
+
height: 100%;
|
|
1748
|
+
min-height: 0;
|
|
1749
|
+
box-sizing: border-box;
|
|
1750
|
+
border-radius: var(--dd-radius-sm);
|
|
1751
|
+
background-color: transparent;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
.dd-label-container-vertical {
|
|
1755
|
+
display: flex;
|
|
1756
|
+
flex-direction: column;
|
|
1757
|
+
align-items: stretch;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.dd-label-container-horizontal {
|
|
1761
|
+
display: flex;
|
|
1762
|
+
flex-direction: row;
|
|
1763
|
+
flex-wrap: wrap;
|
|
1764
|
+
align-items: center;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
.dd-label-container-empty {
|
|
1768
|
+
display: block;
|
|
1769
|
+
text-align: center;
|
|
1770
|
+
padding: 8px;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.dd-container-label {
|
|
1774
|
+
display: block;
|
|
1775
|
+
width: 100%;
|
|
1776
|
+
padding: 8px 12px;
|
|
1777
|
+
border: none;
|
|
1778
|
+
border-radius: var(--dd-radius-sm);
|
|
1779
|
+
text-align: center;
|
|
1780
|
+
line-height: 1.35;
|
|
1781
|
+
font-weight: 600;
|
|
1782
|
+
font-family: inherit;
|
|
1783
|
+
box-sizing: border-box;
|
|
1784
|
+
appearance: none;
|
|
1785
|
+
-webkit-appearance: none;
|
|
1786
|
+
color: var(--dd-on-accent, #fff);
|
|
1787
|
+
background-color: var(--dd-accent);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
.dd-container-label:disabled {
|
|
1791
|
+
cursor: default;
|
|
1792
|
+
opacity: 1;
|
|
1793
|
+
color: var(--dd-on-accent, #fff);
|
|
1794
|
+
background-color: var(--dd-accent);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
.dd-label-container-horizontal .dd-container-label {
|
|
1798
|
+
width: auto;
|
|
1799
|
+
flex: 0 1 auto;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.dd-container-label-text {
|
|
1803
|
+
display: block;
|
|
1804
|
+
white-space: pre-wrap;
|
|
1805
|
+
word-break: break-word;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.dd-container-label-link:not(:disabled) {
|
|
1809
|
+
cursor: pointer;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
.dd-container-label-link:not(:disabled):hover {
|
|
1813
|
+
filter: brightness(0.95);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.dd-label-container-editor {
|
|
1817
|
+
display: flex;
|
|
1818
|
+
flex-direction: column;
|
|
1819
|
+
gap: 12px;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.dd-label-container-editor-item {
|
|
1823
|
+
padding: 12px;
|
|
1824
|
+
border: 1px solid var(--dd-border);
|
|
1825
|
+
border-radius: var(--dd-radius);
|
|
1826
|
+
background: color-mix(in srgb, var(--dd-surface) 96%, var(--dd-border));
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
.dd-label-container-editor-head {
|
|
1830
|
+
display: flex;
|
|
1831
|
+
align-items: center;
|
|
1832
|
+
justify-content: space-between;
|
|
1833
|
+
gap: 8px;
|
|
1834
|
+
margin-bottom: 8px;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
.dd-label-container-editor-actions {
|
|
1838
|
+
display: flex;
|
|
1839
|
+
align-items: center;
|
|
1840
|
+
gap: 2px;
|
|
1841
|
+
flex-shrink: 0;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.dd-field-label-row {
|
|
1845
|
+
display: flex;
|
|
1846
|
+
align-items: center;
|
|
1847
|
+
justify-content: space-between;
|
|
1848
|
+
gap: 12px;
|
|
1849
|
+
margin-bottom: 8px;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
.dd-label-style-row {
|
|
1853
|
+
display: grid;
|
|
1854
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1855
|
+
gap: 10px;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.dd-color-input {
|
|
1859
|
+
padding: 4px;
|
|
1860
|
+
height: 38px;
|
|
1861
|
+
min-height: 38px;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
.dd-field-row {
|
|
1865
|
+
display: flex;
|
|
1866
|
+
gap: 10px;
|
|
1867
|
+
flex-wrap: wrap;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
.dd-measure-aggregations {
|
|
1871
|
+
display: flex;
|
|
1872
|
+
flex-direction: column;
|
|
1873
|
+
gap: 8px;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
.dd-measure-agg-row {
|
|
1877
|
+
display: flex;
|
|
1878
|
+
align-items: center;
|
|
1879
|
+
gap: 10px;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
.dd-measure-agg-field {
|
|
1883
|
+
flex: 1;
|
|
1884
|
+
min-width: 0;
|
|
1885
|
+
font-size: 13px;
|
|
1886
|
+
font-family: var(--dd-mono);
|
|
1887
|
+
color: var(--dd-muted);
|
|
1888
|
+
overflow: hidden;
|
|
1889
|
+
text-overflow: ellipsis;
|
|
1890
|
+
white-space: nowrap;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
.dd-measure-agg-select {
|
|
1894
|
+
width: 120px;
|
|
1895
|
+
flex-shrink: 0;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.dd-label-color-swap-btn {
|
|
1899
|
+
width: 38px;
|
|
1900
|
+
min-width: 38px;
|
|
1901
|
+
height: 38px;
|
|
1902
|
+
padding: 0;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
.dd-guidelines-editor {
|
|
1906
|
+
margin-top: 4px;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.dd-guidelines-group {
|
|
1910
|
+
margin-top: 10px;
|
|
1911
|
+
display: flex;
|
|
1912
|
+
flex-direction: column;
|
|
1913
|
+
gap: 8px;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
.dd-guidelines-group-head {
|
|
1917
|
+
display: flex;
|
|
1918
|
+
align-items: center;
|
|
1919
|
+
justify-content: space-between;
|
|
1920
|
+
gap: 8px;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
.dd-guidelines-group-title {
|
|
1924
|
+
font-size: 12px;
|
|
1925
|
+
font-weight: 700;
|
|
1926
|
+
color: var(--dd-muted);
|
|
1927
|
+
text-transform: uppercase;
|
|
1928
|
+
letter-spacing: 0.04em;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.dd-guideline-item {
|
|
1932
|
+
padding: 10px 12px;
|
|
1933
|
+
border: 1px solid var(--dd-border-subtle);
|
|
1934
|
+
border-radius: var(--dd-radius-sm);
|
|
1935
|
+
background: var(--dd-surface);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
.dd-guideline-item-head {
|
|
1939
|
+
display: flex;
|
|
1940
|
+
align-items: center;
|
|
1941
|
+
justify-content: space-between;
|
|
1942
|
+
gap: 8px;
|
|
1943
|
+
margin-bottom: 8px;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
.dd-guideline-item-title {
|
|
1947
|
+
font-size: 13px;
|
|
1948
|
+
font-weight: 600;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
.dd-guideline-fields {
|
|
1952
|
+
align-items: flex-end;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1509
1955
|
.dd-listbox {
|
|
1510
1956
|
display: flex;
|
|
1511
1957
|
flex-direction: column;
|
|
@@ -1612,6 +2058,12 @@ select.dd-input[multiple] {
|
|
|
1612
2058
|
z-index: 1;
|
|
1613
2059
|
}
|
|
1614
2060
|
|
|
2061
|
+
.dd-table-empty-cell {
|
|
2062
|
+
color: var(--dd-muted);
|
|
2063
|
+
text-align: center;
|
|
2064
|
+
padding: 16px;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
1615
2067
|
.dd-muted {
|
|
1616
2068
|
color: var(--dd-muted);
|
|
1617
2069
|
font-size: 13px;
|
|
@@ -2920,6 +3372,7 @@ select.dd-input[multiple] {
|
|
|
2920
3372
|
html.dd-print-mode .dd-widget-drag-grip,
|
|
2921
3373
|
html.dd-print-mode .dd-canvas-empty,
|
|
2922
3374
|
html.dd-print-mode .dd-badge,
|
|
3375
|
+
html.dd-print-mode .dd-grid-resize-handle,
|
|
2923
3376
|
html.dd-print-mode .react-resizable-handle {
|
|
2924
3377
|
display: none !important;
|
|
2925
3378
|
}
|
|
@@ -3016,3 +3469,14 @@ select.dd-input[multiple] {
|
|
|
3016
3469
|
}
|
|
3017
3470
|
}
|
|
3018
3471
|
|
|
3472
|
+
|
|
3473
|
+
|
|
3474
|
+
/* --- table-empty-overrides.css --- */
|
|
3475
|
+
/* Overrides .dd-table td { text-align: left } for empty-state rows */
|
|
3476
|
+
.dd-table td.dd-table-empty-cell {
|
|
3477
|
+
text-align: center;
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
.dd-query-data-table td.dd-query-data-empty-cell {
|
|
3481
|
+
text-align: center;
|
|
3482
|
+
}
|
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",
|
|
@@ -15,17 +15,11 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsup src/index.ts --format esm --dts --external react --external react-dom --external lucide-react && node ./scripts/copy-css.mjs",
|
|
20
|
-
"typecheck": "tsc --noEmit",
|
|
21
|
-
"dev": "tsup src/index.ts --format esm --dts --external react --external react-dom --external lucide-react --watch"
|
|
22
|
-
},
|
|
23
18
|
"peerDependencies": {
|
|
24
19
|
"react": "^18.0.0 || ^19.0.0",
|
|
25
20
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
26
21
|
},
|
|
27
22
|
"dependencies": {
|
|
28
|
-
"@dashboard-designer/core": "^0.1.1",
|
|
29
23
|
"html2canvas": "^1.4.1",
|
|
30
24
|
"i18next": "^24.2.2",
|
|
31
25
|
"jspdf": "^4.2.1",
|
|
@@ -33,7 +27,8 @@
|
|
|
33
27
|
"react-grid-layout": "^1.5.0",
|
|
34
28
|
"react-i18next": "^15.4.1",
|
|
35
29
|
"react-resizable": "^3.0.5",
|
|
36
|
-
"recharts": "^2.15.1"
|
|
30
|
+
"recharts": "^2.15.1",
|
|
31
|
+
"@dashboard-designer/core": "0.2.0"
|
|
37
32
|
},
|
|
38
33
|
"devDependencies": {
|
|
39
34
|
"@types/react": "^19.0.10",
|
|
@@ -46,5 +41,10 @@
|
|
|
46
41
|
},
|
|
47
42
|
"publishConfig": {
|
|
48
43
|
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsup src/index.ts --format esm --dts --external react --external react-dom --external lucide-react && node ./scripts/copy-css.mjs",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"dev": "tsup src/index.ts --format esm --dts --external react --external react-dom --external lucide-react --watch"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|