toggle-components-library 1.36.1 → 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.
Files changed (39) hide show
  1. package/dist/img/airship-feedback-hover.a207c947.svg +10 -0
  2. package/dist/img/airship-feedback.1f7c858c.svg +10 -0
  3. package/dist/toggle-components-library.common.js +39486 -13335
  4. package/dist/toggle-components-library.common.js.map +1 -1
  5. package/dist/toggle-components-library.css +1 -1
  6. package/dist/toggle-components-library.umd.js +39486 -13335
  7. package/dist/toggle-components-library.umd.js.map +1 -1
  8. package/dist/toggle-components-library.umd.min.js +285 -8
  9. package/dist/toggle-components-library.umd.min.js.map +1 -1
  10. package/package.json +2 -1
  11. package/src/assets/icons/airship-feedback-hover.svg +10 -0
  12. package/src/assets/icons/airship-feedback.svg +10 -0
  13. package/src/components/buttons/ToggleMetricsButton.vue +22 -3
  14. package/src/components/cards/ToggleCommentCard.vue +55 -0
  15. package/src/components/carousel/ToggleCarousel.vue +29 -16
  16. package/src/components/carousel/ToggleCarouselSlide.vue +1 -1
  17. package/src/components/forms/ToggleDatePicker.vue +229 -138
  18. package/src/components/forms/ToggleInputCurrency.vue +10 -3
  19. package/src/components/forms/ToggleInputPercentage.vue +7 -1
  20. package/src/components/forms/ToggleInputSelect.vue +7 -13
  21. package/src/components/forms/ToggleInputText.vue +0 -11
  22. package/src/components/metrics/ToggleMetricSingleMetric.vue +12 -7
  23. package/src/components/metrics/ToggleMetricSparkLine.vue +7 -3
  24. package/src/components/mixins/mixins.js +2 -2
  25. package/src/components/statusbar/ToggleStatusBar.vue +74 -0
  26. package/src/components/tables/ToggleTable.vue +49 -114
  27. package/src/index.js +7 -4
  28. package/src/sass/includes/_as_buttons.scss +47 -4
  29. package/src/sass/includes/_as_cards.scss +33 -0
  30. package/src/sass/includes/_as_carousels.scss +12 -0
  31. package/src/sass/includes/_as_inputs.scss +830 -825
  32. package/src/sass/includes/_as_metrics.scss +5 -0
  33. package/src/sass/includes/_as_navs.scss +18 -2
  34. package/src/sass/includes/_as_statusbar.scss +183 -0
  35. package/src/sass/includes/_as_table.scss +163 -163
  36. package/src/sass/main.scss +1 -0
  37. package/dist/img/contacts-greyblue.ef6f8a9a.svg +0 -1
  38. package/dist/img/contacts-white.95d07c7a.svg +0 -1
  39. package/package-lock.json +0 -20285
@@ -134,4 +134,9 @@
134
134
 
135
135
  .increase-padding-bottom {
136
136
  padding-bottom: 3rem !important;
137
+ }
138
+
139
+ .toggle-metric-score-rating {
140
+ font-size: 27px;
141
+ margin-left: -8px;
137
142
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  .toggle-sidenav-container {
6
6
  font-size: $toggle-font-size-regular;
7
- width: 25%;
7
+ width: 20%;
8
8
  float: left;
9
9
  max-width: 280px;
10
10
  min-height: 100vh;
@@ -134,7 +134,7 @@
134
134
 
135
135
  line-height: 1rem;
136
136
  font-size: $toggle-font-size-regular;
137
- width: 25%;
137
+ width: 20%;
138
138
  float: left;
139
139
  max-width: 280px;
140
140
  min-height: 100vh;
@@ -342,6 +342,11 @@
342
342
  &.airship-hat-icon span::before {
343
343
  background-image: url("../assets/icons/airship-hat-hover.svg");
344
344
  }
345
+
346
+ &.airship-feedback-icon a::before,
347
+ &.airship-feedback-icon span::before {
348
+ background-image: url("../assets/icons/airship-feedback-hover.svg");
349
+ }
345
350
  }
346
351
  }
347
352
 
@@ -506,6 +511,17 @@
506
511
  animation: tilt-shake 0.4s;
507
512
  background-image: url("../assets/icons/airship-audiences-hover.svg");
508
513
  }
