toggle-components-library 1.33.0-beta.3 → 1.33.0-beta.5

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 (95) hide show
  1. package/dist/demo.html +10 -0
  2. package/dist/img/add_circle.7c6b29c6.svg +29 -0
  3. package/dist/img/airship-audiences-hover.7197407c.svg +9 -0
  4. package/dist/img/airship-audiences.e7477e19.svg +9 -0
  5. package/dist/img/airship-circle-user-icon-hover.7eecff69.svg +3 -0
  6. package/dist/img/airship-circle-user-icon.b39571b4.svg +3 -0
  7. package/dist/img/airship-clipboard-hover.80ae4cc8.svg +10 -0
  8. package/dist/img/airship-clipboard.4e2aec57.svg +10 -0
  9. package/dist/img/airship-cog-hover.9bfe1b84.svg +10 -0
  10. package/dist/img/airship-cog.6c89b74b.svg +10 -0
  11. package/dist/img/airship-down-arrow-active.bab27497.svg +3 -0
  12. package/dist/img/airship-down-arrow.5b2f3f44.svg +3 -0
  13. package/dist/img/airship-hat-hover.56740dd2.svg +10 -0
  14. package/dist/img/airship-hat.5cff7b4e.svg +10 -0
  15. package/dist/img/airship-megaphone-hover.2a7711d9.svg +10 -0
  16. package/dist/img/airship-megaphone.38428749.svg +10 -0
  17. package/dist/img/airship-pencil-hover.3970bc92.svg +11 -0
  18. package/dist/img/airship-pencil.350548ab.svg +11 -0
  19. package/dist/img/airship-pie-chart-hover.d3aac6ad.svg +11 -0
  20. package/dist/img/airship-pie-chart.617f307c.svg +11 -0
  21. package/dist/img/airship-plane-hover.abb5f358.svg +10 -0
  22. package/dist/img/airship-plane.978cf187.svg +10 -0
  23. package/dist/img/airship-sms-hover.4d1b0c06.svg +10 -0
  24. package/dist/img/airship-sms.17a3fcef.svg +10 -0
  25. package/dist/img/airship-user-icon.1c0e190a.svg +3 -0
  26. package/dist/img/airship-wrench-hover.9531b048.svg +10 -0
  27. package/dist/img/airship-wrench.a406f6f1.svg +10 -0
  28. package/dist/img/airship-x-hover.e1c3bb98.svg +3 -0
  29. package/dist/img/airship-x.dec93e61.svg +3 -0
  30. package/dist/img/arrow-icon.6b7bdc31.svg +3 -0
  31. package/dist/img/arrow-left-blue-hover.5b0a1e54.svg +32 -0
  32. package/dist/img/arrow-left-blue.1e5404dd.svg +32 -0
  33. package/dist/img/arrow-right-blue-hover.b800a882.svg +32 -0
  34. package/dist/img/arrow-right-blue.fbc83729.svg +32 -0
  35. package/dist/img/arrow_down.787e1a8b.svg +28 -0
  36. package/dist/img/booster_close.34390853.svg +3 -0
  37. package/dist/img/calendar.16f176cd.svg +37 -0
  38. package/dist/img/card.e1735960.svg +9 -0
  39. package/dist/img/checkbox_blank.907b325c.svg +6 -0
  40. package/dist/img/checkbox_checked.3e2d399f.svg +9 -0
  41. package/dist/img/checkbox_hover.e99ab40c.svg +3 -0
  42. package/dist/img/checkbox_inactive.b94b6c81.svg +9 -0
  43. package/dist/img/circle_blank.ab1622db.svg +24 -0
  44. package/dist/img/clipboard.e483ded3.svg +12 -0
  45. package/dist/img/clock-solid.fdaf024d.svg +1 -0
  46. package/dist/img/contacts-greyblue.ef6f8a9a.svg +1 -0
  47. package/dist/img/contacts-white.95d07c7a.svg +1 -0
  48. package/dist/img/delete-grey.cf15dcd1.svg +29 -0
  49. package/dist/img/delete-trash.3a307964.svg +12 -0
  50. package/dist/img/delete.ee71bb54.svg +29 -0
  51. package/dist/img/drag_drop.0c778868.svg +14 -0
  52. package/dist/img/draggable.7493006c.svg +1 -0
  53. package/dist/img/edit_circle.4f3826d3.svg +34 -0
  54. package/dist/img/edit_circle_grey.0c96938c.svg +34 -0
  55. package/dist/img/email-icon.3c44b236.svg +3 -0
  56. package/dist/img/email.078e944d.svg +7 -0
  57. package/dist/img/file.f4fb9e5d.svg +9 -0
  58. package/dist/img/form_icon.cd53ec12.svg +10 -0
  59. package/dist/img/funnel.7fa095c3.svg +11 -0
  60. package/dist/img/graph.7f2e3985.svg +16 -0
  61. package/dist/img/grey_cross.2ac5fda1.svg +15 -0
  62. package/dist/img/info.4b233da4.svg +29 -0
  63. package/dist/img/magnifying-glass-icon.9a2b42a1.svg +3 -0
  64. package/dist/img/megaphone.73161a8a.svg +19 -0
  65. package/dist/img/mobile-icon.9e16ffcd.svg +6 -0
  66. package/dist/img/orders.51f8963f.svg +29 -0
  67. package/dist/img/search.db8f673f.svg +25 -0
  68. package/dist/img/tick-grey.b6d7b16c.svg +12 -0
  69. package/dist/img/tick.97f35963.svg +12 -0
  70. package/dist/img/tick_circle.417fd97d.svg +28 -0
  71. package/dist/img/tick_circle_grey.92b7e747.svg +32 -0
  72. package/dist/img/upload.9b0f1f1c.svg +30 -0
  73. package/dist/img/view_email.508021c9.svg +7 -0
  74. package/dist/img/view_heatmap.f9058fdb.svg +1 -0
  75. package/dist/toggle-components-library.common.js +25936 -0
  76. package/dist/toggle-components-library.common.js.map +1 -0
  77. package/dist/toggle-components-library.css +1 -0
  78. package/dist/toggle-components-library.umd.js +25946 -0
  79. package/dist/toggle-components-library.umd.js.map +1 -0
  80. package/dist/toggle-components-library.umd.min.js +45 -0
  81. package/dist/toggle-components-library.umd.min.js.map +1 -0
  82. package/package-lock.json +20285 -0
  83. package/package.json +2 -2
  84. package/src/components/forms/ToggleDatePicker.vue +142 -238
  85. package/src/components/forms/ToggleDateRangePicker.vue +199 -0
  86. package/src/components/forms/ToggleInputCurrency.vue +2 -8
  87. package/src/components/forms/ToggleInputPercentage.vue +4 -15
  88. package/src/components/forms/ToggleInputSelect.vue +8 -27
  89. package/src/components/forms/ToggleInputText.vue +7 -30
  90. package/src/components/statusbar/ToggleStatusBar.vue +28 -3
  91. package/src/components/tables/ToggleTable.vue +48 -115
  92. package/src/index.js +3 -1
  93. package/src/sass/includes/_as_inputs.scss +50 -55
  94. package/src/sass/includes/_as_statusbar.scss +97 -0
  95. package/src/sass/includes/_as_table.scss +9 -11
