@c8y/style 1022.28.2 β†’ 1022.33.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.
Binary file
@@ -113,4 +113,5 @@
113
113
  <glyph unicode="&#xe967;" glyph-name="wm-b2b" d="M892.26 584.446c-9.78 0-18.984-1.15-28.188-2.876l-130.014 224.935c-5.178 8.629-14.382 14.382-24.736 14.382h-177.762v75.937l-104.702-104.701 104.702-104.701v75.937h161.078l119.084-206.525c-31.642-24.162-51.776-62.132-51.776-104.702 0-44.296 21.86-83.99 55.802-107.578l-107.002-184.664-373.932 647.19c-5.178 8.629-14.382 14.382-24.738 14.382-10.354 0-19.56-5.753-24.736-14.382l-130.014-224.36c-7.479 1.152-14.957 1.726-23.011 1.726-73.061 0-132.315-59.254-132.315-132.314s59.254-132.314 132.315-132.314c5.753 0 12.081 0.574 17.834 1.15l134.616-233.564c5.178-8.63 14.382-14.382 24.738-14.382h177.76v-75.938l104.702 104.702-104.702 104.702v-75.938h-161.078l-121.96 211.128c36.244 23.586 59.83 64.432 59.83 110.454 0 43.722-21.286 83.416-55.802 108.152l101.25 174.312 373.932-647.192c5.178-8.63 14.382-14.382 24.736-14.382 10.356 0 19.56 5.752 24.738 14.382l135.19 234.14c7.48-1.152 14.958-2.302 23.012-2.302 73.060 0 132.314 59.254 132.314 132.314 1.152 73.062-58.102 132.89-131.164 132.89zM132.89 377.346c-41.42 0-74.786 33.366-74.786 74.786s33.366 74.786 74.786 74.786c10.355 0 20.135-1.726 29.339-5.752 27.614-11.506 45.447-38.544 45.447-69.034 0-41.42-33.366-74.786-74.786-74.786z" />
114
114
  <glyph unicode="&#xe968;" glyph-name="wm-dynamicapps" d="M994.532 394.222c-17.68 10.314-40.518 4.42-50.096-13.26l-212.166-368.346h-425.070c-20.628 0-36.836-16.208-36.836-36.834 0-20.628 16.208-36.836 36.836-36.836h446.434c13.26 0 25.048 7.368 31.678 18.418l223.216 386.762c10.314 16.944 3.684 39.782-13.996 50.096zM839.826 417.796c90.614 0 164.282 73.668 164.282 164.282 0 90.612-73.668 164.282-164.282 164.282-90.612 0-164.282-73.67-164.282-164.282 0.738-90.614 73.67-164.282 164.282-164.282zM839.826 671.954c50.096 0 90.614-40.518 90.614-90.614 0-50.094-40.518-90.612-90.614-90.612-50.094 0-90.612 40.518-90.612 90.612 0 50.096 41.254 90.614 90.612 90.614zM165.755 417.796c90.613 0 164.281 73.668 164.281 164.282 0 90.612-73.668 164.282-164.281 164.282s-164.282-73.67-164.282-164.282c0.737-90.614 73.669-164.282 164.282-164.282zM330.036 194.578c0 90.614-73.668 164.282-164.281 164.282s-164.282-73.668-164.282-164.282c0-90.612 73.669-164.282 164.282-164.282s164.281 73.67 164.281 164.282zM509.052 629.226c8.84 0 16.944 0.736 25.048 2.21 5.156 0.736 11.050 2.21 16.208 2.946 2.946 0.738 5.156 1.474 8.102 2.21 12.524 3.684 25.048 9.578 36.098 16.208 6.63 4.42 13.262 8.84 19.154 13.996 18.418 14.734 33.152 33.888 43.466 55.252 1.472 2.21 2.21 5.158 2.946 7.368 2.21 5.156 3.684 9.576 5.156 14.734 5.158 15.47 7.368 31.677 7.368 48.621s-2.946 33.151-7.368 48.622c-1.472 5.157-3.682 10.314-5.156 14.734-0.736 2.21-2.21 5.157-2.946 7.367-10.314 21.364-25.048 40.518-43.466 55.252-5.892 5.157-12.524 9.577-19.154 13.997-11.050 6.63-23.574 12.524-36.098 16.207-2.21 0.737-5.156 1.473-8.102 2.21-5.158 1.473-10.314 2.21-16.208 2.947-8.104 1.473-16.208 2.21-25.048 2.21-90.612 0-164.282-73.669-164.282-164.282 0.738-89.14 73.67-162.808 164.282-162.808zM509.052 231.412c90.614 0 164.282 73.67 164.282 164.282 0 90.614-73.668 164.282-164.282 164.282-90.612 0-164.282-73.668-164.282-164.282 0.738-90.612 73.67-164.282 164.282-164.282zM509.052 485.572c50.096 0 90.614-40.518 90.614-90.614 0-50.094-40.518-90.612-90.614-90.612-50.094 0-90.612 40.518-90.612 90.612 0 50.096 41.254 90.614 90.612 90.614z" />