514
+ // add feedbacl
515
+ &.airship-feedback-icon a::before,
516
+ &.airship-feedback-icon span::before {
517
+ background-image: url("../assets/icons/airship-feedback.svg");
518
+ }
519
+
520
+ &.airship-feedback-icon a:hover::before,
521
+ &.airship-feedback-icon span:hover::before {
522
+ animation: tilt-shake 0.4s;
523
+ background-image: url("../assets/icons/airship-feedback-hover.svg");
524
+ }
509
525
 
510
526
  }
511
527
  }
@@ -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
+ }
@@ -16,37 +16,37 @@ table.toggle-table {
16
16
  border-radius:0;
17
17
  border:none;
18
18
  .toggle-input{
19
- margin-top:11px;
20
- padding:1px 3px 1px 3px;
21
- font-size:14px;
22
- height:1.5rem;
19
+ margin-top:11px;
20
+ padding:1px 3px 1px 3px;
21
+ font-size:14px;
22
+ height:1.5rem;
23
23
  }
24
24
  .toggle-input-label{
25
- display: none;
25
+ display: none;
26
26
  }
27
27
  .toggle-date-input-container{
28
- .toggle-date-input-calendar-icon{
29
- .toggle-input{
30
- background:transparent;
31
- padding:3px 1rem 3px 0.1rem;
32
- margin-top: 10px;
28
+ .toggle-date-input-calendar-icon{
29
+ .toggle-input{
30
+ background:transparent;
31
+ padding:3px 1rem 3px 0.1rem;
32
+ margin-top: 10px;
33
+ }
34
+ }
35
+ .toggle-clear{
36
+ display: none;
33
37
  }
34
- }
35
- .toggle-clear{
36
- display: none;
37
- }
38
38
  }
39
39
 
40
40
  }
41
41
 
42
42
  thead {
43
43
  th.toggle-table-th {
44
- padding: 0;
44
+ padding: 0 10px 20px 0;
45
45
  border: none;
46
46
  text-align: left;
47
- @include toggle-global-font-config;
48
- font-weight: bold;
49
- font-size: $toggle-font-size-small;
47
+ @include toggle-global-font-config;
48
+ font-weight: bold;
49
+ font-size: $toggle-font-size-small;
50
50
 
51
51
  &:hover {
52
52
  .search {
@@ -54,7 +54,7 @@ table.toggle-table {
54
54
  }
55
55
  }
56
56
 
57
-
57
+
58
58
  }
59
59
 
60
60
 
@@ -75,6 +75,7 @@ table.toggle-table {
75
75
  text-indent: 1px;
76
76
  text-overflow: '';
77
77
 
78
+ background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
78
79
  background-size: 15px;
79
80
  padding : 0.5rem 0rem 0.5rem 1rem;
80
81
  }
@@ -96,24 +97,24 @@ table.toggle-table {
96
97
  }
97
98
 
98
99
  td.toggle-tablee-td {
99
- @include toggle-global-font-config;
100
-
101
- font-size: $toggle-font-size-small;
102
- padding: 1rem 0;
103
- padding-left:1rem;
100
+ @include toggle-global-font-config;
101
+
102
+ font-size: $toggle-font-size-small;
103
+ padding: 1rem 0;
104
+ padding-left:1rem;
104
105
 
105
- cursor: pointer;
106
- vertical-align: middle;
107
- text-overflow: ellipsis;
108
- overflow: hidden;
109
- max-width: 80px;
110
- border: none;
111
- text-align: left;
106
+ cursor: pointer;
107
+ vertical-align: middle;
108
+ text-overflow: ellipsis;
109
+ overflow: hidden;
110
+ max-width: 80px;
111
+ border: none;
112
+ text-align: left;
112
113
 
113
- &:has(.toggle-three-dots-container) {
114
- overflow: inherit;
115
- text-align: right;
116
- }
114
+ &:has(.toggle-three-dots-container) {
115
+ overflow: inherit;
116
+ text-align: right;
117
+ }
117
118
  }
118
119
 
119
120
  tr.toggle-tablee-tr {
@@ -128,18 +129,18 @@ table.toggle-table {
128
129
  border-bottom-left-radius: 10px;
129
130
  }
130
131
 
131
- td.toggle-tablee-td:last-child {
132
- border-top-right-radius: 10px;
133
- border-bottom-right-radius: 10px;
134
- }
132
+ td.toggle-tablee-td:last-child {
133
+ border-top-right-radius: 10px;
134
+ border-bottom-right-radius: 10px;
135
+ }
135
136
 
136
- td.toggle-tablee-td {
137
- .toggle-button {
138
- &.neutral {
139
- padding: 0.2rem 0.9rem 0.2rem 0.9rem;
140
- }
137
+ td.toggle-tablee-td {
138
+ .toggle-button {
139
+ &.neutral {
140
+ padding: 0.2rem 0.9rem 0.2rem 0.9rem;
141
+ }
142
+ }
141
143
  }
142
- }
143
144
 
144
145
 
145
146
  }
@@ -147,160 +148,159 @@ table.toggle-table {
147
148
  opacity: 0.5;
148
149
  cursor: not-allowed;
149
150
  }
150
-
151
+
151
152
  }
152
153
 
153
154
  .toggle-date-input-calendar-icon{
154
155
  &:after{
155
- content: '';
156
- }
156
+ content: '';
157
+ }
157
158
  .toggle-input{
158
- font-size: 12px;
159
- padding-right:0px !important;
159
+ font-size: 12px;
160
+ padding-right:0px !important;
160
161
  }
161
- }
162
-
162
+ }
163
+
163
164
  }