@@ -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,36 +227,35 @@
227
227
  }
228
228
  }
229
229
 
230
- .toggle-date-input-calendar-icon-disabled {
230
+ .calendar-icon-disabled {
231
231
  cursor: default;
232
232
  opacity: 0.5;
233
233
  }
234
234
 
235
235
  .toggle-input-select-container{
236
236
  position:relative;
237
- //background-color: $toggle-dark-grey;
237
+ background-color: $toggle-dark-grey;
238
238
  border-radius:5px;
239
239
  overflow: auto;
240
240
  float: left;
241
241
  clear: both;
242
242
  width: 100%;
243
- //&:after{
244
- // content: '';
245
- // width: 1.5rem;
246
- // height: 1.5rem;
247
- // background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
248
- // position: absolute;
249
- // right: 1rem;
250
- // top: 0.7rem;
251
- // pointer-events: none;
252
- //}
243
+ &:after{
244
+ content: '';
245
+ width: 1.5rem;
246
+ height: 1.5rem;
247
+ background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
248
+ position: absolute;
249
+ right: 1rem;
250
+ top: 0.7rem;
251
+ pointer-events: none;
252
+ }
253
253
  }
254
254
 
255
-
255
+
256
256
  .toggle-input-select{
257
257
 
258
- //padding : 0.5rem 2.5rem 0.5rem 1rem;
259
- padding: 0.5rem;
258
+ padding : 0.5rem 2.5rem 0.5rem 1rem;
260
259
  cursor : pointer;
261
260
 
262
261
  -webkit-appearance: none;
@@ -335,7 +334,7 @@
335
334
  .toggle-input-radio{
336
335
  clear:both;
337
336
  float: left;
338
- margin-left:2.2rem;
337
+ margin-left:2.2rem;
339
338
  }
340
339
 
341
340
  }
@@ -369,8 +368,8 @@
369
368
  display : flex;
370
369
  align-items: center;
371
370
  }
