@dev-tcloud/tcloud-ui 5.0.5 → 5.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 (44) hide show
  1. package/fesm2022/dev-tcloud-tcloud-ui.mjs +7085 -6008
  2. package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
  3. package/lib/_modules/tcloud-ui-modal/tcloud-ui-modal.component.d.ts +1 -1
  4. package/lib/revitalizacao/components/tc-rev-breadcrumb/tc-rev-breadcrumb.component.d.ts +12 -0
  5. package/lib/revitalizacao/components/tc-rev-breadcrumb/tc-rev-breadcrumb.service.d.ts +16 -0
  6. package/lib/revitalizacao/components/tc-rev-button/tc-rev-button.directive.d.ts +13 -0
  7. package/lib/revitalizacao/components/tc-rev-calendar/tc-rev-calendar.component.d.ts +43 -0
  8. package/lib/revitalizacao/components/tc-rev-card/tc-rev-card.component.d.ts +5 -0
  9. package/lib/revitalizacao/components/tc-rev-card-title/tc-rev-card-title.component.d.ts +6 -0
  10. package/lib/revitalizacao/components/tc-rev-components.module.d.ts +31 -0
  11. package/lib/revitalizacao/components/tc-rev-dropdown/tc-rev-dropdown.component.d.ts +33 -0
  12. package/lib/revitalizacao/components/tc-rev-dropdown-multi-level/tc-rev-dropdown-multi-level.component.d.ts +41 -0
  13. package/lib/revitalizacao/components/tc-rev-dropdown-multi-level/tc-rev-dropdown-sub-menu/tc-rev-dropdown-sub-menu.component.d.ts +17 -0
  14. package/lib/revitalizacao/components/tc-rev-empty-content/tc-rev-empty-content.component.d.ts +5 -0
  15. package/lib/revitalizacao/components/tc-rev-faq/tc-rev-faq.component.d.ts +12 -0
  16. package/lib/revitalizacao/components/tc-rev-icon-button/tc-rev-icon-button.directive.d.ts +12 -0
  17. package/lib/revitalizacao/components/tc-rev-input/tc-rev-input.directive.d.ts +10 -0
  18. package/lib/revitalizacao/components/tc-rev-input-container/tc-rev-input-container.component.d.ts +9 -0
  19. package/lib/revitalizacao/components/tc-rev-loading/tc-rev-loading.component.d.ts +6 -0
  20. package/lib/revitalizacao/components/tc-rev-message/tc-rev-message.component.d.ts +7 -0
  21. package/lib/revitalizacao/components/tc-rev-multi-input/tc-rev-multi-input.component.d.ts +22 -0
  22. package/lib/revitalizacao/components/tc-rev-pagination/tc-rev-pagination.component.d.ts +14 -0
  23. package/lib/revitalizacao/components/tc-rev-search-input/tc-rev-search-input.component.d.ts +10 -0
  24. package/lib/revitalizacao/components/tc-rev-side-drawer/tc-rev-side-drawer.component.d.ts +17 -0
  25. package/lib/revitalizacao/components/tc-rev-slide-toggle/tc-rev-slide-toggle.directive.d.ts +5 -0
  26. package/lib/revitalizacao/components/tc-rev-tab-group/tc-rev-tab-group.component.d.ts +12 -0
  27. package/lib/revitalizacao/components/tc-rev-tab-group/tc-rev-tab-item/tc-rev-tab-item.component.d.ts +9 -0
  28. package/lib/revitalizacao/components/tc-rev-tag/tag-colors.enum.d.ts +29 -0
  29. package/lib/revitalizacao/components/tc-rev-tag/tc-rev-tag.component.d.ts +10 -0
  30. package/lib/revitalizacao/components/tc-rev-toast/tc-rev-toast.component.d.ts +7 -0
  31. package/lib/revitalizacao/components/tc-sub-navbar/component/tc-sub-navbar-item/tc-sub-navbar-item.component.d.ts +13 -0
  32. package/lib/revitalizacao/components/tc-sub-navbar/tc-sub-navbar.component.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/public-api.d.ts +63 -37
  35. package/scss/tcloud-revitalizacao/_tc-rev-border.scss +1 -1
  36. package/scss/tcloud-revitalizacao/_tc-rev-colors.scss +0 -1
  37. package/scss/tcloud-revitalizacao/_tc-rev-sizes.scss +4 -3
  38. package/scss/tcloud-revitalizacao/_tc-rev-themes.scss +22 -105
  39. package/scss/tcloud-revitalizacao/_tc-rev-typography.scss +1 -1
  40. package/scss/tcloud-revitalizacao/components/_tc-rev-ag-grid-table.scss +76 -0
  41. package/scss/tcloud-revitalizacao/components/_tc-rev-button.scss +85 -40
  42. package/scss/tcloud-revitalizacao/components/_tc-rev-input-control.scss +151 -53
  43. package/scss/tcloud-revitalizacao/components/_tc-rev-tab-item.scss +44 -36
  44. package/scss/tcloud-revitalizacao/tc-rev-styles.scss +2 -1
