@c8y/style 1021.78.7 → 1021.81.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/style",
3
- "version": "1021.78.7",
3
+ "version": "1021.81.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity GmbH",
6
6
  "description": "Styles for Cumulocity IoT applications",
@@ -18,6 +18,6 @@
18
18
  "less"
19
19
  ],
20
20
  "dependencies": {
21
- "@fontsource/public-sans": "^5.1.1"
21
+ "@fontsource/public-sans": "^5.2.6"
22
22
  }
23
23
  }
@@ -257,7 +257,9 @@
257
257
  box-shadow: var(--c8y-elevation-md-bottom);
258
258
  }
259
259
  }
260
-
260
+ [data-type="icon"] {
261
+ text-align: center !important;
262
+ }
261
263
  .data-record-icon {
262
264
  text-align: center !important;
263
265
  grid-column-start: 1;
@@ -696,3 +698,89 @@ c8y-filtering-form {
696
698
  }
697
699
  }
698
700
  }
701
+
702
+ // TREE NODE
703
+
704
+ .data-grid-child-node{
705
+ > td{
706
+ animation: expandChildNode 0.25s ease-out;
707
+ animation-fill-mode: forwards;
708
+ transform-origin: left top;
709
+ }
710
+ }
711
+
712
+ // Tree node cell renderer
713
+ // a workaround for the tree node cell renderer to increment padding accorndig to the level
714
+ @base-padding: 16px;
715
+
716
+ c8y-tree-node-cell-renderer,
717
+ .pagination-row {
718
+
719
+ .loop(@i) when (@i <= 10) {
720
+ &:has(.level-@{i}) {
721
+ &{
722
+ display: block;
723
+ padding-left: @base-padding * @i;
724
+ }
725
+ .cdk-column-pagination-row{
726
+ display: block;
727
+ padding-left: @base-padding * @i + @base-padding;
728
+ padding-right: @base-padding * @i + @base-padding;
729
+ }
730
+ }
731
+ .loop(@i + 1);
732
+ }
733
+
734
+ .loop(1);
735
+ }
736
+
737
+ .data-grid-collapse-btn{
738
+ .btn-clean();
739
+ padding: 8px!important;
740
+ min-width: 40px;
741
+ min-height: 20px;
742
+ display: flex;
743
+ align-items: center;
744
+ justify-content: center;
745
+ margin: -8px 0;
746
+ font-size: 18px;
747
+ line-height: 1;
748
+ &:hover:not(:focus){
749
+ outline: 1px solid @component-color-focus;
750
+ outline-offset: -1px;
751
+ border-radius: @component-border-radius-focus!important;
752
+ }
753
+ > i{
754
+ transition: all 0.25s ease;
755
+ }
756
+ &.active > i.dlt-c8y-icon-chevron-right{
757
+ transform: rotate(90deg);
758
+ }
759
+ }
760
+
761
+ td.cdk-cell.cdk-column-tree-node:has(c8y-tree-node-cell-renderer){
762
+ padding-left: 0;
763
+ padding-right: 0;
764
+ overflow: visible!important;
765
+ c8y-cell-renderer, c8y-tree-node-cell-renderer{
766
+ overflow: visible!important;
767
+ }
768
+ }
769
+
770
+ .cdk-column-actions{
771
+ overflow: visible!important;
772
+ }
773
+
774
+ .cdk-footer-row .cdk-footer-cell:has(c8y-load-more:empty){
775
+ display: none;
776
+ }
777
+
778
+ @keyframes expandChildNode {
779
+ 0% {
780
+ transform: scale(1,0);
781
+ }
782
+ 100% {
783
+ transform: scale(1, 1);
784
+ }
785
+
786
+ }