@dev-tcloud/tcloud-ui 4.0.0 → 4.1.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.
Files changed (50) hide show
  1. package/README.md +11 -0
  2. package/esm2022/lib/_directives/currency/currency.directive.mjs +7 -7
  3. package/esm2022/lib/_directives/directives.module.mjs +43 -7
  4. package/esm2022/lib/_directives/tcloud-access/tcloud-ui-check-access.directive.mjs +66 -0
  5. package/esm2022/lib/_directives/tcloud-access/tcloud-ui-ng-check-access.directive.mjs +50 -0
  6. package/esm2022/lib/_directives/tcloud-access/tcloud-ui-ng-feature-flags.directive.mjs +44 -0
  7. package/esm2022/lib/_directives/tcloud-ui-digit-only.directive.mjs +64 -0
  8. package/esm2022/lib/_directives/tcloud-ui-highlight.diretive.mjs +36 -0
  9. package/esm2022/lib/_directives/tcloud-ui-ip-mask.directive.mjs +54 -0
  10. package/esm2022/lib/_interfaces/user.service.interface.mjs +2 -0
  11. package/esm2022/lib/_modules/tcloud-ui-progress-bar/tcloud-ui-progress-bar.component.mjs +2 -2
  12. package/esm2022/lib/_modules/tcloud-ui-scroll-box/tcloud-ui-scroll-box.component.mjs +2 -2
  13. package/esm2022/lib/_services/tcloud-ui-check-access.service.mjs +170 -0
  14. package/esm2022/lib/tcloud-ui.config.mjs +2 -0
  15. package/esm2022/lib/tcloud-ui.module.mjs +13 -1
  16. package/esm2022/public-api.mjs +9 -1
  17. package/fesm2022/dev-tcloud-tcloud-ui.mjs +522 -15
  18. package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
  19. package/lib/_directives/currency/currency.directive.d.ts +3 -3
  20. package/lib/_directives/directives.module.d.ts +7 -1
  21. package/lib/_directives/tcloud-access/tcloud-ui-check-access.directive.d.ts +17 -0
  22. package/lib/_directives/tcloud-access/tcloud-ui-ng-check-access.directive.d.ts +15 -0
  23. package/lib/_directives/tcloud-access/tcloud-ui-ng-feature-flags.directive.d.ts +15 -0
  24. package/lib/_directives/tcloud-ui-digit-only.directive.d.ts +12 -0
  25. package/lib/_directives/tcloud-ui-highlight.diretive.d.ts +11 -0
  26. package/lib/_directives/tcloud-ui-ip-mask.directive.d.ts +10 -0
  27. package/lib/_interfaces/user.service.interface.d.ts +3 -0
  28. package/lib/_services/tcloud-ui-check-access.service.d.ts +15 -0
  29. package/lib/tcloud-ui.config.d.ts +7 -0
  30. package/lib/tcloud-ui.module.d.ts +3 -0
  31. package/package.json +1 -1
  32. package/public-api.d.ts +8 -0
  33. package/scss/tcloud/custom/buttons.scss +7 -3
  34. package/scss/tcloud/custom/colors.scss +8 -0
  35. package/scss/tcloud/custom/mixins.scss +143 -143
  36. package/scss/tcloud/custom/variables.scss +4 -1
  37. package/scss/tcloud/disaster-recovery/colors.scss +15 -0
  38. package/scss/tcloud/disaster-recovery/layout.scss +14 -0
  39. package/scss/tcloud/disaster-recovery/styles.scss +2 -0
  40. package/scss/tcloud/prime/cards-products.scss +332 -0
  41. package/scss/tcloud/prime/left-navigation.scss +328 -0
  42. package/scss/tcloud/prime/styles.scss +3 -0
  43. package/scss/tcloud/prime/tcloud-prime.scss +3872 -0
  44. package/scss/tcloud/standard/left-navigation.scss +48 -0
  45. package/scss/tcloud/standard/styles.scss +3 -0
  46. package/scss/tcloud/standard/tcloud-standard.scss +126 -0
  47. package/scss/tcloud/standard/top-navigation.scss +61 -0
  48. package/scss/tcloud/styles.scss +7 -5
  49. package/scss/tcloud/tcloud-ui.scss +8 -0
  50. package/scss/tcloud/iaas/forms.scss +0 -18
@@ -4,12 +4,12 @@
4
4
  // ===============================================
5
5
 
6
6
  @mixin bold {
7
- font-weight: bold;
7
+ font-weight: bold;
8
8
  }
