Skip to content

Commit

Permalink
Merge pull request #17 from rajnishdargan/feature-pratham
Browse files Browse the repository at this point in the history
Issue #PS-4077 chore: Package build and version update
  • Loading branch information
rajnishdargan authored Feb 26, 2025
2 parents 0627b20 + a1406a0 commit 4cf706e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 54 deletions.
2 changes: 1 addition & 1 deletion projects/quml-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tekdi/sunbird-quml-player",
"version": "9.0.0-beta.12",
"version": "9.0.0-beta.13",
"schematics": "./schematics/collection.json",
"ng-add": {
"save": "dependencies"
Expand Down
4 changes: 2 additions & 2 deletions projects/quml-library/src/lib/asq/asq.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div *ngIf="questionBody" class="question-body" >
<div class="mtf-title">
<p [innerHTML]="questionBody" style="margin-top: 50px;"></p>
<div class="mtf-title" style="margin-bottom: 50px;">
<p [innerHTML]="questionBody"></p>
</div>
<quml-asq-options [shuffleOptions]="shuffleOptions" [replayed]="replayed" [tryAgain]="tryAgain" *ngIf="interactions?.response1?.options"
[options]="interactions.response1.options" (reorderedOptions)="handleReorderedOptions($event)" [layout]="layout">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,21 +427,10 @@ export class SectionPlayerComponent implements OnChanges, AfterViewInit {
}

previousSlideClicked(event) {
/* istanbul ignore else */
if (event.event === 'previous clicked') {
if ((this.optionSelectedObj || this.mtfReorderedOptionsMap) && this.showFeedBack) {
this.stopAutoNavigation = false;
this.validateQuestionInteraction('previous');
} else {
this.stopAutoNavigation = true;
if (this.currentSlideIndex === 0 && this.parentConfig.isSectionsAvailable && this.getCurrentSectionIndex() > 0) {
const previousSectionId = this.mainProgressBar[this.getCurrentSectionIndex() - 1].identifier;
this.jumpToSection(previousSectionId);
return;
}
this.prevSlide();
}
if ((this.optionSelectedObj || this.asqReorderedOptionsMap) && this.showFeedBack) {
let shouldValidate = (this.optionSelectedObj || this.mtfReorderedOptionsMap) && this.showFeedBack;
let shouldValidateAgain = (this.optionSelectedObj || this.asqReorderedOptionsMap) && this.showFeedBack;
if (shouldValidate || shouldValidateAgain) {
this.stopAutoNavigation = false;
this.validateQuestionInteraction('previous');
} else {
Expand All @@ -451,9 +440,8 @@ export class SectionPlayerComponent implements OnChanges, AfterViewInit {
this.jumpToSection(previousSectionId);
return;
}
this.prevSlide();
this.prevSlide(); // Called only once on previousSlideClicked
}

}
}

Expand Down
23 changes: 6 additions & 17 deletions web-component-examples/vanilla-js/sunbird-quml-player.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tekdi/sunbird-quml-player-web-component",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "The web component package for the sunbird QuML player",
"main": "sunbird-quml-player.js",
"scripts": {
Expand Down
23 changes: 6 additions & 17 deletions web-component/sunbird-quml-player.js

Large diffs are not rendered by default.

0 comments on commit 4cf706e

Please sign in to comment.