@pocketprep/ui-kit 3.4.62 → 3.4.64

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.
@@ -40,7 +40,8 @@
40
40
  (showMatrixAnswers || reviewMode) && isMatrixQuestionCorrect,
41
41
  'uikit-question-matrix-choices-container__choices-container--incorrect':
42
42
  (showMatrixAnswers || reviewMode) && !isMatrixQuestionCorrect,
43
-
43
+ 'uikit-question-matrix-choices-container__choices-container--teach-group-review':
44
+ (showMatrixAnswers || reviewMode) && isTeachGroupReview,
44
45
  }"
45
46
  v-dark="isDarkMode"
46
47
  v-breakpoint:questionEl="breakpoints"
@@ -202,6 +203,7 @@ export default class MatrixChoicesContainer extends Vue {
202
203
  @Prop() matrixAnswerKeys!: TMatrixChoiceKey[]
203
204
  @Prop() matrixDistractorKeys!: TMatrixChoiceKey[]
204
205
  @Prop() selectedMatrixChoices!: TMatrixChoiceKey[]
206
+ @Prop({ default: false }) isTeachGroupReview!: boolean
205
207
 
206
208
  matrixCheckboxGrid: boolean[][] | undefined = undefined
207
209
  matrixRadioGrid: IRadioOptions[] | undefined = undefined
@@ -556,6 +558,16 @@ export default class MatrixChoicesContainer extends Vue {
556
558
  &--mobile {
557
559
  display: none;
558
560
  }
561
+
562
+ &--teach-group-review {
563
+ &::after {
564
+ display: none;
565
+ }
566
+
567
+ &--dark::after {
568
+ display: none;
569
+ }
570
+ }
559
571
  }
560
572
 
561
573
  &__choices {
@@ -255,6 +255,7 @@
255
255
  :is-dark-mode="isDarkMode"
256
256
  :question-el="questionEl"
257
257
  :breakpoints="breakpoints"
258
+ :is-teach-group-review="isTeachGroupReview"
258
259
  @emitSelectedMatrixChoice="selectMatrixChoice"
259
260
  @emitAnsweredMatrixRowIndex="answeredMatrixRowIndex"
260
261
  >
@@ -570,6 +571,7 @@ export default class Question extends Vue {
570
571
  @Prop({ default: false }) showPaywall!: boolean
571
572
  @Prop({ default: false }) hideReferences!: boolean
572
573
  @Prop({ default: false }) isTeachReview!: boolean
574
+ @Prop({ default: false }) isTeachGroupReview!: boolean
573
575
  @Prop({ default: [] }) keywordDefinitions!: { keyword: string; definition: string }[]
574
576
 
575
577
  hoverChoiceKey: TChoiceKey | null = null
@@ -336,8 +336,14 @@ export default class Table extends Vue {
336
336
 
337
337
  @Watch('defaultSort')
338
338
  defaultSortChanged () {
339
- if (this.defaultSort) {
340
- this.currentSort = JSON.parse(JSON.stringify(this.defaultSort))
339
+ if (!this.defaultSort) {
340
+ return
341
+ }
342
+ const defaultSort = JSON.stringify(this.defaultSort)
343
+ const currentSort = JSON.stringify(this.currentSort)
344
+
345
+ if (defaultSort !== currentSort) {
346
+ this.currentSort = JSON.parse(defaultSort)
341
347
  this.emitSort()
342
348
  }
343
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.62",
3
+ "version": "3.4.64",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {