Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fitb for dropdown #204

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b011b03
update for removal of email address
vishnubansaltarento Aug 12, 2024
5fcaa40
Merge pull request #1 from KB-iGOT/removal-of-email-address
bharathravi-in Aug 12, 2024
a90832b
PipePublicUrl issue fix for GCW env
Aug 18, 2024
5af45e7
Merge pull request #2 from abhishek-K-P/main
abhishek-K-P Aug 18, 2024
586ac14
dialog component for certificate
Aug 20, 2024
25ce13a
Merge pull request #3 from bharathravi-in/dialog-component
bharathravi-in Aug 20, 2024
656cd2b
KB-6241 fix
garima468 Aug 20, 2024
c0f477a
Merge pull request #4 from KB-iGOT/KB-6241-fix
vishnubansaltarento Aug 21, 2024
940eed7
changes in the microsite pages
Aug 21, 2024
1f60512
Merge pull request #6 from bharathravi-in/microsite-changes-in-package
venkykandagaddala Aug 21, 2024
a11b19c
version change
Aug 21, 2024
c4004a2
Merge pull request #7 from bharathravi-in/main
bharathravi-in Aug 21, 2024
9f087f8
update for fitb changes
vishnubansaltarento Aug 23, 2024
9e75b7f
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Aug 23, 2024
d40ca9d
Merge pull request #8 from KB-iGOT/removal-of-email-address
christyfernandes Aug 23, 2024
b22f6dc
update for fitb package
vishnubansaltarento Aug 23, 2024
004e199
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Aug 23, 2024
21eb637
Merge pull request #9 from KB-iGOT/removal-of-email-address
christyfernandes Aug 23, 2024
d411a3a
update for fitb
vishnubansaltarento Aug 27, 2024
fe83e91
Merge pull request #10 from KB-iGOT/removal-of-email-address
bharathravi-in Aug 27, 2024
60394d8
ati-cti changes
Aug 30, 2024
dc7e5cb
Merge pull request #11 from bharathravi-in/competency-passbook
bharathravi-in Aug 30, 2024
b82abb8
changes in competency passbok
Sep 2, 2024
5fa1986
Merge pull request #12 from bharathravi-in/competency-passbook
bharathravi-in Sep 2, 2024
29383b9
update for assessment question preview
vishnubansaltarento Sep 3, 2024
3f7fce4
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Sep 3, 2024
5aa330a
update for assessment viewer
vishnubansaltarento Sep 4, 2024
8f398d5
update for assessment question viewer
vishnubansaltarento Sep 4, 2024
52d2941
Merge pull request #13 from KB-iGOT/removal-of-email-address
bharathravi-in Sep 4, 2024
2331733
update for mtf ui
vishnubansaltarento Sep 4, 2024
217e3f8
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Sep 4, 2024
04929cd
Merge pull request #14 from KB-iGOT/removal-of-email-address
bharathravi-in Sep 4, 2024
a199ad2
update for mtf question on top
vishnubansaltarento Sep 5, 2024
592c330
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Sep 5, 2024
befd080
Merge pull request #15 from KB-iGOT/removal-of-email-address
christyfernandes Sep 5, 2024
4bf4324
update for question mtf layout change
vishnubansaltarento Sep 6, 2024
424b286
Merge branch 'main' of github.com:KB-iGOT/sb-cb-ui-components into re…
vishnubansaltarento Sep 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sunbird-cb/assessment",
"version": "0.0.6",
"version": "0.0.12",
"main": "./src/public-api.ts",
"peerDependencies": {
"@angular/animations": "~8.2.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
<!-- <router-outlet (activate)="getContentData($event)"></router-outlet> -->
<div class="assessment-preview-dialog">
<div [ngClass]="questionPreview ? 'assessment-preview-dialog-question-preview' : 'assessment-preview-dialog'">
<button mat-icon-button class="close-button cursor-pointer" [mat-dialog-close]="true">
<mat-icon class="close-icon">close</mat-icon>
</button>
<div class="margin-m" *ngIf="!isFetchingDataComplete || !testData">
<div class="flex flex-center">
<mat-spinner></mat-spinner>
<ng-container *ngIf="!questionPreview">
<div class="margin-m" *ngIf="!isFetchingDataComplete || !testData">
<div class="flex flex-center">
<mat-spinner></mat-spinner>
</div>
</div>
</div>
<ng-container *ngIf="testData && isFetchingDataComplete">
<!-- <viewer-practice-container *ngIf="isFetchingDataComplete" [isFetchingDataComplete]="isFetchingDataComplete"
[isErrorOccured]="isErrorOccured" [quizData]="testData" [forPreview]="forPreview" [quizJson]="quizJson"
[fromCreation]="true">
</viewer-practice-container> -->
<viewer-plugin-practice [identifier]="testData?.identifier" [artifactUrl]="testData?.artifactUrl"
[name]="testData?.name" [learningObjective]="testData?.name" [primaryCategory]="testData?.primaryCategory"
[complexityLevel]="testData?.difficultyLevel" [duration]="testData?.expectedDuration || 1" [quizJson]="quizJson"
[collectionId]="collectionId" [fromCreation]="fromCreation" [quizData]="testData">
</viewer-plugin-practice>
<ng-container *ngIf="testData && isFetchingDataComplete">
<!-- <viewer-practice-container *ngIf="isFetchingDataComplete" [isFetchingDataComplete]="isFetchingDataComplete"
[isErrorOccured]="isErrorOccured" [quizData]="testData" [forPreview]="forPreview" [quizJson]="quizJson"
[fromCreation]="true">
</viewer-practice-container> -->
<viewer-plugin-practice [identifier]="testData?.identifier" [artifactUrl]="testData?.artifactUrl"
[name]="testData?.name" [learningObjective]="testData?.name" [primaryCategory]="testData?.primaryCategory"
[complexityLevel]="testData?.difficultyLevel" [duration]="testData?.expectedDuration || 1" [quizJson]="quizJson"
[collectionId]="collectionId" [fromCreation]="fromCreation" [quizData]="testData">
</viewer-plugin-practice>
</ng-container>
</ng-container>
<ng-container *ngIf="questionPreview">
<viewer-question [showQuestionMarks]="data.assesment.marks ? 'Yes':'No'"
[selectedAssessmentCompatibilityLevel]="data.assesment.compatibilityLevel"
[questionNumber]="data.assesment.questionNumber" class="flex-1" [showOnlyQuestion]="true"
[questionPreview]="questionPreview" [assessmentType]="data.assesment.assessmentType"
[question]="data.assesment.question"></viewer-question>
<viewer-question [showQuestionMarks]="data.assesment.marks ? 'Yes':'No'"
[selectedAssessmentCompatibilityLevel]="data.assesment.compatibilityLevel"
[questionNumber]="data.assesment.questionNumber" [assessmentType]="data.assesment.assessmentType" class="flex-1"
[questionPreview]="questionPreview" [showOnlyQuestion]="false"
[question]="data.assesment.question"></viewer-question>
</ng-container>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
overflow: visible
}

