kui-vue 3.3.12 → 3.4.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.
@@ -8,21 +8,28 @@
8
8
  box-sizing: border-box;
9
9
  vertical-align: middle;
10
10
  color: var(--kui-color-font);
11
- font-size: 12px;
11
+ font-size: 14px;
12
12
  position: relative;
13
13
  outline: none;
14
14
  box-sizing: border-box;
15
15
  flex-shrink: 0;
16
+ align-items: center;
16
17
 
17
- &:focus {
18
- .k-select-selection {
19
- border: 1px solid var(--kui-color-border);
20
- box-shadow: 0 0 0 2px var(--kui-color-main-90);
21
- }
18
+ border-radius: var(--kui-border-radius);
19
+ border: 1px solid var(--kui-color-border);
20
+ padding-left: 8px;
21
+ transition: border .3s ease-in-out;
22
+
23
+ &:hover {
24
+ // .k-select-selection {
25
+ border-color: var(--kui-color-main); // border-color: #3bb4f2;
26
+ // border: 1px solid var(--kui-color-border);
27
+ box-shadow: 0 0 0 2px var(--kui-color-main-90);
28
+ // }
22
29
  }
23
30
 
24
31
  &-selection {
25
- border-radius: var(--kui-border-radius);
32
+
26
33
  box-sizing: border-box;
27
34
  outline: 0;
28
35
  -webkit-user-select: none;
@@ -31,10 +38,9 @@
31
38
  user-select: none;
32
39
  cursor: pointer;
33
40
  position: relative;
34
- border: 1px solid var(--kui-color-border);
35
41
  min-height: 32px;
36
42
  position: relative;
37
- transition: all .25s ease-in-out;
43
+ // transition: all .25s ease-in-out;
38
44
  display: inline-flex;
39
45
  align-items: center;
40
46
  width: 100%;
@@ -45,19 +51,17 @@
45
51
  }
46
52
 
47
53
  .k-select-icon {
48
- margin-left: 8px;
49
54
  font-size: 16px;
50
55
  color: var(--kui-color-icon);
56
+ margin-right: 5px;
51
57
  }
52
58
 
53
59
  &-search-wrap {
54
60
  position: absolute;
55
- // left: 5px;
56
61
  z-index: 1;
57
- top: 50%;
62
+ // top: 50%;
58
63
  background: none;
59
- margin-left: 9px;
60
- transform: translateY(-50%);
64
+ // transform: translateY(-50%);
61
65
  overflow: hidden;
62
66
  max-width: 100%;
63
67
 
@@ -65,8 +69,8 @@
65
69
  .k-select-search {
66
70
  // border: 1px solid #eee;
67
71
  border: none;
68
- width: 0.75em;
69
- min-width: 0.75em;
72
+ width: 7px;
73
+ min-width: 7px;
70
74
  height: 22px;
71
75
  padding: 0;
72
76
  background: none;
@@ -77,21 +81,25 @@
77
81
  }
78
82
 
79
83
  &-labels {
80
- padding: 0 32px 0 4px;
81
- transition: all .25s ease-in-out;
84
+ transition: font-size .25s ease-in-out;
82
85
  overflow: hidden;
86
+ display: flex;
87
+ flex-wrap: wrap;
88
+ gap: 3px;
89
+ margin: 3px 0;
83
90
 
84
91
  .k-select-tag {
85
92
  padding: 2px 22px 2px 5px;
86
93
  border: 1px solid var(--kui-color-border);
87
94
  border-radius: var(--kui-border-radius);
88
- margin: 3px 5px 3px 0;
89
- display: inline-block;
95
+ display: inline-flex;
96
+ align-items: center;
90
97
  font-size: 12px;
91
98
  position: relative;
92
99
  line-height: 18px;
93
100
  transition: all .25s ease-in-out;
94
101
 
102
+ // overflow: hidden;
95
103
  .k-icon {
96
104
  position: absolute;
97
105
  right: 3px;
@@ -111,10 +119,10 @@
111
119
  display: inline-block;
112
120
  position: relative;
113
121
  transform: none;
114
- padding: 3px 5px;
122
+ // padding: 3px 0;
115
123
  left: 0;
116
124
  top: 0;
117
- margin: 0 0 0 5px;
125
+ margin: 0;
118
126
  vertical-align: middle;
119
127
  // .k-select-search {
120
128
  // // border: none;
@@ -140,117 +148,124 @@
140
148
  }
141
149
 
142
150
  &-placeholder {
143
- position: absolute;
144
- left: 0;
145
- top: 0;
146
- font-size: 12px;
151
+ // position: absolute;
152
+ // left: 0;
153
+ // top: 0;
154
+ font-size: 14px;
147
155
  z-index: 0;
148
- padding-left: 9px;
149
156
  padding-right: 30px;
150
157
  overflow: hidden;
151
158
  text-overflow: ellipsis;
152
159
  color: var(--kui-color-disable-color);
153
- top: 50%;
154
- transform: translateY(-50%);
160
+ // top: 50%;
161
+ // transform: translateY(-50%);
155
162
  white-space: nowrap;
156
163
  max-width: 100%;
157
164
  box-sizing: border-box;
158
- transition: all .25s ease-in-out;
165
+ transition: font-size .25s ease-in-out;
166
+ line-height: 1;
159
167
  }
160
168
 
161
- /* .k-select-placeholder {
162
- color: #888;
163
- } */
164
- /* .k-select-placeholder, */
165
169
  &-label {
166
170
  display: block;
167
- // height: 30px;
168
- // line-height: 30px;
169
171
  overflow: hidden;
170
172
  text-overflow: ellipsis;
171
173
  white-space: nowrap;
172
- // padding-top: -1px;
173
- padding-left: 8px;
174
- padding-right: 32px;
175
174
  border: none;
176
175
  background: transparent;
177
176
  box-sizing: border-box;
178
177
  width: 100%;
179
178
  cursor: pointer;
180
- font-size: 12px;
181
- transition: all .25s ease-in-out;
179
+ font-size: 14px;
180
+ transition: font-size .25s ease-in-out;
182
181
  }
183
182
 
184
183
  &-arrow {
185
184
  // font-size: 18px;
186
- position: absolute;
187
- top: 50%;
188
- right: 9px;
185
+ // position: absolute;
186
+ // top: 50%;
187
+ // right: 9px;
189
188
  font-size: 14px;
190
189
  box-sizing: border-box;
191
- transform: translateY(-50%) rotate(0deg);
190
+ transform: rotate(0deg);
192
191
  transform-origin: center;
193
192
  transition: transform .3s ease-in-out;
194
193
  transition: all .25s ease-in-out;
195
194
  color: var(--kui-color-icon);
196
-
195
+ margin: 0 8px;
197
196
  #chevron-up {
198
197
  transform: rotate(180deg);
199
198
  }
200
199
  }
201
200
 
202
201
  &-clearable {
203
- position: absolute;
204
- top: 50%;
205
- right: 9px;
206
- transform: translateY(-50%);
202
+ // position: absolute;
203
+ // top: 50%;
204
+ // right: 9px;
205
+ // transform: translateY(-50%);
207
206
  display: none;
208
207
  font-size: 15px;
209
208
  color: var(--kui-color-icon);
210
-
209
+ margin: 0 8px;
211
210
  &:hover {
212
211
  color: var(--kui-color-font);
213
212
  }
214
213
  }
215
214
 
216
- &:hover,
217
- &:focus {
218
- .k-select-selection {
219
- border-color: var(--kui-color-main);
220
- }
221
- }
222
215
 
223
- .k-select-placeholder {
216
+ .k-select-search-mirror,
217
+ .k-select-search {
224
218
  font-size: 14px;
225
- line-height: 1;
219
+ color: var(--kui-color-font);
226
220
  }
227
221
 
228
- .k-select-label {
229
- font-size: 14px;
222
+
223
+
224
+ &.k-select-circle {
225
+ // .k-select-selection {
226
+ border-radius: 30px;
227
+ // }
230
228
  }
229
+ }
231
230
 
232
- .k-select-search-mirror,
233
- .k-select-search {
234
- font-size: 14px;
235
- color: var(--kui-color-font);
231
+ .k-select-show-tags {
232
+ padding-left: 4px;
233
+
234
+ .k-select-icon {
235
+ margin-left: 4px;
236
236
  }
237
237
  }
238
238
 
239
- .k-select-has-icon {
239
+ .k-select-show-search {
240
240
  .k-select-placeholder {
241
- left: 20px;
241
+ position: absolute;
242
242
  }
243
+ }
243
244
 
244
- .k-select-selection>.k-select-search-wrap {
245
- left: 20px;
245
+ .k-select-multiple {
246
+ .k-select-selection {
247
+ // padding-left: 4px;
248
+ }
249
+
250
+ .k-select-placeholder {
251
+ position: absolute;
252
+ // padding-left: 4px;
253
+ }
254
+ }
255
+
256
+ .k-select-has-icon {
257
+ .k-select-placeholder {
258
+ // left: 20px;
246
259
  }
247
260
  }
248
261
 
249
262
  .k-select-light {
250
- .k-select-selection {
263
+ &.k-select {
251
264
  border-color: transparent;
252
265
  background: var(--kui-color-gray-80);
253
- border-radius: var(--kui-border-radius);
266
+ // border-radius: var(--kui-border-radius);
267
+ transition: none;
268
+ box-shadow: none;
254
269
 
255
270
  &:focus,
256
271
  &:hover {
@@ -270,11 +285,7 @@
270
285
  }
271
286
  }
272
287
 
273
- .k-select-circle {
274
- .k-select-selection {
275
- border-radius: 30px;
276
- }
277
- }
288
+
278
289
 
279
290
  .k-select-dropdown {
280
291
  user-select: none;
@@ -358,7 +369,7 @@
358
369
  .k-select-item-selected {
359
370
  background: var(--kui-color-selected);
360
371
  // color: var(--kui-color-main);
361
- font-weight: bold;
372
+ font-weight: 500;
362
373
 
363
374
  &:hover {
364
375
  background: var(--kui-color-selected);
@@ -390,22 +401,40 @@
390
401
  }
391
402
 
392
403
  .k-select-sm {
404
+ padding-left: 4px;
405
+
393
406
  .k-select-icon {
394
407
  font-size: 14px;
395
- margin-left: 4px;
408
+ margin-right: 3px;
396
409
  }
397
410
 
398
411
  .k-select-selection {
399
412
  min-height: 24px;
413
+ // padding-left: 5px;
414
+ }
415
+
416
+ // &.k-select-multiple {
417
+ // .k-select-selection {
418
+ // padding-left: 2px;
419
+ // }
420
+ // }
421
+ &.k-select-show-tags {
422
+ padding-left: 2px;
423
+
424
+ .k-select-icon {
425
+ margin-left: 2px;
426
+ }
400
427
  }
401
428
 
402
429
  .k-select-arrow {
403
430
  font-size: 12px;
404
- right: 5px;
431
+ // right: 5px;
432
+ margin: 0 4px;
405
433
  }
406
434
 
407
435
  .k-select-clearable {
408
- right: 5px;
436
+ // right: 5px;
437
+ margin: 0 4px;
409
438
  font-size: 12px;
410
439
  }
411
440
 
@@ -422,17 +451,18 @@
422
451
 
423
452
  .k-select-search-wrap {
424
453
  .k-select-search {
425
- height: 18px;
454
+ height: 12px;
426
455
  font-size: 12px;
427
456
  }
428
457
  }
429
458
 
430
459
  .k-select-labels {
431
- padding: 0 23px 0 3px;
460
+ gap: 2px;
461
+ margin: 2px 0;
432
462
 
433
463
  .k-select-tag {
434
464
  padding: 2px 20px 2px 5px;
435
- margin: 2px 3px 2px 0;
465
+ // margin: 2px 3px 2px 0;
436
466
  line-height: 1;
437
467
 
438
468
  .k-icon {
@@ -445,8 +475,8 @@
445
475
 
446
476
  .k-select-search {
447
477
  font-size: 12px;
448
- height: 18px;
449
- line-height: 18px;
478
+ height: 12px;
479
+ line-height: 12px;
450
480
  left: 0;
451
481
  float: left;
452
482
  }
@@ -461,11 +491,11 @@
461
491
 
462
492
  &.k-select-has-icon {
463
493
  .k-select-selection>.k-select-search-wrap {
464
- left: 14px;
494
+ // left: 14px;
465
495
  }
466
496
 
467
497
  .k-select-placeholder {
468
- left: 14px;
498
+ // left: 14px;
469
499
  }
470
500
  }
471
501
  }
@@ -480,13 +510,17 @@
480
510
  min-height: 40px;
481
511
  }
482
512
 
513
+ .k-select-icon {
514
+ font-size: 18px;
515
+ }
516
+
483
517
  .k-select-arrow {
484
518
  font-size: 18px;
485
- right: 10px;
519
+ // right: 10px;
486
520
  }
487
521
 
488
522
  .k-select-clearable {
489
- right: 10px;
523
+ // right: 10px;
490
524
  font-size: 18px;
491
525
  }
492
526
 
@@ -494,7 +528,6 @@
494
528
  line-height: 38px;
495
529
  height: 38px;
496
530
  font-size: 16px;
497
- padding-right: 32px;
498
531
  }
499
532
 
500
533
  .k-select-search-wrap {
@@ -504,11 +537,10 @@
504
537
  }
505
538
 
506
539
  .k-select-labels {
507
- padding: 0 32px 0 6px;
508
540
 
509
541
  .k-select-tag {
510
542
  padding: 7px 20px 7px 5px;
511
- margin: 4px 8px 4px 0;
543
+ // margin: 4px 8px 4px 0;
512
544
  font-size: 14px;
513
545
  line-height: 1;
514
546
 
@@ -518,7 +550,7 @@
518
550
  }
519
551
 
520
552
  .k-select-search-wrap {
521
- padding: 4px 0;
553
+ // padding: 4px 0;
522
554
 
523
555
  .k-select-search {
524
556
  height: 28px;
@@ -532,10 +564,14 @@
532
564
  }
533
565
 
534
566
  .k-select-open {
535
- .k-select-selection {
536
- border-color: var(--kui-color-main); // border-color: #3bb4f2;
537
- // box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
538
- box-shadow: 0 0 0 2px var(--kui-color-main-90);
567
+ // .k-select-selection {
568
+ border-color: var(--kui-color-main); // border-color: #3bb4f2;
569
+ // box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
570
+ box-shadow: 0 0 0 2px var(--kui-color-main-90);
571
+ // }
572
+
573
+ .k-select-label {
574
+ opacity: .5;
539
575
  }
540
576
 
541
577
  // .k-select-arrow {
@@ -549,13 +585,13 @@
549
585
 
550
586
  .k-select-disabled {
551
587
  color: var(--kui-color-disable-color);
588
+ background: var(--kui-color-disable-back);
552
589
 
553
590
  .k-select-label {
554
591
  cursor: not-allowed;
555
592
  }
556
593
 
557
- .k-select-selection {
558
- background: var(--kui-color-disable-back);
594
+ * {
559
595
  cursor: not-allowed;
560
596
  }
561
597
 
@@ -565,10 +601,10 @@
565
601
 
566
602
  &:hover,
567
603
  &:focus {
568
- .k-select-selection {
569
- border-color: var(--kui-color-disable-border);
570
- box-shadow: none;
571
- }
604
+ // .k-select-selection {
605
+ border-color: var(--kui-color-disable-border);
606
+ box-shadow: none;
607
+ // }
572
608
  }
573
609
  }
574
610
 
@@ -601,25 +637,6 @@
601
637
  }
602
638
  }
603
639
 
604
- @keyframes k-select-slide {
605
- from {
606
- opacity: 0;
607
- transform: scale(0, 0);
608
- }
609
-
610
- to {
611
- opacity: 1;
612
- transform: scale(1, 1);
613
- }
614
- }
615
-
616
- .k-select-tag-enter-active {
617
- animation: k-select-slide .3s ease-out;
618
- }
619
-
620
- .k-select-tag-leave-active {
621
- animation: k-select-slide .3s ease-out reverse;
622
- }
623
640
 
624
641
  @keyframes drop-down {
625
642
  0% {
@@ -2,14 +2,14 @@
2
2
 
3
3
  .k-tooltip {
4
4
  display: inline-block;
5
- position: relative;
6
5
  max-width: 256px;
7
6
  font-size: 12px;
8
7
  word-break: break-word;
9
8
  line-height: 1.5;
10
9
  position: absolute;
11
10
  z-index: 1001;
12
-
11
+ transform: translateZ(0);
12
+
13
13
  .k-tooltip-content {
14
14
  // min-width: 200px;
15
15
  // .k-tooltip-inner {
@@ -18,12 +18,14 @@
18
18
  color: #fff; //var(--kui-color-font);
19
19
  border-radius: 8px; // var(--kui-border-radius);
20
20
  position: relative;
21
+ min-width: 36px;
21
22
  // }
22
23
  }
23
24
 
24
25
  .k-tooltip-title {
25
26
  padding: 8px 12px;
26
27
  font-size: 14px;
28
+ text-align: center;
27
29
  }
28
30
 
29
31
  .k-tooltip-arrow {