115
115
  <glyph unicode="&#xe969;" glyph-name="wm-integration" d="M916.852 550.722c-45.436 0-83.412-29.16-96.974-69.85h-117.32c-18.988 0-33.906-14.918-33.906-33.906 0-18.99 14.918-33.908 33.906-33.908h117.998c14.24-39.332 52.218-67.136 96.296-67.136 46.114 0 84.768 30.516 97.654 71.882 2.712 9.494 4.746 19.668 4.746 30.518 0 56.286-46.114 102.4-102.4 102.4zM260.408 708.052c2.712-1.358 6.102-2.714 8.816-4.070 12.206-5.424 25.768-8.138 40.010-8.138 7.46 0 14.24 0.678 21.022 2.034l60.356-105.112c6.102-10.85 17.632-16.954 29.16-16.954 5.424 0 11.528 1.358 16.954 4.748 16.274 9.494 21.7 29.838 12.206 46.114l-61.034 106.468c14.242 17.632 23.058 40.689 23.058 65.103 0 28.482-11.528 54.252-29.838 72.562s-44.080 29.838-72.562 29.838c-56.964 0-102.4-46.114-102.4-102.4 0.678-38.655 22.378-72.563 54.252-90.193zM716.8 199.442c-6.782 0-13.564-0.678-19.666-2.034l-59.678 103.756c-9.494 16.276-29.838 21.7-46.114 12.206-16.274-9.494-21.7-29.838-12.206-46.114l59.676-104.434c-8.816-10.172-15.596-22.378-19.666-35.942-2.712-9.494-4.746-19.666-4.746-30.516 0-56.964 46.114-102.4 102.4-102.4s102.4 46.114 102.4 102.4c0 10.85-1.356 21.022-4.748 30.516-12.884 42.046-51.538 72.562-97.652 72.562zM360.094 446.966c0 18.988-14.918 33.906-33.906 33.906h-122.744c-13.564 40.69-52.218 69.85-96.976 69.85-10.85 0-21.023-1.356-30.517-4.748-42.045-12.884-71.883-52.216-71.883-97.652 0-25.092 8.816-48.148 23.735-65.78 18.988-22.38 46.792-36.62 78.665-36.62 28.482 0 54.252 11.528 72.562 29.838 10.172 10.172 18.31 23.056 23.736 37.298h123.422c18.31 0 33.906 14.918 33.906 33.908zM437.404 313.37c-16.276 9.494-37.298 4.070-46.114-12.206l-59.678-104.434c-6.78 1.356-14.24 2.712-21.7 2.712-56.964 0-102.4-46.114-102.4-102.4 0-38.654 21.7-72.562 53.574-90.194 2.712-1.356 6.102-2.712 8.816-4.068 12.206-5.426 25.768-8.138 40.010-8.138 56.964 0 102.4 46.114 102.4 102.4 0 24.414-8.816 46.792-23.056 64.424l61.032 105.79c8.816 16.276 3.39 36.62-12.884 46.114zM590.664 580.56c5.426-3.39 10.85-4.748 16.954-4.748 11.528 0 23.058 6.104 29.16 16.954l60.356 104.434c6.102-1.356 12.884-2.034 19.666-2.034 56.964 0 102.4 46.114 102.4 102.4 0 10.85-1.356 21.023-4.748 30.517-12.884 42.045-52.216 71.883-97.652 71.883s-84.768-30.517-97.654-71.883c-2.712-9.494-4.746-19.666-4.746-30.517 0-25.77 9.494-48.826 24.412-66.458l-60.354-105.112c-9.494-15.598-4.070-35.942 12.206-45.436z" />
116
+ <glyph unicode="&#xe96a;" glyph-name="analytics-smart-rules-dark" d="M1024 170.666l-190.876-192v128h-175.040l87.374 128h87.666v128l190.876-192zM398.916 106.666h-398.916v128h436l-37.084-128zM195.708 362.666h-195.708v128h287.958l-92.25-128zM380.208 618.666h-380.208v128h472.458l-92.25-128z" />
116
117
  </font></defs></svg>