9
9
 
10
10
 
11
11
  @mixin uppercase {
12
- text-transform: uppercase;
12
+ text-transform: uppercase;
13
13
  }
14
14
 
15
15
 
@@ -19,7 +19,7 @@
19
19
  // ===============================================
20
20
 
21
21
  @mixin test($args...){
22
- border:1px solid $args
22
+ border:1px solid $args
23
23
  }
24
24
 
25
25
 
@@ -29,42 +29,42 @@
29
29
  // ===============================================
30
30
 
31
31
  @mixin brdr($color: var(--tc-gray-200)) {
32
- border: 1px solid $color;
32
+ border: 1px solid $color;
33
33
  }
34
34
 
35
35
  @mixin bd-bottom($color: var(--tc-gray-200)) {
36
- border-bottom: 1px solid $color;
36
+ border-bottom: 1px solid $color;
37
37
  }
38
38
 
39
39
  @mixin bd-top($color: var(--tc-gray-200)) {
40
- border-top: 1px solid $color;
40
+ border-top: 1px solid $color;
41
41
  }
42
42
 
43
43
  @mixin bd-rgt($color: var(--tc-gray-200)) {
44
- border-right: 1px solid $color;
44
+ border-right: 1px solid $color;
45
45
  }
46
46
 
47
47
  @mixin bd-lft($color: var(--tc-gray-200)) {
48
- border-left: 1px solid $color;
48
+ border-left: 1px solid $color;
49
49
  }
50
50
 
51
51
 
52
52
  @mixin arrow-top ($size, $color){
53
- content: '';
54
- height: 0;
55
- width: 0;
56
- border-style: solid;
57
- border-color: transparent transparent $color transparent;
58
- border-width: 0 $size $size $size;
53
+ content: '';
54
+ height: 0;
55
+ width: 0;
56
+ border-style: solid;
57
+ border-color: transparent transparent $color transparent;
58
+ border-width: 0 $size $size $size;
59
59
  }
60
60
 
61
61
  @mixin arrow-bottom ($size, $color){
62
- content: '';
63
- height: 0;
64
- width: 0;
65
- border-style: solid;
66
- border-color: $color transparent transparent transparent;
67
- border-width: $size $size 0 $size;
62
+ content: '';
63
+ height: 0;
64
+ width: 0;
65
+ border-style: solid;
66
+ border-color: $color transparent transparent transparent;
67
+ border-width: $size $size 0 $size;
68
68
  }
69
69
 
70
70
 
@@ -75,12 +75,12 @@
75
75
  // ===============================================
76
76
 
77
77
  @mixin bold {
78
- font-weight: bold;
78
+ font-weight: bold;
79
79
  }
80
80
 
81
81
 
82
82
  @mixin uppercase {
83
- text-transform: uppercase;
83
+ text-transform: uppercase;
84
84
  }
85
85
 
86
86
  // ===============================================
@@ -88,13 +88,13 @@
88
88
  // ===============================================
89
89
 
90
90
  @mixin test($args...) {
91
- border: 1px solid $args;
91
+ border: 1px solid $args;
92
92
  }
93
93
 
94
94
  @mixin flex-center {
95
- display: flex;
96
- align-items: center;
97
- justify-content: center;
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: center;
98
98
  }
99
99
 
100
100
  // ===============================================
@@ -102,13 +102,13 @@ justify-content: center;
102
102
  // ===============================================
103
103
 
104
104
  @mixin bold {
105
- font-weight: bold;
105
+ font-weight: bold;
106
106
  }
107
107
 
108
108
  @mixin ellipsis {
109
- text-overflow: ellipsis; /* enables ellipsis */
110
- white-space: nowrap; /* keeps the text in a single line */
111
- overflow: hidden; /* keeps the element from overflowing its parent */
109
+ text-overflow: ellipsis; /* enables ellipsis */
110
+ white-space: nowrap; /* keeps the text in a single line */
111
+ overflow: hidden; /* keeps the element from overflowing its parent */
112
112
  }
113
113
 
114
114
  // ===============================================
@@ -116,53 +116,53 @@ overflow: hidden; /* keeps the element from overflowing its parent */
116
116
  // ===============================================
117
117
 
118
118
  @mixin arrow-top($size, $color) {
119
- content: '';
120
- height: 0;
121
- width: 0;
122
- border-style: solid;
123
- border-color: transparent transparent $color transparent;
124
- border-width: 0 $size $size $size;
119
+ content: '';
120
+ height: 0;
121
+ width: 0;
122
+ border-style: solid;
123
+ border-color: transparent transparent $color transparent;
124
+ border-width: 0 $size $size $size;
125
125
  }
