toggle-components-library 1.36.2 → 1.36.3-beta.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.
- package/dist/toggle-components-library.common.js +39150 -13042
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +39150 -13042
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +285 -8
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +2 -1
- package/src/components/forms/ToggleDatePicker.vue +229 -138
- package/src/components/forms/ToggleInputCurrency.vue +10 -3
- package/src/components/forms/ToggleInputPercentage.vue +7 -1
- package/src/components/forms/ToggleInputText.vue +5 -7
- package/src/components/statusbar/ToggleStatusBar.vue +74 -0
- package/src/index.js +4 -3
- package/src/sass/includes/_as_inputs.scss +63 -45
- package/src/sass/includes/_as_statusbar.scss +183 -0
- package/src/sass/main.scss +1 -0
- package/package-lock.json +0 -20285
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
.toggle-input,
|
|
3
3
|
.toggle-input-label,
|
|
4
|
-
.toggle-input-counter,
|
|
4
|
+
.toggle-input-counter,
|
|
5
5
|
.toggle-input-label-error,
|
|
6
|
-
.toggle-input-radio-label,
|
|
6
|
+
.toggle-input-radio-label,
|
|
7
7
|
.toggle-input-checkbox-label,
|
|
8
8
|
.toggle-input-search-options,
|
|
9
9
|
.toggle-input-select,
|
|
10
10
|
.toggle-contact-search-container{
|
|
11
11
|
@include toggle-global-font-config;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
13
|
|
|
14
14
|
.toggle-input-counter{
|
|
15
15
|
font-size: $toggle-font-size-small;
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
|
|
111
111
|
padding : 0.8rem 1.2rem 1.4rem 1.2rem;
|
|
112
112
|
background-color: $toggle-off-white;
|
|
113
|
-
border-radius : 9px;
|
|
113
|
+
border-radius : 9px;
|
|
114
114
|
box-sizing : border-box;
|
|
115
115
|
border : 1px solid $toggle-off-white;
|
|
116
116
|
position : relative;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
&.margin-bottom-0{
|
|
123
123
|
padding-bottom:0;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
// When inputs are inside input groups or modals, they look a bit different
|
|
@@ -227,6 +227,20 @@
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
.toggle-date-input-calendar-icon-disabled {
|
|
231
|
+
cursor: default;
|
|
232
|
+
opacity: 0.4;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.toggle-date-input-disabled {
|
|
236
|
+
opacity: 0.7 !important;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.calendar-icon-disabled {
|
|
240
|
+
cursor: default;
|
|
241
|
+
opacity: 0.5;
|
|
242
|
+
}
|
|
243
|
+
|
|
230
244
|
.toggle-input-select-container{
|
|
231
245
|
position:relative;
|
|
232
246
|
background-color: $toggle-dark-grey;
|
|
@@ -236,18 +250,18 @@
|
|
|
236
250
|
clear: both;
|
|
237
251
|
width: 100%;
|
|
238
252
|
&:after{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
content: '';
|
|
254
|
+
width: 1.5rem;
|
|
255
|
+
height: 1.5rem;
|
|
256
|
+
background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
|
|
257
|
+
position: absolute;
|
|
258
|
+
right: 1rem;
|
|
259
|
+
top: 0.7rem;
|
|
260
|
+
pointer-events: none;
|
|
247
261
|
}
|
|
248
262
|
}
|
|
249
263
|
|
|
250
|
-
|
|
264
|
+
|
|
251
265
|
.toggle-input-select{
|
|
252
266
|
|
|
253
267
|
padding : 0.5rem 2.5rem 0.5rem 1rem;
|
|
@@ -329,7 +343,7 @@
|
|
|
329
343
|
.toggle-input-radio{
|
|
330
344
|
clear:both;
|
|
331
345
|
float: left;
|
|
332
|
-
margin-left:2.2rem;
|
|
346
|
+
margin-left:2.2rem;
|
|
333
347
|
}
|
|
334
348
|
|
|
335
349
|
}
|
|
@@ -363,8 +377,8 @@
|
|
|
363
377
|
display : flex;
|
|
364
378
|
align-items: center;
|
|
365
379
|
}
|
|
366
|
-
|
|
367
|
-
|
|
380
|
+
|
|
381
|
+
|
|
368
382
|
input[type="radio"], input[type="checkbox"]{
|
|
369
383
|
display: none;
|
|
370
384
|
}
|
|
@@ -391,7 +405,7 @@
|
|
|
391
405
|
}
|
|
392
406
|
}
|
|
393
407
|
|
|
394
|
-
|
|
408
|
+
|
|
395
409
|
|
|
396
410
|
> input:disabled:checked + div{
|
|
397
411
|
.toggle-input-radio-check-element {
|
|
@@ -430,6 +444,10 @@
|
|
|
430
444
|
}
|
|
431
445
|
}
|
|
432
446
|
|
|
447
|
+
.toggle-input-is-readonly:focus {
|
|
448
|
+
outline: none;
|
|
449
|
+
}
|
|
450
|
+
|
|
433
451
|
.toggle-input-radio-label, .toggle-input-checkbox-label{
|
|
434
452
|
display : inline-block;
|
|
435
453
|
font-size: $toggle-font-size-large;
|
|
@@ -481,7 +499,7 @@
|
|
|
481
499
|
}
|
|
482
500
|
|
|
483
501
|
.toggle-input-checkbox-check-element {
|
|
484
|
-
background: url('../assets/icons/checkbox_blank.svg') no-repeat;
|
|
502
|
+
background: url('../assets/icons/checkbox_blank.svg') no-repeat;
|
|
485
503
|
}
|
|
486
504
|
|
|
487
505
|
// image input
|
|
@@ -508,8 +526,8 @@ $iconWidth:20px;
|
|
|
508
526
|
.toggle-dark-grey {
|
|
509
527
|
border:7px solid inherit;
|
|
510
528
|
}
|
|
511
|
-
.toggle-draggable-group-item {
|
|
512
|
-
position: relative;
|
|
529
|
+
.toggle-draggable-group-item {
|
|
530
|
+
position: relative;
|
|
513
531
|
list-style: none;
|
|
514
532
|
margin:5px 10px 5px 0px;
|
|
515
533
|
.toggle-item-img {
|
|
@@ -534,7 +552,7 @@ $iconWidth:20px;
|
|
|
534
552
|
background: url('../assets/icons/draggable.svg') no-repeat center center;
|
|
535
553
|
cursor: move;
|
|
536
554
|
}
|
|
537
|
-
|
|
555
|
+
|
|
538
556
|
}
|
|
539
557
|
.toggle-button-container{
|
|
540
558
|
border:0px solid transparent!important;
|
|
@@ -543,7 +561,7 @@ $iconWidth:20px;
|
|
|
543
561
|
height:$iconWidth;
|
|
544
562
|
}
|
|
545
563
|
}
|
|
546
|
-
|
|
564
|
+
|
|
547
565
|
|
|
548
566
|
li:first-child div:first-child{
|
|
549
567
|
border:4px solid #189ED1;
|
|
@@ -552,8 +570,8 @@ $iconWidth:20px;
|
|
|
552
570
|
}
|
|
553
571
|
}
|
|
554
572
|
|
|
555
|
-
|
|
556
|
-
|
|
573
|
+
|
|
574
|
+
|
|
557
575
|
}
|
|
558
576
|
|
|
559
577
|
.toggle-dropzone-container{
|
|
@@ -582,7 +600,7 @@ $iconWidth:20px;
|
|
|
582
600
|
height:0.5vw;
|
|
583
601
|
}
|
|
584
602
|
}
|
|
585
|
-
|
|
603
|
+
|
|
586
604
|
|
|
587
605
|
.vue-dropzone {
|
|
588
606
|
border: 0;
|
|
@@ -606,7 +624,7 @@ $iconWidth:20px;
|
|
|
606
624
|
background-color: $toggle-light-blue;
|
|
607
625
|
}
|
|
608
626
|
}
|
|
609
|
-
|
|
627
|
+
|
|
610
628
|
}
|
|
611
629
|
|
|
612
630
|
.dropzone{
|
|
@@ -640,7 +658,7 @@ $iconWidth:20px;
|
|
|
640
658
|
.dropzone > .dz-preview {
|
|
641
659
|
width: 40%;
|
|
642
660
|
}
|
|
643
|
-
|
|
661
|
+
|
|
644
662
|
}
|
|
645
663
|
|
|
646
664
|
.toggle-dropzone-file-container {
|
|
@@ -665,7 +683,7 @@ $iconWidth:20px;
|
|
|
665
683
|
cursor: pointer;
|
|
666
684
|
float:left;
|
|
667
685
|
height: 2rem;
|
|
668
|
-
width: 2rem;
|
|
686
|
+
width: 2rem;
|
|
669
687
|
border-radius: 0% 50% 50% 0%;
|
|
670
688
|
margin-left: -5px;
|
|
671
689
|
}
|
|
@@ -681,7 +699,7 @@ $iconWidth:20px;
|
|
|
681
699
|
|
|
682
700
|
|
|
683
701
|
// input crud buttons
|
|
684
|
-
//
|
|
702
|
+
//
|
|
685
703
|
.toggle-input-crud-container{
|
|
686
704
|
padding:1rem 3.5rem 1rem 1rem;;
|
|
687
705
|
height:auto;
|
|
@@ -700,7 +718,7 @@ $iconWidth:20px;
|
|
|
700
718
|
cursor: pointer;
|
|
701
719
|
}
|
|
702
720
|
|
|
703
|
-
|
|
721
|
+
|
|
704
722
|
|
|
705
723
|
.toggle-input-crud-container-description{
|
|
706
724
|
text-align: center;
|
|
@@ -840,24 +858,24 @@ $iconWidth:20px;
|
|
|
840
858
|
-webkit-font-smoothing: antialiased;
|
|
841
859
|
-moz-osx-font-smoothing: grayscale;
|
|
842
860
|
}
|
|
843
|
-
|
|
861
|
+
|
|
844
862
|
@mixin toggle-input-border-base {
|
|
845
863
|
border: 1px solid #ccc;
|
|
846
864
|
}
|
|
847
|
-
|
|
865
|
+
|
|
848
866
|
@mixin toggle-input-border {
|
|
849
867
|
@include toggle-input-border-base;
|
|
850
868
|
border-radius: 4px;
|
|
851
869
|
box-sizing: border-box;
|
|
852
870
|
}
|
|
853
|
-
|
|
871
|
+
|
|
854
872
|
@mixin toggle-input-border-country-left {
|
|
855
873
|
@include toggle-input-border-base;
|
|
856
874
|
border-top-left-radius: 4px;
|
|
857
875
|
border-bottom-left-radius: 4px;
|
|
858
876
|
border-right: none;
|
|
859
877
|
}
|
|
860
|
-
|
|
878
|
+
|
|
861
879
|
@mixin toggle-input-border-country-right {
|
|
862
880
|
@include toggle-input-border-base;
|
|
863
881
|
border-top-right-radius: 4px;
|
|
@@ -874,7 +892,7 @@ $iconWidth:20px;
|
|
|
874
892
|
width: 130px;
|
|
875
893
|
margin: 5px 0px;
|
|
876
894
|
@include toggle-input-border-country-left;
|
|
877
|
-
|
|
895
|
+
|
|
878
896
|
select{
|
|
879
897
|
position: relative;
|
|
880
898
|
opacity: 0;
|
|
@@ -883,32 +901,32 @@ $iconWidth:20px;
|
|
|
883
901
|
cursor: pointer;
|
|
884
902
|
height: 100%;
|
|
885
903
|
}
|
|
886
|
-
|
|
904
|
+
|
|
887
905
|
.toggle-selected-wraper {
|
|
888
906
|
top:20%;
|
|
889
907
|
font-size: 0.9em;
|
|
890
908
|
position: absolute;
|
|
891
909
|
padding: 3px;
|
|
892
910
|
left: 5px;
|
|
893
|
-
|
|
911
|
+
|
|
894
912
|
&:before{
|
|
895
913
|
float:left;
|
|
896
914
|
content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 317 275'><path id='Arrow_downw' data-name='Arrow_Down' d='M158.5,0,317,275H0Z' transform='translate(317 275) rotate(180)' fill='gray'/></svg>");
|
|
897
915
|
margin-top:1px;
|
|
898
916
|
margin-right: 2px;
|
|
899
917
|
}
|
|
900
|
-
|
|
918
|
+
|
|
901
919
|
div {
|
|
902
920
|
float:left;
|
|
903
921
|
}
|
|
904
|
-
|
|
922
|
+
|
|
905
923
|
.toggle-selected-country-emoji {
|
|
906
924
|
margin-left: 5px;
|
|
907
925
|
margin-top: 2px;
|
|
908
926
|
}
|
|
909
927
|
}
|
|
910
|
-
|
|
911
|
-
|
|
928
|
+
|
|
929
|
+
|
|
912
930
|
}
|
|
913
931
|
|
|
914
932
|
.toggle-input-label-error {
|
|
@@ -919,16 +937,16 @@ $iconWidth:20px;
|
|
|
919
937
|
.toggle-input-select-country {
|
|
920
938
|
padding: 3px 10px 22px 10px;
|
|
921
939
|
margin: 5px 0px 5px 0px;
|
|
922
|
-
|
|
940
|
+
|
|
923
941
|
&.toggle-number {
|
|
924
|
-
|
|
942
|
+
|
|
925
943
|
position: relative;
|
|
926
944
|
font-size:0.9em;
|
|
927
945
|
padding:10px;
|
|
928
946
|
@include toggle-input-border-country-right;
|
|
929
947
|
width: 80%;
|
|
930
948
|
}
|
|
931
|
-
|
|
949
|
+
|
|
932
950
|
}
|
|
933
951
|
.toggle-invalid-number {
|
|
934
952
|
border:1px solid #ED7B7C !important;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
.toggle-status-bar-container {
|
|
2
|
+
font-family: $toggle-font-family;
|
|
3
|
+
font-size: 16px !important;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
height: 50px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-width: 94px;
|
|
10
|
+
border-radius: 7px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.toggle-status-bar-small {
|
|
14
|
+
font-size: 0.7rem !important;
|
|
15
|
+
height: 28px;
|
|
16
|
+
.toggle-status-bar-dot {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Tooltip
|
|
22
|
+
.toggle-status-bar-tooltip-container{
|
|
23
|
+
position: absolute;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: right;
|
|
26
|
+
width: 100%;
|
|
27
|
+
right: 32px;
|
|
28
|
+
cursor: default;
|
|
29
|
+
|
|
30
|
+
.toggle-status-bar-tooltip {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
width: 20px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
border: 1px solid hotpink;
|
|
36
|
+
border-radius: 50px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Tooltip text
|
|
40
|
+
.toggle-status-bar-tooltip .toggle-status-bar-tooltip-text {
|
|
41
|
+
visibility: hidden;
|
|
42
|
+
width: 200px;
|
|
43
|
+
background-color: rgba(0, 0, 0, .8);
|
|
44
|
+
color: #fff;
|
|
45
|
+
text-align: center;
|
|
46
|
+
padding: 10px;
|
|
47
|
+
border-radius: 6px;
|
|
48
|
+
position: absolute;
|
|
49
|
+
z-index: 1;
|
|
50
|
+
top: -5px;
|
|
51
|
+
right: 105%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.toggle-status-bar-tooltip:hover .toggle-status-bar-tooltip-text {
|
|
55
|
+
visibility: visible;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
// Draft colours
|
|
61
|
+
.toggle-status-bar-draft {
|
|
62
|
+
background-color: #FFB88D;
|
|
63
|
+
|
|
64
|
+
.toggle-status-bar-label {
|
|
65
|
+
color: #A34308;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.toggle-status-bar-tooltip {
|
|
69
|
+
color: #A34308;
|
|
70
|
+
border: 1px solid #A34308;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Processing colours
|
|
75
|
+
.toggle-status-bar-processing {
|
|
76
|
+
background-color: #D7E9F2;
|
|
77
|
+
|
|
78
|
+
.toggle-status-bar-label {
|
|
79
|
+
color: #269BE3;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.toggle-status-bar-tooltip {
|
|
83
|
+
color: #269BE3;
|
|
84
|
+
border: 1px solid #269BE3;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Complete colours
|
|
89
|
+
.toggle-status-bar-complete {
|
|
90
|
+
background-color: #B3E49F;
|
|
91
|
+
|
|
92
|
+
.toggle-status-bar-label {
|
|
93
|
+
color: #3BB40B;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.toggle-status-bar-tooltip {
|
|
97
|
+
color: #3BB40B;
|
|
98
|
+
border: 1px solid #3BB40B;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Inactive colours
|
|
103
|
+
.toggle-status-bar-inactive {
|
|
104
|
+
background-color: #D7E9F2;
|
|
105
|
+
|
|
106
|
+
.toggle-status-bar-label {
|
|
107
|
+
color: #269BE3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.toggle-status-bar-tooltip {
|
|
111
|
+
color: #269BE3;
|
|
112
|
+
border: 1px solid #269BE3;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Active colours
|
|
117
|
+
.toggle-status-bar-active {
|
|
118
|
+
background-color: #D7E9F2;
|
|
119
|
+
border: 1px solid #FF4848;
|
|
120
|
+
|
|
121
|
+
.toggle-status-bar-label {
|
|
122
|
+
color: #FF4848;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.toggle-status-bar-tooltip {
|
|
126
|
+
color: #FF4848;
|
|
127
|
+
border: 1px solid #FF4848;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Submitted colours
|
|
132
|
+
.toggle-status-bar-submitted {
|
|
133
|
+
background-color: #D7E9F2;
|
|
134
|
+
|
|
135
|
+
.toggle-status-bar-label {
|
|
136
|
+
color: #269BE3;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.toggle-status-bar-tooltip {
|
|
140
|
+
color: #269BE3;
|
|
141
|
+
border: 1px solid #269BE3;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Failed colours
|
|
147
|
+
.toggle-status-bar-failed {
|
|
148
|
+
background-color: #F2E3E3;
|
|
149
|
+
border: 1px solid #ED7B7C;
|
|
150
|
+
|
|
151
|
+
.toggle-status-bar-label {
|
|
152
|
+
color: #ED7B7C;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.toggle-status-bar-tooltip {
|
|
156
|
+
color: #ED7B7C;
|
|
157
|
+
border: 1px solid #ED7B7C;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.toggle-status-bar-dot {
|
|
162
|
+
font-size: 20px;
|
|
163
|
+
margin: 0 3px 2px 0;
|
|
164
|
+
float: none !important;
|
|
165
|
+
padding: 0 !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Dot blinking animation
|
|
169
|
+
.blinking {
|
|
170
|
+
animation: 2s blink ease infinite;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@keyframes blink {
|
|
174
|
+
|
|
175
|
+
from,
|
|
176
|
+
to {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
50% {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
}
|
|
183
|
+
}
|
package/src/sass/main.scss
CHANGED