372
-
373
-
371
+
372
+
374
373
  input[type="radio"], input[type="checkbox"]{
375
374
  display: none;
376
375
  }
@@ -397,7 +396,7 @@
397
396
  }
398
397
  }
399
398
 
400
-
399
+
401
400
 
402
401
  > input:disabled:checked + div{
403
402
  .toggle-input-radio-check-element {
@@ -436,10 +435,6 @@
436
435
  }
437
436
  }
438
437
 
439
- .toggle-input-is-readonly:focus {
440
- outline: none;
441
- }
442
-
443
438
  .toggle-input-radio-label, .toggle-input-checkbox-label{
444
439
  display : inline-block;
445
440
  font-size: $toggle-font-size-large;
@@ -491,7 +486,7 @@
491
486
  }
492
487
 
493
488
  .toggle-input-checkbox-check-element {
494
- background: url('../assets/icons/checkbox_blank.svg') no-repeat;
489
+ background: url('../assets/icons/checkbox_blank.svg') no-repeat;
495
490
  }
496
491
 
497
492
  // image input
@@ -518,8 +513,8 @@ $iconWidth:20px;
518
513
  .toggle-dark-grey {
519
514
  border:7px solid inherit;
520
515
  }
521
- .toggle-draggable-group-item {
522
- position: relative;
516
+ .toggle-draggable-group-item {
517
+ position: relative;
523
518
  list-style: none;
524
519
  margin:5px 10px 5px 0px;
525
520
  .toggle-item-img {
@@ -544,7 +539,7 @@ $iconWidth:20px;
544
539
  background: url('../assets/icons/draggable.svg') no-repeat center center;
545
540
  cursor: move;
546
541
  }
547
-
542
+
548
543
  }
549
544
  .toggle-button-container{
550
545
  border:0px solid transparent!important;
@@ -553,7 +548,7 @@ $iconWidth:20px;
553
548
  height:$iconWidth;
554
549
  }
555
550
  }
556
-
551
+
557
552
 
558
553
  li:first-child div:first-child{
559
554
  border:4px solid #189ED1;
@@ -562,8 +557,8 @@ $iconWidth:20px;
562
557
  }
563
558
  }
564
559
 
565
-
566
-
560
+
561
+
567
562
  }
568
563
 
569
564
  .toggle-dropzone-container{
@@ -592,7 +587,7 @@ $iconWidth:20px;
592
587
  height:0.5vw;
593
588
  }
594
589
  }
595
-
590
+
596
591
 
597
592
  .vue-dropzone {
598
593
  border: 0;
@@ -616,7 +611,7 @@ $iconWidth:20px;
616
611
  background-color: $toggle-light-blue;
617
612
  }
618
613
  }
619
-
614
+
620
615
  }
621
616
 
622
617
  .dropzone{
@@ -650,7 +645,7 @@ $iconWidth:20px;
650
645
  .dropzone > .dz-preview {
651
646
  width: 40%;
652
647
  }
653
-
648
+
654
649
  }
655
650
 
656
651
  .toggle-dropzone-file-container {
@@ -675,7 +670,7 @@ $iconWidth:20px;
675
670
  cursor: pointer;
676
671
  float:left;
677
672
  height: 2rem;
678
- width: 2rem;
673
+ width: 2rem;
679
674
  border-radius: 0% 50% 50% 0%;
680
675
  margin-left: -5px;
681
676
  }
@@ -691,7 +686,7 @@ $iconWidth:20px;
691
686
 
692
687
 
693
688
  // input crud buttons
694
- //
689
+ //
695
690
  .toggle-input-crud-container{
696
691
  padding:1rem 3.5rem 1rem 1rem;;
697
692
  height:auto;
@@ -710,7 +705,7 @@ $iconWidth:20px;
710
705
  cursor: pointer;
711
706
  }
712
707
 
713
-
708
+
714
709
 
715
710
  .toggle-input-crud-container-description{
716
711
  text-align: center;
@@ -850,24 +845,24 @@ $iconWidth:20px;
850
845
  -webkit-font-smoothing: antialiased;
851
846
  -moz-osx-font-smoothing: grayscale;
852
847
  }
853
-
848
+
854
849
  @mixin toggle-input-border-base {
855
850
  border: 1px solid #ccc;
856
851
  }
857
-
852
+
858
853
  @mixin toggle-input-border {
859
854
  @include toggle-input-border-base;
860
855
  border-radius: 4px;
861
856
  box-sizing: border-box;
862
857
  }
863
-
858
+
864
859
  @mixin toggle-input-border-country-left {
865
860
  @include toggle-input-border-base;
866
861
  border-top-left-radius: 4px;
867
862
  border-bottom-left-radius: 4px;
868
863
  border-right: none;
869
864
  }
870
-
865
+
871
866
  @mixin toggle-input-border-country-right {
872
867
  @include toggle-input-border-base;
873
868
  border-top-right-radius: 4px;
@@ -884,7 +879,7 @@ $iconWidth:20px;
884
879
  width: 130px;
885
880
  margin: 5px 0px;
886
881
  @include toggle-input-border-country-left;
887
-
882
+
888
883
  select{
889
884
  position: relative;
890
885
  opacity: 0;
@@ -893,32 +888,32 @@ $iconWidth:20px;
893
888
  cursor: pointer;
894
889
  height: 100%;
895
890
  }
896
-
891
+
897
892
  .toggle-selected-wraper {
898
893
  top:20%;
899
894
  font-size: 0.9em;
900
895
  position: absolute;
901
896
  padding: 3px;
902
897
  left: 5px;
903
-
898
+
904
899
  &:before{
905
900
  float:left;
906
901
  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>");
907
902
  margin-top:1px;
908
903
  margin-right: 2px;
909
904
  }
910
-
905
+
911
906
  div {
912
907
  float:left;
913
908
  }
914
-
909
+
915
910
  .toggle-selected-country-emoji {
916
911
  margin-left: 5px;
917
912
  margin-top: 2px;
918
913
  }
919
914
  }
920
-
921
-
915
+
916
+
922
917
  }
923
918
 
924
919
  .toggle-input-label-error {
@@ -929,16 +924,16 @@ $iconWidth:20px;
929
924
  .toggle-input-select-country {
930
925
  padding: 3px 10px 22px 10px;
931
926
  margin: 5px 0px 5px 0px;
932
-
927
+
933
928
  &.toggle-number {
934
-
929
+
935
930
  position: relative;
936
931
  font-size:0.9em;
937
932
  padding:10px;
938
933
  @include toggle-input-border-country-right;
939
934
  width: 80%;
940
935
  }
941
-
936
+
942
937
  }
943
938
  .toggle-invalid-number {
944
939
  border:1px solid #ED7B7C !important;
@@ -13,6 +13,45 @@
13
13
  height: 35px;
14
14
  }
15
15
 
16
+ // Tooltip
17
+ .toggle-status-bar-tooltip-container{
18
+ position: absolute;
19
+ display: flex;
20
+ justify-content: right;
21
+ width: 100%;
22
+ right: 32px;
23
+ cursor: default;
24
+
25
+ .toggle-status-bar-tooltip {
26
+ position: relative;
27
+ display: inline-block;
28
+ width: 20px;
29
+ text-align: center;
30
+ border: 1px solid hotpink;
31
+ border-radius: 50px;
32
+ }
33
+
34
+ // Tooltip text
35
+ .toggle-status-bar-tooltip .toggle-status-bar-tooltip-text {
36
+ visibility: hidden;
37
+ width: 200px;
38
+ background-color: rgba(0, 0, 0, .8);
39
+ color: #fff;
40
+ text-align: center;
41
+ padding: 10px;
42
+ border-radius: 6px;
43
+ position: absolute;
44
+ z-index: 1;
45
+ top: -5px;
46
+ right: 105%;
47
+ }
48
+
49
+ .toggle-status-bar-tooltip:hover .toggle-status-bar-tooltip-text {
50
+ visibility: visible;
51
+ }
52
+ }
53
+
54
+
16
55
  // Draft colours
17
56
  .toggle-status-bar-draft {
18
57
  background-color: #FFB88D;
@@ -20,6 +59,11 @@
20
59
  .toggle-status-bar-label {
21
60
  color: #A34308;
22
61
  }
62
+
63
+ .toggle-status-bar-tooltip {
64
+ color: #A34308;
65
+ border: 1px solid #A34308;
66
+ }
23
67
  }
24
68
 
25
69
  // Processing colours
@@ -29,6 +73,11 @@
29
73
  .toggle-status-bar-label {
30
74
  color: #269BE3;
31
75
  }
76
+
77
+ .toggle-status-bar-tooltip {
78
+ color: #269BE3;
79
+ border: 1px solid #269BE3;
80
+ }
32
81
  }