164
165
 
165
166
 
166
167
 
167
168
 
168
169
  .toggle-table-any-search-active {
169
- .toggle-table-th-inner {
170
- height:74px;
171
- }
170
+ .toggle-table-th-inner {
171
+ height:74px;
172
+ }
172
173
  }
173
174
  .toggle-table-th-inner {
174
- line-height: 1em;
175
- position: relative;
176
- display: block;
177
- height: 50px;
178
- margin: 0 4px 8px 4px;
179
- padding: 10px;
180
- border:1px solid transparent;
181
- border-radius: 4px;
182
- box-sizing:border-box;
183
- transition: height .5s;
184
-
185
- .toggle-table-search-active & {
186
- z-index: 25;
187
- //overflow: hidden;
188
- background-color: white;
189
- border:1px solid #FFA300;
190
- input {
191
- cursor: text;
192
- pointer-events: auto;
193
- }
194
- .toggle-table-close-search {
195
- display: inline-block;
196
- }
197
- }
198
- .toggle-table-searchable & {
199
- cursor: pointer;
200
- .toggle-table-th-title {
201
- position: relative;
202
- display: inline-block;
203
- &:after {
204
- display: block;
205
- content:'';
206
- position: absolute;
207
- right: -15px;
208
- top: 3px;
209
- background: url(../assets/icons/search.svg) no-repeat;
210
- width: 10px;
211
- height: 10px;
212
- opacity: 0.3;
213
- }
175
+ line-height: 1em;
176
+ position: relative;
177
+ display: block;
178
+ height: 20px;
179
+ margin: 0 4px 8px 4px;
180
+ padding: 10px;
181
+ border:1px solid transparent;
182
+ border-radius: 4px;
183
+ box-sizing:border-box;
184
+ transition: height .5s;
185
+
186
+ .toggle-table-search-active & {
187
+ z-index: 25;
188
+ //overflow: hidden;
189
+ background-color: white;
190
+ border:1px solid #FFA300;
191
+ input {
192
+ cursor: text;
193
+ pointer-events: auto;
194
+ }
195
+ .toggle-table-close-search {
196
+ display: inline-block;
197
+ }
214
198
  }
215
- &:hover .toggle-table-th-title:after {
216
- opacity: 1;
199
+ .toggle-table-searchable & {
200
+ .toggle-table-th-title {
201
+ position: relative;
202
+ display: inline-block;
203
+ &:after {
204
+ display: block;
205
+ content:'';
206
+ position: absolute;
207
+ right: -15px;
208
+ top: 3px;
209
+ background: url(../assets/icons/search.svg) no-repeat;
210
+ width: 10px;
211
+ height: 10px;
212
+ opacity: 0.3;
213
+ }
214
+ }
215
+ &:hover .toggle-table-th-title:after {
216
+ opacity: 1;
217
+ }
217
218
  }
218
- }
219
- .toggle-table-searchable.toggle-table-search-active & {
220
- .toggle-table-th-title:after {
221
- display: none;
219
+ .toggle-table-searchable.toggle-table-search-active & {
220
+ .toggle-table-th-title:after {
221
+ display: none;
222
+ }
222
223
  }
223
- }
224
224
  }
225
225
 
226
226
 
227
227
  .toggle-table-close-search {
228
- position: absolute;
229
- top: 12px;
230
- right: 10px;
231
- display: block;
232
- opacity: 0.3;
233
- cursor:pointer;
228
+ position: absolute;
229
+ top: 12px;
230
+ right: 10px;
231
+ display: block;
232
+ opacity: 0.3;
233
+ cursor:pointer;
234
234
  }
235
235
  .toggle-table-close-search {
236
- background: url(../assets/icons/grey_cross.svg) no-repeat;
237
- width: 12px;
238
- height: 12px;
239
- display: none;
240
- float: right;
241
- &:hover {
242
- opacity: 1;
243
- }
236
+ background: url(../assets/icons/grey_cross.svg) no-repeat;
237
+ width: 12px;
238
+ height: 12px;
239
+ display: none;
240
+ float: right;
241
+ &:hover {
242
+ opacity: 1;
243
+ }
244
244
  }
245
245
 
246
246
  .arrow-order {
247
- background: url(/img/icons/arrow-right-blue-small.svg);
248
- position: absolute;
249
- top: 50%;
250
- margin-top: -10px;
251
- right: 15px;
252
- width: 20px;
253
- height: 20px;
254
- display: none;
247
+ background: url(/img/icons/arrow-right-blue-small.svg);
248
+ position: absolute;
249
+ top: 50%;
250
+ margin-top: -10px;
251
+ right: 15px;
252
+ width: 20px;
253
+ height: 20px;
254
+ display: none;
255
255
  }
256
256
 
257
257
 
258
258
 
259
259
  .toggle-pagination {
260
260
 
261
- ul, li {
262
- list-style: none;
263
- }
264
- ul {
265
- margin: 0;
266
- padding: 0;
267
- li {
268
- float: left;
269
-
270
- button {
271
- border: none;
272
- cursor: pointer;
273
- padding: 0 10px;
274
- color: #354B64;
275
- background-color: transparent;
276
- &:disabled {
277
- color: rgba(24, 158, 209, 0.7);
278
- font-weight: bold;
279
- }
280
- }
261
+ ul, li {
262
+ list-style: none;
263
+ }
264
+ ul {
265
+ margin: 0;
266
+ padding: 0;
267
+ li {
268
+ float: left;
269
+
270
+ button {
271
+ border: none;
272
+ cursor: pointer;
273
+ padding: 0 10px;
274
+ color: #354B64;
275
+ background-color: transparent;
276
+ &:disabled {
277
+ color: rgba(24, 158, 209, 0.7);
278
+ font-weight: bold;
279
+ }
280
+ }
281
281
 
282
- .toggle-pagination-prev, .toggle-pagination-next {
283
- text-indent: -99999px;
284
- width: 25px;
285
- height: 25px;
286
- }
282
+ .toggle-pagination-prev, .toggle-pagination-next {
283
+ text-indent: -99999px;
284
+ width: 25px;
285
+ height: 25px;
286
+ }
287
287
 
288
- .toggle-pagination-prev{
289
- background: url(../assets/icons/arrow-left-blue.svg) no-repeat;
290
- margin-right: 10px;
288
+ .toggle-pagination-prev{
289
+ background: url(../assets/icons/arrow-left-blue.svg) no-repeat;
290
+ margin-right: 10px;
291
291
 
292
- &:hover {
293
- background: url(../assets/icons/arrow-left-blue-hover.svg) no-repeat;
294
- }
295
- }
292
+ &:hover {
293
+ background: url(../assets/icons/arrow-left-blue-hover.svg) no-repeat;
294
+ }
295
+ }
296
296
 
297
- .toggle-pagination-next{
298
- background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
299
- margin-left: 10px;
300
- &:hover {
301
- background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
297
+ .toggle-pagination-next{
298
+ background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
299
+ margin-left: 10px;
300
+ &:hover {
301
+ background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
302
+ }
303
+ }
302
304
  }
303
- }
304
305
  }
305
- }
306
306
  }
@@ -21,5 +21,6 @@
21
21
  @import "./includes/_as_metrics.scss";
22
22
  @import "./includes/_as_threedots.scss";
23
23
  @import "./includes/_as_boosters.scss";
24
+ @import "./includes/_as_statusbar.scss";
24
25
  @import "./includes/_as_cards.scss";
25
26
  @import "./includes/_as_carousels.scss";
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill:#6d90b4}</style><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill:#fff}</style><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg>