toggle-components-library 1.28.6-beta.6 → 1.28.7-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.28.6-beta.6",
3
+ "version": "1.28.7-beta.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/.DS_Store ADDED
Binary file
@@ -0,0 +1,99 @@
1
+ <template>
2
+ <div class="toggle-progress-loader" :class="{'toggle-progress-loader-error' : error , 'toggle-progress-loader-loading' : loading }">
3
+ <div class="toggle-progress-loader-modal">
4
+ <div class="toggle-progress-loader-circle">
5
+ <div v-if="!error" class="toggle-progress-loader-circle__percent">
6
+ {{ percent }}<span>%</span>
7
+ </div>
8
+ <div v-else class="toggle-progress-loader-circle__error" >!</div>
9
+
10
+ <svg class="toggle-progress-loader-circle__progress" viewBox="0 0 106 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
12
+ <g transform="translate(-17.000000, -17.000000)">
13
+ <circle :stroke="circleColor" stroke-width="7" fill-rule="nonzero" cx="70" cy="70" r="50"></circle>
14
+ <path class="toggle-progress-loader-circle__path" d="M70,120 C97.6142375,120 120,97.6142375 120,70 C120,42.3857625 97.6142375,20 70,20 C42.3857625,20 20,42.3857625 20,70 C20,97.6142375 42.3857625,120 70,120 Z" :stroke="progressColor" stroke-width="7" :stroke-dasharray="circle" fill-rule="nonzero" transform="translate(70.000000, 70.000000) rotate(-125.000000) translate(-70.000000, -70.000000) "></path>
15
+ </g>
16
+ </g>
17
+ </svg>
18
+ </div>
19
+ <p class="toggle-progress-loader-message" v-html="message"></p>
20
+ <button
21
+ v-if="buttonShow"
22
+ @click="click"
23
+ class="toggle-progress-loader-cancel"
24
+ :style="'color: ' + buttonColor + '; background-color: ' + buttonBgColor"
25
+ :disabled="disabled || loading"
26
+ >
27
+ <div class="toggle-progress-loader-cancel__loading" v-if="loading" ></div>
28
+ <span>{{ buttonText }}</span>
29
+ </button>
30
+ </div>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ export default {
36
+ name: 'ProgressLoader',
37
+ props: {
38
+ buttonShow:{
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ buttonText: {
43
+ type: String,
44
+ default: "Cancel"
45
+ },
46
+ buttonColor: {
47
+ type: String,
48
+ default: "#ffffff"
49
+ },
50
+ buttonBgColor: {
51
+ type: String,
52
+ default: "#ee757b"
53
+ },
54
+ message: {
55
+ type: String,
56
+ default: "Preparing download<br />Please Wait..."
57
+ },
58
+ circleColor: {
59
+ type: String,
60
+ default: "#949494"
61
+ },
62
+ progressColor: {
63
+ type: String,
64
+ default: "#ee757b"
65
+ },
66
+ percent: {
67
+ type: Number,
68
+ default: 70
69
+ },
70
+ error: {
71
+ type: Boolean,
72
+ default: false
73
+ },
74
+ loading: {
75
+ type: Boolean,
76
+ default: false
77
+ },
78
+ disabled: {
79
+ type: Boolean,
80
+ default: false
81
+ }
82
+ },
83
+ computed: {
84
+ circle() {
85
+ return (this.percent / 100) * 100 * Math.PI + ",9999";
86
+ }
87
+ },
88
+ methods: {
89
+ click(){
90
+ /**
91
+ * Emitted when the button is clicked.
92
+ * @event click
93
+ * @type {Event}
94
+ */
95
+ this.$emit('click');
96
+ }
97
+ }
98
+ }
99
+ </script>
package/src/index.js CHANGED
@@ -22,7 +22,6 @@ import ToggleInputGroup from "./components/forms/ToggleInputGroup.vue";
22
22
  import ToggleInputNumber from "./components/forms/ToggleInputNumber.vue";
23
23
  import ToggleColourPicker from "./components/forms/ToggleColourPicker.vue";
24
24
  import ToggleModal from "./components/modals/ToggleModal.vue";
25
- import ToggleContactSearch from "./components/forms/ToggleContactSearch.vue";
26
25
 
27
26
  import ToggleBoosterButton from "./components/boosters/ToggleBoosterButton.vue";
28
27
  import ToggleBoosterBasicButton from "./components/boosters/ToggleBoosterBasicButton.vue";
@@ -32,7 +31,9 @@ import ToggleInputSearch from "./components/forms/ToggleInputSearch.vue";
32
31
  import ToggleInputRadioButtonGroup from "./components/forms/ToggleInputRadioButtonGroup.vue";
33
32
  import ToggleButton from "./components/buttons/ToggleButton.vue";
34
33
  import ToggleLoginButton from "./components/buttons/ToggleLoginButton.vue";
34
+
35
35
  import ToggleFillLoader from "./components/loaders/ToggleFillLoader.vue";
36
+ import ToggleProgressLoader from "./components/loaders/ToggleProgressLoader.vue";
36
37
 
37
38
 
38
39
  import ToggleTable from './components/tables/ToggleTable.vue';
@@ -101,6 +102,7 @@ const Components = {
101
102
  ToggleInputCheckbox,
102
103
  ToggleInputCheckboxInline,
103
104
  ToggleFillLoader,
105
+ ToggleProgressLoader,
104
106
  ToggleInputImage,
105
107
  ToggleButton,
106
108
  ToggleLoginButton,
@@ -141,8 +143,7 @@ const Components = {
141
143
  ToggleThreeDotsButton,
142
144
  ToggleBoosterButton,
143
145
  ToggleBoosterBasicButton,
144
- ToggleBoosterModal,
145
- ToggleContactSearch
146
+ ToggleBoosterModal
146
147
  }
147
148
 
148
149
  Object.keys(Components).forEach(name => {
@@ -6,8 +6,7 @@
6
6
  .toggle-input-radio-label,
7
7
  .toggle-input-checkbox-label,
8
8
  .toggle-input-search-options,
9
- .toggle-input-select,
10
- .toggle-contact-search-container{
9
+ .toggle-input-select{
11
10
  @include toggle-global-font-config;
12
11
  }
13
12
 
@@ -418,7 +417,7 @@
418
417
  .toggle-input-radio-label, .toggle-input-checkbox-label{
419
418
  opacity: 0.5;
420
419
  }
421
- .toggle-input-label, .toggle-input, .toggle-contact-search-container{
420
+ .toggle-input-label, .toggle-input{
422
421
  opacity: 0.5;
423
422
  }
424
423
  .toggle-input-select-container{
@@ -937,261 +936,4 @@ $iconWidth:20px;
937
936
  top: 50%;
938
937
  transform: translate(0, -50%);
939
938
  }
940
- }
941
-
942
- //
943
- // Contact Search Styles
944
- //
945
-
946
- .toggle-contact-search-input-container {
947
- width: 100%;
948
- height: 40px;
949
- background-color: $toggle-white;
950
- border-radius: 8px;
951
- min-width: 500px;
952
- }
953
-
954
- .toggle-contact-search-input-container-active {
955
- border-radius: 8px 8px 0 0;
956
- }
957
-
958
- .toggle-contact-search-icon-input-container {
959
- display: flex;
960
- flex-direction: row;
961
- width: 100%;
962
- }
963
-
964
- .toggle-contact-search-dropdown-container {
965
- min-width: 550px;
966
- background-color: $toggle-white;
967
- border-radius: 0 0 8px 8px;
968
- overflow: hidden;
969
- position: absolute;
970
- z-index: 1;
971
- }
972
-
973
- .toggle-contact-search-input {
974
- width: 100%;
975
- border: 0;
976
- border-radius: 0px;
977
- height: 30px;
978
- margin: 4px 5px 0px 14px;
979
- color: #3A4A62;
980
- font-family: $toggle-font-family;
981
- font-weight: 700;
982
- font-size: 16px;
983
- background-color: #FFFFFF;
984
- }
985
-
986
- .toggle-contact-search-input::placeholder {
987
- color: #C5CED8;
988
- opacity: 1;
989
- }
990
- .toggle-contact-search-input:-ms-input-placeholder {
991
- color: #C5CED8;
992
- opacity: 1;
993
- }
994
- .toggle-contact-search-input::-ms-input-placeholder {
995
- color: #C5CED8;
996
- opacity: 1;
997
- }
998
- .toggle-contact-search-input::-webkit-input-placeholder {
999
- color: #C5CED8;
1000
- opacity: 1;
1001
- }
1002
- .toggle-contact-search-input:-moz-placeholder {
1003
- color: #C5CED8;
1004
- opacity: 1;
1005
- }
1006
- .toggle-contact-search-input::-ms-placeholder {
1007
- color: #C5CED8;
1008
- opacity: 1;
1009
- }
1010
-
1011
- .toggle-contact-search-icon {
1012
- max-width: 20px;
1013
- max-height: 20px;
1014
- margin: 10px 16px 0 0;
1015
- transition: transform .2s ease-in-out;
1016
- width: 25px;
1017
- height: 25px;
1018
- background-repeat: no-repeat;
1019
- background-size: contain;
1020
- }
1021
-
1022
- .toggle-contact-search-icon-email {
1023
- background-image: url('../assets/icons/email-icon.svg');
1024
- }
1025
-
1026
- .toggle-contact-search-icon-mobile {
1027
- background-image: url('../assets/icons/mobile-icon.svg');
1028
- }
1029
-
1030
- .toggle-contact-search-icon-arrow-container:hover {
1031
- .toggle-contact-search-icon {
1032
- transform: scale(1.1);
1033
- }
1034
- }
1035
-
1036
- .toggle-contact-search-icon-arrow-container {
1037
- display: flex;
1038
- width: 100px;
1039
- min-width: 60px;
1040
- flex-direction: row;
1041
- justify-content: center;
1042
- cursor: pointer;
1043
- }
1044
-
1045
- .toggle-contact-search-icon-arrow-container-disabled {
1046
- cursor: default !important;
1047
- opacity: 0.5;
1048
- }
1049
-
1050
- .toggle-contact-search-magnifying-glass-icon {
1051
- cursor: pointer;
1052
- margin: 10px 15px 0 3px;
1053
- width: 25px;
1054
- height: 25px;
1055
- background-image: url('../assets/icons/magnifying-glass-icon.svg');
1056
- background-repeat: no-repeat;
1057
- background-size: contain;
1058
- transition: transform .2s ease-in-out;
1059
- }
1060
-
1061
- .toggle-contact-search-magnifying-glass-icon:hover {
1062
- transform: scale(1.1);
1063
- }
1064
-
1065
- .toggle-contact-search-magnifying-glass-icon-disabled {
1066
- cursor: default;
1067
- opacity: 0.5;
1068
- }
1069
-
1070
- .toggle-contact-search-arrow {
1071
- margin: 17px 0px 0px;
1072
- width: 10px;
1073
- height: 10px;
1074
- background-image: url('../assets/icons/arrow-icon.svg');
1075
- background-repeat: no-repeat;
1076
- background-size: contain;
1077
- }
1078
-
1079
- .toggle-contact-search-arrow-active {
1080
- transition: all .2s ease;
1081
- transform: rotate(-3.1416rad) translateY(5px);
1082
- }
1083
-
1084
- .toggle-contact-search-divider {
1085
- height: 28px;
1086
- margin: 7px 0 0 0;
1087
- border-right: 2px solid #D9D9D9;
1088
- }
1089
-
1090
- .toggle-contact-search-dropdown-item {
1091
- margin: 5px 5px 5px 10px;
1092
- border-radius: 8px;
1093
- cursor: pointer;
1094
- font-size: 16px;
1095
- display: flex;
1096
- flex-direction: row;
1097
- justify-content: left;
1098
- align-items: center;
1099
- padding: 5px;
1100
- }
1101
-
1102
- .toggle-contact-search-dropdown-item-label {
1103
- cursor: pointer;
1104
- font-weight: 700;
1105
- color: #3A4A62;
1106
- }
1107
-
1108
- .toggle-contact-search-dropwdown-item-highlighted {
1109
- color: #547DEE;
1110
- }
1111
-
1112
- .toggle-contact-search-dropdown-item:hover {
1113
- background-color: #F5F5F5;
1114
- color: #3A4A62;
1115
-
1116
- .toggle-contact-search-icon-dropdown {
1117
- transform: scale(1.1);
1118
- }
1119
-
1120
- .toggle-contact-search-dropdown-item-label {
1121
- color: #3A4A62;
1122
- }
1123
- }
1124
-
1125
- .toggle-contact-search-icon-dropdown {
1126
- width: 25px;
1127
- height: 25px;
1128
- background-repeat: no-repeat;
1129
- background-size: contain;
1130
- max-width: 20px;
1131
- max-height: 20px;
1132
- margin: 2px 14px 0 0;
1133
- transition: transform .2s ease-in-out;
1134
- }
1135
-
1136
- .toggle-contact-search-error {
1137
- height: 16.8px;
1138
- text-align: right;
1139
- color: #FF6F6F;
1140
- font-size: 12px;
1141
- margin: 0 0 10px 0;
1142
- }
1143
-
1144
- .toggle-contact-search-input-disabled {
1145
- color: #D3D9DF !important;
1146
- }
1147
-
1148
- .toggle-contact-search-input-disabled::placeholder,
1149
- .toggle-contact-search-input-disabled:-ms-input-placeholder,
1150
- .toggle-contact-search-input-disabled::-ms-input-placeholder {
1151
- color: #D3D9DF !important;
1152
- opacity: 1;
1153
- }
1154
-
1155
- .toggle-contact-search-loading-container {
1156
- display: flex;
1157
- align-items: center;
1158
- margin: 0 0 3px 0;
1159
- }
1160
-
1161
- //
1162
- // Contact Search Transition Styles
1163
- //
1164
-
1165
- .drop-down-enter-active {
1166
- -moz-transition-duration: 0.4s;
1167
- -webkit-transition-duration: 0.4s;
1168
- -o-transition-duration: 0.4s;
1169
- transition-duration: 0.4s;
1170
- -moz-transition-timing-function: ease-in;
1171
- -webkit-transition-timing-function: ease-in;
1172
- -o-transition-timing-function: ease-in;
1173
- transition-timing-function: ease-in;
1174
- }
1175
-
1176
- .drop-down-leave-active {
1177
- -moz-transition-duration: 0.4s;
1178
- -webkit-transition-duration: 0.4s;
1179
- -o-transition-duration: 0.4s;
1180
- transition-duration: 0.4s;
1181
- -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
1182
- -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
1183
- -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
1184
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
1185
- }
1186
-
1187
- .drop-down-enter-to,
1188
- .drop-down-leave {
1189
- max-height: 100px;
1190
- overflow: hidden;
1191
- }
1192
-
1193
- .drop-down-enter,
1194
- .drop-down-leave-to {
1195
- overflow: hidden;
1196
- max-height: 0;
1197
939
  }
@@ -34,7 +34,7 @@
34
34
  top:50%;
35
35
  left:50%;
36
36
  border-radius: 50%;
37
- border: .25rem solid $toggle-button-disabled;
37
+ border: .25rem solid $toggle-button-disabled;
38
38
  border-top-color: $toggle-white;
39
39
  animation: spin 1s infinite linear;
40
40
  margin-top:-1rem;
@@ -43,18 +43,132 @@
43
43
  height: 2rem;
44
44
  }
45
45
 
46
- .toggle-inline-loader-container {
47
- position: relative;
48
- display: inline-block;
49
- }
46
+ /*
47
+ * ToggleProgressLoader
48
+ */
50
49
 
51
- .toggle-inline-loader {
52
- box-sizing: content-box;
53
- border-radius: 50%;
54
- border: .25rem solid $toggle-button-disabled;
55
- border-top-color: $toggle-white;
56
- animation: spin 1s infinite linear;
57
- width: 16px;
58
- height: 16px;
59
- margin: 8px 12px 0 0;
50
+ .toggle-progress-loader{
51
+ top:0;
52
+ left:0;
53
+ height: 100vh;
54
+ width:100vw;
55
+ z-index:10;
56
+ background: rgba(220, 220, 220, 0.5);
57
+ position: fixed !important;
58
+ font-family: $toggle-font-family;
59
+
60
+ &-modal {
61
+ width: 100%;
62
+ max-width: 230px;
63
+ min-height: 300px;
64
+ background: white;
65
+ position: absolute;
66
+ top: 50%;
67
+ left: 50%;
68
+ transform: translate(-50%, -50%);
69
+ text-align: center;
70
+ padding: 30px;
71
+ box-sizing: border-box;
72
+ border-radius: 15px;
73
+ box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.1);
74
+ display: flex;
75
+ flex-direction: column;
76
+ justify-content: center;
77
+ }
78
+
79
+ &-circle {
80
+ display: inline-block;
81
+ position: relative;
82
+ &__progress {
83
+ max-width: 130px;
84
+ max-height: 130px;
85
+ width: 100%;
86
+ transform: scaleX(-1) rotate(-55deg);
87
+ overflow: inherit;
88
+ }
89
+ &__percent {
90
+ position: absolute;
91
+ top: 50%;
92
+ left: 50%;
93
+ transform: translate(-50%, -50%);
94
+ display: flex;
95
+ align-items: center;
96
+ font-family: $toggle-font-family;
97
+ color: #354b64;
98
+ span {
99
+ font-size: 14px;
100
+ margin-left: 3px;
101
+ position: absolute;
102
+ padding-left: 100%;
103
+ font-family: $toggle-font-family;
104
+ }
105
+ }
106
+ &__path {
107
+ transition: 0.3s ease-in-out all;
108
+ }
109
+ &__error {
110
+ position: absolute;
111
+ top: 50%;
112
+ left: 50%;
113
+ transform: translate(-50%, -50%);
114
+ display: flex;
115
+ align-items: center;
116
+ font-family: $toggle-font-family;
117
+ font-weight: 700;
118
+ font-size: 34px;
119
+ color: #354b64;
120
+ }
121
+ }
122
+
123
+ &-message{
124
+ margin: 30px 0 0 0;
125
+ font-size: 16px;
126
+ line-height: 28px;
127
+ font-family: $toggle-font-family;
128
+ color: #354b64;
129
+ }
130
+
131
+ &-cancel {
132
+ background-color: #ee757b;
133
+ border: none;
134
+ margin: 30px auto 0 auto;
135
+ display: inline-flex;
136
+ cursor: pointer;
137
+ align-items: center;
138
+ justify-content: center;
139
+ border-radius: 15px;
140
+ padding: 6px 12px;
141
+ font-size: 12px;
142
+ color: #fff;
143
+ transition: background-color 0.2s ease;
144
+ position: relative;
145
+ &:hover {
146
+ opacity: 0.95;
147
+ }
148
+ &__loading {
149
+ border-radius: 50%;
150
+ border: .25rem solid $toggle-button-disabled;
151
+ border-top-color: $toggle-white;
152
+ animation: spin 1s infinite linear;
153
+ margin: 0 auto;
154
+ width:0.5rem;
155
+ height:0.5rem;
156
+ position:absolute;
157
+ left:50%;
158
+ margin-left: -0.5rem;
159
+ top:50%;
160
+ margin-top: -0.5rem;
161
+ box-sizing:content-box;
162
+ }
163
+ &:disabled{
164
+ opacity: 0.8;
165
+ }
166
+ }
167
+ &-loading {
168
+ .toggle-progress-loader-cancel {
169
+ span {
170
+ opacity: 0;
171
+ }
172
+ }
173
+ }
60
174
  }
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="18" height="11" viewBox="0 0 18 11">
2
- <path id="Polygon_8" data-name="Polygon 8" d="M7.452,1.892a2,2,0,0,1,3.1,0l4.78,5.842A2,2,0,0,1,13.78,11H4.22A2,2,0,0,1,2.673,7.734Z" transform="translate(18 11) rotate(180)" fill="#3a4a62"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="31.001" height="31.001" viewBox="0 0 31.001 31.001">
2
- <path id="at-solid" d="M15.5,3.875a11.625,11.625,0,0,0,0,23.251A1.938,1.938,0,1,1,15.5,31,15.5,15.5,0,1,1,31,15.5v1.938A5.812,5.812,0,0,1,20.756,21.2a7.753,7.753,0,1,1-.733-11.989,1.938,1.938,0,0,1,3.227,1.447v6.781a1.938,1.938,0,0,0,3.875,0V15.5A11.628,11.628,0,0,0,15.5,3.875ZM19.376,15.5A3.875,3.875,0,1,0,15.5,19.376,3.875,3.875,0,0,0,19.376,15.5Z" fill="#3a4a62"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24.674" height="24.678" viewBox="0 0 24.674 24.678">
2
- <path id="magnifying-glass-solid" d="M20.048,10.024a10,10,0,0,1-1.928,5.913l6.1,6.106a1.544,1.544,0,0,1-2.183,2.183l-6.1-6.106a10.026,10.026,0,1,1,4.111-8.1Zm-10.024,6.94a6.94,6.94,0,1,0-6.94-6.94A6.94,6.94,0,0,0,10.024,16.964Z" fill="#3a4a62"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="31.001" height="32.921" viewBox="0 0 23.131 32.921">
2
- <g id="Rectangle_1084" data-name="Rectangle 1084" transform="matrix(0.995, -0.105, 0.105, 0.995, 0, 2.091)" fill="none" stroke="#3a4a62" stroke-width="4">
3
- <rect width="20" height="31" rx="5" stroke="none"/>
4
- <rect x="2" y="2" width="16" height="27" rx="3" fill="none"/>
5
- </g>
6
- </svg>