::ng-deep .assessment-preview-dialog-question-preview .mat-dialog-container {
padding: 10px !important;
overflow: visible
}

::ng-deep .assessment-preview-dialog {
position: relative;

Expand Down Expand Up @@ -33,4 +38,38 @@
}
}

}

::ng-deep .assessment-preview-dialog-question-preview {
height: 98%;
overflow-y: auto;
overflow-x: hidden;
margin-top: 15px;

.close-button {
border-radius: 50%;
border: 0.5px solid #6a6868;
width: 30px;
height: 30px;
position: absolute;
top: 19%;
right: 19%;
background-color: white;

.close-icon {
font-size: 20px;
// margin-bottom: 12px;
// margin-left: 1px;
color: #7c7b7b;
}

.mat-icon {
height: 16px;
width: 16px;
}

.cursor-pointer {
cursor: pointer;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ export class CommonAssessmentViewerComponent implements OnInit {
quizJson: any
fromCreation = true
collectionId = ''
questionPreview = false
ngOnInit() {
if (this.data) {
// tslint:disable-next-line
console.log('this.data', this.data)
this.questionPreview = this.data.questionPreview
this.isFetchingDataComplete = this.data.isFetchingDataComplete
this.testData = this.data.testData
this.isErrorOccured = this.data.isErrorOccured
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<mat-card class="flex flex-1 flex-column padding-xl ws-mat-accent-border no-shadow fitb-questions">
<span class="mat-subheading-2" i18n>Instruction</span>
<span class="mat-body-2 margin-bottom-l" i18n>{{ question?.instructions || 'Fill in the blank with the best
word'}}</span>
<ng-container *ngIf="selectedAssessmentCompatibilityLevel < 7">
<span class="mat-subheading-2" i18n>Instruction</span>
<span class="mat-body-2 margin-bottom-l" i18n>{{
question?.instructions || 'Fill in the blank with the best
word'}}</span>
</ng-container>
<h2 *ngIf="question.questionType === 'ftb'" class="mat-h2" [innerHTML]="safeQuestion" class="quiz-question">
</h2>

<div *ngIf="question.questionType === 'ftb'">
<div *ngIf="question.questionType === 'ftb' && !questionPreview">
<div *ngFor="let option of question?.options; let i = index">
<div class="html-option" [ngClass]="{
'correct-option': viewState === 'answer' && option?.isCorrect
}" *ngIf="viewState === 'answer' && option?.isCorrect" [innerHtml]="getSanitizeString(option?.text) ">

</div>
<div class="background-well padding-left-m padding-xs" *ngIf="showAns && option?.hint && !unTouchedBlank[i]"
[ngClass]="{
Expand Down
Loading