@timus-networks/theme 2.4.285 → 2.4.288

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.
@@ -488,6 +488,24 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
488
488
  }
489
489
  .el-select__wrapper.is-filterable {
490
490
  cursor: text;
491
+ overflow: hidden;
492
+ }
493
+ .el-select__wrapper.is-filterable .el-select__selection {
494
+ overflow: hidden;
495
+ }
496
+ .el-select__wrapper.is-filterable .el-select__input-wrapper {
497
+ flex: 1 1 0;
498
+ min-width: 0;
499
+ max-width: 100%;
500
+ overflow: hidden;
501
+ }
502
+ .el-select__wrapper.is-filterable .el-select__input {
503
+ min-width: 0 !important;
504
+ width: 100% !important;
505
+ max-width: 100%;
506
+ overflow: hidden;
507
+ text-overflow: ellipsis;
508
+ white-space: nowrap;
491
509
  }
492
510
 
493
511
  .el-select__wrapper.is-focused {
@@ -589,17 +607,10 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
589
607
  flex-wrap: wrap;
590
608
  user-select: none;
591
609
  align-items: center;
592
- /* Sonradan ekledim truncate etmek için */
593
- white-space: nowrap;
594
- text-overflow: ellipsis;
595
- width: min-content;
596
- max-width: calc(100% - 120px);
610
+ flex-shrink: 1;
597
611
  }
598
612
  .el-select__selected-item.el-tooltip__trigger {
599
- max-width: min-content;
600
- }
601
- .el-select__selected-item {
602
- /* buraya kadar ekledim truncate etmek için */
613
+ flex-shrink: 0;
603
614
  }
604
615
  .el-select__selected-item .el-tag.el-tag--info {
605
616
  --el-tag-bg-color: var(--el-color-primary-light-1);
@@ -607,12 +618,6 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
607
618
  --el-tag-hover-color: var(--el-color-primary-light-5);
608
619
  --el-tag-text-color: var(--el-color-primary-light-5);
609
620
  }
610
- .el-select__selected-item:has(+ .el-tooltip__trigger) {
611
- max-width: calc(100% - 160px);
612
- }
613
- .el-select__selected-item:has(~ .el-select__input-wrapper.is-hidden) {
614
- max-width: none;
615
- }
616
621
 
617
622
  .el-select__tags-text {
618
623
  display: block;
@@ -628,11 +633,12 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
628
633
  top: 50%;
629
634
  transform: translateY(-50%);
630
635
  width: 100%;
636
+ max-width: 100%;
631
637
  overflow: hidden;
632
638
  text-overflow: ellipsis;
633
639
  white-space: nowrap;
634
640
  color: var(--el-input-text-color, var(--el-text-color-regular));
635
- min-width: 100%;
641
+ min-width: 0;
636
642
  }
637
643
  .el-select__placeholder.is-transparent {
638
644
  user-select: none;
@@ -675,6 +681,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
675
681
  .el-select__input-wrapper.is-hidden {
676
682
  position: absolute;
677
683
  opacity: 0;
684
+ display: none;
678
685
  }
679
686
 
680
687
  .el-select__input {
@@ -824,4 +831,34 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
824
831
 
825
832
  .el-select.wrap .el-select__selection {
826
833
  flex-wrap: wrap;
834
+ }
835
+
836
+ .el-form-items .el-select .el-select__placeholder {
837
+ min-width: 0;
838
+ max-width: 100%;
839
+ }
840
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger) {
841
+ flex: 0 1 auto;
842
+ min-width: 0;
843
+ overflow: hidden;
844
+ max-width: 100%;
845
+ }
846
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger):has(+ .el-select__selected-item.el-tooltip__trigger) {
847
+ max-width: calc(100% - 3rem);
848
+ }
849
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger) .el-tag {
850
+ max-width: 100% !important;
851
+ width: 100%;
852
+ }
853
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item.el-tooltip__trigger {
854
+ flex: 0 0 auto;
855
+ width: auto;
856
+ max-width: none;
857
+ position: static;
858
+ display: inline-flex;
859
+ align-items: center;
860
+ }
861
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item.el-tooltip__trigger .el-tag {
862
+ width: auto !important;
863
+ max-width: none !important;
827
864
  }