126
126
 
127
127
  @mixin arrow-bottom($size, $color) {
128
- content: '';
129
- height: 0;
130
- width: 0;
131
- border-style: solid;
132
- border-color: $color transparent transparent transparent;
133
- border-width: $size $size 0 $size;
128
+ content: '';
129
+ height: 0;
130
+ width: 0;
131
+ border-style: solid;
132
+ border-color: $color transparent transparent transparent;
133
+ border-width: $size $size 0 $size;
134
134
  }
135
135
 
136
136
  @mixin thin-scroll-bar() {
137
- &::-webkit-scrollbar {
138
- width: 10px;
139
- }
140
- /* Track */
141
- &::-webkit-scrollbar-track {
142
- background: var(--tc-gray-200);
143
- border-radius: 10px;
144
- }
145
- /* Handle */
146
- &::-webkit-scrollbar-thumb {
147
- background: var(--tc-gray-300);
148
- border-radius: 10px;
149
- }
150
- /* Handle on hover */
151
- &::-webkit-scrollbar-thumb:hover {
152
- background: var(--tc-gray-400);
153
- }
137
+ &::-webkit-scrollbar {
138
+ width: 10px;
139
+ }
140
+ /* Track */
141
+ &::-webkit-scrollbar-track {
142
+ background: var(--tc-gray-200);
143
+ border-radius: 10px;
144
+ }
145
+ /* Handle */
146
+ &::-webkit-scrollbar-thumb {
147
+ background: var(--tc-gray-300);
148
+ border-radius: 10px;
149
+ }
150
+ /* Handle on hover */
151
+ &::-webkit-scrollbar-thumb:hover {
152
+ background: var(--tc-gray-400);
153
+ }
154
154
  }
155
155
 
156
156
  @mixin bdr-bottom( $sz, $clr) {
157
- border-bottom: 1px solid $clr;
158
- margin-bottom: $sz;
159
- padding-bottom: $sz;
157
+ border-bottom: 1px solid $clr;
158
+ margin-bottom: $sz;
159
+ padding-bottom: $sz;
160
160
  }
161
161
 
162
162
  @mixin flex-center {
163
- display: flex;
164
- justify-content: center;
165
- align-items: center;
163
+ display: flex;
164
+ justify-content: center;
165
+ align-items: center;
166
166
  }
167
167
 
168
168
  // ===============================================
@@ -170,150 +170,150 @@ align-items: center;
170
170
  // ===============================================
171
171
 
172
172
  @mixin prime-color {
173
- // @include prime-color;
174
- color: var(--tc-primary) !important;
173
+ // @include prime-color;
174
+ color: var(--tc-primary) !important;
175
175
  }
176
176
 
177
177
  @mixin prime-gray-100 {
178
- // @include prime-gray-100;
179
- color: var(--tc-gray-100) !important;
178
+ // @include prime-gray-100;
179
+ color: var(--tc-gray-100) !important;
180
180
  }
181
181
 
182
182
  @mixin prime-gray-50 {
183
- // @include prime-gray-50;
184
- color: var(--tc-gray-50) !important;
183
+ // @include prime-gray-50;
184
+ color: var(--tc-gray-50) !important;
185
185
  }
186
186
 
187
187
 
188
188
 
189
189
 
190
190
  @mixin prime-bg {
191
- // @include prime-bg;
192
- background: var(--tc-primary) !important;
191
+ // @include prime-bg;
192
+ background: var(--tc-primary) !important;
193
193
  }
194
194
 
195
195
  @mixin prime-bgc {
196
- // @include prime-bgc;
197
- background-color: var(--tc-primary) !important;
196
+ // @include prime-bgc;
197
+ background-color: var(--tc-primary) !important;
198
198
  }
199
199
 
200
200
  @mixin prime-bg-100 {
201
- // @include prime-bg-100;
202
- background: var(--tc-gray-100) !important;
201
+ // @include prime-bg-100;
202
+ background: var(--tc-gray-100) !important;
203
203
  }
204
204
 
205
205
  @mixin prime-bg-50 {
206
- // @include prime-bg-50;
207
- background: var(--tc-gray-50) !important;
206
+ // @include prime-bg-50;
207
+ background: var(--tc-gray-50) !important;
208
208
  }
209
209
 
