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

Issue #PS-4077 chore: Package build and version update #17

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.