@natec/mef-dev-ui-kit 20.1.242 → 20.1.243

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.
@@ -1,619 +0,0 @@
1
- @use '../../vars.scss' as *;
2
- @use "sass:color" as color;
3
-
4
- $select-prefix-cls: "pg-select";
5
- $input-height-base:35px;
6
- $input-height-lg:55px;
7
- $input-height-sm:25px;
8
- $input-placeholder-color : color.adjust($color-master-dark, $lightness: 67%);
9
- $tag-default-color:$color-master;
10
- $tag-default-bg:$color-master-light;
11
- $box-shadow-base:"none";
12
- $zindex-dropdown:999;
13
- $item-hover-bg:$color-master-lighter;
14
- $background-color-base:$color-master-lighter;
15
-
16
- @mixin selection__clear(){
17
- display: inline-block;
18
- font-style: normal;
19
- vertical-align: baseline;
20
- text-align: center;
21
- text-transform: none;
22
- text-rendering: auto;
23
- opacity: 0;
24
- position: absolute;
25
- right: 13px;
26
- z-index: 1;
27
- background: #fff;
28
- top: 50%;
29
- color: $color-info-lighter;
30
- width: 12px;
31
- height: 12px;
32
- margin-top: -6px;
33
- line-height: 12px;
34
- cursor: pointer;
35
- transition: color 0.3s ease, opacity 0.15s ease;
36
- font: normal normal normal 12px/1 pages-icon;
37
- &:before {
38
- display: block;
39
- content: "\e60a";
40
- }
41
- &:hover {
42
- color: $color-info-dark;
43
- }
44
- }
45
-
46
- .pg-select {
47
- background-color: #fff;
48
- background-image: none;
49
- border: 1px solid $Light-Gray-3;
50
- font-family: $font-body;
51
- color: $Dark-Gray-1;
52
- outline: 0;
53
- line-height: normal;
54
- font-size: 14px;
55
- font-weight: 400;
56
- vertical-align: middle;
57
- min-height: 35px;
58
- transition: all .12s ease;
59
- box-shadow: none;
60
- border-radius: 2px;
61
- -webkit-border-radius: 2px;
62
- -moz-border-radius: 2px;
63
- display: inline-block;
64
-
65
- > ul > li > a {
66
- padding: 0;
67
- background-color: #fff;
68
- }
69
-
70
- // arrow
71
- &-arrow {
72
-
73
- position: absolute;
74
- top: 50%;
75
- right: 13px;
76
- line-height: 1;
77
- margin-top: -6px;
78
- color: $color-master;
79
- font: normal normal normal 12px/1 pages-icon;
80
- * {
81
- display: none;
82
- }
83
-
84
- &:before {
85
- content: '\e60b';
86
- transition: transform 0.2s ease;
87
- }
88
- }
89
-
90
- &-selection {
91
- outline: none;
92
- user-select: none;
93
-
94
- box-sizing: border-box;
95
- display: block;
96
-
97
- background-color: #fff;
98
- border-radius: 2px;
99
- border: 1px solid $form-control-border-color;
100
- transition: all .3s ease-in-out;
101
-
102
- &__clear {
103
- @include selection__clear();
104
- }
105
-
106
- &:hover &__clear {
107
- opacity: 1;
108
- }
109
-
110
- &-selected-value {
111
- float: left;
112
- overflow: hidden;
113
- text-overflow: ellipsis;
114
- white-space: nowrap;
115
- max-width: 100%;
116
- padding-right: 12px;
117
- font-size: 14px;
118
- }
119
- }
120
-
121
- &-disabled {
122
- color: $color-info-lighter;
123
- }
124
-
125
- &-disabled &-selection {
126
- background: $color-master-lightest;
127
- cursor: not-allowed;
128
- &:hover,
129
- &:focus,
130
- &:active {
131
- border-color: $form-control-border-color;
132
- box-shadow: none;
133
- }
134
-
135
- &__clear {
136
- display: none;
137
- visibility: hidden;
138
- pointer-events: none;
139
- }
140
- }
141
-
142
- &-disabled &-selection--multiple &-selection__choice {
143
- background: $color-primary;
144
- color: #aaa;
145
- padding-right: 10px;
146
- &__remove {
147
- display: none;
148
- }
149
- }
150
-
151
- &-selection--single {
152
- height: $input-height-base;
153
- position: relative;
154
- cursor: pointer;
155
- }
156
-
157
- &-selection__rendered {
158
- display: block;
159
- margin-left: 12px;
160
- margin-right: 12px;
161
- position: relative;
162
- line-height: $input-height-base;
163
- &:after {
164
- content: '.';
165
- visibility: hidden;
166
- pointer-events: none;
167
- display: inline-block;
168
- width: 0;
169
- }
170
- }
171
-
172
- &-lg {
173
- .pg-select-selection--single {
174
- height: $input-height-lg;
175
- }
176
- .pg-select-selection__rendered {
177
- line-height: $input-height-lg - 2px;
178
- }
179
- .pg-select-selection--multiple {
180
- min-height: $input-height-lg;
181
- .pg-select-selection__rendered {
182
- li {
183
- height: $input-height-lg - 8px;
184
- line-height: $input-height-lg - 8px;
185
- }
186
- }
187
- .pg-select-selection__clear {
188
- top: calc($input-height-lg / 2)
189
- }
190
- }
191
- }
192
-
193
- &-sm {
194
- .pg-select-selection--single {
195
- height: $input-height-sm;
196
- }
197
- .pg-select-selection__rendered {
198
- line-height: $input-height-sm - 2px;
199
- }
200
- .pg-select-selection--multiple {
201
- min-height: $input-height-sm;
202
- .pg-select-selection__rendered {
203
- li {
204
- height: $input-height-sm - 8px;
205
- line-height: $input-height-sm - 8px;
206
- }
207
- }
208
- .pg-select-selection__clear {
209
- top: calc($input-height-sm / 2);
210
- }
211
- }
212
- }
213
-
214
- &-disabled &-selection__choice__remove {
215
- color: $color-info-lighter;
216
- cursor: default;
217
- &:hover {
218
- color: $color-info-lighter;
219
- }
220
- }
221
-
222
- &-search__field__wrap {
223
- display: inline-block;
224
- position: relative;
225
- }
226
-
227
- &-selection__placeholder,
228
- &-search__field__placeholder { // for TreeSelect compatibility
229
- position: absolute;
230
- top: 50%;
231
- left: 0;
232
- right: 9px;
233
- color: $color-master;
234
- opacity: 0;
235
- line-height: 20px;
236
- height: 20px;
237
- max-width: 100%;
238
- margin-top: -10px;
239
- overflow: hidden;
240
- text-overflow: ellipsis;
241
- white-space: nowrap;
242
- text-align: left;
243
- font-size: 14px;
244
- }
245
-
246
- &-search__field__placeholder {
247
- left: 8px;
248
- }
249
-
250
- &-search__field__mirror {
251
- position: absolute;
252
- top: 0;
253
- left: -9999px;
254
- white-space: pre;
255
- pointer-events: none;
256
- }
257
-
258
- &-search--inline {
259
- position: absolute;
260
- height: 100%;
261
- width: 100%;
262
-
263
- .pg-select-selection--multiple & {
264
- float: left;
265
- position: static;
266
- }
267
-
268
- .pg-select-search__field__wrap {
269
- width: 100%;
270
- height: 100%;
271
- }
272
-
273
- .pg-select-search__field {
274
- border-width: 0;
275
- font-size:14px;
276
- height: 100%;
277
- width: 100%;
278
- background: transparent;
279
- outline: 0;
280
- border-radius: 2px;
281
- line-height: 1;
282
- }
283
-
284
- > i {
285
- float: right;
286
- }
287
- }
288
-
289
- &-selection--multiple {
290
- min-height: $input-height-base;
291
- cursor: text;
292
- padding-bottom: 3px;
293
- &:before,
294
- &:after {
295
- content: " ";
296
- display: table;
297
- }
298
- &:after {
299
- clear: both;
300
- }
301
- .pg-select-selection__placeholder{
302
- left: 6px;
303
- }
304
- .pg-select-search--inline {
305
- width: auto;
306
- padding: 0;
307
- max-width: 100%;
308
- .pg-select-search__field {
309
- max-width: 100%;
310
- width: 0.75em;
311
- }
312
- }
313
-
314
- .pg-select-selection__rendered {
315
- margin-left: 5px;
316
- margin-bottom: -3px;
317
- height: auto;
318
- }
319
- ul{
320
- padding: 0;
321
- padding-left: 6px;
322
- margin: 0;
323
- list-style: none;
324
- }
325
- > ul > li,
326
- .pg-select-selection__rendered > ul > li {
327
- margin-top: 7px;
328
- height: 21px;
329
- line-height: 21px;
330
- }
331
-
332
- .pg-select-selection__choice {
333
- color: $tag-default-color;
334
- background-color: $tag-default-bg;
335
- border-radius: 8px;
336
- cursor: default;
337
- float: left;
338
- margin-right: 4px;
339
- max-width: 99%;
340
- position: relative;
341
- overflow: hidden;
342
- transition: padding .3s ease-in-out;
343
- padding: 0 10px 0 17px;
344
- &__disabled {
345
- padding: 0 10px;
346
- }
347
- }
348
-
349
- .pg-select-selection__choice__content {
350
- display: inline-block;
351
- white-space: nowrap;
352
- overflow: hidden;
353
- text-overflow: ellipsis;
354
- max-width: 100%;
355
- transition: margin .3s ease-in-out;
356
- }
357
-
358
- .pg-select-selection__choice__remove {
359
- font: normal normal normal 12px/1 pages-icon;
360
- color: $color-info-dark;
361
- line-height: inherit;
362
- cursor: pointer;
363
- display: inline-block;
364
- transition: all 0.3s ease-in-out;
365
- position: absolute;
366
- left: 4px;
367
- padding: 0 8px 0 0;
368
- &:hover {
369
- color: #404040;
370
- }
371
- &:before {
372
- content: "\E60A";
373
- }
374
- }
375
-
376
- .pg-select-selection__clear {
377
- top: calc($input-height-base / 2)
378
- }
379
- }
380
-
381
- &-allow-clear &-selection--multiple &-selection__rendered {
382
- margin-right: 20px; // In case that clear button will overlap content
383
- }
384
-
385
- &-open {
386
- .pg-select-arrow {
387
- -ms-transform: rotate(180deg);
388
- transform: rotate(180deg);
389
- }
390
- .pg-select-selection {
391
- //@include mix.active();
392
- }
393
- }
394
-
395
- &-combobox {
396
- .pg-select-arrow {
397
- display: none;
398
- }
399
- .pg-select-search--inline {
400
- height: 100%;
401
- width: 100%;
402
- float: none;
403
- }
404
- .pg-select-search__field__wrap {
405
- width: 100%;
406
- height: 100%;
407
- }
408
- .pg-select-search__field {
409
- width: 100%;
410
- height: 100%;
411
- position: relative;
412
- z-index: 1;
413
- transition: all .3s ease-in-out;
414
- box-shadow: none;
415
- }
416
- }
417
- }
418
-
419
- .pg-select-dropdown {
420
- background-color: #fff;
421
- box-shadow: $box-shadow-base;
422
- border-radius: 2px;
423
- box-sizing: border-box;
424
- z-index: $zindex-dropdown;
425
- left: -9999px;
426
- top: -9999px;
427
- position: absolute;
428
- outline: none;
429
- overflow: hidden;
430
- font-size: 12px;
431
-
432
- &.slide-up-enter.slide-up-enter-active-placement-bottomLeft,
433
- &.slide-up-appear.slide-up-appear-active-placement-bottomLeft {
434
- animation-name: antSlideUpIn;
435
- }
436
-
437
- &.slide-up-enter.slide-up-enter-active-placement-topLeft,
438
- &.slide-up-appear.slide-up-appear-active-placement-topLeft {
439
- animation-name: antSlideDownIn;
440
- }
441
-
442
- &.slide-up-leave.slide-up-leave-active-placement-bottomLeft {
443
- animation-name: antSlideUpOut;
444
- }
445
-
446
- &.slide-up-leave.slide-up-leave-active-placement-topLeft {
447
- animation-name: antSlideDownOut;
448
- }
449
-
450
- &-hidden {
451
- display: none;
452
- }
453
-
454
- &-menu {
455
- outline: none;
456
- margin: 3px 8px 10px 8px;
457
- padding-left: 0; // Override default ul/ol
458
- list-style: none;
459
- max-height: 250px;
460
- overflow: auto;
461
-
462
- &-item-group-list {
463
- margin: 0;
464
- padding: 0;
465
-
466
- > .pg-select-dropdown-menu-item {
467
- padding-left: 16px;
468
- }
469
- }
470
-
471
- &-item-group-title {
472
- color: $color-info-dark;
473
- line-height: 1.5;
474
- padding: 8px;
475
- }
476
-
477
- &-item {
478
- min-height: 3em;
479
- position: relative;
480
- display: block;
481
- padding: 6px 8px;
482
- padding-left: 1em;
483
- font-weight: normal;
484
- color: $color-master;
485
- white-space: nowrap;
486
- border-radius: 3px;
487
- cursor: pointer;
488
- overflow: hidden;
489
- text-overflow: ellipsis;
490
- transition: background 0.3s ease;
491
- font-size: 14px;
492
- &:hover {
493
- background-color: $item-hover-bg;
494
- }
495
-
496
- &-disabled {
497
- color: $color-info-lighter;
498
- cursor: not-allowed;
499
-
500
- &:hover {
501
- color: $color-info-lighter;
502
- background-color: #fff;
503
- cursor: not-allowed;
504
- }
505
- }
506
-
507
- &-selected {
508
- background-color: $color-complete-lighter !important;
509
- &,
510
- &:hover {
511
- background-color: $background-color-base;
512
- color: $color-info;
513
- }
514
- }
515
-
516
- &-active {
517
- //background-color: $color-master-lighter;
518
- }
519
-
520
- &-divider {
521
- height: 1px;
522
- margin: 1px 0;
523
- overflow: hidden;
524
- background-color: #e5e5e5;
525
- line-height: 0;
526
- }
527
- }
528
- }
529
-
530
- &--multiple {
531
- .pg-select-dropdown-menu-item {
532
- &:after {
533
- color: transparent;
534
- transition: all 0.2s ease;
535
- position: absolute;
536
- top: 50%;
537
- transform: translateY(-50%);
538
- right: 8px;
539
- font-weight: bold;
540
- text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;
541
- }
542
-
543
- &:hover:after {
544
- color: #ddd;
545
- }
546
-
547
- &-disabled:after {
548
- display: none;
549
- }
550
-
551
- &-selected:after,
552
- &-selected:hover:after {
553
- color: $color-master;
554
- display: inline-block;
555
- }
556
- }
557
- }
558
-
559
- &-container-open,
560
- &-open {
561
- .pg-select-dropdown {
562
- display: block;
563
- }
564
- }
565
- }
566
-
567
- .pg-select-dropdown{
568
- top: 100% !important;
569
- left: 0 !important;
570
- position: relative !important;
571
- width: 100%;
572
- margin-top: 0;
573
- margin-bottom: 4px;
574
- border: 1px solid $form-control-border-color;
575
- border-top:0;
576
- border-radius: 0;
577
- border-bottom-right-radius: 2px;
578
- border-bottom-left-radius: 2px;
579
- padding-top: 5px;
580
- z-index: 790;
581
- box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
582
- }
583
- .pg-select-open{
584
-
585
- border: 2px solid #F3F3F3;
586
-
587
- .pg-select-selection{
588
- background-color:$color-master-lighter;
589
- }
590
- .pg-select-selection--multiple{
591
- li.pg-select-selection__choice{
592
- background: #fff;
593
- }
594
- }
595
- .pg-select-selection__placeholder{
596
- opacity: 0;
597
- }
598
- }
599
-
600
- .form-group-default-select2{
601
- .pg-select-selection{
602
- margin-top: 20px;
603
- border: 0;
604
- }
605
- &.has-error{
606
- background-color: rgba($color-danger,.10);
607
- .pg-select-selection{
608
- background-color: rgba($color-danger,.10);
609
- }
610
- }
611
- }
612
-
613
- .pg-select-selection{
614
- border: 0 !important;
615
- }
616
-
617
- .pg-select-open .pg-select-selection{
618
- background-color: #fff !important;
619
- }