commons-assessment 12.1.2-dev.0 → 12.1.2-dev.2
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 +9 -2
- package/bundles/commons-assessment.umd.js +39 -4
- package/bundles/commons-assessment.umd.js.map +1 -1
- package/esm2015/lib/modules/assessment-maker/assessment-maker.component.js +38 -3
- package/esm2015/lib/modules/assessment-maker/components/question-bank-picker/question-bank-picker.component.js +3 -3
- package/esm2015/lib/modules/question-bank/question-bank.component.js +2 -2
- package/fesm2015/commons-assessment.js +39 -4
- package/fesm2015/commons-assessment.js.map +1 -1
- package/lib/modules/assessment-maker/assessment-maker.component.d.ts +7 -0
- package/package.json +1 -1
- package/src/lib/assets/theme/styles.global.scss +127 -6
|
@@ -49,7 +49,14 @@ export declare class AssessmentMakerComponent implements OnInit {
|
|
|
49
49
|
responseCount: number;
|
|
50
50
|
proctoringEnabled: boolean;
|
|
51
51
|
durationMinutes: number | null;
|
|
52
|
+
activeDropdownId: string | null;
|
|
53
|
+
dropdownPlacementMap: {
|
|
54
|
+
[id: string]: 'top' | 'bottom';
|
|
55
|
+
};
|
|
52
56
|
private readonly PROCTORING_CONFIG_KEY;
|
|
57
|
+
toggleDropdown(id: string, event?: Event): void;
|
|
58
|
+
onDocumentClick(event: MouseEvent): void;
|
|
59
|
+
closeAllDropdowns(): void;
|
|
53
60
|
constructor(assessmentMakerService: AssessmentMakerService, assessmentBuilderService: AssessmentBuilderService, dialog: MatDialog);
|
|
54
61
|
ngOnInit(): void;
|
|
55
62
|
private loadResponseCount;
|
package/package.json
CHANGED
|
@@ -26,16 +26,20 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
26
26
|
|
|
27
27
|
.assessment-dialog {
|
|
28
28
|
overflow: auto;
|
|
29
|
+
scrollbar-width: thin;
|
|
30
|
+
scrollbar-color: var(--assessment-grey-six, #bdc9d3) transparent;
|
|
29
31
|
|
|
30
32
|
/* Angular <= v14 (legacy) */
|
|
31
33
|
.mat-dialog-container {
|
|
32
34
|
padding: 0;
|
|
35
|
+
overflow: hidden;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
/* Angular v15+ (MDC) */
|
|
36
39
|
.mat-mdc-dialog-container {
|
|
37
40
|
padding: 0;
|
|
38
41
|
max-width: unset;
|
|
42
|
+
overflow: hidden;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
@extend .assessment-custom-scrollbar-thumb;
|
|
@@ -58,19 +62,30 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.assessment-custom-scrollbar-thumb {
|
|
65
|
+
scrollbar-width: thin;
|
|
66
|
+
scrollbar-color: var(--assessment-grey-six, #bdc9d3) transparent;
|
|
67
|
+
|
|
68
|
+
&::-webkit-scrollbar,
|
|
61
69
|
::-webkit-scrollbar {
|
|
62
|
-
width:
|
|
63
|
-
height:
|
|
70
|
+
width: 6px !important;
|
|
71
|
+
height: 6px !important;
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
&::-webkit-scrollbar-track,
|
|
66
75
|
::-webkit-scrollbar-track {
|
|
67
|
-
|
|
68
|
-
border-radius: inherit !important;
|
|
76
|
+
background: transparent !important;
|
|
69
77
|
}
|
|
70
78
|
|
|
79
|
+
&::-webkit-scrollbar-thumb,
|
|
71
80
|
::-webkit-scrollbar-thumb {
|
|
72
|
-
background-color: var(--assessment-grey-six) !important;
|
|
73
|
-
border-radius:
|
|
81
|
+
background-color: var(--assessment-grey-six, #cbd5e1) !important;
|
|
82
|
+
border-radius: 10px !important;
|
|
83
|
+
transition: background-color 0.2s ease;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::-webkit-scrollbar-thumb:hover,
|
|
87
|
+
::-webkit-scrollbar-thumb:hover {
|
|
88
|
+
background-color: var(--assessment-grey-eight, #94a3b8) !important;
|
|
74
89
|
}
|
|
75
90
|
}
|
|
76
91
|
|
|
@@ -126,6 +141,21 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
126
141
|
}
|
|
127
142
|
|
|
128
143
|
.assessment-panel {
|
|
144
|
+
overflow: visible !important;
|
|
145
|
+
|
|
146
|
+
&.mat-expanded {
|
|
147
|
+
overflow: visible !important;
|
|
148
|
+
|
|
149
|
+
.mat-expansion-panel-content {
|
|
150
|
+
overflow: visible !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.mat-expansion-panel-body {
|
|
154
|
+
overflow: visible !important;
|
|
155
|
+
padding: 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
129
159
|
.mat-expansion-panel-body {
|
|
130
160
|
padding: 0;
|
|
131
161
|
}
|
|
@@ -206,4 +236,95 @@ GLOBAL stylesheet for commons-assessment library
|
|
|
206
236
|
.mat-mdc-tab-header {
|
|
207
237
|
display: none !important;
|
|
208
238
|
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* ---------------------------------------------------------------------------
|
|
242
|
+
* 2. Assessment Dropdown Menu Animations & Styling
|
|
243
|
+
* --------------------------------------------------------------------------- */
|
|
244
|
+
.assessment-bloom-down {
|
|
245
|
+
transform-origin: top left;
|
|
246
|
+
animation: ctaMenuBloomDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
|
|
247
|
+
will-change: transform, opacity;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.assessment-bloom-up {
|
|
251
|
+
transform-origin: bottom left;
|
|
252
|
+
animation: ctaMenuBloomUp 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
|
|
253
|
+
will-change: transform, opacity;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.assessment-dropdown-menu {
|
|
257
|
+
border: 1px solid rgba(0, 0, 0, 0.08) !important;
|
|
258
|
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
|
|
259
|
+
|
|
260
|
+
.dropdown-item {
|
|
261
|
+
position: relative;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
transition: background-color 0.2s ease;
|
|
265
|
+
user-select: none;
|
|
266
|
+
|
|
267
|
+
img,
|
|
268
|
+
.menu-action-icon,
|
|
269
|
+
span,
|
|
270
|
+
.menu-item-text {
|
|
271
|
+
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
|
|
272
|
+
color 0.18s ease;
|
|
273
|
+
display: inline-block;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
span,
|
|
277
|
+
.menu-item-text {
|
|
278
|
+
color: var(--assessment-grey-ten, #1e293b);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
img,
|
|
282
|
+
.menu-action-icon {
|
|
283
|
+
flex-shrink: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&:hover,
|
|
287
|
+
&:focus-visible {
|
|
288
|
+
background-color: var(--assessment-palette-EDF3FD, #edf3fd) !important;
|
|
289
|
+
|
|
290
|
+
img,
|
|
291
|
+
.menu-action-icon,
|
|
292
|
+
span,
|
|
293
|
+
.menu-item-text {
|
|
294
|
+
transform: translateX(2.5px);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
span,
|
|
298
|
+
.menu-item-text {
|
|
299
|
+
color: var(--assessment-primary-one, #467dd6) !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&:active {
|
|
304
|
+
transform: scale(0.99);
|
|
305
|
+
background-color: var(--assessment-palette-C8DAF9, #c8daf9) !important;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@keyframes ctaMenuBloomDown {
|
|
311
|
+
0% {
|
|
312
|
+
opacity: 0;
|
|
313
|
+
transform: translateY(-6px);
|
|
314
|
+
}
|
|
315
|
+
100% {
|
|
316
|
+
opacity: 1;
|
|
317
|
+
transform: translateY(0);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@keyframes ctaMenuBloomUp {
|
|
322
|
+
0% {
|
|
323
|
+
opacity: 0;
|
|
324
|
+
transform: translateY(6px);
|
|
325
|
+
}
|
|
326
|
+
100% {
|
|
327
|
+
opacity: 1;
|
|
328
|
+
transform: translateY(0);
|
|
329
|
+
}
|
|
209
330
|
}
|