@ninebone/datagrid 0.1.3 → 0.2.1
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 +5 -0
- package/dist/css/nine-table.css +78 -2
- package/dist/nine-table.js +748 -494
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +60 -23
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +4 -9
package/README.md
CHANGED
package/dist/css/nine-table.css
CHANGED
|
@@ -751,6 +751,71 @@ nine-table-col-resizer-panel {
|
|
|
751
751
|
nine-table-col-resizer-panel.active {
|
|
752
752
|
display: block;
|
|
753
753
|
}
|
|
754
|
+
cell-tree {
|
|
755
|
+
display: flex;
|
|
756
|
+
justify-content: flex-start;
|
|
757
|
+
align-items: center;
|
|
758
|
+
width: 100%;
|
|
759
|
+
height: 100%;
|
|
760
|
+
padding-left: calc(4px + var(--tree-level, 0) * 16px);
|
|
761
|
+
|
|
762
|
+
.item {
|
|
763
|
+
display: flex;
|
|
764
|
+
align-items: center;
|
|
765
|
+
overflow: hidden;
|
|
766
|
+
text-overflow: ellipsis;
|
|
767
|
+
white-space: nowrap;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.tree-text {
|
|
771
|
+
overflow: hidden;
|
|
772
|
+
text-overflow: ellipsis;
|
|
773
|
+
white-space: nowrap;
|
|
774
|
+
padding-left: 8px;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.icon {
|
|
778
|
+
display: inline-flex;
|
|
779
|
+
width: 0;
|
|
780
|
+
height: 12px;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.icon.node {
|
|
784
|
+
width: 4px;
|
|
785
|
+
height: 4px;
|
|
786
|
+
background-color: #ccc;
|
|
787
|
+
border-radius: 50%;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.icon.expand-on,
|
|
791
|
+
.icon.expand-off {
|
|
792
|
+
width: 12px;
|
|
793
|
+
background-repeat: no-repeat;
|
|
794
|
+
background-position: center;
|
|
795
|
+
background-size: contain;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.expand-off {
|
|
799
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/></svg>');
|
|
800
|
+
}
|
|
801
|
+
.expand-on {
|
|
802
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="black" viewBox="0 0 16 16"><path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"/></svg>');
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
tr[grouping="true"] {
|
|
809
|
+
filter: brightness(99%);
|
|
810
|
+
td:not(.selected-right) {
|
|
811
|
+
border-right: none;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.CELL-TREE.selected-left {
|
|
816
|
+
padding-left: calc(2px + var(--tree-level, 0) * 16px);
|
|
817
|
+
}
|
|
818
|
+
|
|
754
819
|
|
|
755
820
|
|
|
756
821
|
nine-table-filter-button {
|
|
@@ -1740,18 +1805,29 @@ col {
|
|
|
1740
1805
|
width: attr(width px);
|
|
1741
1806
|
}
|
|
1742
1807
|
|
|
1808
|
+
|
|
1809
|
+
.ng-container-left {
|
|
1810
|
+
col:last-child {
|
|
1811
|
+
width: 100% !important;
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1743
1815
|
thead {
|
|
1744
1816
|
display: table-header-group;
|
|
1745
1817
|
position: sticky;
|
|
1746
1818
|
top: 0;
|
|
1747
|
-
z-index:
|
|
1819
|
+
z-index: 2;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
thead.foot {
|
|
1823
|
+
z-index: 1;
|
|
1748
1824
|
}
|
|
1749
1825
|
|
|
1750
1826
|
tfoot {
|
|
1751
1827
|
display: table-footer-group;
|
|
1752
1828
|
position: sticky;
|
|
1753
1829
|
bottom: 0;
|
|
1754
|
-
z-index:
|
|
1830
|
+
z-index: 2;
|
|
1755
1831
|
}
|
|
1756
1832
|
|
|
1757
1833
|
tbody {
|