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 #225417 feat: Enabling True False Questuin in Player #10

Open
wants to merge 3 commits into
base: feature-pratham
Choose a base branch
from
Open
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.9",
"version": "9.0.0-beta.10",
"schematics": "./schematics/collection.json",
"ng-add": {
"save": "dependencies"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</slide>
<slide *ngFor="let question of questions; let i= index" #questionSlide>
<div [id]="question.identifier">
<div *ngIf="question?.primaryCategory.toLowerCase() === 'multiple choice question'">
<div *ngIf="question?.primaryCategory.toLowerCase() === 'multiple choice question' || question?.primaryCategory.toLowerCase() === 'true false question'">
<quml-mcq [shuffleOptions]='shuffleOptions' [question]='question' [replayed]="parentConfig?.isReplayed"
(optionSelected)="getOptionSelected($event)" [identifier]="question.id" [tryAgain]="tryAgainClicked">
</quml-mcq>
Expand Down
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.1",
"version": "5.0.0-beta.2",
"description": "The web component package for the sunbird QuML player",
"main": "sunbird-quml-player.js",
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions web-component/sunbird-quml-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -39123,7 +39123,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "ɵHttpInterceptorHandler": () => (/* binding */ HttpInterceptorHandler),
/* harmony export */ "ɵwithHttpTransferCache": () => (/* binding */ withHttpTransferCache)
/* harmony export */ });
/* harmony import */ var _home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Second_Forks_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Sunbird_InQuiry_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 61699);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 9681);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 73064);
Expand Down Expand Up @@ -40575,7 +40575,7 @@ class FetchBackend {
}
doRequest(request, signal, observer) {
var _this = this;
return (0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Second_Forks_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
return (0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Sunbird_InQuiry_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
const init = _this.createRequestInit(request);
let response;
try {
Expand Down Expand Up @@ -40629,7 +40629,7 @@ class FetchBackend {
// Perform response processing outside of Angular zone to
// ensure no excessive change detection runs are executed
// Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD
yield _this.ngZone.runOutsideAngular( /*#__PURE__*/(0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Second_Forks_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
yield _this.ngZone.runOutsideAngular( /*#__PURE__*/(0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Sunbird_InQuiry_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
while (true) {
const {
done,
Expand Down Expand Up @@ -102062,7 +102062,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ QumlLibraryService: () => (/* binding */ QumlLibraryService)
/* harmony export */ });
/* harmony import */ var _home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Second_Forks_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Sunbird_InQuiry_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 71670);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 61699);
/* harmony import */ var _project_sunbird_client_services_telemetry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @project-sunbird/client-services/telemetry */ 35869);
/* harmony import */ var _project_sunbird_client_services_telemetry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_project_sunbird_client_services_telemetry__WEBPACK_IMPORTED_MODULE_1__);
Expand All @@ -102083,7 +102083,7 @@ class QumlLibraryService {
}
initializeTelemetry(config, parentConfig) {
var _this = this;
return (0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Second_Forks_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
return (0,_home_ttpl_rt_171_Documents_A_Tekdi_InQuiry_Sunbird_InQuiry_player_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
if (!lodash_es__WEBPACK_IMPORTED_MODULE_4__["default"](config, 'context') || lodash_es__WEBPACK_IMPORTED_MODULE_5__["default"](config, 'context')) {
return;
}
Expand Down Expand Up @@ -102981,7 +102981,7 @@ function SectionPlayerComponent_div_0_slide_12_Template(rf, ctx) {
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("id", question_r17.identifier);
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", (question_r17 == null ? null : question_r17.primaryCategory.toLowerCase()) === "multiple choice question");
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", (question_r17 == null ? null : question_r17.primaryCategory.toLowerCase()) === "multiple choice question" || (question_r17 == null ? null : question_r17.primaryCategory.toLowerCase()) === "true false question");
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", (question_r17 == null ? null : question_r17.primaryCategory.toLowerCase()) === "subjective question");
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
Expand Down