pr360-questionnaire 2.1.11 → 2.2.11
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/build/questionnaire-test.js +10905 -13331
- package/css/app.scss +1 -0
- package/css/components/_forms.scss +80 -0
- package/css/components/_modal.scss +15 -3
- package/css/components/_network-live.scss +210 -0
- package/css/components/_tables.scss +0 -11
- package/css/questionnaire.lit.scss +48 -0
- package/dist/index.js +978 -2626
- package/js/questionnaire.ts +74 -3
- package/package.json +1 -1
- package/test/questionnaire-test.ts +48 -1
package/css/app.scss
CHANGED
|
@@ -25,4 +25,84 @@
|
|
|
25
25
|
&:last-child {
|
|
26
26
|
border-bottom: none;
|
|
27
27
|
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Questionnaire section styling for forms
|
|
31
|
+
.questionnaire-section {
|
|
32
|
+
margin-top: 16px;
|
|
33
|
+
|
|
34
|
+
label {
|
|
35
|
+
margin-bottom: 8px;
|
|
36
|
+
display: block;
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
color: #374151;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Create a separate scrollable container for the questionnaire items
|
|
42
|
+
.questionnaire-scroll-area {
|
|
43
|
+
max-height: 200px;
|
|
44
|
+
overflow-y: scroll; // Always show scrollbar to make it clear it's scrollable
|
|
45
|
+
border: 1px solid #d1d5db;
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
padding: 12px;
|
|
48
|
+
background-color: #f9fafb;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
|
|
51
|
+
// Style individual questionnaire items
|
|
52
|
+
.questionnaire-item {
|
|
53
|
+
margin-bottom: 8px;
|
|
54
|
+
|
|
55
|
+
&:last-child {
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Improve checkbox and label alignment
|
|
60
|
+
label {
|
|
61
|
+
display: flex !important;
|
|
62
|
+
align-items: center !important;
|
|
63
|
+
gap: 8px !important;
|
|
64
|
+
margin: 0 !important;
|
|
65
|
+
font-weight: normal !important;
|
|
66
|
+
color: #374151;
|
|
67
|
+
line-height: 1.4;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
|
|
70
|
+
input[type="checkbox"] {
|
|
71
|
+
margin: 0 !important;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
width: 16px;
|
|
74
|
+
height: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Text content alignment
|
|
78
|
+
span {
|
|
79
|
+
flex: 1;
|
|
80
|
+
line-height: 1.4;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Custom scrollbar styling - make it more visible
|
|
86
|
+
&::-webkit-scrollbar {
|
|
87
|
+
width: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&::-webkit-scrollbar-track {
|
|
91
|
+
background: #f3f4f6;
|
|
92
|
+
border-radius: 4px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&::-webkit-scrollbar-thumb {
|
|
96
|
+
background: #9ca3af;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
|
|
99
|
+
&:hover {
|
|
100
|
+
background: #6b7280;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Firefox scrollbar styling
|
|
105
|
+
scrollbar-width: auto; // Make scrollbar always visible in Firefox
|
|
106
|
+
scrollbar-color: #9ca3af #f3f4f6;
|
|
107
|
+
}
|
|
28
108
|
}
|
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
right: 0;
|
|
6
6
|
bottom: 0;
|
|
7
7
|
background-color: rgba(0, 0, 0, .2);
|
|
8
|
-
|
|
8
|
+
backdrop-filter: blur(4px);
|
|
9
|
+
-webkit-backdrop-filter: blur(4px);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.modal--container{
|
|
12
13
|
background: $white;
|
|
13
|
-
width:
|
|
14
|
+
width: 750px;
|
|
14
15
|
position: absolute;
|
|
15
16
|
top: 10%;
|
|
16
17
|
left: 45%;
|
|
17
|
-
margin-left: -
|
|
18
|
+
margin-left: -375px;
|
|
18
19
|
z-index: 9999;
|
|
19
20
|
padding: $space-md;
|
|
20
21
|
-webkit-box-shadow: 3px 3px 15px 3px #ACACAC;
|
|
@@ -24,3 +25,14 @@
|
|
|
24
25
|
left: 56%;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
|
|
29
|
+
// Style the onboarding email textarea to match other form fields but with better formatting
|
|
30
|
+
textarea[name="network_form[onboarding_email]"] {
|
|
31
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
|
|
32
|
+
font-size: 13px !important;
|
|
33
|
+
line-height: 1.5 !important;
|
|
34
|
+
min-height: 300px !important;
|
|
35
|
+
resize: vertical !important;
|
|
36
|
+
width: 100% !important;
|
|
37
|
+
box-sizing: border-box !important;
|
|
38
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// Network Live Component Styles
|
|
2
|
+
|
|
3
|
+
.network-container {
|
|
4
|
+
.modal-content {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.network-tabs-container {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border-bottom: 1px solid $gray-lighter;
|
|
13
|
+
padding: 0;
|
|
14
|
+
background-color: $white;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: 0;
|
|
17
|
+
min-height: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.network-tabs {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 0;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding: 0 $space-xs;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.network-tab-button {
|
|
31
|
+
padding: 4px 8px;
|
|
32
|
+
border: none;
|
|
33
|
+
background: none;
|
|
34
|
+
color: $gray-dark;
|
|
35
|
+
border-bottom: 2px solid transparent;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
font-weight: $body-regular;
|
|
39
|
+
transition: $transition;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
line-height: 1.2;
|
|
44
|
+
|
|
45
|
+
&.active {
|
|
46
|
+
color: $black;
|
|
47
|
+
border-bottom-color: $color-primary;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:hover:not(.active) {
|
|
51
|
+
color: $gray-darkest;
|
|
52
|
+
background-color: $gray-lightest;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.network-actions {
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 6px;
|
|
61
|
+
padding: 6px $space-xs;
|
|
62
|
+
background-color: $white;
|
|
63
|
+
border-bottom: 1px solid $gray-lighter;
|
|
64
|
+
min-height: auto;
|
|
65
|
+
|
|
66
|
+
.button {
|
|
67
|
+
// Override size but keep standard button styling
|
|
68
|
+
padding: 6px 12px !important;
|
|
69
|
+
font-size: 12px !important;
|
|
70
|
+
font-weight: $body-regular !important;
|
|
71
|
+
border-radius: 4px !important;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
line-height: 1.2;
|
|
74
|
+
|
|
75
|
+
// Ensure primary styling is preserved
|
|
76
|
+
&.button--primary {
|
|
77
|
+
background-color: $color-primary !important;
|
|
78
|
+
color: $white !important;
|
|
79
|
+
border: none !important;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
background-color: darken($color-primary, 10%) !important;
|
|
83
|
+
color: $white !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Secondary button styling (for Edit Network)
|
|
88
|
+
&.button--secondary {
|
|
89
|
+
background-color: $white !important;
|
|
90
|
+
color: $color-primary !important;
|
|
91
|
+
border: 1px solid $color-primary !important;
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
background-color: $color-primary !important;
|
|
95
|
+
color: $white !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Simplified table styling - less aggressive overrides
|
|
102
|
+
.table-container {
|
|
103
|
+
padding: 0 $space-sm;
|
|
104
|
+
background-color: $white;
|
|
105
|
+
|
|
106
|
+
table {
|
|
107
|
+
width: 100%;
|
|
108
|
+
border-collapse: collapse;
|
|
109
|
+
background-color: $white;
|
|
110
|
+
border-radius: 0;
|
|
111
|
+
box-shadow: none;
|
|
112
|
+
border: none;
|
|
113
|
+
|
|
114
|
+
thead {
|
|
115
|
+
tr {
|
|
116
|
+
border-bottom: 1px solid $gray-lighter;
|
|
117
|
+
|
|
118
|
+
th {
|
|
119
|
+
text-align: left;
|
|
120
|
+
padding: 12px 16px;
|
|
121
|
+
font-weight: $body-bold;
|
|
122
|
+
color: $gray-darkest;
|
|
123
|
+
background-color: $white;
|
|
124
|
+
border: none;
|
|
125
|
+
font-size: 14px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
tbody {
|
|
131
|
+
tr {
|
|
132
|
+
border-bottom: 1px solid $gray-lightest;
|
|
133
|
+
background-color: $white;
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
background-color: $gray-lightest;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
td {
|
|
140
|
+
padding: 12px 16px;
|
|
141
|
+
background-color: inherit;
|
|
142
|
+
border: none;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.actions {
|
|
151
|
+
text-align: right;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.action-link {
|
|
155
|
+
color: $color-primary;
|
|
156
|
+
text-decoration: none;
|
|
157
|
+
margin-left: 12px;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
text-decoration: underline;
|
|
162
|
+
color: $color-primary-hover;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:first-child {
|
|
166
|
+
margin-left: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
.questionnaire-item {
|
|
173
|
+
margin-bottom: $space-xxs;
|
|
174
|
+
|
|
175
|
+
&:last-child {
|
|
176
|
+
margin-bottom: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Responsive adjustments for smaller screens
|
|
181
|
+
@media (max-width: $screen-tablet) {
|
|
182
|
+
.network-tabs-container {
|
|
183
|
+
padding: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.network-tab-button {
|
|
187
|
+
padding: 3px 6px;
|
|
188
|
+
font-size: 11px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.network-actions {
|
|
192
|
+
gap: 4px;
|
|
193
|
+
padding: 4px $space-xxs;
|
|
194
|
+
|
|
195
|
+
.button {
|
|
196
|
+
padding: 4px 8px !important;
|
|
197
|
+
font-size: 11px !important;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.table-container {
|
|
202
|
+
padding: 0 $space-xs;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.questionnaire-grid-container {
|
|
206
|
+
grid-template-columns: 1fr;
|
|
207
|
+
max-height: 250px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -396,17 +396,6 @@ table {
|
|
|
396
396
|
position: relative !important;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
.modal-blur-overlay {
|
|
400
|
-
position: fixed;
|
|
401
|
-
top: 0; left: 0; right: 0; bottom: 0;
|
|
402
|
-
width: 100vw;
|
|
403
|
-
height: 100vh;
|
|
404
|
-
z-index: 1000;
|
|
405
|
-
pointer-events: none;
|
|
406
|
-
backdrop-filter: blur(4px);
|
|
407
|
-
-webkit-backdrop-filter: blur(4px);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
399
|
// Fade both tables and their contents when modal is open (robust selector)
|
|
411
400
|
.prospects-table-wrapper.modal-open table,
|
|
412
401
|
.prospects-table-wrapper.modal-open .prospects-table--main,
|
|
@@ -420,6 +420,54 @@ meter::-webkit-meter-optimum-value {
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
+
// Verification Page Styles
|
|
424
|
+
.verification-phone-number {
|
|
425
|
+
font-size: 1rem !important;
|
|
426
|
+
font-weight: 500;
|
|
427
|
+
color: rgba(24, 24, 24, 0.88);
|
|
428
|
+
margin-top: 10px;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.verification-form {
|
|
432
|
+
display: flex !important;
|
|
433
|
+
flex-direction: column;
|
|
434
|
+
align-items: center;
|
|
435
|
+
justify-content: center;
|
|
436
|
+
grid-template-columns: 1fr !important;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.verification-input-container {
|
|
440
|
+
text-align: center;
|
|
441
|
+
width: 100%;
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
align-items: center;
|
|
445
|
+
|
|
446
|
+
label {
|
|
447
|
+
text-align: center !important;
|
|
448
|
+
margin-bottom: 5px;
|
|
449
|
+
margin-left: auto !important;
|
|
450
|
+
margin-right: auto !important;
|
|
451
|
+
display: block;
|
|
452
|
+
width: auto !important;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
input {
|
|
456
|
+
text-align: center;
|
|
457
|
+
width: 300px !important;
|
|
458
|
+
margin-left: auto !important;
|
|
459
|
+
margin-right: auto !important;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.verification-resend-button {
|
|
464
|
+
position: static !important;
|
|
465
|
+
margin-top: 10px !important;
|
|
466
|
+
display: block;
|
|
467
|
+
top: auto !important;
|
|
468
|
+
left: auto !important;
|
|
469
|
+
}
|
|
470
|
+
|
|
423
471
|
// Utilities
|
|
424
472
|
.u-margin-none--bt {
|
|
425
473
|
margin-bottom: 0px;
|