Binary file
Binary file
Binary file
@@ -94,4 +94,5 @@
94
94
  <glyph unicode="&#xe954;" glyph-name="users" d="M0.114 107.296h256.070c-1.194 279.112 127.78 157.704 127.78 379.812 0 85.736-55.924 132.216-127.892 132.216-106.332 0-180.292-101.666-79.593-291.8 33.055-62.524-35.216-77.316-108.607-94.27-63.662-14.678-67.872-45.798-67.872-99.618l0.114-26.34z" />
95
95
  <glyph unicode="&#xe955;" glyph-name="waste-bin" d="M933.114 874.667v-85.333h-843.114v85.333h240.752c37.94 0 68.756 46.891 68.756 85.333h224.056c0-38.443 30.774-85.333 68.756-85.333h240.794z" />
96
96
  <glyph unicode="&#xe956;" glyph-name="wm-integration" d="M613.046 448.322c0 54.25-44.080 98.33-98.332 98.33s-98.332-44.080-98.332-98.33c0-54.252 44.080-98.332 98.332-98.332s98.332 44.080 98.332 98.332z" />
97
+ <glyph unicode="&#xe957;" glyph-name="analytics-smart-rules-light" d="M438.262-64l414.372 607.096h-240.994l119.694 416.904-432.668-600.412h262.45l-122.854-423.588z" />
97
98
  </font></defs></svg>
Binary file
Binary file
Binary file
@@ -0,0 +1,51 @@
1
+ &nbsp;
2
+
3
+ ### πŸ“Š Dashboard manager: Smarter, more flexible dashboards
4
+
5
+ &nbsp;
6
+
7
+ We are making it easier than ever to organize and view your device data. The **Dashboard manager** in **Device management** brings more flexibility, consistency, and control over device dashboards.
8
+
9
+ &nbsp;
10
+
11
+ With this update, you can create **template dashboards that automatically apply to devices of the same type**, ensuring consistent views across your environment. The **Dashboard Manager** makes it simple to organize dashboards in one place, while support for **multiple dashboards per device** gives you the freedom to tailor different perspectives for different use cases. You can also **name dashboards in ways that match your workflows**, so finding the right view is effortless.
12
+
13
+ &nbsp;
14
+
15
+ ### ✨ Key Enhancements & Features
16
+
17
+ &nbsp;
18
+
19
+ #### πŸ“Š Type-based dashboard templates
20
+
21
+ Build once, apply everywhere. Create dashboards that automatically apply to devices of the same type, saving time and ensuring consistency.
22
+
23
+ &nbsp;
24
+
25
+ #### πŸ—‚οΈ Dashboard Manager
26
+
27
+ A simple, centralized way to create, edit, and organize dashboards across your environment.
28
+
29
+ <img src="./c8y-style-assets/dm-dashboard-manager.png" alt="Dashboard manager" width="100%">
30
+
31
+ #### βž• Multiple dashboards per device
32
+
33
+ Add as many dashboards as you need to a single device β€” tailor views for different use cases.
34
+
35
+ &nbsp;
36
+
37
+ #### πŸ“ Custom dashboard names
38
+
39
+ Label dashboards with meaningful names so your teams can quickly find the views they need.
40
+
41
+ &nbsp;
42
+
43
+ #### πŸ”„ Seamless compatibility
44
+
45
+ Keep your current **Info** dashboards β€” they’ll continue to work right alongside the new type-based ones.
46
+
47
+ &nbsp;
48
+
49
+ #### πŸ’‘ Why This Upgrade Matters
50
+
51
+ πŸš€ With these updates, managing dashboards is faster, more intuitive, and ready to scale with your needs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/style",
3
- "version": "1022.28.2",
3
+ "version": "1022.33.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity GmbH",
6
6
  "description": "Styles for Cumulocity IoT applications",
@@ -43,6 +43,33 @@
43
43
  }
44
44
  }
45
45
  }