@@ -488,6 +488,24 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
488
488
  }
489
489
  .el-select__wrapper.is-filterable {
490
490
  cursor: text;
491
+ overflow: hidden;
492
+ }
493
+ .el-select__wrapper.is-filterable .el-select__selection {
494
+ overflow: hidden;
495
+ }
496
+ .el-select__wrapper.is-filterable .el-select__input-wrapper {
497
+ flex: 1 1 0;
498
+ min-width: 0;
499
+ max-width: 100%;
500
+ overflow: hidden;
501
+ }
502
+ .el-select__wrapper.is-filterable .el-select__input {
503
+ min-width: 0 !important;
504
+ width: 100% !important;
505
+ max-width: 100%;
506
+ overflow: hidden;
507
+ text-overflow: ellipsis;
508
+ white-space: nowrap;
491
509
  }
492
510
 
493
511
  .el-select__wrapper.is-focused {
@@ -589,17 +607,10 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
589
607
  flex-wrap: wrap;
590
608
  user-select: none;
591
609
  align-items: center;
592
- /* Sonradan ekledim truncate etmek için */
593
- white-space: nowrap;
594
- text-overflow: ellipsis;
595
- width: min-content;
596
- max-width: calc(100% - 120px);
610
+ flex-shrink: 1;
597
611
  }
598
612
  .el-select__selected-item.el-tooltip__trigger {
599
- max-width: min-content;
600
- }
601
- .el-select__selected-item {
602
- /* buraya kadar ekledim truncate etmek için */
613
+ flex-shrink: 0;
603
614
  }
604
615
  .el-select__selected-item .el-tag.el-tag--info {
605
616
  --el-tag-bg-color: var(--el-color-primary-light-1);
@@ -607,12 +618,6 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
607
618
  --el-tag-hover-color: var(--el-color-primary-light-5);
608
619
  --el-tag-text-color: var(--el-color-primary-light-5);
609
620
  }
610
- .el-select__selected-item:has(+ .el-tooltip__trigger) {
611
- max-width: calc(100% - 160px);
612
- }
613
- .el-select__selected-item:has(~ .el-select__input-wrapper.is-hidden) {
614
- max-width: none;
615
- }
616
621
 
617
622
  .el-select__tags-text {
618
623
  display: block;
@@ -628,11 +633,12 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
628
633
  top: 50%;
629
634
  transform: translateY(-50%);
630
635
  width: 100%;
636
+ max-width: 100%;
631
637
  overflow: hidden;
632
638
  text-overflow: ellipsis;
633
639
  white-space: nowrap;
634
640
  color: var(--el-input-text-color, var(--el-text-color-regular));
635
- min-width: 100%;
641
+ min-width: 0;
636
642
  }
637
643
  .el-select__placeholder.is-transparent {
638
644
  user-select: none;
@@ -675,6 +681,7 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
675
681
  .el-select__input-wrapper.is-hidden {
676
682
  position: absolute;
677
683
  opacity: 0;
684
+ display: none;
678
685
  }
679
686
 
680
687
  .el-select__input {
@@ -824,4 +831,34 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
824
831
 
825
832
  .el-select.wrap .el-select__selection {
826
833
  flex-wrap: wrap;
834
+ }
835
+
836
+ .el-form-items .el-select .el-select__placeholder {
837
+ min-width: 0;
838
+ max-width: 100%;
839
+ }
840
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger) {
841
+ flex: 0 1 auto;
842
+ min-width: 0;
843
+ overflow: hidden;
844
+ max-width: 100%;
845
+ }
846
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger):has(+ .el-select__selected-item.el-tooltip__trigger) {
847
+ max-width: calc(100% - 3rem);
848
+ }
849
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item:not(.el-tooltip__trigger) .el-tag {
850
+ max-width: 100% !important;
851
+ width: 100%;
852
+ }
853
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item.el-tooltip__trigger {
854
+ flex: 0 0 auto;
855
+ width: auto;
856
+ max-width: none;
857
+ position: static;
858
+ display: inline-flex;
859
+ align-items: center;
860
+ }
861
+ .el-form-items .el-select .el-select__selection > .el-select__selected-item.el-tooltip__trigger .el-tag {
862
+ width: auto !important;
863
+ max-width: none !important;
827
864
  }
