@pocketprep/ui-kit 3.4.52 → 3.4.53
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 +12251 -11129
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +10 -10
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/Forms/Checkbox.vue +9 -1
- package/lib/components/Forms/Radio.vue +11 -11
- package/lib/components/Forms/RadioButton.vue +140 -0
- package/lib/components/Quiz/Question/MatrixChoicesContainer.vue +614 -0
- package/lib/components/Quiz/Question/MatrixRadioGroup.vue +98 -0
- package/lib/components/Quiz/Question/MobileMatrixChoicesContainer.vue +710 -0
- package/lib/components/Quiz/Question/MobileMatrixRadioGroup.vue +131 -0
- package/lib/components/Quiz/Question/StatsSummary.vue +11 -3
- package/lib/components/Quiz/Question/Summary.vue +9 -2
- package/lib/components/Quiz/Question.vue +252 -11
- package/lib/components/Quiz/question.d.ts +12 -0
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type Ref = HTMLElement | null
|
|
2
2
|
|
|
3
3
|
export type TChoiceKey = `${'a' | 'd'}${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`
|
|
4
|
+
export type TMatrixChoiceKey = `${'a' | 'd'}${1 | 2 | 3 }_${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}`
|
|
4
5
|
|
|
5
6
|
export type TQuizMode = 'qotd' | 'quick10' | 'timed' | 'weakest' | 'missed' | 'custom'
|
|
6
7
|
|
|
@@ -20,6 +21,11 @@ export type TChoiceScores = Partial<Record<TChoiceKey, number>> & {
|
|
|
20
21
|
answeredCorrectly: number
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
export type TMatrixChoiceScores = {
|
|
25
|
+
totalAnswered: number
|
|
26
|
+
answeredCorrectly: number
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
export type TQuestionPassageAndImageTitle = 'Passage + Image' | 'Image' | 'Passage'
|
|
24
30
|
|
|
25
31
|
export type TNamesRow = {
|
|
@@ -38,4 +44,10 @@ export type TViewNames = {
|
|
|
38
44
|
name: string
|
|
39
45
|
isFlaggedByStudent: boolean
|
|
40
46
|
}[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface IRadioOptions {
|
|
50
|
+
choices: TMatrixChoiceKey[]
|
|
51
|
+
value: TMatrixChoiceKey | null
|
|
52
|
+
label?: string
|
|
41
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pocketprep/ui-kit",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.53",
|
|
4
4
|
"description": "Pocket Prep UI Kit",
|
|
5
5
|
"author": "pocketprep",
|
|
6
6
|
"scripts": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"vue-router": "4.2.5"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@pocketprep/types": "1.
|
|
81
|
+
"@pocketprep/types": "1.14.10",
|
|
82
82
|
"@tsconfig/node16": "1.0.3",
|
|
83
83
|
"@types/node": "16.18.25",
|
|
84
84
|
"@vitejs/plugin-vue": "4.6.2",
|