@testgorilla/tgo-immersive-test 0.0.1 → 1.0.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/README.md +32 -0
- package/esm2022/index.mjs +5 -0
- package/esm2022/lib/components/immersive-test/immersive-test.component.mjs +257 -0
- package/esm2022/lib/components/index.mjs +6 -0
- package/esm2022/lib/components/review-instructions-dialog/index.mjs +2 -0
- package/esm2022/lib/components/review-instructions-dialog/review-instructions-dialog.component.mjs +69 -0
- package/esm2022/lib/components/ringing-phone-animation/index.mjs +2 -0
- package/esm2022/lib/components/ringing-phone-animation/ringing-phone-animation.component.mjs +43 -0
- package/esm2022/lib/components/ringing-phone-animation/ringing-phone-animation.sound.mjs +2 -0
- package/esm2022/lib/components/video-countdown/index.mjs +2 -0
- package/esm2022/lib/components/video-countdown/video-countdown.component.mjs +105 -0
- package/esm2022/lib/models/index.mjs +2 -0
- package/esm2022/lib/models/translations.mjs +3 -0
- package/esm2022/lib/services/index.mjs +3 -0
- package/esm2022/shared/index.mjs +5 -0
- package/esm2022/shared/lib/components/audio-animation/audio-animation.component.mjs +114 -0
- package/esm2022/shared/lib/components/audio-animation/index.mjs +2 -0
- package/esm2022/shared/lib/components/index.mjs +3 -0
- package/esm2022/shared/lib/components/vimeo-video/index.mjs +2 -0
- package/esm2022/shared/lib/components/vimeo-video/vimeo-video.component.mjs +101 -0
- package/esm2022/shared/lib/models/answer.mjs +2 -0
- package/esm2022/shared/lib/models/assessment.mjs +2 -0
- package/esm2022/shared/lib/models/environment.mjs +2 -0
- package/esm2022/shared/lib/models/index.mjs +9 -0
- package/esm2022/shared/lib/models/question-component.mjs +2 -0
- package/esm2022/shared/lib/models/question.mjs +2 -0
- package/esm2022/shared/lib/models/test.mjs +2 -0
- package/esm2022/shared/lib/models/translations.mjs +2 -0
- package/esm2022/shared/lib/models/window.mjs +2 -0
- package/esm2022/shared/lib/services/api/api.service.mjs +97 -0
- package/esm2022/shared/lib/services/api/mocked-api.service.mjs +131 -0
- package/esm2022/shared/lib/services/environment/environment.service.mjs +13 -0
- package/esm2022/shared/lib/services/index.mjs +10 -0
- package/esm2022/shared/lib/services/localization/languages.model.mjs +19 -0
- package/esm2022/shared/lib/services/localization/transloco-lazy-module-utils.mjs +27 -0
- package/esm2022/shared/lib/services/localization/transloco-testing.module.mjs +11 -0
- package/esm2022/shared/lib/services/media/media.service.mjs +129 -0
- package/esm2022/shared/lib/services/mixpanel/mixpanel.service.mjs +30 -0
- package/esm2022/shared/lib/services/theme/theme.service.mjs +24 -0
- package/esm2022/shared/test-mocks/assessment-test.mock.mjs +112 -0
- package/esm2022/shared/test-mocks/index.mjs +3 -0
- package/esm2022/shared/test-mocks/tgo-ui.mock.mjs +39 -0
- package/esm2022/testgorilla-tgo-immersive-test.mjs +5 -0
- package/fesm2022/testgorilla-tgo-immersive-test.mjs +466 -0
- package/fesm2022/testgorilla-tgo-immersive-test.mjs.map +1 -0
- package/lib/components/immersive-test/immersive-test.component.d.ts +53 -0
- package/{src/lib/components/index.ts → lib/components/index.d.ts} +0 -2
- package/lib/components/review-instructions-dialog/review-instructions-dialog.component.d.ts +24 -0
- package/lib/components/ringing-phone-animation/ringing-phone-animation.component.d.ts +13 -0
- package/lib/components/ringing-phone-animation/ringing-phone-animation.sound.d.ts +1 -0
- package/lib/components/video-countdown/video-countdown.component.d.ts +24 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/translations.d.ts +1 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +18 -8
- package/shared/index.d.ts +4 -0
- package/shared/lib/components/audio-animation/audio-animation.component.d.ts +27 -0
- package/shared/lib/components/audio-animation/index.d.ts +1 -0
- package/shared/lib/components/index.d.ts +2 -0
- package/shared/lib/components/vimeo-video/index.d.ts +1 -0
- package/shared/lib/components/vimeo-video/vimeo-video.component.d.ts +24 -0
- package/shared/lib/models/answer.d.ts +17 -0
- package/shared/lib/models/assessment.d.ts +80 -0
- package/shared/lib/models/environment.d.ts +1 -0
- package/shared/lib/models/index.d.ts +8 -0
- package/shared/lib/models/question-component.d.ts +54 -0
- package/shared/lib/models/question.d.ts +102 -0
- package/shared/lib/models/test.d.ts +81 -0
- package/shared/lib/models/translations.d.ts +1 -0
- package/shared/lib/models/window.d.ts +6 -0
- package/shared/lib/services/api/api.service.d.ts +25 -0
- package/shared/lib/services/api/mocked-api.service.d.ts +35 -0
- package/shared/lib/services/environment/environment.service.d.ts +6 -0
- package/shared/lib/services/index.d.ts +9 -0
- package/shared/lib/services/localization/languages.model.d.ts +15 -0
- package/shared/lib/services/localization/transloco-lazy-module-utils.d.ts +11 -0
- package/shared/lib/services/localization/transloco-testing.module.d.ts +2 -0
- package/shared/lib/services/media/media.service.d.ts +29 -0
- package/shared/lib/services/mixpanel/mixpanel.service.d.ts +10 -0
- package/shared/lib/services/theme/theme.service.d.ts +8 -0
- package/shared/test-mocks/assessment-test.mock.d.ts +21 -0
- package/shared/test-mocks/index.d.ts +2 -0
- package/shared/test-mocks/tgo-ui.mock.d.ts +21 -0
- package/.eslintrc.json +0 -46
- package/jest.config.ts +0 -28
- package/ng-package.json +0 -16
- package/project.json +0 -37
- package/src/lib/components/immersive-test/immersive-test.component.html +0 -100
- package/src/lib/components/immersive-test/immersive-test.component.scss +0 -247
- package/src/lib/components/immersive-test/immersive-test.component.spec.ts +0 -581
- package/src/lib/components/immersive-test/immersive-test.component.ts +0 -279
- package/src/lib/components/review-instructions-dialog/review-instructions-dialog.component.html +0 -39
- package/src/lib/components/review-instructions-dialog/review-instructions-dialog.component.scss +0 -160
- package/src/lib/components/review-instructions-dialog/review-instructions-dialog.component.spec.ts +0 -81
- package/src/lib/components/review-instructions-dialog/review-instructions-dialog.component.ts +0 -80
- package/src/lib/components/ringing-phone-animation/ringing-phone-animation.component.html +0 -16
- package/src/lib/components/ringing-phone-animation/ringing-phone-animation.component.scss +0 -79
- package/src/lib/components/ringing-phone-animation/ringing-phone-animation.component.spec.ts +0 -95
- package/src/lib/components/ringing-phone-animation/ringing-phone-animation.component.ts +0 -54
- package/src/lib/components/ringing-phone-animation/ringing-phone-animation.sound.ts +0 -2
- package/src/lib/components/video-countdown/video-countdown.component.html +0 -10
- package/src/lib/components/video-countdown/video-countdown.component.scss +0 -16
- package/src/lib/components/video-countdown/video-countdown.component.spec.ts +0 -59
- package/src/lib/components/video-countdown/video-countdown.component.ts +0 -102
- package/src/lib/models/index.ts +0 -9
- package/src/lib/models/translations.ts +0 -3
- package/src/lib/services/index.ts +0 -7
- package/src/test-setup.ts +0 -22
- package/tsconfig.json +0 -17
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -13
- /package/{src/assets → assets}/i18n/en.json +0 -0
- /package/{src/index.ts → index.d.ts} +0 -0
- /package/{src/lib/components/review-instructions-dialog/index.ts → lib/components/review-instructions-dialog/index.d.ts} +0 -0
- /package/{src/lib/components/ringing-phone-animation/index.ts → lib/components/ringing-phone-animation/index.d.ts} +0 -0
- /package/{src/lib/components/video-countdown/index.ts → lib/components/video-countdown/index.d.ts} +0 -0
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
@import '@testgorilla/tgo-ui/projects/tgo-canopy-ui/theme/variables';
|
|
2
|
-
|
|
3
|
-
$border-radius: 10px;
|
|
4
|
-
|
|
5
|
-
.immersive-test {
|
|
6
|
-
padding: 0 64px;
|
|
7
|
-
margin-top: 40px;
|
|
8
|
-
|
|
9
|
-
.media-info {
|
|
10
|
-
width: 100%;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
align-items: center;
|
|
14
|
-
background: rgba(36, 36, 36, 0.66);
|
|
15
|
-
background-color: $black;
|
|
16
|
-
border-bottom-left-radius: $border-radius;
|
|
17
|
-
border-bottom-right-radius: $border-radius;
|
|
18
|
-
padding: 13px 32px;
|
|
19
|
-
color: $tgo-white;
|
|
20
|
-
|
|
21
|
-
::ng-deep ui-button button {
|
|
22
|
-
border-color: $tgo-white;
|
|
23
|
-
color: $tgo-white;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.test-container {
|
|
28
|
-
min-width: 360px;
|
|
29
|
-
max-width: 1312px;
|
|
30
|
-
min-height: 725px;
|
|
31
|
-
height: min(
|
|
32
|
-
725px,
|
|
33
|
-
100%,
|
|
34
|
-
max(calc(100vw - 200px), calc(100vh - 200px), 200px)
|
|
35
|
-
);
|
|
36
|
-
border-radius: $border-radius;
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
position: relative;
|
|
41
|
-
background-color: $black;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.media-container {
|
|
45
|
-
position: relative;
|
|
46
|
-
color: $tgo-white;
|
|
47
|
-
flex-grow: 1;
|
|
48
|
-
border-top-left-radius: $border-radius;
|
|
49
|
-
border-top-right-radius: $border-radius;
|
|
50
|
-
aspect-ratio: 16 / 9;
|
|
51
|
-
|
|
52
|
-
.candidate-no-camera {
|
|
53
|
-
position: absolute;
|
|
54
|
-
width: 200px;
|
|
55
|
-
aspect-ratio: 16 / 9;
|
|
56
|
-
z-index: 3;
|
|
57
|
-
top: 32px;
|
|
58
|
-
left: 32px;
|
|
59
|
-
border-radius: $border-radius;
|
|
60
|
-
background-color: #1a47aa;
|
|
61
|
-
display: flex;
|
|
62
|
-
justify-content: space-between;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
padding: 16px;
|
|
65
|
-
|
|
66
|
-
ui-icon {
|
|
67
|
-
margin: auto;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.candidate-camera {
|
|
72
|
-
position: absolute;
|
|
73
|
-
width: 200px;
|
|
74
|
-
top: 32px;
|
|
75
|
-
left: 32px;
|
|
76
|
-
z-index: 3;
|
|
77
|
-
|
|
78
|
-
video {
|
|
79
|
-
width: 200px;
|
|
80
|
-
border-radius: $border-radius;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
h3 {
|
|
84
|
-
position: absolute;
|
|
85
|
-
bottom: 16px;
|
|
86
|
-
left: 16px;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
tgo-audio-animation {
|
|
91
|
-
position: absolute;
|
|
92
|
-
top: 32px;
|
|
93
|
-
right: 32px;
|
|
94
|
-
z-index: 1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
tgo-vimeo-video {
|
|
98
|
-
display: none;
|
|
99
|
-
position: absolute;
|
|
100
|
-
height: 100%;
|
|
101
|
-
width: 100%;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&.is-video-visible {
|
|
105
|
-
tgo-vimeo-video {
|
|
106
|
-
display: block;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.is-playing {
|
|
111
|
-
border: 4px solid $informative-40;
|
|
112
|
-
border-bottom-width: 3px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&.is-answering {
|
|
116
|
-
.candidate-camera,
|
|
117
|
-
.candidate-no-camera {
|
|
118
|
-
tgo-audio-animation {
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 16px;
|
|
121
|
-
right: 16px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.candidate-camera video,
|
|
126
|
-
.candidate-no-camera {
|
|
127
|
-
border: 3px solid $informative-40;
|
|
128
|
-
border-radius: $border-radius;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
tgo-vimeo-video {
|
|
132
|
-
display: block;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.start,
|
|
137
|
-
.audio-info,
|
|
138
|
-
.overlay,
|
|
139
|
-
.answer {
|
|
140
|
-
display: flex;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
align-items: center;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
gap: 40px;
|
|
145
|
-
height: 100%;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.preview {
|
|
149
|
-
height: 100%;
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
justify-content: flex-end;
|
|
154
|
-
padding: 24px;
|
|
155
|
-
|
|
156
|
-
p {
|
|
157
|
-
color: $grayscale-30;
|
|
158
|
-
margin: 8px 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
audio {
|
|
162
|
-
margin: 16px 0;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&.hidden {
|
|
166
|
-
display: none;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
h3,
|
|
172
|
-
h4 {
|
|
173
|
-
color: $tgo-white;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.bold {
|
|
177
|
-
font-weight: 700;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
ui-button.review-button ::ng-deep button {
|
|
181
|
-
border: 1px solid $tgo-white;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
ui-button.white-btn ::ng-deep button {
|
|
185
|
-
background-color: $tgo-white;
|
|
186
|
-
border-color: $tgo-white;
|
|
187
|
-
color: $tgo-black;
|
|
188
|
-
|
|
189
|
-
&:hover {
|
|
190
|
-
background-color: $grayscale-50 !important;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.overlay {
|
|
195
|
-
top: 0;
|
|
196
|
-
position: absolute;
|
|
197
|
-
width: 100%;
|
|
198
|
-
height: 100%;
|
|
199
|
-
background-color: rgb(36 36 36 / 88%);
|
|
200
|
-
z-index: 2;
|
|
201
|
-
border-radius: $border-radius;
|
|
202
|
-
|
|
203
|
-
h1,
|
|
204
|
-
h3 {
|
|
205
|
-
color: $tgo-white;
|
|
206
|
-
text-align: center;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
h3 {
|
|
210
|
-
margin-bottom: 10px;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
tgo-radial-progress {
|
|
215
|
-
position: absolute;
|
|
216
|
-
top: 50%;
|
|
217
|
-
left: 50%;
|
|
218
|
-
transform: translate(-50%, -50%);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.uppercase {
|
|
222
|
-
text-transform: uppercase;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.recording-started {
|
|
226
|
-
display: flex;
|
|
227
|
-
align-items: center;
|
|
228
|
-
justify-content: center;
|
|
229
|
-
gap: 10px;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.recording-dot {
|
|
233
|
-
background-color: $error-40;
|
|
234
|
-
display: inline-block;
|
|
235
|
-
width: 20px;
|
|
236
|
-
height: 20px;
|
|
237
|
-
border-radius: 50%;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@media screen and (max-width: 600px) {
|
|
242
|
-
.immersive-test {
|
|
243
|
-
padding: 0 24px;
|
|
244
|
-
margin-top: 16px;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|