@@ -53,6 +53,27 @@
53
53
 
54
54
  @include when(filterable) {
55
55
  cursor: text;
56
+ overflow: hidden;
57
+
58
+ .#{$namespace}-select__selection {
59
+ overflow: hidden;
60
+ }
61
+
62
+ .#{$namespace}-select__input-wrapper {
63
+ flex: 1 1 0;
64
+ min-width: 0;
65
+ max-width: 100%;
66
+ overflow: hidden;
67
+ }
68
+
69
+ .#{$namespace}-select__input {
70
+ min-width: 0 !important;
71
+ width: 100% !important;
72
+ max-width: 100%;
73
+ overflow: hidden;
74
+ text-overflow: ellipsis;
75
+ white-space: nowrap;
76
+ }
56
77
  }
57
78
 
58
79
  @include when(focused) {
@@ -176,18 +197,11 @@
176
197
  flex-wrap: wrap;
177
198
  user-select: none;
178
199
  align-items: center;
200
+ flex-shrink: 1;
179
201
 
180
- /* Sonradan ekledim truncate etmek için */
181
- white-space: nowrap;
182
- // overflow: hidden;
183
- text-overflow: ellipsis;
184
- width: min-content;
185
- max-width: calc(100% - 120px);
186
-
187
- &.el-tooltip__trigger {
188
- max-width: min-content;
202
+ &.#{$namespace}-tooltip__trigger {
203
+ flex-shrink: 0;
189
204
  }
190
- /* buraya kadar ekledim truncate etmek için */
191
205
 
192
206
  .el-tag.#{$namespace}-tag--info {
193
207
  @include css-var-from-global(('tag', 'bg-color'), ('color', 'primary', 'light-1'));
@@ -195,14 +209,6 @@
195
209
  @include css-var-from-global(('tag', 'hover-color'), ('color', 'primary', 'light-5'));
196
210
  @include css-var-from-global(('tag', 'text-color'), ('color', 'primary', 'light-5'));
197
211
  }
198
-
199
- &:has(+ .el-tooltip__trigger) {
200
- max-width: calc(100% - 160px);
201
- }
202
-
203
- &:has(~ .el-select__input-wrapper.is-hidden) {
204
- max-width: none;
205
- }
206
212
  }
207
213
 
208
214
  @include e(tags-text) {
@@ -217,9 +223,10 @@
217
223
  top: 50%;
218
224
  transform: translateY(-50%);
219
225
  width: 100%;
226
+ max-width: 100%;
220
227
  @include utils-ellipsis;
221
228
  color: var(#{getCssVarName('input-text-color')}, map.get($input, 'text-color'));
222
- min-width: 100%;
229
+ min-width: 0;
223
230
 
224
231
  @include when(transparent) {
225
232
  user-select: none;
@@ -246,6 +253,7 @@
246
253
  // Out of the document flow
247
254
  position: absolute;
248
255
  opacity: 0;
256
+ display: none;
249
257
  }
250
258
  }
251
259
 
@@ -321,3 +329,43 @@
321
329
  }
322
330
  }
323
331
  }