210
210
  @mixin prime-bg-10 {
211
- // @include prime-bg-10;
212
- background: var(--tc-gray-100) !important;
211
+ // @include prime-bg-10;
212
+ background: var(--tc-gray-100) !important;
213
213
  }
214
214
 
215
215
 
216
216
 
217
217
 
218
218
  @mixin prime-bdr {
219
- // @include prime-color;
220
- border-color: var(--tc-primary) !important;
219
+ // @include prime-color;
220
+ border-color: var(--tc-primary) !important;
221
221
  }
222
222
 
223
223
  @mixin prime-bdr-100 {
224
- // @include prime-bdr-100;
225
- border-color: var(--tc-gray-100) !important;
224
+ // @include prime-bdr-100;
225
+ border-color: var(--tc-gray-100) !important;
226
226
  }
227
227
 
228
228
  @mixin prime-bdr-50 {
229
- // @include prime-bdr-50;
230
- border-color: var(--tc-gray-50) !important;
229
+ // @include prime-bdr-50;
230
+ border-color: var(--tc-gray-50) !important;
231
231
  }
232
232
 
233
233
 
234
234
 
235
235
 
236
236
  @mixin prime-black {
237
- // @include prime-black;
238
- color: var(--black) !important;
237
+ // @include prime-black;
238
+ color: var(--black) !important;
239
239
  }
240
240
 
241
241
  @mixin prime-white {
242
- // @include prime-white;
243
- color: var(--white) !important;
242
+ // @include prime-white;
243
+ color: var(--white) !important;
244
244
  }
245
245
 
246
246
  @mixin prime-mkt-gradient {
247
- $tcprimary: var(--tc-primary);
248
- $tcprimary2: var(--tc-primary2);
249
-
250
- // @include prime-mkt-gradient;
251
- /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6b48ff+0,362480+100 */
252
- background: $tcprimary!important; /* Old browsers */
253
- background: -moz-linear-gradient(left, $tcprimary 0%, $tcprimary2 100%)!important; /* FF3.6-15 */
254
- background: -webkit-linear-gradient(left, $tcprimary 0%,$tcprimary2 100%)!important; /* Chrome10-25,Safari5.1-6 */
255
- background: linear-gradient(to right, $tcprimary 0%,$tcprimary2 100%)!important; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
256
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=$tcprimary, endColorstr=$tcprimary2,GradientType=1 )!important; /* IE6-9 */
247
+ $tcprimary: var(--tc-primary);
248
+ $tcprimary2: var(--tc-primary2);
249
+
250
+ // @include prime-mkt-gradient;
251
+ /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6b48ff+0,362480+100 */
252
+ background: $tcprimary!important; /* Old browsers */
253
+ background: -moz-linear-gradient(left, $tcprimary 0%, $tcprimary2 100%)!important; /* FF3.6-15 */
254
+ background: -webkit-linear-gradient(left, $tcprimary 0%,$tcprimary2 100%)!important; /* Chrome10-25,Safari5.1-6 */
255
+ background: linear-gradient(to right, $tcprimary 0%,$tcprimary2 100%)!important; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
256
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=$tcprimary, endColorstr=$tcprimary2,GradientType=1 )!important; /* IE6-9 */
257
257
  }
258
258
 
259
259
  @mixin prime-bg-gradient {
260
- $tcprimary: var(--tc-primary);
261
- // @include prime-bg-gradient;
262
- /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6b48ff+0,7151ff+100 */
263
- background: $tcprimary; /* Old browsers */
264
- background: -moz-linear-gradient(left, $tcprimary 0%, $tcprimary 100%); /* FF3.6-15 */
265
- background: -webkit-linear-gradient(left, $tcprimary 0%,$tcprimary 100%); /* Chrome10-25,Safari5.1-6 */
266
- background: linear-gradient(to right, $tcprimary 0%,$tcprimary 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
267
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=$tcprimary, endColorstr=$tcprimary,GradientType=1 ); /* IE6-9 */
260
+ $tcprimary: var(--tc-primary);
261
+ // @include prime-bg-gradient;
262
+ /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6b48ff+0,7151ff+100 */
263
+ background: $tcprimary; /* Old browsers */
264
+ background: -moz-linear-gradient(left, $tcprimary 0%, $tcprimary 100%); /* FF3.6-15 */
265
+ background: -webkit-linear-gradient(left, $tcprimary 0%,$tcprimary 100%); /* Chrome10-25,Safari5.1-6 */
266
+ background: linear-gradient(to right, $tcprimary 0%,$tcprimary 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
267
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=$tcprimary, endColorstr=$tcprimary,GradientType=1 ); /* IE6-9 */
268
268
  }
