@pocketprep/ui-kit 3.4.70 → 3.4.71
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/dist/@pocketprep/ui-kit.js +735 -732
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +8 -8
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +11 -0
- package/lib/components/Quiz/Question/Summary.vue +2 -1
- package/lib/components/Quiz/Question.vue +1 -1
- package/package.json +1 -1
|
@@ -424,6 +424,17 @@ export default class MobileMatrixChoicesContainer extends Vue {
|
|
|
424
424
|
|
|
425
425
|
convertSelectedMatrixChoiceToRadioBtnGrid () {
|
|
426
426
|
const radioBtnGrid = this.defaultRadioButtonGrid
|
|
427
|
+
|
|
428
|
+
const columnMatrixLabels = this.question.matrixLabels?.rows
|
|
429
|
+
const defaultSelectedColumnLabels: string[][] = []
|
|
430
|
+
if (columnMatrixLabels) {
|
|
431
|
+
columnMatrixLabels.forEach(() => {
|
|
432
|
+
defaultSelectedColumnLabels.push([])
|
|
433
|
+
})
|
|
434
|
+
|
|
435
|
+
this.selectedColumnHeaders = defaultSelectedColumnLabels
|
|
436
|
+
}
|
|
437
|
+
|
|
427
438
|
this.selectedMatrixChoices.forEach(choice => {
|
|
428
439
|
const rowIndex = Number(choice.substring(1, choice.indexOf('_'))) - 1
|
|
429
440
|
const columnIndex = Number(choice.split('_').pop()) - 1
|
|
@@ -163,7 +163,8 @@ export default class Summary extends Vue {
|
|
|
163
163
|
@Prop({ default: [] }) keywordDefinitions!: { keyword: string; definition: string }[]
|
|
164
164
|
|
|
165
165
|
get isQuestionCorrect () {
|
|
166
|
-
return (!this.isMatrixQuestion && this.isCorrect) ||
|
|
166
|
+
return (!this.isMatrixQuestion && this.isCorrect) ||
|
|
167
|
+
(this.isMatrixQuestion && this.isMatrixQuestionCorrect && !this.isUnanswered)
|
|
167
168
|
}
|
|
168
169
|
|
|
169
170
|
get summary () {
|
|
@@ -831,7 +831,7 @@ export default class Question extends Vue {
|
|
|
831
831
|
if (!this.isMatrixQuestion) {
|
|
832
832
|
return this.selectedChoices.length === 0
|
|
833
833
|
}
|
|
834
|
-
return this.selectedMatrixChoices.length === 0
|
|
834
|
+
return (this.selectedMatrixChoices.length === 0 || !this.allMatrixRowsAreAnswered)
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
get prompt () {
|