332
+
333
+ // el-form-items value selects (rules port-input, ztna source, etc.) — collapse-tags layout
334
+ .el-form-items .#{$namespace}-select {
335
+ .#{$namespace}-select__placeholder {
336
+ min-width: 0;
337
+ max-width: 100%;
338
+ }
339
+
340
+ .#{$namespace}-select__selection {
341
+ & > .#{$namespace}-select__selected-item:not(.#{$namespace}-tooltip__trigger) {
342
+ flex: 0 1 auto;
343
+ min-width: 0;
344
+ overflow: hidden;
345
+ max-width: 100%;
346
+
347
+ &:has(+ .#{$namespace}-select__selected-item.#{$namespace}-tooltip__trigger) {
348
+ max-width: calc(100% - 3rem);
349
+ }
350
+
351
+ .#{$namespace}-tag {
352
+ max-width: 100% !important;
353
+ width: 100%;
354
+ }
355
+ }
356
+
357
+ & > .#{$namespace}-select__selected-item.#{$namespace}-tooltip__trigger {
358
+ flex: 0 0 auto;
359
+ width: auto;
360
+ max-width: none;
361
+ position: static;
362
+ display: inline-flex;
363
+ align-items: center;
364
+
365
+ .#{$namespace}-tag {
366
+ width: auto !important;
367
+ max-width: none !important;
368
+ }
369
+ }
370
+ }
371
+ }
@@ -310,6 +310,9 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
310
310
  background-color: var(--el-tag-bg-color);
311
311
  border-color: var(--el-tag-border-color);
312
312
  color: var(--el-tag-text-color);
313
+ display: inline-flex;
314
+ justify-content: center;
315
+ align-items: center;
313
316
  vertical-align: middle;
314
317
  height: 16px;
315
318
  padding: 0 7px;
@@ -321,9 +324,6 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
321
324
  box-sizing: border-box;
322
325
  white-space: nowrap;
323
326
  transition: none;
324
- overflow: hidden;
325
- text-overflow: ellipsis;
326
- white-space: nowrap;
327
327
  --el-icon-size: 14px;
328
328
  --el-tag-bg-color: var(--el-color-primary-light-1);
329
329
  --el-tag-border-color: var(--el-color-primary-light-4);
@@ -635,6 +635,13 @@ Bununla selectorun içerisine variable ekleyebiliyorsun
635
635
  --el-tag-bg-color: var(--el-color-white);
636
636
  }
637
637
 
638
+ .el-tag.el-tag--warning {
639
+ --el-tag-bg-color: var(--el-color-warning-light-1);
640
+ --el-tag-border-color: var(--el-color-warning-light-3);
641
+ --el-tag-text-color: var(--el-color-warning-light-6);
642
+ --el-tag-hover-color: var(--el-color-warning-light-6);
643
+ }
644
+
638
645
  .el-tag.rounded {
639
646
  width: 16px;
640
647
  height: 16px;
@@ -52,9 +52,9 @@ $tag-icon-span-gap: map.merge(
52
52
  border-color: getCssVar('tag-border-color');
53
53
  color: getCssVar('tag-text-color');
54
54
 
55
- // display: inline-flex;
56
- // justify-content: center;
57
- // align-items: center;
55
+ display: inline-flex;
56
+ justify-content: center;
57
+ align-items: center;
58
58
  vertical-align: middle;
59
59
  height: map.get($tag-height, 'default');
60
60
  padding: 0 map.get($tag-padding, 'default') - $border-width;
@@ -68,11 +68,6 @@ $tag-icon-span-gap: map.merge(
68
68
  white-space: nowrap;
69
69
  transition: none;
70
70
 
71
- // truncate
72
- overflow: hidden;
73
- text-overflow: ellipsis;
74
- white-space: nowrap;
75
-
76
71
  @include set-css-var-value('icon-size', 14px);
77
72
  @include genTheme('light-1', 'light-4', '');
78
73
 
@@ -175,6 +170,14 @@ $tag-icon-span-gap: map.merge(
175
170
  --el-tag-bg-color: var(--el-color-white);
176
171
  }
177
172
 
173
+ // [TC-19214] - Changed the colors of the warning type tags only to improve readability.
174
+ .el-tag.el-tag--warning {
175
+ --el-tag-bg-color: var(--el-color-warning-light-1);
176
+ --el-tag-border-color: var(--el-color-warning-light-3);
177
+ --el-tag-text-color: var(--el-color-warning-light-6);
178
+ --el-tag-hover-color: var(--el-color-warning-light-6);
179
+ }
180
+
178
181
  .el-tag {
179
182
  &.rounded {
180
183
  width: 16px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "2.4.285",
3
+ "version": "2.4.288",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "type": "module",
6
6
  "exports": {