@@ -1,26 +1,42 @@
1
- .tc-rev-input-control
2
- {
3
- border: 1px solid var(--c-neutral-400);
4
- border-radius: var(--bor-radius-pill);
5
- color: var(--c-neutral-900);
6
- display: inline-block;
7
- font-family: var(--f-family);
8
- font-size: var(--f-size-14);
9
- line-height: var(--l-height-20);
10
- outline: none;
11
- height: var(--size-40);
12
- transition: 200ms ease;
13
- padding: 0 var(--size-16);
14
- max-width: 100%;
1
+ .tc-rev-input-control {
2
+ border: 1px solid var(--c-neutral-400);
3
+ border-radius: var(--bor-radius-pill);
4
+ color: var(--c-neutral-900);
5
+ display: inline-block;
6
+ font-family: var(--f-family);
7
+ font-size: var(--f-size-14);
8
+ line-height: var(--l-height-20);
9
+ outline: none;
10
+ height: var(--size-40);
11
+ transition: 200ms ease;
12
+ padding: 0 var(--size-16);
13
+ max-width: 100%;
14
+
15
+ &--full-width {
16
+ width: 100%;
17
+ }
18
+
19
+ &.error {
20
+ border-color: var(--c-danger-500);
21
+ }
22
+
23
+ &:hover,
24
+ &:focus {
25
+ border-color: var(--c-primary-500);
26
+ }
27
+
28
+ &:disabled {
29
+ border-color: var(--c-neutral-400);
15
30
 
16
- &:hover, &:focus
17
- {
18
- border-color: var(--c-primary-500);
31
+ &:hover,
32
+ &:focus,
33
+ &.error {
34
+ border-color: var(--c-neutral-400);
19
35
  }
36
+ }
20
37
  }
21
38
 
22
- .tc-rev-input-label
23
- {
39
+ .tc-rev-input-label {
24
40
  font-family: var(--f-family);
25
41
  font-size: var(--f-size-14);
26
42
  font-weight: var(--f-weight-600);
@@ -29,16 +45,38 @@
29
45
  margin: 0;
30
46
  }
31
47
 
32
- .tc-rev-search-input-container
33
- {
48
+ .tc-rev-input-container {
49
+ &--row {
50
+ align-items: center;
51
+ display: flex;
52
+ gap: var(--size-8);
53
+ justify-content: flex-start;
54
+
55
+ label {
56
+ margin: 0;
57
+ }
58
+ }
59
+
60
+ &--column {
61
+ align-items: flex-start;
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: var(--size-4);
65
+
66
+ label {
67
+ margin: 0;
68
+ }
69
+ }
70
+ }
71
+
72
+ .tc-rev-search-input-container {
34
73
  position: relative;
35
74
  max-height: var(--size-40);
36
75
  min-height: var(--size-40);
37
76
  height: var(--size-40);
38
77
  min-width: 7.5rem;
39
78
 
40
- .tc-rev-search-input-control
41
- {
79
+ .tc-rev-search-input-control {
42
80
  border: 1px solid var(--c-neutral-400);
43
81
  border-radius: var(--bor-radius-pill);
44
82
  color: var(--c-neutral-900);
@@ -57,14 +95,13 @@
57
95
  width: 100%;
58
96
  z-index: 1;
59
97
 
60
- &:hover, &:focus
61
- {
62
- border-color: var(--c-primary-500);
98
+ &:hover,
99
+ &:focus {
100
+ border-color: var(--c-primary-500);
63
101
  }
64
102
  }
65
103
 
66
- .tc-rev-search-input-btn
67
- {
104
+ .tc-rev-search-input-btn {
68
105
  cursor: pointer;
69
106
  display: block;
70
107
  position: absolute;
@@ -73,25 +110,23 @@
73
110
  z-index: 2;
74
111
  font-size: var(--f-size-16);
75
112
  background-color: var(--c-primary-500);
76
- border-radius: var(--bor-radius-rounded);
113
+ border-radius: var(--bor-radius-rounded);
77
114
  border: none;
78
115
  width: var(--size-32);
79
116
  height: var(--size-32);
80
117
  color: var(--c-neutral-50);
81
118
  font-size: var(--f-size-16);
82
- }
119
+ }
83
120
  }
84
121
 
85
- .tc-rev-input-icon-container
86
- {
122
+ .tc-rev-input-icon-container {
87
123
  position: relative;
88
124
  max-height: var(--size-40);
89
125
  min-height: var(--size-40);
90
126
  height: var(--size-40);
91
127
  min-width: 7.5rem;
92
128
 
93
- .tc-rev-input-icon-control
94
- {
129
+ .tc-rev-input-icon-control {
95
130
  border: 1px solid var(--c-neutral-400);
96
131
  border-radius: var(--bor-radius-pill);
97
132
  color: var(--c-neutral-900);
@@ -110,14 +145,13 @@
110
145
  width: 100%;
111
146
  z-index: 1;
112
147
 
113
- &:hover, &:focus
114
- {
115
- border-color: var(--c-primary-500);
148
+ &:hover,
149
+ &:focus {
150
+ border-color: var(--c-primary-500);
116
151
  }
117
152
  }
118
153
 
119
- .tc-rev-input-icon
120
- {
154
+ .tc-rev-input-icon {
121
155
  align-content: center;
122
156
  display: block;
123
157
  position: absolute;
@@ -128,16 +162,16 @@
128
162
  width: var(--size-32);
129
163
  height: var(--size-32);
130
164
  text-align: center;
131
- }
165
+ }
132
166
  }
133
167
 
134
-
135
168
  // RESET RADIO INPUT START
136
- input[type=radio].tc-rev-input-control {
169
+ input[type='radio'].tc-rev-input-control {
137
170
  position: initial;
138
171
  margin: initial;
139
172
 
140
- &:after, &:before {
173
+ &:after,
174
+ &:before {
141
175
  content: '';
142
176
  position: initial;
143
177
  border-radius: initial;
@@ -163,7 +197,7 @@ input[type=radio].tc-rev-input-control {
163
197
  }
164
198
  // RESET RADIO INPUT END
165
199
 
166
- input[type="radio"].tc-rev-input-control {
200
+ input[type='radio'].tc-rev-input-control {
167
201
  appearance: none;
168
202
  -webkit-appearance: none;
169
203
  -moz-appearance: none;
@@ -179,11 +213,11 @@ input[type="radio"].tc-rev-input-control {
179
213
  position: relative;
180
214
  cursor: pointer;
181
215
 
182
- &:checked {
216
+ &:checked {
183
217
  border: 1px solid var(--c-primary-500);
184
218
  }
185
219
 
186
- &:checked::before {
220
+ &:checked::before {
187
221
  content: '';
188
222
  background-color: var(--c-primary-500);
189
223
  border-radius: var(--bor-radius-rounded);
@@ -196,11 +230,12 @@ input[type="radio"].tc-rev-input-control {
196
230
  }
197
231
  }
198
232
 
199
- input[type=checkbox].tc-rev-input-checkbox {
233
+ input[type='checkbox'].tc-rev-input-checkbox {
200
234
  position: initial;
201
235
  margin: initial;
202
236
 
203
- &:after, &:before {
237
+ &:after,
238
+ &:before {
204
239
  content: '';
205
240
  position: initial;
206
241
  border-radius: initial;
@@ -226,7 +261,7 @@ input[type=checkbox].tc-rev-input-checkbox {
226
261
 
227
262
  left: initial;
228
263
  top: initial;
229
- border: initial;
264
+ border: initial;
230
265
  border-width: initial;
231
266
  transform: initial;
232
267
  }
@@ -236,7 +271,7 @@ input[type=checkbox].tc-rev-input-checkbox {
236
271
  }
237
272
  }
238
273
 
239
- input[type=checkbox].tc-rev-input-checkbox {
274
+ input[type='checkbox'].tc-rev-input-checkbox {
240
275
  appearance: none;
241
276
  -webkit-appearance: none;
242
277
  width: 20px;
@@ -292,7 +327,70 @@ input[type=checkbox].tc-rev-input-checkbox {
292
327
 
293
328
  &:checked:after {
294
329
  background: #fff;
295
- mask: url('data:image/svg+xml;utf8,<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 5.5L5 9L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
296
- -webkit-mask: url('data:image/svg+xml;utf8,<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 5.5L5 9L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
330
+ mask: url('data:image/svg+xml;utf8,<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 5.5L5 9L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
331
+ no-repeat center/contain;
332
+ -webkit-mask: url('data:image/svg+xml;utf8,<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 5.5L5 9L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
333
+ no-repeat center/contain;
297
334
  }
298
- }
335
+ }
336
+
337
+ // RESET SLIDE TOGGLE START
338
+ input.tc-rev-slide-toggle {
339
+ appearance: none;
340
+ -webkit-appearance: none;
341
+ -moz-appearance: none;
342
+ background: none;
343
+ border: none;
344
+ box-shadow: none;
345
+ margin: 0;
346
+ outline: none;
347
+ padding: 0;
348
+
349
+ &::after {
350
+ content: initial;
351
+ }
352
+
353
+ &:checked:before {
354
+ left: initial;
355
+ top: 2px;
356
+ width: 20px;
357
+ height: 20px;
358
+ border-radius: var(--bor-radius-rounded);
359
+ transform: initial;
360
+ z-index: initial;
361
+ }
362
+ }
363
+ // RESET SLIDE TOGGLE END
364
+
365
+ input.tc-rev-slide-toggle {
366
+ width: 40px;
367
+ height: 24px;
368
+ border-radius: var(--bor-radius-pill);
369
+ background-color: var(--c-neutral-300);
370
+ cursor: pointer;
371
+ position: relative;
372
+ transition: background-color 0.2s ease;
373
+ display: inline-block;
374
+ }
375
+
376
+ input.tc-rev-slide-toggle::before {
377
+ content: '';
378
+ position: absolute;
379
+ top: 50%;
380
+ left: 2px;
381
+ transform: translateY(-50%);
382
+ width: 20px;
383
+ height: 20px;
384
+ border-radius: var(--bor-radius-rounded);
385
+ background-color: var(--c-neutral-50);
386
+ transition: left 0.2s ease, right 0.2s ease;
387
+ }
388
+
389
+ input.tc-rev-slide-toggle:checked {
390
+ background-color: var(--c-primary-500);
391
+ }
392
+
393
+ input.tc-rev-slide-toggle:checked::before {
394
+ left: auto;
395
+ right: 2px;
396
+ }
@@ -1,39 +1,47 @@
1
- .tc-rev-tab-item
2
- {
3
- background-color: var(--c-neutral-50);
4
- border: var(--bor-size-1) solid var(--c-neutral-400);
5
- border-radius: var(--bor-radius-8);
6
- color: var(--c-neutral-900);
7
- cursor: pointer;
8
- font-size: var(--f-size-14);
9
- height: var(--size-40);
10
- line-height: var(--l-height-20);
11
- padding: 0 var(--size-16);
12
- text-wrap: nowrap;
13
- transition: all 200ms ease;
1
+ .tc-rev-tab-item,
2
+ .tc-rev-tab-item:link {
3
+ align-items: center;
4
+ background-color: var(--c-neutral-50);
5
+ border: var(--bor-size-1) solid var(--c-neutral-400);
6
+ border-radius: var(--bor-radius-8);
7
+ color: var(--c-neutral-900);
8
+ cursor: pointer;
9
+ display: inline-flex;
10
+ font-family: var(--f-family);
11
+ font-size: var(--f-size-14);
12
+ font-weight: 600;
13
+ gap: var(--size-8);
14
+ height: var(--size-40);
15
+ line-height: var(--l-height-20);
16
+ justify-content: center;
17
+ padding: 0 var(--size-16);
18
+ text-wrap: nowrap;
19
+ transition: all 200ms ease;
14
20
 
15
- &:hover, &:focus
16
- {
17
- background-color: var(--c-neutral-200);
18
- border-color: var(--c-neutral-200);
19
- color: var(--c-primary-500);
20
- font-weight: 600;
21
- }
21
+ &:hover,
22
+ &:focus {
23
+ background-color: var(--c-neutral-200);
24
+ border-color: var(--c-neutral-200);
25
+ color: var(--c-primary-500);
26
+ font-weight: 600;
27
+ }
22
28
 
23
- &:active, &.selected, &.active
24
- {
25
- background-color: var(--c-primary-300);
26
- border-color: var(--c-primary-500);
27
- color: var(--c-primary-500);
28
- font-weight: 700;
29
- }
29
+ &:active,
30
+ &.selected,
31
+ &.active {
32
+ background-color: var(--c-primary-300);
33
+ border-color: var(--c-primary-500);
34
+ color: var(--c-primary-500);
35
+ font-weight: 600;
36
+ }
30
37
 
31
- &:disabled
32
- {
33
- background-color: var(--c-neutral-50);
34
- border-color: var(--c-neutral-50);
35
- color: var(--c-neutral-400);
36
- cursor: not-allowed;
37
- font-weight: var(--f-weight-400);
38
- }
39
- }
38
+ &:disabled,
39
+ &.disabled {
40
+ background-color: var(--c-neutral-50);
41
+ border-color: var(--c-neutral-50);
42
+ color: var(--c-neutral-400);
43
+ cursor: not-allowed;
44
+ font-weight: var(--f-weight-400);
45
+ pointer-events: none;
46
+ }
47
+ }
@@ -4,6 +4,7 @@
4
4
  @use './tc-rev-shadow';
5
5
  @use './tc-rev-sizes';
6
6
  @use './tc-rev-typography';
7
+ @use './components/tc-rev-ag-grid-table';
7
8
  @use './components/tc-rev-table';
8
9
  @use './components/tc-rev-button';
9
10
  @use './components/tc-rev-input-control';
@@ -23,4 +24,4 @@
23
24
 
24
25
  .power-bi-container .report-container{
25
26
  height: 1200px;;
26
- }
27
+ }