33
82
 
34
83
  // Complete colours
@@ -38,6 +87,11 @@
38
87
  .toggle-status-bar-label {
39
88
  color: #3BB40B;
40
89
  }
90
+
91
+ .toggle-status-bar-tooltip {
92
+ color: #3BB40B;
93
+ border: 1px solid #3BB40B;
94
+ }
41
95
  }
42
96
 
43
97
  // Inactive colours
@@ -47,6 +101,11 @@
47
101
  .toggle-status-bar-label {
48
102
  color: #269BE3;
49
103
  }
104
+
105
+ .toggle-status-bar-tooltip {
106
+ color: #269BE3;
107
+ border: 1px solid #269BE3;
108
+ }
50
109
  }
51
110
 
52
111
  // Active colours
@@ -57,6 +116,26 @@
57
116
  .toggle-status-bar-label {
58
117
  color: #FF4848;
59
118
  }
119
+
120
+ .toggle-status-bar-tooltip {
121
+ color: #FF4848;
122
+ border: 1px solid #FF4848;
123
+ }
124
+ }
125
+
126
+ // Submitted colours
127
+ .toggle-status-bar-submitted {
128
+ background-color: #D7E9F2;
129
+
130
+ .toggle-status-bar-label {
131
+ color: #269BE3;
132
+ }
133
+
134
+ .toggle-status-bar-tooltip {
135
+ color: #269BE3;
136
+ border: 1px solid #269BE3;
137
+ }
138
+
60
139
  }
61
140
 
62
141
  .toggle-status-bar-dot {
@@ -64,4 +143,22 @@
64
143
  margin: 0 3px 0 0;
65
144
  float: none !important;
66
145
  padding: 0 !important;
146
+ }
147
+
148
+ // Dot blinking animation
149
+
150
+ .blinking {
151
+ animation: 2s blink ease infinite;
152
+ }
153
+
154
+ @keyframes blink {
155
+
156
+ from,
157
+ to {
158
+ opacity: 0;
159
+ }
160
+
161
+ 50% {
162
+ opacity: 1;
163
+ }
67
164
  }
@@ -41,8 +41,7 @@ table.toggle-table {
41
41
 
42
42
  thead {
43
43
  th.toggle-table-th {
44
- //padding: 0 10px 20px 0;
45
- padding: 0;
44
+ padding: 0 10px 20px 0;
46
45
  border: none;
47
46
  text-align: left;
48
47
  @include toggle-global-font-config;
@@ -55,7 +54,7 @@ table.toggle-table {
55
54
  }
56
55
  }
57
56
 
58
-
57
+
59
58
  }
60
59
 
61
60
 
@@ -76,7 +75,7 @@ table.toggle-table {
76
75
  text-indent: 1px;
77
76
  text-overflow: '';
78
77
 
79
- //background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
78
+ background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
80
79
  background-size: 15px;
81
80
  padding : 0.5rem 0rem 0.5rem 1rem;
82
81
  }
@@ -99,7 +98,7 @@ table.toggle-table {
99
98
 
100
99
  td.toggle-tablee-td {
101
100
  @include toggle-global-font-config;
102
-
101
+
103
102
  font-size: $toggle-font-size-small;
104
103
  padding: 1rem 0;
105
104
  padding-left:1rem;
@@ -147,19 +146,19 @@ table.toggle-table {
147
146
 
148
147
 
149
148
  }
150
-
149
+
151
150
  }
152
151
 
153
152
  .toggle-date-input-calendar-icon{
154
153
  &:after{
155
154
  content: '';
156
- }
155
+ }
157
156
  .toggle-input{
158
157
  font-size: 12px;
159
158
  padding-right:0px !important;
160
159
  }
161
- }
162
-
160
+ }
161
+
163
162
  }
164
163
 
165
164
 
@@ -174,7 +173,7 @@ table.toggle-table {
174
173
  line-height: 1em;
175
174
  position: relative;
176
175
  display: block;
177
- height: 50px;
176
+ height: 20px;
178
177
  margin: 0 4px 8px 4px;
179
178
  padding: 10px;
180
179
  border:1px solid transparent;
@@ -196,7 +195,6 @@ table.toggle-table {
196
195
  }
197
196
  }
198
197
  .toggle-table-searchable & {
199
- cursor: pointer;
200
198
  .toggle-table-th-title {
201
199
  position: relative;
202
200
  display: inline-block;