269
269
 
270
270
 
271
271
  @mixin prime-title {
272
- // @include prime-title;
273
- font-size: 20px;
274
- font-weight: bold;
275
- text-transform: uppercase;
276
- padding-bottom: 10px;
277
- border-bottom: 1px solid var(--tc-gray-50);
278
- margin-bottom: 20px;
272
+ // @include prime-title;
273
+ font-size: 20px;
274
+ font-weight: bold;
275
+ text-transform: uppercase;
276
+ padding-bottom: 10px;
277
+ border-bottom: 1px solid var(--tc-gray-50);
278
+ margin-bottom: 20px;
279
279
  }
280
280
 
281
281
 
282
282
  @mixin prime-subtitle {
283
- // @include prime-subtitle;
284
- font-size: 16px !important;
285
- text-transform: uppercase !important;
286
- border-bottom: 1px solid var(--tc-gray-50) !important;
287
- padding-bottom: 10px !important;
288
- margin-bottom: 20px !important;
283
+ // @include prime-subtitle;
284
+ font-size: 16px !important;
285
+ text-transform: uppercase !important;
286
+ border-bottom: 1px solid var(--tc-gray-50) !important;
287
+ padding-bottom: 10px !important;
288
+ margin-bottom: 20px !important;
289
289
  }
290
290
 
291
291
  @mixin ico-menu($img, $hgt, $wdt) {
292
- background: url(/assets/img/menu/#{$img}.svg);
293
- height: $hgt;
294
- width: $wdt;
295
- background-repeat: no-repeat;
296
- background-position: center;
297
-
298
- &::before {
299
- display: none;
300
- }
301
-
292
+ background: url(/assets/img/menu/#{$img}.svg);
293
+ height: $hgt;
294
+ width: $wdt;
295
+ background-repeat: no-repeat;
296
+ background-position: center;
297
+
298
+ &::before {
299
+ display: none;
300
+ }
301
+
302
302
  }
303
303
 
304
304
  @mixin ico-topmenu($img, $hgt, $wdt) {
305
- background: url(/assets/img/topmenu/#{$img}.svg);
306
- height: $hgt;
307
- width: $wdt;
308
- background-repeat: no-repeat;
309
- background-position: center;
310
-
311
- &::before {
312
- display: none !important;
313
- }
314
-
305
+ background: url(/assets/img/topmenu/#{$img}.svg);
306
+ height: $hgt;
307
+ width: $wdt;
308
+ background-repeat: no-repeat;
309
+ background-position: center;
310
+
311
+ &::before {
312
+ display: none !important;
313
+ }
314
+
315
315
  }
316
316
 
317
317
  @mixin svg-prime {
318
- filter: invert(37%) sepia(99%) saturate(5131%) hue-rotate(243deg) brightness(100%) contrast(103%);
318
+ filter: invert(37%) sepia(99%) saturate(5131%) hue-rotate(243deg) brightness(100%) contrast(103%);
319
319
  }
@@ -1,7 +1,10 @@
1
1
  @import './colors.scss';
2
2
 
3
3
 
4
-
4
+ :root {
5
+ //--font-awesome: 'Font Awesome 5 free';
6
+ --font-awesome: 'Font Awesome 6 Pro';
7
+ }
5
8
 
6
9
  // ==================================================
7
10
  // Old Colors
@@ -0,0 +1,15 @@
1
+ :root {
2
+
3
+ body.tc-disaster-recovery{
4
+ // theme color
5
+ /*
6
+ --tc-primary: var(--orange);
7
+ --tc-primary-lighten: #ffba3a;
8
+
9
+ --tc-primary2: #d89c2c;
10
+ --tc-complemt: #ecb54e;
11
+ --tc-complemt-2: #b57a0e;
12
+ --tc-complemt-3: #c39643;
13
+ */
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ body.tc-disaster-recovery {
2
+
3
+ .gray-bg, .bg-muted {
4
+ background-color: #ffeed9;
5
+ }
6
+
7
+ nav.navbar{
8
+ .tcloud-name{
9
+ color: #fff;
10
+ }
11
+ background-color: var(--orange) !important;
12
+ }
13
+
14
+ }
@@ -0,0 +1,2 @@
1
+ @import 'colors.scss';
2
+ @import 'layout.scss';