@dev-tcloud/tcloud-ui 5.0.4 → 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 +7137 -6060
  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 +7 -7
  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 +86 -40
  42. package/scss/tcloud-revitalizacao/components/_tc-rev-input-control.scss +160 -56
  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,25 +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);
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
+ }
14
18
 
15
- &:hover, &:focus
16
- {
17
- border-color: var(--c-primary-500);
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);
30
+
31
+ &:hover,
32
+ &:focus,
33
+ &.error {
34
+ border-color: var(--c-neutral-400);
18
35
  }
36
+ }
19
37
  }
20
38
 
21
- .tc-rev-input-label
22
- {
39
+ .tc-rev-input-label {
23
40
  font-family: var(--f-family);
24
41
  font-size: var(--f-size-14);
25
42
  font-weight: var(--f-weight-600);
@@ -28,16 +45,38 @@
28
45
  margin: 0;
29
46
  }
30
47
 
31
- .tc-rev-search-input-container
32
- {
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 {
33
73
  position: relative;
34
74
  max-height: var(--size-40);
35
75
  min-height: var(--size-40);
36
76
  height: var(--size-40);
37
77
  min-width: 7.5rem;
38
78
 
39
- .tc-rev-search-input-control
40
- {
79
+ .tc-rev-search-input-control {
41
80
  border: 1px solid var(--c-neutral-400);
42
81
  border-radius: var(--bor-radius-pill);
43
82
  color: var(--c-neutral-900);
@@ -56,14 +95,13 @@
56
95
  width: 100%;
57
96
  z-index: 1;
58
97
 
59
- &:hover, &:focus
60
- {
61
- border-color: var(--c-primary-500);
98
+ &:hover,
99
+ &:focus {
100
+ border-color: var(--c-primary-500);
62
101
  }
63
102
  }
64
103
 
65
- .tc-rev-search-input-btn
66
- {
104
+ .tc-rev-search-input-btn {
67
105
  cursor: pointer;
68
106
  display: block;
69
107
  position: absolute;
@@ -72,25 +110,23 @@
72
110
  z-index: 2;
73
111
  font-size: var(--f-size-16);
74
112
  background-color: var(--c-primary-500);
75
- border-radius: var(--bor-radius-rounded);
113
+ border-radius: var(--bor-radius-rounded);
76
114
  border: none;
77
115
  width: var(--size-32);
78
116
  height: var(--size-32);
79
117
  color: var(--c-neutral-50);
80
118
  font-size: var(--f-size-16);
81
- }
119
+ }
82
120
  }
83
121
 
84
- .tc-rev-input-icon-container
85
- {
122
+ .tc-rev-input-icon-container {
86
123
  position: relative;
87
124
  max-height: var(--size-40);
88
125
  min-height: var(--size-40);
89
126
  height: var(--size-40);
90
127
  min-width: 7.5rem;
91
128
 
92
- .tc-rev-input-icon-control
93
- {
129
+ .tc-rev-input-icon-control {
94
130
  border: 1px solid var(--c-neutral-400);
95
131
  border-radius: var(--bor-radius-pill);
96
132
  color: var(--c-neutral-900);
@@ -109,14 +145,13 @@
109
145
  width: 100%;
110
146
  z-index: 1;
111
147
 
112
- &:hover, &:focus
113
- {
114
- border-color: var(--c-primary-500);
148
+ &:hover,
149
+ &:focus {
150
+ border-color: var(--c-primary-500);
115
151
  }
116
152
  }
117
153
 
118
- .tc-rev-input-icon
119
- {
154
+ .tc-rev-input-icon {
120
155
  align-content: center;
121
156
  display: block;
122
157
  position: absolute;
@@ -127,16 +162,16 @@
127
162
  width: var(--size-32);
128
163
  height: var(--size-32);
129
164
  text-align: center;
130
- }
165
+ }
131
166
  }
132
167
 
133
-
134
168
  // RESET RADIO INPUT START
135
- input[type=radio].tc-rev-input-control {
169
+ input[type='radio'].tc-rev-input-control {
136
170
  position: initial;
137
171
  margin: initial;
138
172
 
139
- &:after, &:before {
173
+ &:after,
174
+ &:before {
140
175
  content: '';
141
176
  position: initial;
142
177
  border-radius: initial;
@@ -162,7 +197,7 @@ input[type=radio].tc-rev-input-control {
162
197
  }
163
198
  // RESET RADIO INPUT END
164
199
 
165
- input[type="radio"].tc-rev-input-control {
200
+ input[type='radio'].tc-rev-input-control {
166
201
  appearance: none;
167
202
  -webkit-appearance: none;
168
203
  -moz-appearance: none;
@@ -178,11 +213,11 @@ input[type="radio"].tc-rev-input-control {
178
213
  position: relative;
179
214
  cursor: pointer;
180
215
 
181
- &:checked {
216
+ &:checked {
182
217
  border: 1px solid var(--c-primary-500);
183
218
  }
184
219
 
185
- &:checked::before {
220
+ &:checked::before {
186
221
  content: '';
187
222
  background-color: var(--c-primary-500);
188
223
  border-radius: var(--bor-radius-rounded);
@@ -195,11 +230,12 @@ input[type="radio"].tc-rev-input-control {
195
230
  }
196
231
  }
197
232
 
198
- input[type=checkbox].tc-rev-input-checkbox {
233
+ input[type='checkbox'].tc-rev-input-checkbox {
199
234
  position: initial;
200
235
  margin: initial;
201
236
 
202
- &:after, &:before {
237
+ &:after,
238
+ &:before {
203
239
  content: '';
204
240
  position: initial;
205
241
  border-radius: initial;
@@ -211,6 +247,7 @@ input[type=checkbox].tc-rev-input-checkbox {
211
247
  height: initial;
212
248
  width: initial;
213
249
  left: initial;
250
+ top: initial;
214
251
  margin: initial;
215
252
  border: initial;
216
253
  }
@@ -224,13 +261,17 @@ input[type=checkbox].tc-rev-input-checkbox {
224
261
 
225
262
  left: initial;
226
263
  top: initial;
227
- border: initial;
264
+ border: initial;
228
265
  border-width: initial;
229
266
  transform: initial;
230
267
  }
268
+
269
+ &:checked:after {
270
+ border-color: initial;
271
+ }
231
272
  }
232
273
 
233
- input[type=checkbox].tc-rev-input-checkbox {
274
+ input[type='checkbox'].tc-rev-input-checkbox {
234
275
  appearance: none;
235
276
  -webkit-appearance: none;
236
277
  width: 20px;
@@ -245,7 +286,7 @@ input[type=checkbox].tc-rev-input-checkbox {
245
286
  display: inline-block;
246
287
  vertical-align: middle;
247
288
 
248
- &::before {
289
+ &:before {
249
290
  content: '';
250
291
  display: block;
251
292
  width: 100%;
@@ -259,7 +300,7 @@ input[type=checkbox].tc-rev-input-checkbox {
259
300
  z-index: 1;
260
301
  }
261
302
 
262
- &::after {
303
+ &:after {
263
304
  content: '';
264
305
  display: block;
265
306
  position: absolute;
@@ -280,13 +321,76 @@ input[type=checkbox].tc-rev-input-checkbox {
280
321
  background: var(--c-primary-500);
281
322
  }
282
323
 
283
- &:checked::before {
324
+ &:checked:before {
284
325
  background: var(--c-primary-500);
285
326
  }
286
327
 
287
- &:checked::after {
328
+ &:checked:after {
288
329
  background: #fff;
289
- 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;
290
- -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;
291
334
  }
292
- }
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
+ }