46
+ .cdk-tree-node[aria-level]:not([aria-level="1"]):not([aria-level="2"]){
47
+ position: relative;
48
+ &::after {
49
+ position: absolute;
50
+ content: '';
51
+ top: 0;
52
+ left: 18px;
53
+ width: 20px;
54
+ bottom: 0;
55
+ display: block;
56
+ border-left: 1px solid var(--c8y-component-icon-dark-color-light, var(--c8y-root-component-icon-dark-color-light, var(--brand-light, var(--c8y-brand-light))));
57
+ z-index: 1;
58
+ }
59
+ &[aria-level="4"]{
60
+ &::before{
61
+ position: absolute;
62
+ content: '';
63
+ top: 0;
64
+ left: 42px;
65
+ width: 20px;
66
+ bottom: 0;
67
+ display: block;
68
+ border-left: 1px solid var(--c8y-component-icon-dark-color-light, var(--c8y-root-component-icon-dark-color-light, var(--brand-light, var(--c8y-brand-light))));
69
+ z-index: 1;
70
+ }
71
+ }
72
+ }
46
73
  .cdk-tree-node.nonCollapsible:not([aria-level="1"]){
47
74
  > .d-flex::before{
48
75
  left: -5px;
@@ -70,28 +97,62 @@
70
97
  overflow: visible;
71
98
  }
72
99
 
73
- .cdk-tree-node[aria-level="1"]{
74
- &:before {
75
- content: '';
76
- background: inherit;
77
- width: 40px;
78
- height: 100%;
79
- position: absolute;
80
- left: 0;
81
- bottom: calc(50% - 1px);
82
- z-index: 3;
83
- pointer-events: none;
100
+ .cdk-tree-node{
101
+ .c8y-list__item__check,
102
+ .c8y-list__item__radio{
103
+ z-index: 4;
104
+ }
105
+ &[aria-level="1"],
106
+ &[aria-level="2"],
107
+ &[aria-level="3"]{
108
+ &:before {
109
+ content: '';
110
+ background: inherit;
111
+ width: 48px;
112
+ height: 100%;
113
+ position: absolute;
114
+ left: 0;
115
+ bottom: calc(50% - 1px);
116
+ z-index: 3;
117
+ pointer-events: none;
118
+ }
119
+ &.nonCollapsible{
120
+ &::before{
121
+ width: 21px;
122
+ bottom: calc(100% - 1px);
123
+ height: 50%;
124
+ }
125
+ + .cdk-tree-node[aria-level="1"]{
126
+ &::before{
127
+ background: transparent;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ &[aria-level="2"]{
133
+ &::before{
134
+ left: 24px;
135
+ z-index: 1;
136
+ }
137
+ &.nonCollapsible{
138
+ + .cdk-tree-node[aria-level="2"]{
139
+ &::before{
140
+ background: transparent;
141
+ }
142
+ }
143
+ }
84
144
  }
85
- &.nonCollapsible{
145
+ &[aria-level="3"]{
86
146
  &::before{
87
- width: 21px;
88
- bottom: calc(100% - 1px);
89
- height: 50%;
147
+ left: 48px;
148
+ z-index: 1;
90
149
  }
91
- + .cdk-tree-node[aria-level="1"]{
92
- &::before{
93
- background: transparent;
94
- }
150
+ &.nonCollapsible{
151
+ + .cdk-tree-node[aria-level="3"]{
152
+ &::before{
153
+ background: transparent;
154
+ }
155
+ }
95
156
  }
96
157
  }
97
158
  }
@@ -113,4 +174,5 @@
113
174
  .cdk-tree-node .c8y-list__item__icon{
114
175
  padding-top: 7px;
115
176
  padding-bottom: 7px;
177
+ z-index: 2;
116
178
  }
@@ -921,6 +921,55 @@
921
921
  }
922
922
  }
923
923
 
924
+ .c8y-icon-analytics-smart-rules {
925
+ &:before {
926
+ content: @c8y-icon-dark-analytics-smart-rules;
927
+ }
928
+ &:after {
929
+ content: @c8y-icon-light-analytics-smart-rules;
930
+ }
931
+ }
932
+
933
+
934
+
935
+
936
+ .libraries-icon {
937
+ position: relative;
938
+ display: inline-block;
939
+ font-family: "c8yicon-dark";
940
+ font-style: normal;
941
+ font-weight: normal;
942
+ font-variant: normal;
943
+ line-height: 1;
944
+ width: 1.1em;
945
+ text-decoration: inherit;
946
+ text-rendering: optimizeLegibility;
947
+ text-transform: none;
948
+ -moz-osx-font-smoothing: grayscale;
949
+ -webkit-font-smoothing: antialiased;
950
+ font-smoothing: antialiased;
951
+
952
+ &:after {
953
+ content: @c8y-icon-dark-book;
954
+ position: absolute;
955
+ top: 0;
956
+ right: 0;
957
+ z-index: 4;
958
+ font-size: .5em;
959
+ background-color: @component-background-default;
960
+ border-bottom-left-radius: .2em;
961
+ border-bottom: 0.2em solid @component-background-default;
962
+ border-left: 0.1em solid @component-background-default;
963
+ }
964
+ [class^='dlt-c8y-icon-'],
965
+ [class*=' dlt-c8y-icon-'],
966
+ .dlt-c8y-icon, .c8y-icon{
967
+ position: relative;
968
+ z-index: 2;
969
+ }
970
+ }
971
+
972
+
924
973
  .app-noicon {
925
974
  display: inline-block;
926
975
  width: 36px;
@@ -0,0 +1,117 @@
1
+ c8y-resizable-grid {
2
+ display: flex;
3
+ height: 100%;
4
+ position: relative;
5
+
6
+ // This CSS variable is set by the component and used here
7
+ --col-a-width: var(--c8y-resizable-grid-default-width, 560px);
8
+ }
9
+
10
+ .resizable-grid-container {
11
+ display: flex;
12
+ flex-grow: 1;
13
+ height: 100%;
14
+ overflow: hidden;
15
+
16
+ /* Prevent content overflow during resize */
17
+ .collapsed {
18
+ width: 0 !important; // Hide the column
19
+ min-width: 0 !important;
20
+ opacity: 0;
21
+ transition: all 0.3s ease;
22
+ flex-shrink: 1;
23
+ }
24
+
25
+ .expanded {
26
+ transition: all 0.3s ease;
27
+ flex-grow: 1;
28
+ width: calc(100% - 8px)!important;
29
+ }
30
+
31
+ &:has(.collapsed) {
32
+ .resizer > i{
33
+ display: block;
34
+ }
35
+ }
36
+ }
37
+
38
+ .col-a {
39
+ width: var(--col-a-width);
40
+ min-width: 0;
41
+ flex-shrink: 0; // Prevent it from shrinking
42
+ overflow: hidden;
43
+
44
+ >* {
45
+ min-width: fit-content;
46
+ }
47
+ }
48
+
49
+ .col-b {
50
+ flex-grow: 1; // Col B takes up remaining space
51
+ overflow: hidden;
52
+ min-width: 0;
53
+
54
+ >* {
55
+ min-width: fit-content;
56
+ }
57
+ }
58
+
59
+ .resizer {
60
+ width: 8px;
61
+ flex: 0 0 8px;
62
+ cursor: col-resize;
63
+ z-index: 1;
64
+ position: relative;
65
+ overflow: visible;
66
+
67
+ &::before {
68
+ content: '';
69
+ position: absolute;
70
+ top: 0;
71
+ left: 50%;
72
+ transform: translateX(-50%);
73
+ width: 1px;
74
+ bottom: 0;
75
+ background: @component-border-color;
76
+ }
77
+
78
+ >i {
79
+ position: absolute;
80
+ top: 50%;
81
+ left: 50%;
82
+ transform: translate(-50%, -50%);
83
+ background-color: @component-background-default;
84
+ border-radius: 50%;
85
+ color: @component-color-text-muted;
86
+ &::before{
87
+ transition: all 0.3s ease;
88
+ display: block;
89
+ }
90
+ }
91
+
92
+ .is-resizing &,
93
+ &:hover, &:focus {
94
+ &::before {
95
+ background: @component-color-focus;
96
+ }
97
+
98
+ >i {
99
+ color: @component-color-focus;
100
+ display: block;
101
+ &::before{
102
+ scale: 2;
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+
109
+
110
+
111
+ // Global styles applied when resizing to prevent text selection
112
+ body.no-select {
113
+ user-select: none;
114
+ -webkit-user-select: none;
115
+ -moz-user-select: none;
116
+ -ms-user-select: none;
117
+ }
package/styles/index.less CHANGED
@@ -59,6 +59,7 @@
59
59
  @import '_search-header.less';
60
60
  @import '_static-assets-file-picker.less';
61
61
  @import '_asset-property-list.less';
62
+ @import '_resizable-grid.less';
62
63
 
63
64
  @import '_panels.less';
64
65
  @import '_asset-table.less';
@@ -105,6 +105,7 @@
105
105
  @c8y-icon-dark-wm-b2b: "\e967";
106
106
  @c8y-icon-dark-wm-dynamicapps: "\e968";
107
107
  @c8y-icon-dark-wm-integration: "\e969";
108
+ @c8y-icon-dark-analytics-smart-rules: "\e96a";
108
109
 
109
110
  // light icons
110
111
  @c8y-icon-light-aab-icon-model: "\e900";
@@ -195,4 +196,4 @@
195
196
  @c8y-icon-light-users: "\e954";
196
197
  @c8y-icon-light-waste-bin: "\e955";
197
198
  @c8y-icon-light-wm-integration: "\e956";
198
-
199
+ @c8y-icon-light-analytics-smart-rules: "\e957";